diff --git a/.eslintrc.json b/.eslintrc.json index e04aeb4d69..6c262516ff 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,6 +4,7 @@ "es6": true, "node": true }, + "parser": "babel-eslint", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, diff --git a/cypress/integration/rendering/conf-and-directives.spec.js b/cypress/integration/rendering/conf-and-directives.spec.js new file mode 100644 index 0000000000..7d11ec86ef --- /dev/null +++ b/cypress/integration/rendering/conf-and-directives.spec.js @@ -0,0 +1,141 @@ +/* eslint-env jest */ +import { imgSnapshotTest } from '../../helpers/util.js'; + +describe('Configuration and directives - nodes should be light blue', () => { + it('No config - use default', () => { + imgSnapshotTest( + ` + graph TD + A(Default) --> B[/Another/] + A --> C[End] + subgraph section + B + C + end + `, + {} + ); + cy.get('svg'); + }); + it('Settigns from intitialize - nodes should be green', () => { + imgSnapshotTest( + ` +graph TD + A(Forest) --> B[/Another/] + A --> C[End] + subgraph section + B + C + end `, + {theme:'forest'} + ); + cy.get('svg'); + }); + it('Settings from initialize overriding themeVariable - nodes shold be red', () => { + imgSnapshotTest( + ` + + + %%{init: { 'theme': 'base', 'themeVariables':{ 'primaryColor': '#ff0000'}}}%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {theme:'base', themeVariables:{ primaryColor: '#ff0000'}, logLevel: 0} + ); + cy.get('svg'); + }); + it('Settings from directive - nodes should be grey', () => { + imgSnapshotTest( + ` + %%{init: { 'logLevel': 0, 'theme': 'neutral'} }%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {} + ); + cy.get('svg'); + }); + + it('Settings from directive overriding theme variable - nodes should be red', () => { + imgSnapshotTest( + ` + %%{init: {'theme': 'base', 'themeVariables':{ 'primaryColor': '#ff0000'}}}%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {} + ); + cy.get('svg'); + }); + it('Settings from initialize and directive - nodes should be grey', () => { + imgSnapshotTest( + ` + %%{init: { 'logLevel': 0, 'theme': 'neutral'} }%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {theme:'forest'} + ); + cy.get('svg'); + }); + it('Theme from initialize, directive overriding theme variable - nodes should be red', () => { + imgSnapshotTest( + ` + %%{init: {'theme': 'base', 'themeVariables':{ 'primaryColor': '#ff0000'}}}%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {theme:'base'} + ); + cy.get('svg'); + }); + it('Theme variable from initialize, theme from directive - nodes should be red', () => { + imgSnapshotTest( + ` + %%{init: { 'logLevel': 0, 'theme': 'base'} }%% +graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end + `, + {themeVariables:{primaryColor: '#ff0000'}} + ); + cy.get('svg'); + }); + describe('when rendering several diagrams', () => { + it('diagrams should not taint later diagrams', () => { + const url = 'http://localhost:9000/theme-directives.html'; + cy.visit(url); + cy.get('svg'); + cy.percySnapshot(); + }); + }); + }); diff --git a/cypress/integration/rendering/flowchart.spec.js b/cypress/integration/rendering/flowchart.spec.js index 0bae442e16..9e510c1125 100644 --- a/cypress/integration/rendering/flowchart.spec.js +++ b/cypress/integration/rendering/flowchart.spec.js @@ -529,17 +529,19 @@ describe('Flowchart', () => { imgSnapshotTest( `graph TB TITLE["Link Click Events
(click the nodes below)"] - A[link test] - B[anchor test] - C[mailto test] - D[other protocol test] - E[script test] - TITLE --> A & B & C & D & E - click A "https://mermaid-js.github.io/mermaid/#/" "link test" - click B "#link-clicked" "anchor test" - click C "mailto:user@user.user" "mailto test" - click D "notes://do-your-thing/id" "other protocol test" - click E "javascript:alert('test')" "script test" + A["link test (open in same tab)"] + B["link test (open in new tab)"] + C[anchor test] + D[mailto test] + E[other protocol test] + F[script test] + TITLE --> A & B & C & D & E & F + click A "https://mermaid-js.github.io/mermaid/#/" "link test (open in same tab)" + click B "https://mermaid-js.github.io/mermaid/#/" "link test (open in new tab)" _blank + click C "#link-clicked" + click D "mailto:user@user.user" "mailto test" + click E "notes://do-your-thing/id" "other protocol test" + click F "javascript:alert('test')" "script test" `, { securityLevel: 'loose' } ); diff --git a/cypress/platform/current.html b/cypress/platform/current.html index 9d34dd48c7..bd4c6315e6 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -33,12 +33,12 @@

info below

c1 --apa apa apa--> b1 two --> c2 -
+
sequenceDiagram Alice->>Bob:Extremely utterly long line of longness which had preivously overflown the actor box as it is much longer than what it should be Bob->>Alice: I'm short though
-
+
%%{init: {'securityLevel': 'loose'}}%% graph TD A[Christmas] -->|Get money| B(Go shopping) @@ -74,12 +74,30 @@

info below

A --> D: asd123
+ %%{init: {'theme': 'base', 'themeVariables':{ 'primaryColor': '#ff0000'}}}%%
+ %%{init: {'theme': 'dark'}}%% - classDiagram - Customer "1" --> "*" Ticket - Student "1" --> "1..*" Course - Galaxy --> "many" Star : Contains + flowchart TB + subgraph apa + a --> A %% comment + a --> a{apa} %% comment + end +
+
+graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
+
+sequenceDiagram +Alice->Bob: Hello Bob, how are you? +Note over Alice,Bob: Looks +Note over Bob,Alice: Looks back
@@ -88,7 +106,8 @@

info below

// console.error('Mermaid error: ', err); }; mermaid.initialize({ - // theme: 'dark', + theme: 'forest', + // themeVariables:{primaryColor: '#ff0000'}, // arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 0, diff --git a/cypress/platform/showcase_base.html b/cypress/platform/showcase_base.html index cce19c9d32..1de684e04e 100644 --- a/cypress/platform/showcase_base.html +++ b/cypress/platform/showcase_base.html @@ -11,7 +11,6 @@ body { /* background: rgb(221, 208, 208); */ background: #f4f4f4; - /* background: #0c0c0c; */ font-family: 'Arial'; height: 100%; width: 100%; @@ -93,6 +92,31 @@

Showcases of diagrams

John-->Alice: Great! end
+
+%%{init: {'securityLevel': 'loose', 'theme':'base'}}%% + +classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +
gantt dateFormat :YYYY-MM-DD @@ -152,7 +176,7 @@

Showcases of diagrams

-%%{init2: {'securityLevel': 'loose', 'theme':'base'}}%% +%%{init: {'securityLevel': 'loose', 'theme':'base'}}%% stateDiagram-v2 [*] --> Active @@ -209,7 +233,7 @@

Showcases of diagrams

}; mermaid.initialize({ theme: 'base', - themeVariables: { primaryColor: '#ff0000'}, + // themeVariables: // arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 0, diff --git a/cypress/platform/showcase_base_dark.html b/cypress/platform/showcase_base_dark.html new file mode 100644 index 0000000000..6bdd7461fb --- /dev/null +++ b/cypress/platform/showcase_base_dark.html @@ -0,0 +1,245 @@ + + + + + + + + + +

Showcases of diagrams

+
+
+ graph TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + B --> G[/Another/] + C ==>|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[fa:fa-car Car] + subgraph section + C + D + E + F + G + end +
+
+%%{init2: {'securityLevel': 'loose', 'theme':'base'}}%% + flowchart TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + B --> G[Another] + C ==>|One| D[Laptop] + C x--x|Two| E[iPhone] + C o--o|Three| F[fa:fa-car Car] + subgraph section + C + D + E + F + G + end +
+
+ sequenceDiagram + autonumber + par Action 1 + Alice->>John: Hello John, how are you? + and Action 2 + Alice->>Bob: Hello Bob, how are you? + end + Alice->>+John: Hello John, how are you? + Alice->>+John: John, can you hear me? + John-->>-Alice: Hi Alice, I can hear you! + Note right of John: John is perceptive + John-->>-Alice: I feel great! + loop Every minute + John-->Alice: Great! + end +
+
+classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +
+
+gantt + dateFormat :YYYY-MM-DD + title Adding GANTT diagram functionality to mermaid + excludes :excludes the named dates/days from being included in a charted task.. + section A section + Completed task :done, des1, 2014-01-06,2014-01-08 + Active task :active, des2, 2014-01-09, 3d + Future task : des3, after des2, 5d + Future task2 : des4, after des3, 5d + + section Critical tasks + Completed task in the critical line :crit, done, 2014-01-06,24h + Implement parser and jison :crit, done, after des1, 2d + Create tests for parser :crit, active, 3d + Future task in critical line :crit, 5d + Create tests for renderer :2d + Add to mermaid :1d + + section Documentation + Describe gantt syntax :active, a1, after des1, 3d + Add gantt diagram to demo page :after a1 , 20h + Add another diagram to demo page :doc1, after a1 , 48h + + section Last section + Describe gantt syntax :after doc1, 3d + Add gantt diagram to demo page :20h + Add another diagram to demo page :48h +
+
+ stateDiagram + [*] --> Active + + state Active { + [*] --> NumLockOff + NumLockOff --> NumLockOn : EvNumLockPressed + NumLockOn --> NumLockOff : EvNumLockPressed + -- + [*] --> CapsLockOff + CapsLockOff --> CapsLockOn : EvCapsLockPressed + CapsLockOn --> CapsLockOff : EvCapsLockPressed + -- + [*] --> ScrollLockOff + ScrollLockOff --> ScrollLockOn : EvCapsLockPressed + ScrollLockOn --> ScrollLockOff : EvCapsLockPressed + } + state SomethingElse { + A --> B + B --> A + } + + Active --> SomethingElse + note right of SomethingElse : This is the note to the right. + + SomethingElse --> [*] + +
+
+stateDiagram-v2 + [*] --> Active + + state Active { + [*] --> NumLockOff + NumLockOff --> NumLockOn : EvNumLockPressed + NumLockOn --> NumLockOff : EvNumLockPressed + -- + [*] --> CapsLockOff + CapsLockOff --> CapsLockOn : EvCapsLockPressed + CapsLockOn --> CapsLockOff : EvCapsLockPressed + -- + [*] --> ScrollLockOff + ScrollLockOff --> ScrollLockOn : EvCapsLockPressed + ScrollLockOn --> ScrollLockOff : EvCapsLockPressed + } + state SomethingElse { + A --> B + B --> A + } + + Active --> SomethingElse2 + note right of SomethingElse2 : This is the note to the right. + + SomethingElse2 --> [*] +
+
+ erDiagram + CUSTOMER }|..|{ DELIVERY-ADDRESS : has + CUSTOMER ||--o{ ORDER : places + CUSTOMER ||--o{ INVOICE : "liable for" + DELIVERY-ADDRESS ||--o{ ORDER : receives + INVOICE ||--|{ ORDER : covers + ORDER ||--|{ ORDER-ITEM : includes + PRODUCT-CATEGORY ||--|{ PRODUCT : contains + PRODUCT ||--o{ ORDER-ITEM : "ordered in" +
+
+journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 5: Me +
+ + + + + diff --git a/cypress/platform/showcase_dark.html b/cypress/platform/showcase_dark.html index 1ba1d591f8..e4c090293b 100644 --- a/cypress/platform/showcase_dark.html +++ b/cypress/platform/showcase_dark.html @@ -40,7 +40,7 @@

Showcases of diagrams

- %%{init: {'theme': 'dark'}}%% + %%{init: {'theme': 'base', 'themeVariables':{'primaryColor': '#ff0000'}}%% graph TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} @@ -88,6 +88,31 @@

Showcases of diagrams

loop Every minute John-->Alice: Great! end +
+
+%%{init: {'theme':'dark'}}%% + +classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + }
gantt @@ -141,6 +166,7 @@

Showcases of diagrams

} Active --> SomethingElse + SomethingElse --> [*] note right of SomethingElse : This is the note to the right.
@@ -166,6 +192,7 @@

Showcases of diagrams

} Active --> SomethingElse2 + SomethingElse2 --> [*] note right of SomethingElse2 : This is the note to the right.
@@ -197,7 +224,7 @@

Showcases of diagrams

// console.error('Mermaid error: ', err); }; mermaid.initialize({ - theme: 'forest', + theme: 'dark', // arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 0, diff --git a/cypress/platform/showcase_default.html b/cypress/platform/showcase_default.html index 18d98ddfa0..1b8c887657 100644 --- a/cypress/platform/showcase_default.html +++ b/cypress/platform/showcase_default.html @@ -88,6 +88,29 @@

Showcases of diagrams

John-->Alice: Great! end
+
+classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +
gantt dateFormat :YYYY-MM-DD diff --git a/cypress/platform/showcase_forest.html b/cypress/platform/showcase_forest.html index 6f85f36868..c12f46e9bc 100644 --- a/cypress/platform/showcase_forest.html +++ b/cypress/platform/showcase_forest.html @@ -89,6 +89,31 @@

Showcases of diagrams

John-->Alice: Great! end
+
+%%{init: {'theme':'forest'}}%% + +classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +
gantt dateFormat :YYYY-MM-DD @@ -142,6 +167,7 @@

Showcases of diagrams

Active --> SomethingElse note right of SomethingElse : This is the note to the right. + SomethingElse --> [*]
stateDiagram-v2 diff --git a/cypress/platform/showcase_neutral.html b/cypress/platform/showcase_neutral.html index 710f96e806..997224b123 100644 --- a/cypress/platform/showcase_neutral.html +++ b/cypress/platform/showcase_neutral.html @@ -89,6 +89,31 @@

Showcases of diagrams

John-->Alice: Great! end
+
+%%{init: {'theme':'neutral'}}%% + +classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +
gantt dateFormat :YYYY-MM-DD diff --git a/cypress/platform/theme-directives.html b/cypress/platform/theme-directives.html index 4fb409699b..79f3f42063 100644 --- a/cypress/platform/theme-directives.html +++ b/cypress/platform/theme-directives.html @@ -13,105 +13,107 @@ /* background:#333; */ font-family: 'Arial'; } - h1 { color: grey;} + h1 { + color: #333; + font-size: 20px; + text-decoration: underline; + } .mermaid2 { display: none; } - .someClass > * { - /* fill: red !important; */ + .dark { + background: #333; + } + .dark h1 { + color: #f4f4f4; + } + .size { + width: 33%; + height: 250px; } -

info below

-
-%%{init: { 'logLevel': 0, 'theme': 'default'} }%% -graph TD - A[Default] -->|Get money| B(Go shopping) - B --> C{Let me think} - B --> G[/Another/] - C ==>|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] - subgraph section - C - D - E - F - G - end +
+

Default

+
+ %%{init: { 'logLevel': 0, 'theme': 'default'} }%% + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
-
-%%{init: { 'logLevel': 1, 'theme': 'forest'} }%% - graph TD - A[Forest] -->|Get money| B(Go shopping) - B --> C{Let me think} - B --> G[/Another/] - C ==>|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] - subgraph section - C - D - E - F - G - end +
+

Forest

+
+ %%{init: { 'logLevel': 1, 'theme': 'forest'} }%% + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
-
- %%{init: { 'logLevel': 1, 'theme': 'neutral'} }%% - - graph TD - A[Neutral] -->|Get money| B(Go shopping) - B --> C{Let me think} - B --> G[/Another/] - C ==>|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] - subgraph section - C - D - E - F - G - end +
+

Neutral

+
+ %%{init: { 'logLevel': 1, 'theme': 'neutral'} }%% + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
+
+
+

Dark

+
+ %%{init: { 'logLevel': 1, 'theme': 'dark'} }%% + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
-
- %%{init: { 'logLevel': 1, 'theme': 'dark'} }%% +
+

Base with overriding themeVariable

+
+ %%{init: { 'theme': 'base', 'themeVariables':{ 'primaryColor': '#ff0000'}}}%% - graph TD - A[Dark] -->|Get money| B(Go shopping) - B --> C{Let me think} - B --> G[/Another/] - C ==>|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] - subgraph section - C - D - E - F - G - end + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
-
- %%{init: { 'logLevel': 1} }%% +
+

Nothing set, should be Default

+
+ %%{init: { 'logLevel': 1} }%% - graph TD - A[None set] -->|Get money| B(Go shopping) - B --> C{Let me think} - B --> G[/Another/] - C ==>|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] - subgraph section - C - D - E - F - G - end + graph TD + A(Start) --> B[/Another/] + A[/Another/] --> C[End] + subgraph section + B + C + end +
@@ -126,7 +128,7 @@

info below

// arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 0, - flowchart: { useMaxWidth: true }, + // flowchart: { useMaxWidth: true }, graph: { curve: 'cardinal', "htmlLabels": false }, // gantt: { axisFormat: '%m/%d/%Y' }, sequence: { actorMargin: 50, showSequenceNumbers: true }, diff --git a/dist/index.html b/dist/index.html index f33151662f..78b3ed8cbe 100644 --- a/dist/index.html +++ b/dist/index.html @@ -393,17 +393,19 @@
graph TB TITLE["Link Click Events
(click the nodes below)"] - A[link test] - B[anchor test] - C[mailto test] - D[other protocol test] - E[script test] - TITLE --> A & B & C & D & E - click A "https://mermaid-js.github.io/mermaid/#/" "link test" - click B "#link-clicked" "anchor test" - click C "mailto:user@user.user" "mailto test" - click D "notes://do-your-thing/id" "other protocol test" - click E "javascript:alert('test')" "script test" + A["link test (open in same tab)"] + B["link test (open in new tab)"] + C[anchor test] + D[mailto test] + E[other protocol test] + F[script test] + TITLE --> A & B & C & D & E & F + click A "https://mermaid-js.github.io/mermaid/#/" "link test (open in same tab)" + click B "https://mermaid-js.github.io/mermaid/#/" "link test (open in new tab)" _blank + click C "#link-clicked" + click D "mailto:user@user.user" "mailto test" + click E "notes://do-your-thing/id" "other protocol test" + click F "javascript:alert('test')" "script test"

diff --git a/dist/mermaid.core.js b/dist/mermaid.core.js index 8b7c715c92..24c0113513 100644 --- a/dist/mermaid.core.js +++ b/dist/mermaid.core.js @@ -656,7 +656,7 @@ module.exports = function(module) { /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"khroma\":\"^1.1.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"stylis\":\"^3.5.2\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); +module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"babel-eslint\":\"^10.1.0\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"khroma\":\"^1.1.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"stylis\":\"^3.5.2\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); /***/ }), @@ -664,2762 +664,2269 @@ module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"descr /*!***********************!*\ !*** ./src/config.js ***! \***********************/ -/*! exports provided: defaultConfig, setSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, reset, default */ +/*! exports provided: defaultConfig, setSiteConfig, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultConfig", function() { return defaultConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSiteConfig", function() { return setSiteConfig; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateSiteConfig", function() { return updateSiteConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSiteConfig", function() { return getSiteConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConfig", function() { return setConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitize", function() { return sanitize; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addDirective", function() { return addDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reset", function() { return reset; }); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); +/* harmony import */ var _defaultConfig__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultConfig */ "./src/defaultConfig.js"); +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - // import { unflatten } from 'flat'; -// import flatten from 'flat'; -// import themeVariables from './theme-default'; -// import themeForestVariables from './theme-forest'; -// import themeNeutralVariables from './theme-neutral'; +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -var handleThemeVariables = function handleThemeVariables(value) { - return _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value] ? _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value].getThemeVariables() : _themes__WEBPACK_IMPORTED_MODULE_2__["default"].default.getThemeVariables(); + + + + // debugger; + +var defaultConfig = Object.freeze(_defaultConfig__WEBPACK_IMPORTED_MODULE_3__["default"]); +var siteConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); +var directives = []; +var currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); + +var updateCurrentConfig = function updateCurrentConfig(conf) { + currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig); // Apply directives + + var themeVariables; + directives.forEach(function (d) { + currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, d); + + if (d.themeVariables) { + themeVariables = d.themeVariables; + } + }); + var variables = _themes__WEBPACK_IMPORTED_MODULE_2__["default"][currentConfig.theme].getThemeVariables(themeVariables); + currentConfig.themeVariables = variables; +}; +/** + *## setSiteConfig + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array| + ***Notes:** + *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset + *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig + *to the defaultConfig + *Note: currentConfig is set in this function + **Default value: At default, will mirror Global Config** + * @param conf - the base currentConfig to use as siteConfig + * @returns {*} - the siteConfig + */ + + +var setSiteConfig = function setSiteConfig(conf) { + siteConfig = _objectSpread({}, defaultConfig, {}, conf); + return siteConfig; }; +var updateSiteConfig = function updateSiteConfig(conf) { + console.log('setSiteConfig'); // Object.keys(conf).forEach(key => { + // const manipulator = manipulators[key]; + // conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; + // }); -var manipulators = { - themeVariables: handleThemeVariables + siteConfig = _objectSpread({}, siteConfig, {}, conf); // assignWithDesetpth(currentConfig, conf, { clobber: true }); + // // Set theme variables if user has set the theme option + // assignWithDepth(siteConfig, conf); + + return siteConfig; }; /** - * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** - * - * ## **What follows are config instructions for older versions** - * These are the default options which can be overridden with the initialization call like so: - * **Example 1:** - *
- * mermaid.initialize({
- *   flowchart:{
- *     htmlLabels: false
- *   }
- * });
- * 
- * - * **Example 2:** - *
- * <script>
- *   var config = {
- *     startOnLoad:true,
- *     flowchart:{
- *       useMaxWidth:true,
- *       htmlLabels:true,
- *       curve:'cardinal',
- *     },
+ *## getSiteConfig
+ *| Function | Description         | Type    |  Values             |
+ *| --------- | ------------------- | ------- |  ------------------ |
+ *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values  in siteConfig|
+ ***Notes**:
+ *Returns **any** values in siteConfig.
+ * @returns {*}
+ */
+
+var getSiteConfig = function getSiteConfig() {
+  return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig);
+};
+/**
+ *## setConfig
+ *| Function  | Description         | Type    | Values             |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|
+ ***Notes**:
+ *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any
+ *values found in conf with key found in siteConfig.secure will be replaced with the corresponding
+ *siteConfig value.
+ * @param conf - the potential currentConfig
+ * @returns {*} - the currentConfig merged with the sanitized conf
+ */
+
+var setConfig = function setConfig(conf) {
+  // sanitize(conf);
+  // Object.keys(conf).forEach(key => {
+  //   const manipulator = manipulators[key];
+  //   conf[key] = manipulator ? manipulator(conf[key]) : conf[key];
+  // });
+  // assignWithDepth(currentConfig, conf);
+  return getConfig();
+};
+/**
+ *   ## getConfig
+ *| Function  | Description         | Type    | Return Values            |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|
+ ***Notes**:
+ *Returns **any** the currentConfig
+ * @returns {*} - the currentConfig
+ */
+
+var getConfig = function getConfig() {
+  return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, currentConfig);
+};
+/**
+ *## sanitize
+ *| Function | Description         | Type    | Values             |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| sanitize  |Sets the siteConfig to desired values. | Put Request |None|
+ *Ensures options parameter does not attempt to override siteConfig secure keys
+ *Note: modifies options in-place
+ * @param options - the potential setConfig parameter
+ */
+
+var sanitize = function sanitize(options) {
+  Object.keys(siteConfig.secure).forEach(function (key) {
+    if (typeof options[siteConfig.secure[key]] !== 'undefined') {
+      // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script
+      // can exploit the logger's attempt to stringify the value and execute arbitrary code
+      _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace("Denied attempt to modify a secure key ".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);
+      delete options[siteConfig.secure[key]];
+    }
+  });
+};
+var addDirective = function addDirective(directive) {
+  directives.push(directive);
+  updateCurrentConfig();
+};
+/**
+ *## reset
+ *| Function | Description         | Type    | Required | Values             |
+ *| --------- | ------------------- | ------- | -------- | ------------------ |
+ *| reset|Resets currentConfig to conf| Put Request | Required | None|
  *
- *     securityLevel:'loose',
- *   };
- *   mermaid.initialize(config);
- * </script>
- * 
- * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array| * - * @name Configuration + **Notes : + (default: current siteConfig ) (optional, default `getSiteConfig()`) + * @param conf - the base currentConfig to reset to (default: current siteConfig ) */ -var config = { - /** theme , the CSS style sheet - * - * theme , the CSS style sheet - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| - * - ***Notes:**To disable any pre-defined mermaid theme, use "null". - *
-   *  "theme": "forest",
-   *  "themeCSS": ".node rect { fill: red; }"
-   * 
- */ - theme: 'default', - themeVariables: _themes__WEBPACK_IMPORTED_MODULE_2__["default"]['default'].getThemeVariables(), - themeCSS: undefined, - - /* **maxTextSize** - The maximum allowed size of the users text diamgram */ - maxTextSize: 50000, +var reset = function reset() { + var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig(); + // Object.keys(siteConfig).forEach(key => delete siteConfig[key]); + // Object.keys(currentConfig).forEach(key => delete currentConfig[key]); + // assignWithDepth(siteConfig, conf, { clobber: true }); + // assignWithDepth(currentConfig, conf, { clobber: true }); + // Replace current config with siteConfig + directives = []; + updateCurrentConfig(); +}; // const configApi = Object.freeze({ +// sanitize, +// setSiteConfig, +// getSiteConfig, +// setConfig, +// getConfig, +// reset, +// defaultConfig +// }); +// export default configApi; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| - * - ***notes: Default value is \\"trebuchet ms\\". - */ - fontFamily: '"trebuchet ms", verdana, arial;', +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | - * - * - ***Notes:** - *- debug: 1. - *- info: 2. - *- warn: 3. - *- error: 4. - *- fatal: 5(default). - */ - logLevel: 5, +/***/ "./src/dagre-wrapper/clusters.js": +/*!***************************************!*\ + !*** ./src/dagre-wrapper/clusters.js ***! + \***************************************/ +/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | - * - ***Notes: - *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled - *- **loose**: tags in text are allowed, click functionality is enabled - *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled - */ - securityLevel: 'strict', +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertCluster", function() { return insertCluster; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClusterTitleWidth", function() { return getClusterTitleWidth; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionCluster", function() { return positionCluster; }); +/* harmony import */ var _intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect/intersect-rect */ "./src/dagre-wrapper/intersect/intersect-rect.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "d3"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config.js"); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | - * - ***Notes:** - ***Default value: true** - */ - startOnLoad: true, + // eslint-disable-line - /** - *| Parameter | Description |Type | Required |Values| - *| --- | --- | --- | --- | --- | - *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | - * - * - *## Notes**: This matters if you are using base tag settings. - ***Default value: false**. - */ - arrowMarkerAbsolute: false, - /** - * This option controls which currentConfig keys are considered _secure_ and can only be changed via - * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to - * the `secure` keys in the current currentConfig. This prevents malicious graph directives from - * overriding a site's default security. - */ - secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], - /** - * The object containing configurations specific for flowcharts - */ - flowchart: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 8**. - */ - diagramPadding: 8, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| - * - ***Notes: Default value: true**. - */ - htmlLabels: true, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | - * - ***Notes: - *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** - ***Default value 50**. - */ - nodeSpacing: 50, +var rect = function rect(parent, node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Creating subgraph rect for ', node.id, node); // Add outer g element - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | - * - ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. - ***Default value 50**. - */ - rankSpacing: 50, + var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| - * - ***Notes: - *Default Vaue: Linear** - */ - curve: 'linear', - // Only used in new experimental rendering - // repreesents the padding between the labels and the shape - padding: 15 - }, + var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect - /** - * The object containing configurations specific for sequence diagrams - */ - sequence: { - /** - * widt of the activation rect - * **Default value 10**. - */ - activationWidth: 10, + var label = shapeSvg.insert('g').attr('class', 'cluster-label'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, + var bbox = text.getBBox(); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| - * - ***Notes:** - ***Default value 10**. - */ - diagramMarginY: 10, + if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, + var padding = 0 * node.padding; + var halfPadding = padding / 2; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 65**.. - */ - height: 65, + label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - boxMargin: 10, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| - * - ***Notes:** - * - ***Default value 5**. - */ - boxTextMargin: 5, + return shapeSvg; +}; +/** + * Non visiable cluster where the note is group with its + */ - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - noteMargin: 10, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, +var noteGroup = function noteGroup(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | - * - ***Notes:**center **default** - */ - messageAlign: 'center', + var rect = shapeSvg.insert('rect', ':first-child'); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | - * - ***Notes:** - * - ***Default value true**. - */ - mirrorActors: true, + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | True, False | - * - ***Notes:** - *when this flag is set to true, the height and width is set to 100% and is then scaling with the - *available space. If set to false, the absolute space required is used. - ***Default value: True**. - */ - useMaxWidth: true, + return shapeSvg; +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | - * - ***Notes:** - * - *This will display arrows that start and begin at the same node as right angles, rather than a curve - ***Default value false**. - */ - rightAngles: false, +var roundedWithTitle = function roundedWithTitle(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | - * - ***Notes:** - ***Default value false**. - */ - showSequenceNumbers: false, + var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - actorFontSize: 14, + var label = shapeSvg.insert('g').attr('class', 'cluster-label'); + var innerRect = shapeSvg.append('rect'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | - * - ***Notes:** - ***Default value "Open-Sans", "sans-serif"**. - */ - actorFontFamily: '"Open-Sans", "sans-serif"', + var bbox = text.getBBox(); - /** - * This sets the font weight of the actor's description - * **Default value 400. - */ - actorFontWeight: 400, + if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - noteFontSize: 14, + bbox = text.getBBox(); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | - * - ***Notes:** - ***Default value: trebuchet ms **. - */ - noteFontFamily: '"trebuchet ms", verdana, arial', + rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); + innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label - /** - * This sets the font weight of the note's description - * **Default value 400. - */ - noteFontWeight: 400, + label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels ? 5 : 3)) + ')'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| - * - ***Notes:** - ***Default value center**. - */ - noteAlign: 'center', + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | - * - ***Notes:** - ***Default value 16**. - */ - messageFontSize: 16, + return shapeSvg; +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | - * - ***Notes:** - ***Default value:"trebuchet ms**. - */ - messageFontFamily: '"trebuchet ms", verdana, arial', +var divider = function divider(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect - /** - * This sets the font weight of the message's description - * **Default value 400. - */ - messageFontWeight: 400, + var rect = shapeSvg.insert('rect', ':first-child'); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - * This sets the auto-wrap state for the diagram - * **Default value false. - */ - wrap: false, + rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - * This sets the auto-wrap padding for the diagram (sides only) - * **Default value 10. - */ - wrapPadding: 10, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - * This sets the width of the loop-box (loop, alt, opt, par) - * **Default value 50. - */ - labelBoxWidth: 50, + return shapeSvg; +}; - /** - * This sets the height of the loop-box (loop, alt, opt, par) - * **Default value 20. - */ - labelBoxHeight: 20, - messageFont: function messageFont() { - return { - fontFamily: this.messageFontFamily, - fontSize: this.messageFontSize, - fontWeight: this.messageFontWeight - }; - }, - noteFont: function noteFont() { - return { - fontFamily: this.noteFontFamily, - fontSize: this.noteFontSize, - fontWeight: this.noteFontWeight - }; - }, - actorFont: function actorFont() { - return { - fontFamily: this.actorFontFamily, - fontSize: this.actorFontSize, - fontWeight: this.actorFontWeight - }; - } - }, +var shapes = { + rect: rect, + roundedWithTitle: roundedWithTitle, + noteGroup: noteGroup, + divider: divider +}; +var clusterElems = {}; +var insertCluster = function insertCluster(elem, node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Inserting cluster'); + var shape = node.shape || 'rect'; + clusterElems[node.id] = shapes[shape](elem, node); +}; +var getClusterTitleWidth = function getClusterTitleWidth(elem, node) { + var label = Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true); + elem.node().appendChild(label); + var width = label.getBBox().width; + elem.node().removeChild(label); + return width; +}; +var clear = function clear() { + clusterElems = {}; +}; +var positionCluster = function positionCluster(node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Position cluster'); + var el = clusterElems[node.id]; + el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); +}; - /** - * The object containing configurations specific for gantt diagrams* - */ - gantt: { - /** - *### titleTopMargin - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 25**. - */ - titleTopMargin: 25, +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 20**. - */ - barHeight: 20, +/***/ "./src/dagre-wrapper/createLabel.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/createLabel.js ***! + \******************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - barGap: 4, +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "d3"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ "./src/config.js"); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - topPadding: 50, + // eslint-disable-line +// let vertexNode; +// if (getConfig().flowchart.htmlLabels) { +// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? +// const node = { +// label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => ``) +// }; +// vertexNode = addHtmlLabel(svg, node).node(); +// vertexNode.parentNode.removeChild(vertexNode); +// } else { +// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); +// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:')); +// const rows = vertexText.split(common.lineBreakRegex); +// for (let j = 0; j < rows.length; j++) { +// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); +// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); +// tspan.setAttribute('dy', '1em'); +// tspan.setAttribute('x', '1'); +// tspan.textContent = rows[j]; +// svgLabel.appendChild(tspan); +// } +// vertexNode = svgLabel; +// } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | - * - ***Notes:** - ***Default value 75**. - */ - leftPadding: 75, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 35**. - */ - gridLineStartPadding: 35, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize | Font size| Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 11**. - */ - fontSize: 11, +function applyStyle(dom, styleFn) { + if (styleFn) { + dom.attr('style', styleFn); + } +} - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | - * - ***Notes:** - * - ***Default value '"Open-Sans", "sans-serif"'**. - */ - fontFamily: '"Open-Sans", "sans-serif"', +function addHtmlLabel(node) { + // var fo = root.append('foreignObject').attr('width', '100000'); + // var div = fo.append('xhtml:div'); + // div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); + // var label = node.label; + // switch (typeof label) { + // case 'function': + // div.insert(label); + // break; + // case 'object': + // // Currently we assume this is a DOM object. + // div.insert(function() { + // return label; + // }); + // break; + // default: + // div.html(label); + // } + // applyStyle(div, node.labelStyle); + // div.style('display', 'inline-block'); + // // Fix for firefox + // div.style('white-space', 'nowrap'); + // var client = div.node().getBoundingClientRect(); + // fo.attr('width', client.width).attr('height', client.height); + var fo = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject')); + var div = fo.append('xhtml:div'); + var label = node.label; + var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel'; + div.html('' + label + ''); + applyStyle(div, node.labelStyle); + div.style('display', 'inline-block'); // Fix for firefox - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - numberSectionStyles: 4, + div.style('white-space', 'nowrap'); + div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); + return fo.node(); +} - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | - * - ***Notes:** - * - * This might need adjustment to match your locale and preferences - ***Default value '%Y-%m-%d'**. - */ - axisFormat: '%Y-%m-%d' - }, +var createLabel = function createLabel(_vertexText, style, isTitle, isNode) { + var vertexText = _vertexText || ''; - /** - * The object containing configurations specific for sequence diagrams - */ - journey: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, + if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().flowchart.htmlLabels) { + // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? + vertexText = vertexText.replace(/\\n|\n/g, '
'); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('vertexText' + vertexText); + var node = { + isNode: isNode, + label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) { + return ""); + }) + }; + var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 10**.. - */ - diagramMarginY: 10, + return vertexNode; + } else { + var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); + svgLabel.setAttribute('style', style.replace('color:', 'fill:')); + var rows = []; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, + if (typeof vertexText === 'string') { + rows = vertexText.split(/\\n|\n|/gi); + } else if (Array.isArray(vertexText)) { + rows = vertexText; + } else { + rows = []; + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, + for (var j = 0; j < rows.length; j++) { + var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); + tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); + tspan.setAttribute('dy', '1em'); + tspan.setAttribute('x', '0'); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 65**. - */ - height: 65, + if (isTitle) { + tspan.setAttribute('class', 'title-row'); + } else { + tspan.setAttribute('class', 'row'); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - boxMargin: 10, + tspan.textContent = rows[j].trim(); + svgLabel.appendChild(tspan); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - */ - boxTextMargin: 5, + return svgLabel; + } +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - noteMargin: 10, +/* harmony default export */ __webpack_exports__["default"] = (createLabel); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | - * - ***Notes:**default:center** - */ - messageAlign: 'center', +/***/ "./src/dagre-wrapper/edges.js": +/*!************************************!*\ + !*** ./src/dagre-wrapper/edges.js ***! + \************************************/ +/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdgeLabel", function() { return insertEdgeLabel; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionEdgeLabel", function() { return positionEdgeLabel; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function() { return intersection; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdge", function() { return insertEdge; }); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "d3"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js"); + // eslint-disable-line - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See notes | Boolean | 4 | True, False | - * - ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the - *available space if not the absolute space required is used. - * - ***Default value true**. - */ - useMaxWidth: true, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | - * - ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves - ***Default value false**. - */ - rightAngles: false - }, - class: { - arrowMarkerAbsolute: false - }, - git: { - arrowMarkerAbsolute: false - }, - state: { - dividerMargin: 10, - sizeUnit: 5, - padding: 8, - textHeight: 10, - titleShift: -15, - noteMargin: 10, - forkWidth: 70, - forkHeight: 7, - // Used - miniPadding: 2, - // Font size factor, this is used to guess the width of the edges labels before rendering by dagre - // layout. This might need updating if/when switching font - fontSizeFactor: 5.02, - fontSize: 24, - labelHeight: 16, - edgeLengthFactor: '20', - compositTitleSize: 35, - radius: 5 - }, - - /** - * The object containing configurations specific for entity relationship diagrams - */ - er: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 20**. - */ - diagramPadding: 20, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | - * - ***Notes:** - *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. - * T = top, B = bottom, L = left, and R = right. - ***Default value: TB **. - */ - layoutDirection: 'TB', - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 100**. - */ - minEntityWidth: 100, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 75 ** - */ - minEntityHeight: 75, + // import { calcLabelPosition } from '../utils'; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | - * - ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. - ***Default value: 15 ** - */ - entityPadding: 15, +var edgeLabels = {}; +var clear = function clear() { + edgeLabels = {}; +}; +var insertEdgeLabel = function insertEdgeLabel(elem, edge) { + // Create the actual text element + var labelElement = Object(_createLabel__WEBPACK_IMPORTED_MODULE_1__["default"])(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | - ***Default value: gray ** - */ - stroke: 'gray', + var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fill | Fill color of entity boxes | String | 4 | Any recognized color | - * - ***Notes:** - ***Default value:'honeydew'** - */ - fill: 'honeydew', + var label = edgeLabel.insert('g').attr('class', 'label'); + label.node().appendChild(labelElement); // Center the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize| Font Size in pixels| Integer | | Any Positive Value | - * - ***Notes:**Font size (expressed as an integer representing a number of pixels) - ***Default value: 12 ** - */ - fontSize: 12, + var bbox = labelElement.getBBox(); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | true, false | - * - ***Notes:** - *When this flag is set to true, the diagram width is locked to 100% and - *scaled based on available space. If set to false, the diagram reserves its - *absolute width. - ***Default value: true**. - */ - useMaxWidth: true + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var div = labelElement.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(labelElement); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); } -}; // debugger; -config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -var defaultConfig = Object.freeze(config); -var siteConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); -var currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); -/** - *## setSiteConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array| - ***Notes:** - *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset - *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig - *to the defaultConfig - *Note: currentConfig is set in this function - **Default value: At default, will mirror Global Config** - * @param conf - the base currentConfig to use as siteConfig - * @returns {*} - the siteConfig - */ + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning -var setSiteConfig = function setSiteConfig(conf) { - Object.keys(conf).forEach(function (key) { - var manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, { - clobber: true - }); // Set theme variables if user has set the theme option + edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf); - return getSiteConfig(); + edge.width = bbox.width; + edge.height = bbox.height; }; -/** - *## getSiteConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig| - ***Notes**: - *Returns **any** values in siteConfig. - * @returns {*} - */ +var positionEdgeLabel = function positionEdgeLabel(edge, points) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Moving label', edge.id, edge.label, edgeLabels[edge.id]); -var getSiteConfig = function getSiteConfig() { - return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig); -}; -/** - *## setConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array| - ***Notes**: - *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any - *values found in conf with key found in siteConfig.secure will be replaced with the corresponding - *siteConfig value. - * @param conf - the potential currentConfig - * @returns {*} - the currentConfig merged with the sanitized conf - */ + if (edge.label) { + var el = edgeLabels[edge.id]; + var x = edge.x; + var y = edge.y; -var setConfig = function setConfig(conf) { - sanitize(conf); - Object.keys(conf).forEach(function (key) { - var manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf); - return getConfig(); -}; -/** - * ## getConfig - *| Function | Description | Type | Return Values | - *| --------- | ------------------- | ------- | ------------------ | - *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig| - ***Notes**: - *Returns **any** the currentConfig - * @returns {*} - the currentConfig - */ + if (points) { + // debugger; + var pos = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].calcLabelPosition(points); + x = pos.x; + y = pos.y; + } -var getConfig = function getConfig() { - return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, currentConfig); -}; -/** - *## sanitize - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| sanitize |Sets the siteConfig to desired values. | Put Request |None| - *Ensures options parameter does not attempt to override siteConfig secure keys - *Note: modifies options in-place - * @param options - the potential setConfig parameter - */ + el.attr('transform', 'translate(' + x + ', ' + y + ')'); + } +}; // const getRelationType = function(type) { +// switch (type) { +// case stateDb.relationType.AGGREGATION: +// return 'aggregation'; +// case stateDb.relationType.EXTENSION: +// return 'extension'; +// case stateDb.relationType.COMPOSITION: +// return 'composition'; +// case stateDb.relationType.DEPENDENCY: +// return 'dependency'; +// } +// }; -var sanitize = function sanitize(options) { - Object.keys(siteConfig.secure).forEach(function (key) { - if (typeof options[siteConfig.secure[key]] !== 'undefined') { - // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script - // can exploit the logger's attempt to stringify the value and execute arbitrary code - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn("Denied attempt to modify a secure key ".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]); - delete options[siteConfig.secure[key]]; - } - }); -}; -/** - *## reset - *| Function | Description | Type | Required | Values | - *| --------- | ------------------- | ------- | -------- | ------------------ | - *| reset|Resets currentConfig to conf| Put Request | Required | None| - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array| - * - **Notes : - (default: current siteConfig ) (optional, default `getSiteConfig()`) - * @param conf - the base currentConfig to reset to (default: current siteConfig ) - */ +var outsideNode = function outsideNode(node, point) { + // logger.warn('Checking bounds ', node, point); + var x = node.x; + var y = node.y; + var dx = Math.abs(point.x - x); + var dy = Math.abs(point.y - y); + var w = node.width / 2; + var h = node.height / 2; -var reset = function reset() { - var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig(); - Object.keys(siteConfig).forEach(function (key) { - return delete siteConfig[key]; - }); - Object.keys(currentConfig).forEach(function (key) { - return delete currentConfig[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf, { - clobber: true - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, { - clobber: true - }); + if (dx >= w || dy >= h) { + return true; + } + + return false; }; -var configApi = Object.freeze({ - sanitize: sanitize, - setSiteConfig: setSiteConfig, - getSiteConfig: getSiteConfig, - setConfig: setConfig, - getConfig: getConfig, - reset: reset, - defaultConfig: defaultConfig -}); -/* harmony default export */ __webpack_exports__["default"] = (configApi); -/***/ }), +var intersection = function intersection(node, outsidePoint, insidePoint) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node); + var x = node.x; + var y = node.y; + var dx = Math.abs(x - insidePoint.x); + var w = node.width / 2; + var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx; + var h = node.height / 2; + var edges = { + x1: x - w, + x2: x + w, + y1: y - h, + y2: y + h + }; -/***/ "./src/dagre-wrapper/clusters.js": -/*!***************************************!*\ - !*** ./src/dagre-wrapper/clusters.js ***! - \***************************************/ -/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('calc equals on edge'); + return outsidePoint; + } -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertCluster", function() { return insertCluster; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClusterTitleWidth", function() { return getClusterTitleWidth; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionCluster", function() { return positionCluster; }); -/* harmony import */ var _intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect/intersect-rect */ "./src/dagre-wrapper/intersect/intersect-rect.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "d3"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config.js"); + var Q = Math.abs(outsidePoint.y - insidePoint.y); + var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn(); - // eslint-disable-line + if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { + // eslint-disable-line + // Intersection is top or bottom of rect. + // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; + var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; + r = R * q / Q; + var res = { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r, + y: outsidePoint.y + q + }; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("topp/bott calc, Q ".concat(Q, ", q ").concat(q, ", R ").concat(R, ", r ").concat(r), res); + return res; + } else { + // Intersection onn sides of rect + // q = (Q * r) / R; + // q = 2; + // r = (R * q) / Q; + if (insidePoint.x < outsidePoint.x) { + r = outsidePoint.x - w - x; + } else { + // r = outsidePoint.x - w - x; + r = x - w - outsidePoint.x; + } + var _q = _q = Q * r / R; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("sides calc, Q ".concat(Q, ", q ").concat(_q, ", R ").concat(R, ", r ").concat(r), { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, + y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q + }); + return { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, + y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q + }; + } +}; //(edgePaths, e, edge, clusterDb, diagramtype, graph) +var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) { + var points = edge.points; + var pointsHasChanged = false; + var tail = graph.node(e.v); + var head = graph.node(e.w); + if (head.intersect && tail.intersect) { + points = points.slice(1, edge.points.length - 1); + points.unshift(tail.intersect(points[0])); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1])); + points.push(head.intersect(points[points.length - 1])); + } -var rect = function rect(parent, node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Creating subgraph rect for ', node.id, node); // Add outer g element + if (edge.toCluster) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('to cluster', clusterDb[edge.toCluster]); + points = []; + var lastPointOutside; + var isInside = false; + edge.points.forEach(function (point) { + var node = clusterDb[edge.toCluster].node; - var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect + if (!outsideNode(node, point) && !isInside) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect - var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect + var inter = intersection(node, lastPointOutside, point); + var pointPresent = false; + points.forEach(function (p) { + pointPresent = pointPresent || p.x === inter.x && p.y === inter.y; + }); // if (!pointPresent) { - var label = shapeSvg.insert('g').attr('class', 'cluster-label'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label + if (!points.find(function (e) { + return e.x === inter.x && e.y === inter.y; + })) { + points.push(inter); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('no intersect', inter, points); + } - var bbox = text.getBBox(); + isInside = true; + } else { + if (!isInside) points.push(point); + } - if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); + lastPointOutside = point; + }); + pointsHasChanged = true; } - var padding = 0 * node.padding; - var halfPadding = padding / 2; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate + if (edge.fromCluster) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('from cluster', clusterDb[edge.fromCluster]); + var updatedPoints = []; - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label + var _lastPointOutside; - label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + var _isInside = false; - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + for (var i = points.length - 1; i >= 0; i--) { + var point = points[i]; + var node = clusterDb[edge.fromCluster].node; - return shapeSvg; -}; -/** - * Non visiable cluster where the note is group with its - */ + if (!outsideNode(node, point) && !_isInside) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('inside', edge.fromCluster, point, node); // First point inside the rect + + var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point)); + updatedPoints.unshift(insterection); // points.push(insterection); -var noteGroup = function noteGroup(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect + _isInside = true; + } else { + // at the outside + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Outside point', point); + if (!_isInside) updatedPoints.unshift(point); + } - var rect = shapeSvg.insert('rect', ':first-child'); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate + _lastPointOutside = point; + } - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + points = updatedPoints; + pointsHasChanged = true; + } // The data for our line - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; - return shapeSvg; -}; + var lineData = points.filter(function (p) { + return !Number.isNaN(p.y); + }); // This is the accessor function we talked about above -var roundedWithTitle = function roundedWithTitle(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect + var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_2__["line"])().x(function (d) { + return d.x; + }).y(function (d) { + return d.y; + }).curve(d3__WEBPACK_IMPORTED_MODULE_2__["curveBasis"]); // Contruct stroke classes based on properties - var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect + var strokeClasses; - var label = shapeSvg.insert('g').attr('class', 'cluster-label'); - var innerRect = shapeSvg.append('rect'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label + switch (edge.thickness) { + case 'normal': + strokeClasses = 'edge-thickness-normal'; + break; - var bbox = text.getBBox(); + case 'thick': + strokeClasses = 'edge-thickness-thick'; + break; - if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); + default: + strokeClasses = ''; } - bbox = text.getBBox(); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate - - rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); - innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label - - label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels ? 5 : 3)) + ')'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + switch (edge.pattern) { + case 'solid': + strokeClasses += ' edge-pattern-solid'; + break; - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + case 'dotted': + strokeClasses += ' edge-pattern-dotted'; + break; - return shapeSvg; -}; + case 'dashed': + strokeClasses += ' edge-pattern-dashed'; + break; + } -var divider = function divider(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect + var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate + // edge.points.forEach(point => { + // elem + // .append('circle') + // .style('stroke', 'red') + // .style('fill', 'red') + // .attr('r', 1) + // .attr('cx', point.x) + // .attr('cy', point.y); + // }); - var rect = shapeSvg.insert('rect', ':first-child'); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate + var url = ''; - rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().state.arrowMarkerAbsolute) { + url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search; + url = url.replace(/\(/g, '\\('); + url = url.replace(/\)/g, '\\)'); + } - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeStart', edge.arrowTypeStart); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeEnd', edge.arrowTypeEnd); - return shapeSvg; -}; + switch (edge.arrowTypeStart) { + case 'arrow_cross': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')'); + break; -var shapes = { - rect: rect, - roundedWithTitle: roundedWithTitle, - noteGroup: noteGroup, - divider: divider -}; -var clusterElems = {}; -var insertCluster = function insertCluster(elem, node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Inserting cluster'); - var shape = node.shape || 'rect'; - clusterElems[node.id] = shapes[shape](elem, node); -}; -var getClusterTitleWidth = function getClusterTitleWidth(elem, node) { - var label = Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true); - elem.node().appendChild(label); - var width = label.getBBox().width; - elem.node().removeChild(label); - return width; -}; -var clear = function clear() { - clusterElems = {}; -}; -var positionCluster = function positionCluster(node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Position cluster'); - var el = clusterElems[node.id]; - el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); -}; + case 'arrow_point': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')'); + break; -/***/ }), + case 'arrow_barb': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')'); + break; -/***/ "./src/dagre-wrapper/createLabel.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/createLabel.js ***! - \******************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + case 'arrow_circle': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')'); + break; -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "d3"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ "./src/config.js"); + case 'aggregation': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')'); + break; - // eslint-disable-line -// let vertexNode; -// if (getConfig().flowchart.htmlLabels) { -// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? -// const node = { -// label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => ``) -// }; -// vertexNode = addHtmlLabel(svg, node).node(); -// vertexNode.parentNode.removeChild(vertexNode); -// } else { -// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); -// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:')); -// const rows = vertexText.split(common.lineBreakRegex); -// for (let j = 0; j < rows.length; j++) { -// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); -// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); -// tspan.setAttribute('dy', '1em'); -// tspan.setAttribute('x', '1'); -// tspan.textContent = rows[j]; -// svgLabel.appendChild(tspan); -// } -// vertexNode = svgLabel; -// } + case 'extension': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')'); + break; + case 'composition': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')'); + break; + case 'dependency': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')'); + break; -function applyStyle(dom, styleFn) { - if (styleFn) { - dom.attr('style', styleFn); + default: } -} -function addHtmlLabel(node) { - // var fo = root.append('foreignObject').attr('width', '100000'); - // var div = fo.append('xhtml:div'); - // div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); - // var label = node.label; - // switch (typeof label) { - // case 'function': - // div.insert(label); - // break; - // case 'object': - // // Currently we assume this is a DOM object. - // div.insert(function() { - // return label; - // }); - // break; - // default: - // div.html(label); - // } - // applyStyle(div, node.labelStyle); - // div.style('display', 'inline-block'); - // // Fix for firefox - // div.style('white-space', 'nowrap'); - // var client = div.node().getBoundingClientRect(); - // fo.attr('width', client.width).attr('height', client.height); - var fo = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject')); - var div = fo.append('xhtml:div'); - var label = node.label; - var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel'; - div.html('' + label + ''); - applyStyle(div, node.labelStyle); - div.style('display', 'inline-block'); // Fix for firefox + switch (edge.arrowTypeEnd) { + case 'arrow_cross': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')'); + break; - div.style('white-space', 'nowrap'); - div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); - return fo.node(); -} + case 'arrow_point': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')'); + break; -var createLabel = function createLabel(_vertexText, style, isTitle, isNode) { - var vertexText = _vertexText || ''; + case 'arrow_barb': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')'); + break; - if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().flowchart.htmlLabels) { - // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? - vertexText = vertexText.replace(/\\n|\n/g, '
'); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('vertexText' + vertexText); - var node = { - isNode: isNode, - label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) { - return ""); - }) - }; - var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode); + case 'arrow_circle': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')'); + break; - return vertexNode; - } else { - var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); - svgLabel.setAttribute('style', style.replace('color:', 'fill:')); - var rows = []; + case 'aggregation': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')'); + break; - if (typeof vertexText === 'string') { - rows = vertexText.split(/\\n|\n|/gi); - } else if (Array.isArray(vertexText)) { - rows = vertexText; - } else { - rows = []; - } + case 'extension': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')'); + break; - for (var j = 0; j < rows.length; j++) { - var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); - tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); - tspan.setAttribute('dy', '1em'); - tspan.setAttribute('x', '0'); + case 'composition': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')'); + break; - if (isTitle) { - tspan.setAttribute('class', 'title-row'); - } else { - tspan.setAttribute('class', 'row'); - } + case 'dependency': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')'); + break; - tspan.textContent = rows[j].trim(); - svgLabel.appendChild(tspan); - } + default: + } - return svgLabel; + if (pointsHasChanged) { + return points; } }; -/* harmony default export */ __webpack_exports__["default"] = (createLabel); - /***/ }), -/***/ "./src/dagre-wrapper/edges.js": +/***/ "./src/dagre-wrapper/index.js": /*!************************************!*\ - !*** ./src/dagre-wrapper/edges.js ***! + !*** ./src/dagre-wrapper/index.js ***! \************************************/ -/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */ +/*! exports provided: render */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdgeLabel", function() { return insertEdgeLabel; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionEdgeLabel", function() { return positionEdgeLabel; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function() { return intersection; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdge", function() { return insertEdge; }); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "d3"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js"); - // eslint-disable-line - +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre */ "dagre"); +/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "graphlib"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _markers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./markers */ "./src/dagre-wrapper/markers.js"); +/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mermaid-graphlib */ "./src/dagre-wrapper/mermaid-graphlib.js"); +/* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodes */ "./src/dagre-wrapper/nodes.js"); +/* harmony import */ var _clusters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clusters */ "./src/dagre-wrapper/clusters.js"); +/* harmony import */ var _edges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edges */ "./src/dagre-wrapper/edges.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); - // import { calcLabelPosition } from '../utils'; -var edgeLabels = {}; -var clear = function clear() { - edgeLabels = {}; -}; -var insertEdgeLabel = function insertEdgeLabel(elem, edge) { - // Create the actual text element - var labelElement = Object(_createLabel__WEBPACK_IMPORTED_MODULE_1__["default"])(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout - var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text - var label = edgeLabel.insert('g').attr('class', 'label'); - label.node().appendChild(labelElement); // Center the label - var bbox = labelElement.getBBox(); - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = labelElement.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(labelElement); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning - edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height +var recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph in recursive render:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), parentCluster); + var dir = graph.graph().rankdir; + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Dir in recursive render - dir:', dir); - edge.width = bbox.width; - edge.height = bbox.height; -}; -var positionEdgeLabel = function positionEdgeLabel(edge, points) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Moving label', edge.id, edge.label, edgeLabels[edge.id]); + var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line - if (edge.label) { - var el = edgeLabels[edge.id]; - var x = edge.x; - var y = edge.y; - if (points) { - // debugger; - var pos = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].calcLabelPosition(points); - x = pos.x; - y = pos.y; - } + if (!graph.nodes()) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('No nodes found for', graph); + } else { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive render', graph.nodes()); + } - el.attr('transform', 'translate(' + x + ', ' + y + ')'); + if (graph.edges().length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive edges', graph.edge(graph.edges()[0])); } -}; // const getRelationType = function(type) { -// switch (type) { -// case stateDb.relationType.AGGREGATION: -// return 'aggregation'; -// case stateDb.relationType.EXTENSION: -// return 'extension'; -// case stateDb.relationType.COMPOSITION: -// return 'composition'; -// case stateDb.relationType.DEPENDENCY: -// return 'dependency'; -// } -// }; -var outsideNode = function outsideNode(node, point) { - // logger.warn('Checking bounds ', node, point); - var x = node.x; - var y = node.y; - var dx = Math.abs(point.x - x); - var dy = Math.abs(point.y - y); - var w = node.width / 2; - var h = node.height / 2; + var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line - if (dx >= w || dy >= h) { - return true; - } + var edgePaths = elem.insert('g').attr('class', 'edgePaths'); + var edgeLabels = elem.insert('g').attr('class', 'edgeLabels'); + var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated + // to the abstract node and is later used by dagre for the layout - return false; -}; + graph.nodes().forEach(function (v) { + var node = graph.node(v); -var intersection = function intersection(node, outsidePoint, insidePoint) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node); - var x = node.x; - var y = node.y; - var dx = Math.abs(x - insidePoint.x); - var w = node.width / 2; - var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx; - var h = node.height / 2; - var edges = { - x1: x - w, - x2: x + w, - y1: y - h, - y2: y + h - }; + if (typeof parentCluster !== 'undefined') { + var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true; - if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('calc equals on edge'); - return outsidePoint; - } + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Setting data for cluster', data); + graph.setNode(parentCluster.id, data); + graph.setParent(v, parentCluster.id, data); + } - var Q = Math.abs(outsidePoint.y - insidePoint.y); - var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn(); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v))); - if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { - // eslint-disable-line - // Intersection is top or bottom of rect. - // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; - var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; - r = R * q / Q; - var res = { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r, - y: outsidePoint.y + q - }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("topp/bott calc, Q ".concat(Q, ", q ").concat(q, ", R ").concat(R, ", r ").concat(r), res); - return res; - } else { - // Intersection onn sides of rect - // q = (Q * r) / R; - // q = 2; - // r = (R * q) / Q; - if (insidePoint.x < outsidePoint.x) { - r = outsidePoint.x - w - x; + if (node && node.clusterNode) { + // const children = graph.children(v); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster identified', v, node, graph.node(v)); + var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v)); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_3__["updateNodeBounds"])(node, newEl); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["setNodeElem"])(newEl, node); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Recursive render complete', newEl, node); } else { - // r = outsidePoint.x - w - x; - r = x - w - outsidePoint.x; + if (graph.children(v).length > 0) { + // This is a cluster but not to be rendered recusively + // Render as before + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster - the non recursive path', v, node.id, node, graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph)); + _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id] = { + id: Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph), + node: node + }; // insertCluster(clusters, graph.node(v)); + } else { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Node - the non recursive path', v, node.id, node); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["insertNode"])(nodes, graph.node(v), dir); + } } + }); // Insert labels, this will insert them into the dom so that the width can be calculated + // Also figure out which edges point to/from clusters and adjust them accordingly + // Edges from/to clusters really points to the first child in the cluster. + // TODO: pick optimal child in the cluster to us as link anchor - var _q = _q = Q * r / R; + graph.edges().forEach(function (e) { + var edge = graph.edge(e.v, e.w, e.name); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("sides calc, Q ".concat(Q, ", q ").concat(_q, ", R ").concat(R, ", r ").concat(r), { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, - y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q - }); - return { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, - y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q - }; - } -}; //(edgePaths, e, edge, clusterDb, diagramtype, graph) + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Fix', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], 'ids:', e.v, e.w, 'Translateing: ', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.v], _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.w]); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdgeLabel"])(edgeLabels, edge); + }); + graph.edges().forEach(function (e) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + }); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('### Layout ###'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(graph); + dagre__WEBPACK_IMPORTED_MODULE_0___default.a.layout(graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph after layout:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); // Move the nodes to the correct place -var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) { - var points = edge.points; - var pointsHasChanged = false; - var tail = graph.node(e.v); - var head = graph.node(e.w); + graph.nodes().forEach(function (v) { + var node = graph.node(v); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': ' + JSON.stringify(graph.node(v))); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height); - if (head.intersect && tail.intersect) { - points = points.slice(1, edge.points.length - 1); - points.unshift(tail.intersect(points[0])); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1])); - points.push(head.intersect(points[points.length - 1])); - } + if (node && node.clusterNode) { + // clusterDb[node.id].node = node; + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); + } else { + // Non cluster node + if (graph.children(v).length > 0) { + // A cluster in the non-recurive way + // positionCluster(node); + Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["insertCluster"])(clusters, node); + _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id].node = node; + } else { + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); + } + } + }); // Move the edge labels to the correct place after layout - if (edge.toCluster) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('to cluster', clusterDb[edge.toCluster]); - points = []; - var lastPointOutside; - var isInside = false; - edge.points.forEach(function (point) { - var node = clusterDb[edge.toCluster].node; + graph.edges().forEach(function (e) { + var edge = graph.edge(e); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge); + var updatedPath = Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdge"])(edgePaths, e, edge, _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], diagramtype, graph); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["positionEdgeLabel"])(edge, updatedPath); + }); + return elem; +}; - if (!outsideNode(node, point) && !isInside) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect - - var inter = intersection(node, lastPointOutside, point); - var pointPresent = false; - points.forEach(function (p) { - pointPresent = pointPresent || p.x === inter.x && p.y === inter.y; - }); // if (!pointPresent) { +var render = function render(elem, graph, markers, diagramtype, id) { + Object(_markers__WEBPACK_IMPORTED_MODULE_2__["default"])(elem, markers, diagramtype, id); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["clear"])(); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["clear"])(); + Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["clear"])(); + Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clear"])(); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph before:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["adjustClustersAndEdges"])(graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph after:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph ever after:', graph.graph()); + recursiveRender(elem, graph, diagramtype); +}; // const shapeDefinitions = {}; +// export const addShape = ({ shapeType: fun }) => { +// shapeDefinitions[shapeType] = fun; +// }; +// const arrowDefinitions = {}; +// export const addArrow = ({ arrowType: fun }) => { +// arrowDefinitions[arrowType] = fun; +// }; - if (!points.find(function (e) { - return e.x === inter.x && e.y === inter.y; - })) { - points.push(inter); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('no intersect', inter, points); - } +/***/ }), - isInside = true; - } else { - if (!isInside) points.push(point); - } +/***/ "./src/dagre-wrapper/intersect/index.js": +/*!**********************************************!*\ + !*** ./src/dagre-wrapper/intersect/index.js ***! + \**********************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - lastPointOutside = point; - }); - pointsHasChanged = true; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-node.js */ "./src/dagre-wrapper/intersect/intersect-node.js"); +/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_intersect_node_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intersect-circle.js */ "./src/dagre-wrapper/intersect/intersect-circle.js"); +/* harmony import */ var _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./intersect-ellipse.js */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); +/* harmony import */ var _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./intersect-polygon.js */ "./src/dagre-wrapper/intersect/intersect-polygon.js"); +/* harmony import */ var _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect-rect.js */ "./src/dagre-wrapper/intersect/intersect-rect.js"); +/* + * Borrowed with love from from dagrge-d3. Many thanks to cpettitt! + */ - if (edge.fromCluster) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('from cluster', clusterDb[edge.fromCluster]); - var updatedPoints = []; - var _lastPointOutside; - var _isInside = false; - for (var i = points.length - 1; i >= 0; i--) { - var point = points[i]; - var node = clusterDb[edge.fromCluster].node; - if (!outsideNode(node, point) && !_isInside) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('inside', edge.fromCluster, point, node); // First point inside the rect +/* harmony default export */ __webpack_exports__["default"] = ({ + node: _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default.a, + circle: _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"], + ellipse: _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__["default"], + polygon: _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__["default"], + rect: _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__["default"] +}); - var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point)); +/***/ }), - updatedPoints.unshift(insterection); // points.push(insterection); +/***/ "./src/dagre-wrapper/intersect/intersect-circle.js": +/*!*********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! + \*********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _isInside = true; - } else { - // at the outside - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Outside point', point); - if (!_isInside) updatedPoints.unshift(point); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-ellipse */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); - _lastPointOutside = point; - } - points = updatedPoints; - pointsHasChanged = true; - } // The data for our line +function intersectCircle(node, rx, point) { + return Object(_intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__["default"])(node, rx, rx, point); +} +/* harmony default export */ __webpack_exports__["default"] = (intersectCircle); - var lineData = points.filter(function (p) { - return !Number.isNaN(p.y); - }); // This is the accessor function we talked about above +/***/ }), - var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_2__["line"])().x(function (d) { - return d.x; - }).y(function (d) { - return d.y; - }).curve(d3__WEBPACK_IMPORTED_MODULE_2__["curveBasis"]); // Contruct stroke classes based on properties +/***/ "./src/dagre-wrapper/intersect/intersect-ellipse.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! + \**********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var strokeClasses; +"use strict"; +__webpack_require__.r(__webpack_exports__); +function intersectEllipse(node, rx, ry, point) { + // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html + var cx = node.x; + var cy = node.y; + var px = cx - point.x; + var py = cy - point.y; + var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px); + var dx = Math.abs(rx * ry * px / det); - switch (edge.thickness) { - case 'normal': - strokeClasses = 'edge-thickness-normal'; - break; + if (point.x < cx) { + dx = -dx; + } - case 'thick': - strokeClasses = 'edge-thickness-thick'; - break; + var dy = Math.abs(rx * ry * py / det); - default: - strokeClasses = ''; + if (point.y < cy) { + dy = -dy; } - switch (edge.pattern) { - case 'solid': - strokeClasses += ' edge-pattern-solid'; - break; - - case 'dotted': - strokeClasses += ' edge-pattern-dotted'; - break; + return { + x: cx + dx, + y: cy + dy + }; +} - case 'dashed': - strokeClasses += ' edge-pattern-dashed'; - break; - } +/* harmony default export */ __webpack_exports__["default"] = (intersectEllipse); - var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate - // edge.points.forEach(point => { - // elem - // .append('circle') - // .style('stroke', 'red') - // .style('fill', 'red') - // .attr('r', 1) - // .attr('cx', point.x) - // .attr('cy', point.y); - // }); +/***/ }), - var url = ''; +/***/ "./src/dagre-wrapper/intersect/intersect-line.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-line.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().state.arrowMarkerAbsolute) { - url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search; - url = url.replace(/\(/g, '\\('); - url = url.replace(/\)/g, '\\)'); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* + * Returns the point at which two lines, p and q, intersect or returns + * undefined if they do not intersect. + */ +function intersectLine(p1, p2, q1, q2) { + // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, + // p7 and p473. + var a1, a2, b1, b2, c1, c2; + var r1, r2, r3, r4; + var denom, offset, num; + var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x + + // b1 y + c1 = 0. - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeStart', edge.arrowTypeStart); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeEnd', edge.arrowTypeEnd); + a1 = p2.y - p1.y; + b1 = p1.x - p2.x; + c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4. - switch (edge.arrowTypeStart) { - case 'arrow_cross': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')'); - break; + r3 = a1 * q1.x + b1 * q1.y + c1; + r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on + // same side of line 1, the line segments do not intersect. - case 'arrow_point': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')'); - break; + if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) { + return; + } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0 - case 'arrow_barb': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')'); - break; - case 'arrow_circle': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')'); - break; + a2 = q2.y - q1.y; + b2 = q1.x - q2.x; + c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2 - case 'aggregation': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')'); - break; + r1 = a2 * p1.x + b2 * p1.y + c2; + r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie + // on same side of second line segment, the line segments do + // not intersect. - case 'extension': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')'); - break; + if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) { + return; + } // Line segments intersect: compute intersection point. - case 'composition': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')'); - break; - case 'dependency': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')'); - break; + denom = a1 * b2 - a2 * b1; - default: + if (denom === 0) { + return; } - switch (edge.arrowTypeEnd) { - case 'arrow_cross': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')'); - break; - - case 'arrow_point': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')'); - break; - - case 'arrow_barb': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')'); - break; + offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It + // is added or subtracted to the numerator, depending upon the + // sign of the numerator. - case 'arrow_circle': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')'); - break; + num = b1 * c2 - b2 * c1; + x = num < 0 ? (num - offset) / denom : (num + offset) / denom; + num = a2 * c1 - a1 * c2; + y = num < 0 ? (num - offset) / denom : (num + offset) / denom; + return { + x: x, + y: y + }; +} - case 'aggregation': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')'); - break; +function sameSign(r1, r2) { + return r1 * r2 > 0; +} - case 'extension': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')'); - break; +/* harmony default export */ __webpack_exports__["default"] = (intersectLine); - case 'composition': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')'); - break; +/***/ }), - case 'dependency': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')'); - break; +/***/ "./src/dagre-wrapper/intersect/intersect-node.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { - default: - } +module.exports = intersectNode; - if (pointsHasChanged) { - return points; - } -}; +function intersectNode(node, point) { + console.info('Intersect Node'); + return node.intersect(point); +} /***/ }), -/***/ "./src/dagre-wrapper/index.js": -/*!************************************!*\ - !*** ./src/dagre-wrapper/index.js ***! - \************************************/ -/*! exports provided: render */ +/***/ "./src/dagre-wrapper/intersect/intersect-polygon.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! + \**********************************************************/ +/*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); -/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre */ "dagre"); -/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "graphlib"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _markers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./markers */ "./src/dagre-wrapper/markers.js"); -/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mermaid-graphlib */ "./src/dagre-wrapper/mermaid-graphlib.js"); -/* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodes */ "./src/dagre-wrapper/nodes.js"); -/* harmony import */ var _clusters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clusters */ "./src/dagre-wrapper/clusters.js"); -/* harmony import */ var _edges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edges */ "./src/dagre-wrapper/edges.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _intersect_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-line */ "./src/dagre-wrapper/intersect/intersect-line.js"); +/* eslint "no-console": off */ + +/* harmony default export */ __webpack_exports__["default"] = (intersectPolygon); +/* + * Returns the point ({x, y}) at which the point argument intersects with the + * node argument assuming that it has the shape specified by polygon. + */ + +function intersectPolygon(node, polyPoints, point) { + var x1 = node.x; + var y1 = node.y; + var intersections = []; + var minX = Number.POSITIVE_INFINITY; + var minY = Number.POSITIVE_INFINITY; + if (typeof polyPoints.forEach === 'function') { + polyPoints.forEach(function (entry) { + minX = Math.min(minX, entry.x); + minY = Math.min(minY, entry.y); + }); + } else { + minX = Math.min(minX, polyPoints.x); + minY = Math.min(minY, polyPoints.y); + } + var left = x1 - node.width / 2 - minX; + var top = y1 - node.height / 2 - minY; + for (var i = 0; i < polyPoints.length; i++) { + var p1 = polyPoints[i]; + var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0]; + var intersect = Object(_intersect_line__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point, { + x: left + p1.x, + y: top + p1.y + }, { + x: left + p2.x, + y: top + p2.y + }); + if (intersect) { + intersections.push(intersect); + } + } + if (!intersections.length) { + console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); + return node; + } + if (intersections.length > 1) { + // More intersections, find the one nearest to edge end point + intersections.sort(function (p, q) { + var pdx = p.x - point.x; + var pdy = p.y - point.y; + var distp = Math.sqrt(pdx * pdx + pdy * pdy); + var qdx = q.x - point.x; + var qdy = q.y - point.y; + var distq = Math.sqrt(qdx * qdx + qdy * qdy); + return distp < distq ? -1 : distp === distq ? 0 : 1; + }); + } + return intersections[0]; +} +/***/ }), +/***/ "./src/dagre-wrapper/intersect/intersect-rect.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph in recursive render:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), parentCluster); - var dir = graph.graph().rankdir; - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Dir in recursive render - dir:', dir); +"use strict"; +__webpack_require__.r(__webpack_exports__); +var intersectRect = function intersectRect(node, point) { + var x = node.x; + var y = node.y; // Rectangle intersection algorithm from: + // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes - var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line + var dx = point.x - x; + var dy = point.y - y; + var w = node.width / 2; + var h = node.height / 2; + var sx, sy; + if (Math.abs(dy) * w > Math.abs(dx) * h) { + // Intersection is top or bottom of rect. + if (dy < 0) { + h = -h; + } - if (!graph.nodes()) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('No nodes found for', graph); + sx = dy === 0 ? 0 : h * dx / dy; + sy = h; } else { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive render', graph.nodes()); - } + // Intersection is left or right of rect. + if (dx < 0) { + w = -w; + } - if (graph.edges().length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive edges', graph.edge(graph.edges()[0])); + sx = w; + sy = dx === 0 ? 0 : w * dy / dx; } - var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line + return { + x: x + sx, + y: y + sy + }; +}; - var edgePaths = elem.insert('g').attr('class', 'edgePaths'); - var edgeLabels = elem.insert('g').attr('class', 'edgeLabels'); - var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated - // to the abstract node and is later used by dagre for the layout +/* harmony default export */ __webpack_exports__["default"] = (intersectRect); - graph.nodes().forEach(function (v) { - var node = graph.node(v); +/***/ }), - if (typeof parentCluster !== 'undefined') { - var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true; +/***/ "./src/dagre-wrapper/markers.js": +/*!**************************************!*\ + !*** ./src/dagre-wrapper/markers.js ***! + \**************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Setting data for cluster', data); - graph.setNode(parentCluster.id, data); - graph.setParent(v, parentCluster.id, data); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/** + * Setup arrow head and define the marker. The result is appended to the svg. + */ + // Only add the number of markers that the diagram needs - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v))); +var insertMarkers = function insertMarkers(elem, markerArray, type, id) { + markerArray.forEach(function (markerName) { + markers[markerName](elem, type, id); + }); +}; - if (node && node.clusterNode) { - // const children = graph.children(v); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster identified', v, node, graph.node(v)); - var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v)); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_3__["updateNodeBounds"])(node, newEl); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["setNodeElem"])(newEl, node); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Recursive render complete', newEl, node); - } else { - if (graph.children(v).length > 0) { - // This is a cluster but not to be rendered recusively - // Render as before - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster - the non recursive path', v, node.id, node, graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph)); - _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id] = { - id: Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph), - node: node - }; // insertCluster(clusters, graph.node(v)); - } else { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Node - the non recursive path', v, node.id, node); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["insertNode"])(nodes, graph.node(v), dir); - } - } - }); // Insert labels, this will insert them into the dom so that the width can be calculated - // Also figure out which edges point to/from clusters and adjust them accordingly - // Edges from/to clusters really points to the first child in the cluster. - // TODO: pick optimal child in the cluster to us as link anchor +var extension = function extension(elem, type, id) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Making markers for ', id); + elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z'); + elem.append('defs').append('marker').attr('id', type + '-extensionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead +}; - graph.edges().forEach(function (e) { - var edge = graph.edge(e.v, e.w, e.name); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster +var composition = function composition(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker composition ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker composition ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); +}; - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Fix', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], 'ids:', e.v, e.w, 'Translateing: ', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.v], _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.w]); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdgeLabel"])(edgeLabels, edge); - }); - graph.edges().forEach(function (e) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - }); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('### Layout ###'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(graph); - dagre__WEBPACK_IMPORTED_MODULE_0___default.a.layout(graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph after layout:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); // Move the nodes to the correct place +var aggregation = function aggregation(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker aggregation ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker aggregation ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); +}; - graph.nodes().forEach(function (v) { - var node = graph.node(v); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': ' + JSON.stringify(graph.node(v))); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height); +var dependency = function dependency(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker dependency ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker dependency ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); +}; - if (node && node.clusterNode) { - // clusterDb[node.id].node = node; - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); - } else { - // Non cluster node - if (graph.children(v).length > 0) { - // A cluster in the non-recurive way - // positionCluster(node); - Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["insertCluster"])(clusters, node); - _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id].node = node; - } else { - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); - } - } - }); // Move the edge labels to the correct place after layout +var point = function point(elem, type) { + elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); +}; - graph.edges().forEach(function (e) { - var edge = graph.edge(e); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge); - var updatedPath = Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdge"])(edgePaths, e, edge, _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], diagramtype, graph); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["positionEdgeLabel"])(edge, updatedPath); - }); - return elem; +var circle = function circle(elem, type) { + elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); }; -var render = function render(elem, graph, markers, diagramtype, id) { - Object(_markers__WEBPACK_IMPORTED_MODULE_2__["default"])(elem, markers, diagramtype, id); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["clear"])(); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["clear"])(); - Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["clear"])(); - Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clear"])(); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph before:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["adjustClustersAndEdges"])(graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph after:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph ever after:', graph.graph()); - recursiveRender(elem, graph, diagramtype); -}; // const shapeDefinitions = {}; -// export const addShape = ({ shapeType: fun }) => { -// shapeDefinitions[shapeType] = fun; -// }; -// const arrowDefinitions = {}; -// export const addArrow = ({ arrowType: fun }) => { -// arrowDefinitions[arrowType] = fun; -// }; +var cross = function cross(elem, type) { + elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); +}; + +var barb = function barb(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 'strokeWidth').attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'); +}; // TODO rename the class diagram markers to something shape descriptive and semanitc free + + +var markers = { + extension: extension, + composition: composition, + aggregation: aggregation, + dependency: dependency, + point: point, + circle: circle, + cross: cross, + barb: barb +}; +/* harmony default export */ __webpack_exports__["default"] = (insertMarkers); /***/ }), -/***/ "./src/dagre-wrapper/intersect/index.js": -/*!**********************************************!*\ - !*** ./src/dagre-wrapper/intersect/index.js ***! - \**********************************************/ -/*! exports provided: default */ +/***/ "./src/dagre-wrapper/mermaid-graphlib.js": +/*!***********************************************!*\ + !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! + \***********************************************/ +/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-node.js */ "./src/dagre-wrapper/intersect/intersect-node.js"); -/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_intersect_node_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intersect-circle.js */ "./src/dagre-wrapper/intersect/intersect-circle.js"); -/* harmony import */ var _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./intersect-ellipse.js */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); -/* harmony import */ var _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./intersect-polygon.js */ "./src/dagre-wrapper/intersect/intersect-polygon.js"); -/* harmony import */ var _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect-rect.js */ "./src/dagre-wrapper/intersect/intersect-rect.js"); -/* - * Borrowed with love from from dagrge-d3. Many thanks to cpettitt! +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clusterDb", function() { return clusterDb; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractDecendants", function() { return extractDecendants; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findNonClusterChild", function() { return findNonClusterChild; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustClustersAndEdges", function() { return adjustClustersAndEdges; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractor", function() { return extractor; }); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "graphlib"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); +/** + * Decorates with functions required by mermaids dagre-wrapper. */ +var clusterDb = {}; +var decendants = {}; +var parents = {}; +var clear = function clear() { + decendants = {}; + parents = {}; + clusterDb = {}; +}; + +var isDecendant = function isDecendant(id, ancenstorId) { + // if (id === ancenstorId) return true; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0); + if (decendants[ancenstorId].indexOf(id) >= 0) return true; + return false; +}; +var edgeInCluster = function edgeInCluster(edge, clusterId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Decendants of ', clusterId, ' is ', decendants[clusterId]); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent + if (edge.v === clusterId) return false; + if (edge.w === clusterId) return false; -/* harmony default export */ __webpack_exports__["default"] = ({ - node: _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default.a, - circle: _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"], - ellipse: _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__["default"], - polygon: _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__["default"], - rect: _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__["default"] -}); + if (!decendants[clusterId]) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Tilt, ', clusterId, ',not in decendants'); + return false; + } -/***/ }), + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Here '); + if (decendants[clusterId].indexOf(edge.v) >= 0) return true; + if (isDecendant(edge.v, clusterId)) return true; + if (isDecendant(edge.w, clusterId)) return true; + if (decendants[clusterId].indexOf(edge.w) >= 0) return true; + return false; +}; -/***/ "./src/dagre-wrapper/intersect/intersect-circle.js": -/*!*********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +var copy = function copy(clusterId, graph, newGraph, rootId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); + var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-ellipse */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); + if (clusterId !== rootId) { + nodes.push(clusterId); + } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes); + nodes.forEach(function (node) { + if (graph.children(node).length > 0) { + copy(node, graph, newGraph, rootId); + } else { + var data = graph.node(node); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId); -function intersectCircle(node, rx, point) { - return Object(_intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__["default"])(node, rx, rx, point); -} + newGraph.setNode(node, data); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, graph.parent(node)); -/* harmony default export */ __webpack_exports__["default"] = (intersectCircle); + if (rootId !== graph.parent(node)) { + newGraph.setParent(node, graph.parent(node)); + } -/***/ }), + if (clusterId !== rootId && node !== clusterId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, clusterId); + newGraph.setParent(node, clusterId); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId); + } -/***/ "./src/dagre-wrapper/intersect/intersect-ellipse.js": -/*!**********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! - \**********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + var edges = graph.edges(node); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying Edges', edges); + edges.forEach(function (edge) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge', edge); + var data = graph.edge(edge.v, edge.w, edge.name); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge data', data, rootId); -"use strict"; -__webpack_require__.r(__webpack_exports__); -function intersectEllipse(node, rx, ry, point) { - // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html - var cx = node.x; - var cy = node.y; - var px = cx - point.x; - var py = cy - point.y; - var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px); - var dx = Math.abs(rx * ry * px / det); + try { + // Do not copy edges in and out of the root cluster, they belong to the parent graph + if (edgeInCluster(edge, rootId)) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying as ', edge.v, edge.w, data, edge.name); + newGraph.setEdge(edge.v, edge.w, data, edge.name); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0])); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId); + } + } catch (e) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(e); + } + }); + } - if (point.x < cx) { - dx = -dx; - } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Removing node', node); + graph.removeNode(node); + }); +}; - var dy = Math.abs(rx * ry * py / det); +var extractDecendants = function extractDecendants(id, graph) { + // log.debug('Extracting ', id); + var children = graph.children(id); + var res = [].concat(children); - if (point.y < cy) { - dy = -dy; + for (var i = 0; i < children.length; i++) { + parents[children[i]] = id; + res = res.concat(extractDecendants(children[i], graph)); } - return { - x: cx + dx, - y: cy + dy - }; -} + return res; +}; +/** + * Validates the graph, checking that all parent child relation points to existing nodes and that + * edges between nodes also ia correct. When not correct the function logs the discrepancies. + * @param {graphlib graph} g + */ -/* harmony default export */ __webpack_exports__["default"] = (intersectEllipse); +var validate = function validate(graph) { + var edges = graph.edges(); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edges: ', edges); -/***/ }), + for (var i = 0; i < edges.length; i++) { + if (graph.children(edges[i].v).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].v, ' is part of and edge even though it has children'); + return false; + } -/***/ "./src/dagre-wrapper/intersect/intersect-line.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-line.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (graph.children(edges[i].w).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].w, ' is part of and edge even though it has children'); + return false; + } + } -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* - * Returns the point at which two lines, p and q, intersect or returns - * undefined if they do not intersect. + return true; +}; +/** + * Finds a child that is not a cluster. When faking a edge between a node and a cluster. + * @param {Finds a } id + * @param {*} graph */ -function intersectLine(p1, p2, q1, q2) { - // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, - // p7 and p473. - var a1, a2, b1, b2, c1, c2; - var r1, r2, r3, r4; - var denom, offset, num; - var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x + - // b1 y + c1 = 0. - a1 = p2.y - p1.y; - b1 = p1.x - p2.x; - c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4. +var findNonClusterChild = function findNonClusterChild(id, graph) { + // const node = graph.node(id); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching', id); // const children = graph.children(id).reverse(); - r3 = a1 * q1.x + b1 * q1.y + c1; - r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on - // same side of line 1, the line segments do not intersect. + var children = graph.children(id); //.reverse(); - if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) { - return; - } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0 + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching children of id ', id, children); + if (children.length < 1) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('This is a valid node', id); + return id; + } - a2 = q2.y - q1.y; - b2 = q1.x - q2.x; - c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2 + for (var i = 0; i < children.length; i++) { + var _id = findNonClusterChild(children[i], graph); - r1 = a2 * p1.x + b2 * p1.y + c2; - r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie - // on same side of second line segment, the line segments do - // not intersect. + if (_id) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Found replacement for', id, ' => ', _id); + return _id; + } + } +}; - if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) { - return; - } // Line segments intersect: compute intersection point. +var getAnchorId = function getAnchorId(id) { + if (!clusterDb[id]) { + return id; + } // If the cluster has no external connections - denom = a1 * b2 - a2 * b1; + if (!clusterDb[id].externalConnections) { + return id; + } // Return the replacement node - if (denom === 0) { - return; + + if (clusterDb[id]) { + return clusterDb[id].id; } - offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It - // is added or subtracted to the numerator, depending upon the - // sign of the numerator. + return id; +}; - num = b1 * c2 - b2 * c1; - x = num < 0 ? (num - offset) / denom : (num + offset) / denom; - num = a2 * c1 - a1 * c2; - y = num < 0 ? (num - offset) / denom : (num + offset) / denom; - return { - x: x, - y: y - }; -} +var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) { + if (!graph || depth > 10) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting out, no graph '); + return; + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting in, graph '); + } // Go through the nodes and for each cluster found, save a replacment node, this can be used when + // faking a link to a cluster -function sameSign(r1, r2) { - return r1 * r2 > 0; -} -/* harmony default export */ __webpack_exports__["default"] = (intersectLine); + graph.nodes().forEach(function (id) { + var children = graph.children(id); -/***/ }), + if (children.length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph)); + decendants[id] = extractDecendants(id, graph); + clusterDb[id] = { + id: findNonClusterChild(id, graph), + clusterData: graph.node(id) + }; + } + }); // Check incoming and outgoing edges for each cluster -/***/ "./src/dagre-wrapper/intersect/intersect-node.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + graph.nodes().forEach(function (id) { + var children = graph.children(id); + var edges = graph.edges(); -module.exports = intersectNode; + if (children.length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster identified', id, decendants); + edges.forEach(function (edge) { + // log.debug('Edge, decendants: ', edge, decendants[id]); + // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box) + if (edge.v !== id && edge.w !== id) { + // Any edge where either the one of the nodes is decending to the cluster but not the other + // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) { + var d1 = isDecendant(edge.v, id); + var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around -function intersectNode(node, point) { - console.info('Intersect Node'); - return node.intersect(point); -} + if (d1 ^ d2) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Edge: ', edge, ' leaves cluster ', id); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Decendants of ', id, ': ', decendants[id]); + clusterDb[id].externalConnections = true; + } + } + }); + } + }); + extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node + // in the cluster inorder to fake the edge -/***/ }), + graph.edges().forEach(function (e) { + var edge = graph.edge(e); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); + var v = e.v; + var w = e.w; // Check if link is either from or to a cluster -/***/ "./src/dagre-wrapper/intersect/intersect-polygon.js": -/*!**********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! - \**********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-line */ "./src/dagre-wrapper/intersect/intersect-line.js"); -/* eslint "no-console": off */ + if (clusterDb[e.v] || clusterDb[e.w]) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Fixing and trixing - removing', e.v, e.w, e.name); + v = getAnchorId(e.v); + w = getAnchorId(e.w); + graph.removeEdge(e.v, e.w, e.name); + if (v !== e.v) edge.fromCluster = e.v; + if (w !== e.w) edge.toCluster = e.w; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Replacing with', v, w, e.name); + graph.setEdge(v, w, edge, e.name); + } + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Adjusted Graph', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace(clusterDb); // Remove references to extracted cluster + // graph.edges().forEach(edge => { + // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) { + // graph.removeEdge(edge); + // } + // }); +}; +var extractor = function extractor(graph, depth) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('extractor - ', depth, graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), graph.children('D')); -/* harmony default export */ __webpack_exports__["default"] = (intersectPolygon); -/* - * Returns the point ({x, y}) at which the point argument intersects with the - * node argument assuming that it has the shape specified by polygon. - */ + if (depth > 10) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('Bailing out'); + return; + } // For clusters without incoming and/or outgoing edges, create a new cluster-node + // containing the nodes and edges in the custer in a new graph + // for (let i = 0;) -function intersectPolygon(node, polyPoints, point) { - var x1 = node.x; - var y1 = node.y; - var intersections = []; - var minX = Number.POSITIVE_INFINITY; - var minY = Number.POSITIVE_INFINITY; - if (typeof polyPoints.forEach === 'function') { - polyPoints.forEach(function (entry) { - minX = Math.min(minX, entry.x); - minY = Math.min(minY, entry.y); - }); - } else { - minX = Math.min(minX, polyPoints.x); - minY = Math.min(minY, polyPoints.y); + var nodes = graph.nodes(); + var hasChildren = false; + + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var children = graph.children(node); + hasChildren = hasChildren || children.length > 0; } - var left = x1 - node.width / 2 - minX; - var top = y1 - node.height / 2 - minY; + if (!hasChildren) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Done, no node has children', graph.nodes()); + return; + } // const clusters = Object.keys(clusterDb); + // clusters.forEach(clusterId => { - for (var i = 0; i < polyPoints.length; i++) { - var p1 = polyPoints[i]; - var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0]; - var intersect = Object(_intersect_line__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point, { - x: left + p1.x, - y: top + p1.y - }, { - x: left + p2.x, - y: top + p2.y - }); - if (intersect) { - intersections.push(intersect); - } - } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Nodes = ', nodes, depth); - if (!intersections.length) { - console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); - return node; - } + for (var _i = 0; _i < nodes.length; _i++) { + var _node = nodes[_i]; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check + // that it still is in the game - if (intersections.length > 1) { - // More intersections, find the one nearest to edge end point - intersections.sort(function (p, q) { - var pdx = p.x - point.x; - var pdy = p.y - point.y; - var distp = Math.sqrt(pdx * pdx + pdy * pdy); - var qdx = q.x - point.x; - var qdy = q.y - point.y; - var distq = Math.sqrt(qdx * qdx + qdy * qdy); - return distp < distq ? -1 : distp === distq ? 0 : 1; - }); + if (!clusterDb[_node]) { + // Skip if the node is not a cluster + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not a cluster', _node, depth); // break; + } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster without external connections, without a parent and with children', _node, depth); + var graphSettings = graph.graph(); + var clusterGraph = new graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.Graph({ + multigraph: true, + compound: true + }).setGraph({ + rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB', + // Todo: set proper spacing + nodesep: 50, + ranksep: 50, + marginx: 8, + marginy: 8 + }).setDefaultEdgeLabel(function () { + return {}; + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph before copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + copy(_node, graph, clusterGraph, _node); + graph.setNode(_node, { + clusterNode: true, + id: _node, + clusterData: clusterDb[_node].clusterData, + labelText: clusterDb[_node].labelText, + graph: clusterGraph + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(clusterGraph)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(clusterDb); + } } - return intersections[0]; -} - -/***/ }), - -/***/ "./src/dagre-wrapper/intersect/intersect-rect.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var intersectRect = function intersectRect(node, point) { - var x = node.x; - var y = node.y; // Rectangle intersection algorithm from: - // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes - - var dx = point.x - x; - var dy = point.y - y; - var w = node.width / 2; - var h = node.height / 2; - var sx, sy; + nodes = graph.nodes(); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New list of nodes', nodes); - if (Math.abs(dy) * w > Math.abs(dx) * h) { - // Intersection is top or bottom of rect. - if (dy < 0) { - h = -h; - } + for (var _i2 = 0; _i2 < nodes.length; _i2++) { + var _node2 = nodes[_i2]; + var data = graph.node(_node2); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(' Now next leveö', _node2, data); - sx = dy === 0 ? 0 : h * dx / dy; - sy = h; - } else { - // Intersection is left or right of rect. - if (dx < 0) { - w = -w; + if (data.clusterNode) { + extractor(data.graph, depth + 1); } - - sx = w; - sy = dx === 0 ? 0 : w * dy / dx; } - - return { - x: x + sx, - y: y + sy - }; }; -/* harmony default export */ __webpack_exports__["default"] = (intersectRect); - /***/ }), -/***/ "./src/dagre-wrapper/markers.js": -/*!**************************************!*\ - !*** ./src/dagre-wrapper/markers.js ***! - \**************************************/ -/*! exports provided: default */ +/***/ "./src/dagre-wrapper/nodes.js": +/*!************************************!*\ + !*** ./src/dagre-wrapper/nodes.js ***! + \************************************/ +/*! exports provided: insertNode, setNodeElem, clear, positionNode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/** - * Setup arrow head and define the marker. The result is appended to the svg. - */ - // Only add the number of markers that the diagram needs +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertNode", function() { return insertNode; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setNodeElem", function() { return setNodeElem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionNode", function() { return positionNode; }); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "d3"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); +/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var _shapes_note__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapes/note */ "./src/dagre-wrapper/shapes/note.js"); -var insertMarkers = function insertMarkers(elem, markerArray, type, id) { - markerArray.forEach(function (markerName) { - markers[markerName](elem, type, id); - }); -}; + // eslint-disable-line -var extension = function extension(elem, type, id) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Making markers for ', id); - elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z'); - elem.append('defs').append('marker').attr('id', type + '-extensionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead -}; -var composition = function composition(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker composition ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker composition ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); -}; -var aggregation = function aggregation(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker aggregation ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker aggregation ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); -}; -var dependency = function dependency(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker dependency ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker dependency ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); -}; -var point = function point(elem, type) { - elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); -}; -var circle = function circle(elem, type) { - elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); -}; -var cross = function cross(elem, type) { - elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') - .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') - .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); -}; +var question = function question(parent, node) { + var _labelHelper = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper.shapeSvg, + bbox = _labelHelper.bbox; -var barb = function barb(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'); -}; // TODO rename the class diagram markers to something shape descriptive and semanitc free + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var s = w + h; + var points = [{ + x: s / 2, + y: 0 + }, { + x: s, + y: -s / 2 + }, { + x: s / 2, + y: -s + }, { + x: 0, + y: -s / 2 + }]; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Question main (Circle)'); + var questionElem = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, s, s, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, questionElem); + node.intersect = function (point) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn('Intersect called'); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, points, point); + }; -var markers = { - extension: extension, - composition: composition, - aggregation: aggregation, - dependency: dependency, - point: point, - circle: circle, - cross: cross, - barb: barb + return shapeSvg; }; -/* harmony default export */ __webpack_exports__["default"] = (insertMarkers); -/***/ }), +var hexagon = function hexagon(parent, node) { + var _labelHelper2 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper2.shapeSvg, + bbox = _labelHelper2.bbox; -/***/ "./src/dagre-wrapper/mermaid-graphlib.js": -/*!***********************************************!*\ - !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! - \***********************************************/ -/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + var f = 4; + var h = bbox.height + node.padding; + var m = h / f; + var w = bbox.width + 2 * m + node.padding; + var points = [{ + x: m, + y: 0 + }, { + x: w - m, + y: 0 + }, { + x: w, + y: -h / 2 + }, { + x: w - m, + y: -h + }, { + x: m, + y: -h + }, { + x: 0, + y: -h / 2 + }]; + var hex = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, hex); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clusterDb", function() { return clusterDb; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractDecendants", function() { return extractDecendants; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findNonClusterChild", function() { return findNonClusterChild; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustClustersAndEdges", function() { return adjustClustersAndEdges; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractor", function() { return extractor; }); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "graphlib"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); -/** - * Decorates with functions required by mermaids dagre-wrapper. - */ - - -var clusterDb = {}; -var decendants = {}; -var parents = {}; -var clear = function clear() { - decendants = {}; - parents = {}; - clusterDb = {}; -}; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; -var isDecendant = function isDecendant(id, ancenstorId) { - // if (id === ancenstorId) return true; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0); - if (decendants[ancenstorId].indexOf(id) >= 0) return true; - return false; + return shapeSvg; }; -var edgeInCluster = function edgeInCluster(edge, clusterId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Decendants of ', clusterId, ' is ', decendants[clusterId]); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent +var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { + var _labelHelper3 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper3.shapeSvg, + bbox = _labelHelper3.bbox; - if (edge.v === clusterId) return false; - if (edge.w === clusterId) return false; + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -h / 2, + y: 0 + }, { + x: w, + y: 0 + }, { + x: w, + y: -h + }, { + x: -h / 2, + y: -h + }, { + x: 0, + y: -h / 2 + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - if (!decendants[clusterId]) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Tilt, ', clusterId, ',not in decendants'); - return false; - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Here '); - if (decendants[clusterId].indexOf(edge.v) >= 0) return true; - if (isDecendant(edge.v, clusterId)) return true; - if (isDecendant(edge.w, clusterId)) return true; - if (decendants[clusterId].indexOf(edge.w) >= 0) return true; - return false; + return shapeSvg; }; -var copy = function copy(clusterId, graph, newGraph, rootId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); - var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root - - if (clusterId !== rootId) { - nodes.push(clusterId); - } +var lean_right = function lean_right(parent, node) { + var _labelHelper4 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper4.shapeSvg, + bbox = _labelHelper4.bbox; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes); - nodes.forEach(function (node) { - if (graph.children(node).length > 0) { - copy(node, graph, newGraph, rootId); - } else { - var data = graph.node(node); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -2 * h / 6, + y: 0 + }, { + x: w - h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: -h + }, { + x: h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - newGraph.setNode(node, data); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, graph.parent(node)); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - if (rootId !== graph.parent(node)) { - newGraph.setParent(node, graph.parent(node)); - } + return shapeSvg; +}; - if (clusterId !== rootId && node !== clusterId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, clusterId); - newGraph.setParent(node, clusterId); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId); - } +var lean_left = function lean_left(parent, node) { + var _labelHelper5 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper5.shapeSvg, + bbox = _labelHelper5.bbox; - var edges = graph.edges(node); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying Edges', edges); - edges.forEach(function (edge) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge', edge); - var data = graph.edge(edge.v, edge.w, edge.name); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge data', data, rootId); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: 2 * h / 6, + y: 0 + }, { + x: w + h / 6, + y: 0 + }, { + x: w - 2 * h / 6, + y: -h + }, { + x: -h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - try { - // Do not copy edges in and out of the root cluster, they belong to the parent graph - if (edgeInCluster(edge, rootId)) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying as ', edge.v, edge.w, data, edge.name); - newGraph.setEdge(edge.v, edge.w, data, edge.name); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0])); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId); - } - } catch (e) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(e); - } - }); - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Removing node', node); - graph.removeNode(node); - }); + return shapeSvg; }; -var extractDecendants = function extractDecendants(id, graph) { - // log.debug('Extracting ', id); - var children = graph.children(id); - var res = [].concat(children); +var trapezoid = function trapezoid(parent, node) { + var _labelHelper6 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper6.shapeSvg, + bbox = _labelHelper6.bbox; - for (var i = 0; i < children.length; i++) { - parents[children[i]] = id; - res = res.concat(extractDecendants(children[i], graph)); - } + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -2 * h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: 0 + }, { + x: w - h / 6, + y: -h + }, { + x: h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - return res; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; + + return shapeSvg; }; -/** - * Validates the graph, checking that all parent child relation points to existing nodes and that - * edges between nodes also ia correct. When not correct the function logs the discrepancies. - * @param {graphlib graph} g - */ -var validate = function validate(graph) { - var edges = graph.edges(); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edges: ', edges); +var inv_trapezoid = function inv_trapezoid(parent, node) { + var _labelHelper7 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper7.shapeSvg, + bbox = _labelHelper7.bbox; - for (var i = 0; i < edges.length; i++) { - if (graph.children(edges[i].v).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].v, ' is part of and edge even though it has children'); - return false; - } + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: h / 6, + y: 0 + }, { + x: w - h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: -h + }, { + x: -2 * h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - if (graph.children(edges[i].w).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].w, ' is part of and edge even though it has children'); - return false; - } - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - return true; + return shapeSvg; }; -/** - * Finds a child that is not a cluster. When faking a edge between a node and a cluster. - * @param {Finds a } id - * @param {*} graph - */ -var findNonClusterChild = function findNonClusterChild(id, graph) { - // const node = graph.node(id); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching', id); // const children = graph.children(id).reverse(); +var rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) { + var _labelHelper8 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper8.shapeSvg, + bbox = _labelHelper8.bbox; - var children = graph.children(id); //.reverse(); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: 0, + y: 0 + }, { + x: w + h / 2, + y: 0 + }, { + x: w, + y: -h / 2 + }, { + x: w + h / 2, + y: -h + }, { + x: 0, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching children of id ', id, children); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - if (children.length < 1) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('This is a valid node', id); - return id; - } + return shapeSvg; +}; - for (var i = 0; i < children.length; i++) { - var _id = findNonClusterChild(children[i], graph); +var cylinder = function cylinder(parent, node) { + var _labelHelper9 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper9.shapeSvg, + bbox = _labelHelper9.bbox; - if (_id) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Found replacement for', id, ' => ', _id); - return _id; + var w = bbox.width + node.padding; + var rx = w / 2; + var ry = rx / (2.5 + w / 50); + var h = bbox.height + ry + node.padding; + var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h; + var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + + node.intersect = function (point) { + var pos = _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + var x = pos.x - node.x; + + if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) { + // ellipsis equation: x*x / a*a + y*y / b*b = 1 + // solve for y to get adjustion value for pos.y + var y = ry * ry * (1 - x * x / (rx * rx)); + if (y != 0) y = Math.sqrt(y); + y = ry - y; + if (point.y - node.y > 0) y = -y; + pos.y += y; } - } -}; -var getAnchorId = function getAnchorId(id) { - if (!clusterDb[id]) { - return id; - } // If the cluster has no external connections + return pos; + }; + return shapeSvg; +}; - if (!clusterDb[id].externalConnections) { - return id; - } // Return the replacement node +var rect = function rect(parent, node) { + var _labelHelper10 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, 'node ' + node.classes, true), + shapeSvg = _labelHelper10.shapeSvg, + bbox = _labelHelper10.bbox, + halfPadding = _labelHelper10.halfPadding; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Classes = ', node.classes); // add the rect - if (clusterDb[id]) { - return clusterDb[id].id; - } + var rect = shapeSvg.insert('rect', ':first-child'); + rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - return id; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; + + return shapeSvg; }; -var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) { - if (!graph || depth > 10) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting out, no graph '); - return; +var rectWithTitle = function rectWithTitle(parent, node) { + // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes); + var classes; + + if (!node.classes) { + classes = 'node default'; } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting in, graph '); - } // Go through the nodes and for each cluster found, save a replacment node, this can be used when - // faking a link to a cluster + classes = 'node ' + node.classes; + } // Add outer g element - graph.nodes().forEach(function (id) { - var children = graph.children(id); + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - if (children.length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph)); - decendants[id] = extractDecendants(id, graph); - clusterDb[id] = { - id: findNonClusterChild(id, graph), - clusterData: graph.node(id) - }; - } - }); // Check incoming and outgoing edges for each cluster + var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect'); - graph.nodes().forEach(function (id) { - var children = graph.children(id); - var edges = graph.edges(); + var innerLine = shapeSvg.insert('line'); + var label = shapeSvg.insert('g').attr('class', 'label'); + var text2 = node.labelText.flat(); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Label text', text2[0]); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(text2[0], node.labelStyle, true, true)); + var bbox; - if (children.length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster identified', id, decendants); - edges.forEach(function (edge) { - // log.debug('Edge, decendants: ', edge, decendants[id]); - // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box) - if (edge.v !== id && edge.w !== id) { - // Any edge where either the one of the nodes is decending to the cluster but not the other - // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) { - var d1 = isDecendant(edge.v, id); - var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - if (d1 ^ d2) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Edge: ', edge, ' leaves cluster ', id); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Decendants of ', id, ': ', decendants[id]); - clusterDb[id].externalConnections = true; - } - } - }); - } - }); - extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node - // in the cluster inorder to fake the edge + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Text 2', text2); + var textRows = text2.slice(1, text2.length); + var titleBox = text.getBBox(); + var descr = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(textRows.join('
'), node.labelStyle, true, true)); - graph.edges().forEach(function (e) { - var edge = graph.edge(e); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); - var v = e.v; - var w = e.w; // Check if link is either from or to a cluster + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var _div = descr.children[0]; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]); + var _dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr); - if (clusterDb[e.v] || clusterDb[e.w]) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Fixing and trixing - removing', e.v, e.w, e.name); - v = getAnchorId(e.v); - w = getAnchorId(e.w); - graph.removeEdge(e.v, e.w, e.name); - if (v !== e.v) edge.fromCluster = e.v; - if (w !== e.w) edge.toCluster = e.w; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Replacing with', v, w, e.name); - graph.setEdge(v, w, edge, e.name); - } - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Adjusted Graph', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace(clusterDb); // Remove references to extracted cluster - // graph.edges().forEach(edge => { - // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) { - // graph.removeEdge(edge); - // } - // }); -}; -var extractor = function extractor(graph, depth) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('extractor - ', depth, graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), graph.children('D')); + bbox = _div.getBoundingClientRect(); - if (depth > 10) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('Bailing out'); - return; - } // For clusters without incoming and/or outgoing edges, create a new cluster-node - // containing the nodes and edges in the custer in a new graph - // for (let i = 0;) + _dv.attr('width', bbox.width); + _dv.attr('height', bbox.height); + } // bbox = label.getBBox(); + // logger.info(descr); - var nodes = graph.nodes(); - var hasChildren = false; - for (var i = 0; i < nodes.length; i++) { - var node = nodes[i]; - var children = graph.children(node); - hasChildren = hasChildren || children.length > 0; - } + var halfPadding = node.padding / 2; + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + + bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')'); + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + + bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label + // Bounding box for title and text - if (!hasChildren) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Done, no node has children', graph.nodes()); - return; - } // const clusters = Object.keys(clusterDb); - // clusters.forEach(clusterId => { + bbox = label.node().getBBox(); // Center the label + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'); + rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Nodes = ', nodes, depth); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; - for (var _i = 0; _i < nodes.length; _i++) { - var _node = nodes[_i]; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check - // that it still is in the game + return shapeSvg; +}; - if (!clusterDb[_node]) { - // Skip if the node is not a cluster - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not a cluster', _node, depth); // break; - } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster without external connections, without a parent and with children', _node, depth); - var graphSettings = graph.graph(); - var clusterGraph = new graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.Graph({ - multigraph: true, - compound: true - }).setGraph({ - rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB', - // Todo: set proper spacing - nodesep: 50, - ranksep: 50, - marginx: 8, - marginy: 8 - }).setDefaultEdgeLabel(function () { - return {}; - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph before copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - copy(_node, graph, clusterGraph, _node); - graph.setNode(_node, { - clusterNode: true, - id: _node, - clusterData: clusterDb[_node].clusterData, - labelText: clusterDb[_node].labelText, - graph: clusterGraph - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(clusterGraph)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(clusterDb); - } - } - - nodes = graph.nodes(); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New list of nodes', nodes); - - for (var _i2 = 0; _i2 < nodes.length; _i2++) { - var _node2 = nodes[_i2]; - var data = graph.node(_node2); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(' Now next leveö', _node2, data); - - if (data.clusterNode) { - extractor(data.graph, depth + 1); - } - } -}; - -/***/ }), - -/***/ "./src/dagre-wrapper/nodes.js": -/*!************************************!*\ - !*** ./src/dagre-wrapper/nodes.js ***! - \************************************/ -/*! exports provided: insertNode, setNodeElem, clear, positionNode */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertNode", function() { return insertNode; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setNodeElem", function() { return setNodeElem; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionNode", function() { return positionNode; }); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "d3"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); -/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var _shapes_note__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapes/note */ "./src/dagre-wrapper/shapes/note.js"); - - // eslint-disable-line - - - - - - - -var question = function question(parent, node) { - var _labelHelper = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper.shapeSvg, - bbox = _labelHelper.bbox; +var stadium = function stadium(parent, node) { + var _labelHelper11 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper11.shapeSvg, + bbox = _labelHelper11.bbox; - var w = bbox.width + node.padding; var h = bbox.height + node.padding; - var s = w + h; - var points = [{ - x: s / 2, - y: 0 - }, { - x: s, - y: -s / 2 - }, { - x: s / 2, - y: -s - }, { - x: 0, - y: -s / 2 - }]; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Question main (Circle)'); - var questionElem = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, s, s, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, questionElem); + var w = bbox.width + h / 4 + node.padding; // add the rect + + var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); node.intersect = function (point) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn('Intersect called'); - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, points, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); }; return shapeSvg; }; -var hexagon = function hexagon(parent, node) { - var _labelHelper2 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper2.shapeSvg, - bbox = _labelHelper2.bbox; +var circle = function circle(parent, node) { + var _labelHelper12 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper12.shapeSvg, + bbox = _labelHelper12.bbox, + halfPadding = _labelHelper12.halfPadding; - var f = 4; - var h = bbox.height + node.padding; - var m = h / f; - var w = bbox.width + 2 * m + node.padding; - var points = [{ - x: m, - y: 0 - }, { - x: w - m, - y: 0 - }, { - x: w, - y: -h / 2 - }, { - x: w - m, - y: -h - }, { - x: m, - y: -h - }, { - x: 0, - y: -h / 2 - }]; - var hex = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, hex); + var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + + circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle main'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle intersect', node, bbox.width / 2 + halfPadding, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, bbox.width / 2 + halfPadding, point); }; return shapeSvg; }; -var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { - var _labelHelper3 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper3.shapeSvg, - bbox = _labelHelper3.bbox; +var subroutine = function subroutine(parent, node) { + var _labelHelper13 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper13.shapeSvg, + bbox = _labelHelper13.bbox; var w = bbox.width + node.padding; var h = bbox.height + node.padding; var points = [{ - x: -h / 2, + x: 0, y: 0 }, { x: w, @@ -3428,41 +2935,26 @@ var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { x: w, y: -h }, { - x: -h / 2, + x: 0, y: -h }, { x: 0, - y: -h / 2 - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - - return shapeSvg; -}; - -var lean_right = function lean_right(parent, node) { - var _labelHelper4 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper4.shapeSvg, - bbox = _labelHelper4.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: -2 * h / 6, y: 0 }, { - x: w - h / 6, + x: -8, y: 0 }, { - x: w + 2 * h / 6, + x: w + 8, + y: 0 + }, { + x: w + 8, y: -h }, { - x: h / 6, + x: -8, y: -h + }, { + x: -8, + y: 0 }]; var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); @@ -3474,695 +2966,1235 @@ var lean_right = function lean_right(parent, node) { return shapeSvg; }; -var lean_left = function lean_left(parent, node) { - var _labelHelper5 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper5.shapeSvg, - bbox = _labelHelper5.bbox; +var start = function start(parent, node) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 2 * h / 6, - y: 0 - }, { - x: w + h / 6, - y: 0 - }, { - x: w - 2 * h / 6, - y: -h - }, { - x: -h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); }; return shapeSvg; }; -var trapezoid = function trapezoid(parent, node) { - var _labelHelper6 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper6.shapeSvg, - bbox = _labelHelper6.bbox; +var forkJoin = function forkJoin(parent, node, dir) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var width = 70; + var height = 10; - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: -2 * h / 6, - y: 0 - }, { - x: w + 2 * h / 6, - y: 0 - }, { - x: w - h / 6, - y: -h - }, { - x: h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + if (dir === 'LR') { + width = 10; + height = 70; + } + + var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, shape); + node.height = node.height + node.padding / 2; + node.width = node.width + node.padding / 2; node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); }; return shapeSvg; }; -var inv_trapezoid = function inv_trapezoid(parent, node) { - var _labelHelper7 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper7.shapeSvg, - bbox = _labelHelper7.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: h / 6, - y: 0 - }, { - x: w - h / 6, - y: 0 - }, { - x: w + 2 * h / 6, - y: -h - }, { - x: -2 * h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); +var end = function end(parent, node) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var innerCircle = shapeSvg.insert('circle', ':first-child'); + var circle = shapeSvg.insert('circle', ':first-child'); + circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); + innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); }; return shapeSvg; }; -var rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) { - var _labelHelper8 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper8.shapeSvg, - bbox = _labelHelper8.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 0, - y: 0 - }, { - x: w + h / 2, - y: 0 - }, { - x: w, - y: -h / 2 - }, { - x: w + h / 2, - y: -h - }, { - x: 0, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - - return shapeSvg; -}; +var class_box = function class_box(parent, node) { + var halfPadding = node.padding / 2; + var rowPadding = 4; + var lineHeight = 8; + var classes; -var cylinder = function cylinder(parent, node) { - var _labelHelper9 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper9.shapeSvg, - bbox = _labelHelper9.bbox; + if (!node.classes) { + classes = 'node default'; + } else { + classes = 'node ' + node.classes; + } // Add outer g element - var w = bbox.width + node.padding; - var rx = w / 2; - var ry = rx / (2.5 + w / 50); - var h = bbox.height + ry + node.padding; - var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h; - var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - node.intersect = function (point) { - var pos = _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - var x = pos.x - node.x; + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) { - // ellipsis equation: x*x / a*a + y*y / b*b = 1 - // solve for y to get adjustion value for pos.y - var y = ry * ry * (1 - x * x / (rx * rx)); - if (y != 0) y = Math.sqrt(y); - y = ry - y; - if (point.y - node.y > 0) y = -y; - pos.y += y; - } + var rect = shapeSvg.insert('rect', ':first-child'); + var topLine = shapeSvg.insert('line'); + var bottomLine = shapeSvg.insert('line'); + var maxWidth = 0; + var maxHeight = rowPadding; + var labelContainer = shapeSvg.insert('g').attr('class', 'label'); + var verticalPos = 0; + var hasInterface = node.classData.annotations && node.classData.annotations[0]; // 1. Create the labels - return pos; - }; + var interfaceLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.classData.annotations[0], node.labelStyle, true, true)); + var interfaceBBox = interfaceLabel.getBBox(); - return shapeSvg; -}; + if (node.classData.annotations[0]) { + maxHeight += interfaceBBox.height + rowPadding; + maxWidth += interfaceBBox.width; + } -var rect = function rect(parent, node) { - var _labelHelper10 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, 'node ' + node.classes, true), - shapeSvg = _labelHelper10.shapeSvg, - bbox = _labelHelper10.bbox, - halfPadding = _labelHelper10.halfPadding; + var classTitleLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.labelText, node.labelStyle, true, true)); + var classTitleBBox = classTitleLabel.getBBox(); + maxHeight += classTitleBBox.height + rowPadding; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Classes = ', node.classes); // add the rect + if (classTitleBBox.width > maxWidth) { + maxWidth = classTitleBBox.width; + } - var rect = shapeSvg.insert('rect', ':first-child'); - rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); + var classAttributes = []; + node.classData.members.forEach(function (str) { + var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); + var bbox = lbl.getBBox(); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; + if (bbox.width > maxWidth) { + maxWidth = bbox.width; + } - return shapeSvg; -}; + maxHeight += bbox.height + rowPadding; + classAttributes.push(lbl); + }); + var classMethods = []; + node.classData.methods.forEach(function (str) { + var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); + var bbox = lbl.getBBox(); -var rectWithTitle = function rectWithTitle(parent, node) { - // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes); - var classes; + if (bbox.width > maxWidth) { + maxWidth = bbox.width; + } - if (!node.classes) { - classes = 'node default'; - } else { - classes = 'node ' + node.classes; - } // Add outer g element + maxHeight += bbox.height + rowPadding; + classMethods.push(lbl); + }); + maxHeight += lineHeight; // 2. Position the labels + // position the interface label + if (hasInterface) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel).attr('transform', 'translate( ' + -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 + ', ' + -1 * maxHeight / 2 + ')'); + verticalPos = interfaceBBox.height + rowPadding; + } // Positin the class title label - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect'); + var diffX = (maxWidth - classTitleBBox.width) / 2; + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(classTitleLabel).attr('transform', 'translate( ' + (-1 * maxWidth / 2 + diffX) + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + topLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); + verticalPos += lineHeight; + classAttributes.forEach(function (lbl) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + }); + bottomLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); + verticalPos += lineHeight; + classMethods.forEach(function (lbl) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + }); // - var innerLine = shapeSvg.insert('line'); - var label = shapeSvg.insert('g').attr('class', 'label'); - var text2 = node.labelText.flat(); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Label text', text2[0]); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(text2[0], node.labelStyle, true, true)); var bbox; if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text); + var div = interfaceLabel.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel); bbox = div.getBoundingClientRect(); dv.attr('width', bbox.width); dv.attr('height', bbox.height); - } + } // bbox = labelContainer.getBBox(); + // logger.info('Text 2', text2); + // const textRows = text2.slice(1, text2.length); + // let titleBox = text.getBBox(); + // const descr = label + // .node() + // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true)); + // if (getConfig().flowchart.htmlLabels) { + // const div = descr.children[0]; + // const dv = select(descr); + // bbox = div.getBoundingClientRect(); + // dv.attr('width', bbox.width); + // dv.attr('height', bbox.height); + // } + // // bbox = label.getBBox(); + // // logger.info(descr); + // select(descr).attr( + // 'transform', + // 'translate( ' + + // // (titleBox.width - bbox.width) / 2 + + // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + + // ', ' + + // (titleBox.height + halfPadding + 5) + + // ')' + // ); + // select(text).attr( + // 'transform', + // 'translate( ' + + // // (titleBox.width - bbox.width) / 2 + + // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + + // ', ' + + // 0 + + // ')' + // ); + // // Get the size of the label + // // Bounding box for title and text + // bbox = label.node().getBBox(); + // // Center the label + // label.attr( + // 'transform', + // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')' + // ); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Text 2', text2); - var textRows = text2.slice(1, text2.length); - var titleBox = text.getBBox(); - var descr = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(textRows.join('
'), node.labelStyle, true, true)); - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var _div = descr.children[0]; + rect.attr('class', 'outer title-state').attr('x', -maxWidth / 2 - halfPadding).attr('y', -(maxHeight / 2) - halfPadding).attr('width', maxWidth + node.padding).attr('height', maxHeight + node.padding); // innerLine + // .attr('class', 'divider') + // .attr('x1', -bbox.width / 2 - halfPadding) + // .attr('x2', bbox.width / 2 + halfPadding) + // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding) + // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); - var _dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - bbox = _div.getBoundingClientRect(); - - _dv.attr('width', bbox.width); - - _dv.attr('height', bbox.height); - } // bbox = label.getBBox(); - // logger.info(descr); - - - var halfPadding = node.padding / 2; - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + - bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')'); - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + - bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label - // Bounding box for title and text - - bbox = label.node().getBBox(); // Center the label - - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'); - rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; return shapeSvg; }; -var stadium = function stadium(parent, node) { - var _labelHelper11 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper11.shapeSvg, - bbox = _labelHelper11.bbox; - - var h = bbox.height + node.padding; - var w = bbox.width + h / 4 + node.padding; // add the rect - - var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; - - return shapeSvg; +var shapes = { + question: question, + rect: rect, + rectWithTitle: rectWithTitle, + circle: circle, + stadium: stadium, + hexagon: hexagon, + rect_left_inv_arrow: rect_left_inv_arrow, + lean_right: lean_right, + lean_left: lean_left, + trapezoid: trapezoid, + inv_trapezoid: inv_trapezoid, + rect_right_inv_arrow: rect_right_inv_arrow, + cylinder: cylinder, + start: start, + end: end, + note: _shapes_note__WEBPACK_IMPORTED_MODULE_6__["default"], + subroutine: subroutine, + fork: forkJoin, + join: forkJoin, + class_box: class_box }; +var nodeElems = {}; +var insertNode = function insertNode(elem, node, dir) { + nodeElems[node.id] = shapes[node.shape](elem, node, dir); +}; +var setNodeElem = function setNodeElem(elem, node) { + nodeElems[node.id] = elem; +}; +var clear = function clear() { + nodeElems = {}; +}; +var positionNode = function positionNode(node) { + var el = nodeElems[node.id]; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'); + var padding = 8; -var circle = function circle(parent, node) { - var _labelHelper12 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper12.shapeSvg, - bbox = _labelHelper12.bbox, - halfPadding = _labelHelper12.halfPadding; - - var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + if (node.clusterNode) { + el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')'); + } else { + el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); + } +}; - circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle main'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); +/***/ }), - node.intersect = function (point) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle intersect', node, bbox.width / 2 + halfPadding, point); - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, bbox.width / 2 + halfPadding, point); - }; +/***/ "./src/dagre-wrapper/shapes/note.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/note.js ***! + \******************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - return shapeSvg; -}; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); +/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); -var subroutine = function subroutine(parent, node) { - var _labelHelper13 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper13.shapeSvg, - bbox = _labelHelper13.bbox; + // eslint-disable-line - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 0, - y: 0 - }, { - x: w, - y: 0 - }, { - x: w, - y: -h - }, { - x: 0, - y: -h - }, { - x: 0, - y: 0 - }, { - x: -8, - y: 0 - }, { - x: w + 8, - y: 0 - }, { - x: w + 8, - y: -h - }, { - x: -8, - y: -h - }, { - x: -8, - y: 0 - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - return shapeSvg; -}; +var note = function note(parent, node) { + var _labelHelper = Object(_util__WEBPACK_IMPORTED_MODULE_0__["labelHelper"])(parent, node, 'node ' + node.classes, true), + shapeSvg = _labelHelper.shapeSvg, + bbox = _labelHelper.bbox, + halfPadding = _labelHelper.halfPadding; -var start = function start(parent, node) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Classes = ', node.classes); // add the rect - circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); + var rect = shapeSvg.insert('rect', ':first-child'); + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + Object(_util__WEBPACK_IMPORTED_MODULE_0__["updateNodeBounds"])(node, rect); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].rect(node, point); }; return shapeSvg; }; -var forkJoin = function forkJoin(parent, node, dir) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var width = 70; - var height = 10; - - if (dir === 'LR') { - width = 10; - height = 70; - } - - var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, shape); - node.height = node.height + node.padding / 2; - node.width = node.width + node.padding / 2; +/* harmony default export */ __webpack_exports__["default"] = (note); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; +/***/ }), - return shapeSvg; -}; +/***/ "./src/dagre-wrapper/shapes/util.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/util.js ***! + \******************************************/ +/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var end = function end(parent, node) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var innerCircle = shapeSvg.insert('circle', ':first-child'); - var circle = shapeSvg.insert('circle', ':first-child'); - circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); - innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelHelper", function() { return labelHelper; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateNodeBounds", function() { return updateNodeBounds; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertPolygonShape", function() { return insertPolygonShape; }); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "d3"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_2__); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); - }; - return shapeSvg; -}; -var class_box = function class_box(parent, node) { - var halfPadding = node.padding / 2; - var rowPadding = 4; - var lineHeight = 8; +var labelHelper = function labelHelper(parent, node, _classes, isNode) { var classes; - if (!node.classes) { + if (!_classes) { classes = 'node default'; } else { - classes = 'node ' + node.classes; + classes = _classes; } // Add outer g element - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect - var rect = shapeSvg.insert('rect', ':first-child'); - var topLine = shapeSvg.insert('line'); - var bottomLine = shapeSvg.insert('line'); - var maxWidth = 0; - var maxHeight = rowPadding; - var labelContainer = shapeSvg.insert('g').attr('class', 'label'); - var verticalPos = 0; - var hasInterface = node.classData.annotations && node.classData.annotations[0]; // 1. Create the labels + var label = shapeSvg.insert('g').attr('class', 'label'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_0__["default"])(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label - var interfaceLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.classData.annotations[0], node.labelStyle, true, true)); - var interfaceBBox = interfaceLabel.getBBox(); + var bbox = text.getBBox(); - if (node.classData.annotations[0]) { - maxHeight += interfaceBBox.height + rowPadding; - maxWidth += interfaceBBox.width; + if (Object(_config__WEBPACK_IMPORTED_MODULE_1__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); } - var classTitleLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.labelText, node.labelStyle, true, true)); - var classTitleBBox = classTitleLabel.getBBox(); - maxHeight += classTitleBBox.height + rowPadding; + var halfPadding = node.padding / 2; // Center the label - if (classTitleBBox.width > maxWidth) { - maxWidth = classTitleBBox.width; - } - - var classAttributes = []; - node.classData.members.forEach(function (str) { - var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); - var bbox = lbl.getBBox(); + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); + return { + shapeSvg: shapeSvg, + bbox: bbox, + halfPadding: halfPadding, + label: label + }; +}; +var updateNodeBounds = function updateNodeBounds(node, element) { + var bbox = element.node().getBBox(); + node.width = bbox.width; + node.height = bbox.height; +}; +function insertPolygonShape(parent, w, h, points) { + return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) { + return d.x + ',' + d.y; + }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')'); +} - if (bbox.width > maxWidth) { - maxWidth = bbox.width; - } +/***/ }), - maxHeight += bbox.height + rowPadding; - classAttributes.push(lbl); - }); - var classMethods = []; - node.classData.methods.forEach(function (str) { - var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); - var bbox = lbl.getBBox(); +/***/ "./src/defaultConfig.js": +/*!******************************!*\ + !*** ./src/defaultConfig.js ***! + \******************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (bbox.width > maxWidth) { - maxWidth = bbox.width; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); - maxHeight += bbox.height + rowPadding; - classMethods.push(lbl); - }); - maxHeight += lineHeight; // 2. Position the labels - // position the interface label +/** + * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** + * + * ## **What follows are config instructions for older versions** + * These are the default options which can be overridden with the initialization call like so: + * **Example 1:** + *
+ * mermaid.initialize({
+ *   flowchart:{
+ *     htmlLabels: false
+ *   }
+ * });
+ * 
+ * + * **Example 2:** + *
+ * <script>
+ *   var config = {
+ *     startOnLoad:true,
+ *     flowchart:{
+ *       useMaxWidth:true,
+ *       htmlLabels:true,
+ *       curve:'cardinal',
+ *     },
+ *
+ *     securityLevel:'loose',
+ *   };
+ *   mermaid.initialize(config);
+ * </script>
+ * 
+ * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. + * + * @name Configuration + */ - if (hasInterface) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel).attr('transform', 'translate( ' + -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 + ', ' + -1 * maxHeight / 2 + ')'); - verticalPos = interfaceBBox.height + rowPadding; - } // Positin the class title label +var config = { + /** theme , the CSS style sheet + * + * theme , the CSS style sheet + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| + * + ***Notes:**To disable any pre-defined mermaid theme, use "null". + *
+   *  "theme": "forest",
+   *  "themeCSS": ".node rect { fill: red; }"
+   * 
+ */ + theme: 'default', + themeVariables: _themes__WEBPACK_IMPORTED_MODULE_0__["default"]['default'].getThemeVariables(), + themeCSS: undefined, + /* **maxTextSize** - The maximum allowed size of the users text diamgram */ + maxTextSize: 50000, - var diffX = (maxWidth - classTitleBBox.width) / 2; - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(classTitleLabel).attr('transform', 'translate( ' + (-1 * maxWidth / 2 + diffX) + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - topLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); - verticalPos += lineHeight; - classAttributes.forEach(function (lbl) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - }); - bottomLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); - verticalPos += lineHeight; - classMethods.forEach(function (lbl) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - }); // + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| + * + ***notes: Default value is \\"trebuchet ms\\". + */ + fontFamily: '"trebuchet ms", verdana, arial;', - var bbox; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | + * + * + ***Notes:** + *- debug: 1. + *- info: 2. + *- warn: 3. + *- error: 4. + *- fatal: 5(default). + */ + logLevel: 5, - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = interfaceLabel.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } // bbox = labelContainer.getBBox(); - // logger.info('Text 2', text2); - // const textRows = text2.slice(1, text2.length); - // let titleBox = text.getBBox(); - // const descr = label - // .node() - // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true)); - // if (getConfig().flowchart.htmlLabels) { - // const div = descr.children[0]; - // const dv = select(descr); - // bbox = div.getBoundingClientRect(); - // dv.attr('width', bbox.width); - // dv.attr('height', bbox.height); - // } - // // bbox = label.getBBox(); - // // logger.info(descr); - // select(descr).attr( - // 'transform', - // 'translate( ' + - // // (titleBox.width - bbox.width) / 2 + - // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + - // ', ' + - // (titleBox.height + halfPadding + 5) + - // ')' - // ); - // select(text).attr( - // 'transform', - // 'translate( ' + - // // (titleBox.width - bbox.width) / 2 + - // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + - // ', ' + - // 0 + - // ')' - // ); - // // Get the size of the label - // // Bounding box for title and text - // bbox = label.node().getBBox(); - // // Center the label - // label.attr( - // 'transform', - // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')' - // ); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | + * + ***Notes: + *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled + *- **loose**: tags in text are allowed, click functionality is enabled + *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled + */ + securityLevel: 'strict', + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | + * + ***Notes:** + ***Default value: true** + */ + startOnLoad: true, - rect.attr('class', 'outer title-state').attr('x', -maxWidth / 2 - halfPadding).attr('y', -(maxHeight / 2) - halfPadding).attr('width', maxWidth + node.padding).attr('height', maxHeight + node.padding); // innerLine - // .attr('class', 'divider') - // .attr('x1', -bbox.width / 2 - halfPadding) - // .attr('x2', bbox.width / 2 + halfPadding) - // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding) - // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); + /** + *| Parameter | Description |Type | Required |Values| + *| --- | --- | --- | --- | --- | + *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | + * + * + *## Notes**: This matters if you are using base tag settings. + ***Default value: false**. + */ + arrowMarkerAbsolute: false, - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); + /** + * This option controls which currentConfig keys are considered _secure_ and can only be changed via + * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to + * the `secure` keys in the current currentConfig. This prevents malicious graph directives from + * overriding a site's default security. + */ + secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; + /** + * The object containing configurations specific for flowcharts + */ + flowchart: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 8**. + */ + diagramPadding: 8, - return shapeSvg; -}; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| + * + ***Notes: Default value: true**. + */ + htmlLabels: true, -var shapes = { - question: question, - rect: rect, - rectWithTitle: rectWithTitle, - circle: circle, - stadium: stadium, - hexagon: hexagon, - rect_left_inv_arrow: rect_left_inv_arrow, - lean_right: lean_right, - lean_left: lean_left, - trapezoid: trapezoid, - inv_trapezoid: inv_trapezoid, - rect_right_inv_arrow: rect_right_inv_arrow, - cylinder: cylinder, - start: start, - end: end, - note: _shapes_note__WEBPACK_IMPORTED_MODULE_6__["default"], - subroutine: subroutine, - fork: forkJoin, - join: forkJoin, - class_box: class_box -}; -var nodeElems = {}; -var insertNode = function insertNode(elem, node, dir) { - nodeElems[node.id] = shapes[node.shape](elem, node, dir); -}; -var setNodeElem = function setNodeElem(elem, node) { - nodeElems[node.id] = elem; -}; -var clear = function clear() { - nodeElems = {}; -}; -var positionNode = function positionNode(node) { - var el = nodeElems[node.id]; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'); - var padding = 8; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | + * + ***Notes: + *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** + ***Default value 50**. + */ + nodeSpacing: 50, - if (node.clusterNode) { - el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')'); - } else { - el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); - } -}; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | + * + ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. + ***Default value 50**. + */ + rankSpacing: 50, -/***/ }), + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| + * + ***Notes: + *Default Vaue: Linear** + */ + curve: 'linear', + // Only used in new experimental rendering + // repreesents the padding between the labels and the shape + padding: 15 + }, -/***/ "./src/dagre-wrapper/shapes/note.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/shapes/note.js ***! - \******************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * The object containing configurations specific for sequence diagrams + */ + sequence: { + /** + * widt of the activation rect + * **Default value 10**. + */ + activationWidth: 10, -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); -/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, - // eslint-disable-line + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| + * + ***Notes:** + ***Default value 10**. + */ + diagramMarginY: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 65**.. + */ + height: 65, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + boxMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| + * + ***Notes:** + * + ***Default value 5**. + */ + boxTextMargin: 5, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + noteMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | + * + ***Notes:**center **default** + */ + messageAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | + * + ***Notes:** + * + ***Default value true**. + */ + mirrorActors: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | True, False | + * + ***Notes:** + *when this flag is set to true, the height and width is set to 100% and is then scaling with the + *available space. If set to false, the absolute space required is used. + ***Default value: True**. + */ + useMaxWidth: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | + * + ***Notes:** + * + *This will display arrows that start and begin at the same node as right angles, rather than a curve + ***Default value false**. + */ + rightAngles: false, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | + * + ***Notes:** + ***Default value false**. + */ + showSequenceNumbers: false, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + actorFontSize: 14, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | + * + ***Notes:** + ***Default value "Open-Sans", "sans-serif"**. + */ + actorFontFamily: '"Open-Sans", "sans-serif"', + + /** + * This sets the font weight of the actor's description + * **Default value 400. + */ + actorFontWeight: 400, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + noteFontSize: 14, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | + * + ***Notes:** + ***Default value: trebuchet ms **. + */ + noteFontFamily: '"trebuchet ms", verdana, arial', + + /** + * This sets the font weight of the note's description + * **Default value 400. + */ + noteFontWeight: 400, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| + * + ***Notes:** + ***Default value center**. + */ + noteAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | + * + ***Notes:** + ***Default value 16**. + */ + messageFontSize: 16, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | + * + ***Notes:** + ***Default value:"trebuchet ms**. + */ + messageFontFamily: '"trebuchet ms", verdana, arial', + + /** + * This sets the font weight of the message's description + * **Default value 400. + */ + messageFontWeight: 400, + + /** + * This sets the auto-wrap state for the diagram + * **Default value false. + */ + wrap: false, + + /** + * This sets the auto-wrap padding for the diagram (sides only) + * **Default value 10. + */ + wrapPadding: 10, + + /** + * This sets the width of the loop-box (loop, alt, opt, par) + * **Default value 50. + */ + labelBoxWidth: 50, + /** + * This sets the height of the loop-box (loop, alt, opt, par) + * **Default value 20. + */ + labelBoxHeight: 20, + messageFont: function messageFont() { + return { + fontFamily: this.messageFontFamily, + fontSize: this.messageFontSize, + fontWeight: this.messageFontWeight + }; + }, + noteFont: function noteFont() { + return { + fontFamily: this.noteFontFamily, + fontSize: this.noteFontSize, + fontWeight: this.noteFontWeight + }; + }, + actorFont: function actorFont() { + return { + fontFamily: this.actorFontFamily, + fontSize: this.actorFontSize, + fontWeight: this.actorFontWeight + }; + } + }, + + /** + * The object containing configurations specific for gantt diagrams* + */ + gantt: { + /** + *### titleTopMargin + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 25**. + */ + titleTopMargin: 25, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 20**. + */ + barHeight: 20, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + barGap: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + topPadding: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | + * + ***Notes:** + ***Default value 75**. + */ + leftPadding: 75, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 35**. + */ + gridLineStartPadding: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize | Font size| Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 11**. + */ + fontSize: 11, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | + * + ***Notes:** + * + ***Default value '"Open-Sans", "sans-serif"'**. + */ + fontFamily: '"Open-Sans", "sans-serif"', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + numberSectionStyles: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | + * + ***Notes:** + * + * This might need adjustment to match your locale and preferences + ***Default value '%Y-%m-%d'**. + */ + axisFormat: '%Y-%m-%d' + }, + + /** + * The object containing configurations specific for journey diagrams + */ + journey: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 10**.. + */ + diagramMarginY: 10, -var note = function note(parent, node) { - var _labelHelper = Object(_util__WEBPACK_IMPORTED_MODULE_0__["labelHelper"])(parent, node, 'node ' + node.classes, true), - shapeSvg = _labelHelper.shapeSvg, - bbox = _labelHelper.bbox, - halfPadding = _labelHelper.halfPadding; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Classes = ', node.classes); // add the rect + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, - var rect = shapeSvg.insert('rect', ':first-child'); - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - Object(_util__WEBPACK_IMPORTED_MODULE_0__["updateNodeBounds"])(node, rect); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 65**. + */ + height: 65, - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].rect(node, point); - }; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + boxMargin: 10, - return shapeSvg; -}; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + */ + boxTextMargin: 5, -/* harmony default export */ __webpack_exports__["default"] = (note); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + noteMargin: 10, -/***/ }), + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, -/***/ "./src/dagre-wrapper/shapes/util.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/shapes/util.js ***! - \******************************************/ -/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | + * + ***Notes:**default:center** + */ + messageAlign: 'center', -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelHelper", function() { return labelHelper; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateNodeBounds", function() { return updateNodeBounds; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertPolygonShape", function() { return insertPolygonShape; }); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "d3"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_2__); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See notes | Boolean | 4 | True, False | + * + ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the + *available space if not the absolute space required is used. + * + ***Default value true**. + */ + useMaxWidth: true, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | + * + ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves + ***Default value false**. + */ + rightAngles: false + }, + class: { + arrowMarkerAbsolute: false + }, + git: { + arrowMarkerAbsolute: false + }, + state: { + dividerMargin: 10, + sizeUnit: 5, + padding: 8, + textHeight: 10, + titleShift: -15, + noteMargin: 10, + forkWidth: 70, + forkHeight: 7, + // Used + miniPadding: 2, + // Font size factor, this is used to guess the width of the edges labels before rendering by dagre + // layout. This might need updating if/when switching font + fontSizeFactor: 5.02, + fontSize: 24, + labelHeight: 16, + edgeLengthFactor: '20', + compositTitleSize: 35, + radius: 5 + }, -var labelHelper = function labelHelper(parent, node, _classes, isNode) { - var classes; + /** + * The object containing configurations specific for entity relationship diagrams + */ + er: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 20**. + */ + diagramPadding: 20, - if (!_classes) { - classes = 'node default'; - } else { - classes = _classes; - } // Add outer g element + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | + * + ***Notes:** + *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. + * T = top, B = bottom, L = left, and R = right. + ***Default value: TB **. + */ + layoutDirection: 'TB', + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 100**. + */ + minEntityWidth: 100, - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 75 ** + */ + minEntityHeight: 75, - var label = shapeSvg.insert('g').attr('class', 'label'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_0__["default"])(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | + * + ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. + ***Default value: 15 ** + */ + entityPadding: 15, - var bbox = text.getBBox(); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | + ***Default value: gray ** + */ + stroke: 'gray', - if (Object(_config__WEBPACK_IMPORTED_MODULE_1__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fill | Fill color of entity boxes | String | 4 | Any recognized color | + * + ***Notes:** + ***Default value:'honeydew'** + */ + fill: 'honeydew', - var halfPadding = node.padding / 2; // Center the label + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize| Font Size in pixels| Integer | | Any Positive Value | + * + ***Notes:**Font size (expressed as an integer representing a number of pixels) + ***Default value: 12 ** + */ + fontSize: 12, - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); - return { - shapeSvg: shapeSvg, - bbox: bbox, - halfPadding: halfPadding, - label: label - }; -}; -var updateNodeBounds = function updateNodeBounds(node, element) { - var bbox = element.node().getBBox(); - node.width = bbox.width; - node.height = bbox.height; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | true, false | + * + ***Notes:** + *When this flag is set to true, the diagram width is locked to 100% and + *scaled based on available space. If set to false, the diagram reserves its + *absolute width. + ***Default value: true**. + */ + useMaxWidth: true + } }; -function insertPolygonShape(parent, w, h, points) { - return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) { - return d.x + ',' + d.y; - }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')'); -} +config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +/* harmony default export */ __webpack_exports__["default"] = (config); /***/ }), @@ -4207,13 +4239,13 @@ __webpack_require__.r(__webpack_exports__); var MERMAID_DOM_ID_PREFIX = 'classid-'; -var config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); +var config = _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"](); var relations = []; var classes = {}; var classCounter = 0; var funs = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(this, statement, context, type); }; var splitClassNameAndType = function splitClassNameAndType(id) { @@ -4474,6 +4506,9 @@ var setupToolTips = function setupToolTips(element) { funs.push(setupToolTips); /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().class; + }, addClass: addClass, bindFunctions: bindFunctions, clear: clear, @@ -5231,132 +5266,132 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,6],$V2=[1,20],$V3=[1,23],$V4=[1,21],$V5=[1,22],$V6=[1,24],$V7=[1,25],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,32],$Vc=[7,9],$Vd=[1,41],$Ve=[1,42],$Vf=[1,43],$Vg=[1,44],$Vh=[1,45],$Vi=[1,46],$Vj=[7,9,20,26,34,37,38,39,40,41,42],$Vk=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],$Vl=[34,58,59,60],$Vm=[34,41,42,58,59,60],$Vn=[34,37,38,39,40,58,59,60],$Vo=[6,7,9,61],$Vp=[7,9,20],$Vq=[1,73]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,7],$V1=[1,6],$V2=[1,14],$V3=[1,24],$V4=[1,27],$V5=[1,25],$V6=[1,26],$V7=[1,28],$V8=[1,29],$V9=[1,31],$Va=[1,32],$Vb=[1,33],$Vc=[10,19],$Vd=[1,45],$Ve=[1,46],$Vf=[1,47],$Vg=[1,48],$Vh=[1,49],$Vi=[1,50],$Vj=[10,19,25,31,39,42,43,44,45,46,47],$Vk=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],$Vl=[10,13,17,19],$Vm=[39,63,64,65],$Vn=[39,46,47,63,64,65],$Vo=[39,42,43,44,45,63,64,65],$Vp=[10,19,25],$Vq=[1,75]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"directive":5,"CLASS_DIAGRAM":6,"NEWLINE":7,"statements":8,"EOF":9,"statement":10,"className":11,"alphaNumToken":12,"GENERICTYPE":13,"openDirective":14,"typeDirective":15,"closeDirective":16,":":17,"argDirective":18,"relationStatement":19,"LABEL":20,"classStatement":21,"methodStatement":22,"annotationStatement":23,"clickStatement":24,"CLASS":25,"STRUCT_START":26,"members":27,"STRUCT_STOP":28,"ANNOTATION_START":29,"ANNOTATION_END":30,"MEMBER":31,"SEPARATOR":32,"relation":33,"STR":34,"relationType":35,"lineType":36,"AGGREGATION":37,"EXTENSION":38,"COMPOSITION":39,"DEPENDENCY":40,"LINE":41,"DOTTED_LINE":42,"CALLBACK":43,"LINK":44,"commentToken":45,"textToken":46,"graphCodeTokens":47,"textNoTagsToken":48,"TAGSTART":49,"TAGEND":50,"==":51,"--":52,"PCT":53,"DEFAULT":54,"SPACE":55,"MINUS":56,"keywords":57,"UNICODE_TEXT":58,"NUM":59,"ALPHA":60,"open_directive":61,"type_directive":62,"arg_directive":63,"close_directive":64,"$accept":0,"$end":1}, -terminals_: {2:"error",6:"CLASS_DIAGRAM",7:"NEWLINE",9:"EOF",13:"GENERICTYPE",17:":",20:"LABEL",25:"CLASS",26:"STRUCT_START",28:"STRUCT_STOP",29:"ANNOTATION_START",30:"ANNOTATION_END",31:"MEMBER",32:"SEPARATOR",34:"STR",37:"AGGREGATION",38:"EXTENSION",39:"COMPOSITION",40:"DEPENDENCY",41:"LINE",42:"DOTTED_LINE",43:"CALLBACK",44:"LINK",47:"graphCodeTokens",49:"TAGSTART",50:"TAGEND",51:"==",52:"--",53:"PCT",54:"DEFAULT",55:"SPACE",56:"MINUS",57:"keywords",58:"UNICODE_TEXT",59:"NUM",60:"ALPHA",61:"open_directive",62:"type_directive",63:"arg_directive",64:"close_directive"}, -productions_: [0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]], +symbols_: {"error":2,"start":3,"mermaidDoc":4,"directive":5,"graphConfig":6,"openDirective":7,"typeDirective":8,"closeDirective":9,"NEWLINE":10,":":11,"argDirective":12,"open_directive":13,"type_directive":14,"arg_directive":15,"close_directive":16,"CLASS_DIAGRAM":17,"statements":18,"EOF":19,"statement":20,"className":21,"alphaNumToken":22,"GENERICTYPE":23,"relationStatement":24,"LABEL":25,"classStatement":26,"methodStatement":27,"annotationStatement":28,"clickStatement":29,"CLASS":30,"STRUCT_START":31,"members":32,"STRUCT_STOP":33,"ANNOTATION_START":34,"ANNOTATION_END":35,"MEMBER":36,"SEPARATOR":37,"relation":38,"STR":39,"relationType":40,"lineType":41,"AGGREGATION":42,"EXTENSION":43,"COMPOSITION":44,"DEPENDENCY":45,"LINE":46,"DOTTED_LINE":47,"CALLBACK":48,"LINK":49,"commentToken":50,"textToken":51,"graphCodeTokens":52,"textNoTagsToken":53,"TAGSTART":54,"TAGEND":55,"==":56,"--":57,"PCT":58,"DEFAULT":59,"SPACE":60,"MINUS":61,"keywords":62,"UNICODE_TEXT":63,"NUM":64,"ALPHA":65,"$accept":0,"$end":1}, +terminals_: {2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",30:"CLASS",31:"STRUCT_START",33:"STRUCT_STOP",34:"ANNOTATION_START",35:"ANNOTATION_END",36:"MEMBER",37:"SEPARATOR",39:"STR",42:"AGGREGATION",43:"EXTENSION",44:"COMPOSITION",45:"DEPENDENCY",46:"LINE",47:"DOTTED_LINE",48:"CALLBACK",49:"LINK",52:"graphCodeTokens",54:"TAGSTART",55:"TAGEND",56:"==",57:"--",58:"PCT",59:"DEFAULT",60:"SPACE",61:"MINUS",62:"keywords",63:"UNICODE_TEXT",64:"NUM",65:"ALPHA"}, +productions_: [0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { +case 6: + yy.parseDirective('%%{', 'open_directive'); +break; case 7: - this.$=$$[$0-1]+$$[$0]; + yy.parseDirective($$[$0], 'type_directive'); break; case 8: - this.$=$$[$0]; + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 9: + yy.parseDirective('}%%', 'close_directive', 'class'); +break; +case 14: + this.$=$$[$0-1]+$$[$0]; +break; +case 15: + this.$=$$[$0]; +break; +case 16: this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; break; -case 10: +case 17: this.$=$$[$0-1]+'~'+$$[$0]; break; -case 13: +case 18: yy.addRelation($$[$0]); break; -case 14: +case 19: $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); break; -case 20: +case 25: yy.addClass($$[$0]); break; -case 21: +case 26: /*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]); break; -case 22: +case 27: yy.addAnnotation($$[$0],$$[$0-2]); break; -case 23: +case 28: this.$ = [$$[$0]]; break; -case 24: +case 29: $$[$0].push($$[$0-1]);this.$=$$[$0]; break; -case 25: +case 30: /*console.log('Rel found',$$[$0]);*/ break; -case 26: +case 31: yy.addMember($$[$0-1],yy.cleanupLabel($$[$0])); break; -case 27: +case 32: /*console.warn('Member',$$[$0]);*/ break; -case 28: +case 33: /*console.log('sep found',$$[$0]);*/ break; -case 29: +case 34: this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; break; -case 30: +case 35: this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'} break; -case 31: +case 36: this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; break; -case 32: +case 37: this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} break; -case 33: +case 38: this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; break; -case 34: +case 39: this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; break; -case 35: +case 40: this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; break; -case 36: +case 41: this.$={type1:'none',type2:'none',lineType:$$[$0]}; break; -case 37: +case 42: this.$=yy.relationType.AGGREGATION; break; -case 38: +case 43: this.$=yy.relationType.EXTENSION; break; -case 39: +case 44: this.$=yy.relationType.COMPOSITION; break; -case 40: +case 45: this.$=yy.relationType.DEPENDENCY; break; -case 41: +case 46: this.$=yy.lineType.LINE; break; -case 42: +case 47: this.$=yy.lineType.DOTTED_LINE; break; -case 43: +case 48: this.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined); break; -case 44: +case 49: this.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]); break; -case 45: +case 50: this.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined); break; -case 46: +case 51: this.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]); break; -case 63: - yy.parseDirective('%%{', 'open_directive'); -break; -case 64: - yy.parseDirective($$[$0], 'type_directive'); -break; -case 65: - $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); -break; -case 66: - yy.parseDirective('}%%', 'close_directive', 'sequence'); -break; } }, -table: [{3:1,4:2,5:3,6:$V0,14:5,61:$V1},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:$V0,14:5,61:$V1},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},{16:30,17:[1,31],64:$Vb},o([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},o($Vc,[2,13],{20:[1,35]}),o($Vc,[2,15]),o($Vc,[2,16]),o($Vc,[2,17]),o($Vc,[2,18]),o($Vc,[2,19]),o($Vc,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi}),{11:47,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,27]),o($Vc,[2,28]),{12:48,58:$V8,59:$V9,60:$Va},{11:49,12:26,58:$V8,59:$V9,60:$Va},{11:50,12:26,58:$V8,59:$V9,60:$Va},o($Vj,[2,8],{12:26,11:51,13:[1,52],58:$V8,59:$V9,60:$Va}),o($Vk,[2,60]),o($Vk,[2,61]),o($Vk,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},o($Vc,[2,14]),{11:57,12:26,34:[1,58],58:$V8,59:$V9,60:$Va},{33:59,35:39,36:40,37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi},o($Vc,[2,26]),{36:60,41:$Vh,42:$Vi},o($Vl,[2,36],{35:61,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vn,[2,41]),o($Vn,[2,42]),o($Vc,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},o($Vj,[2,7]),o($Vj,[2,10],{12:26,11:66,58:$V8,59:$V9,60:$Va}),o($Vo,[2,11]),{16:67,64:$Vb},{64:[2,65]},{9:[2,6]},o($Vp,[2,29]),{11:68,12:26,58:$V8,59:$V9,60:$Va},{11:69,12:26,34:[1,70],58:$V8,59:$V9,60:$Va},o($Vl,[2,35],{35:71,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vl,[2,34]),{27:72,31:$Vq},{11:74,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,43],{34:[1,75]}),o($Vc,[2,45],{34:[1,76]}),o($Vj,[2,9]),{7:[1,77]},o($Vp,[2,31]),o($Vp,[2,30]),{11:78,12:26,58:$V8,59:$V9,60:$Va},o($Vl,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:$Vq},o($Vc,[2,22]),o($Vc,[2,44]),o($Vc,[2,46]),o($Vo,[2,12]),o($Vp,[2,32]),o($Vc,[2,21]),{28:[2,24]}], -defaultActions: {2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]}, +table: [{3:1,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:$V2},o([11,16],[2,7]),{5:22,7:5,13:$V0,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},o($Vc,[2,18],{25:[1,39]}),o($Vc,[2,20]),o($Vc,[2,21]),o($Vc,[2,22]),o($Vc,[2,23]),o($Vc,[2,24]),o($Vc,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi}),{21:51,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,32]),o($Vc,[2,33]),{22:52,63:$V9,64:$Va,65:$Vb},{21:53,22:30,63:$V9,64:$Va,65:$Vb},{21:54,22:30,63:$V9,64:$Va,65:$Vb},o($Vj,[2,15],{22:30,21:55,23:[1,56],63:$V9,64:$Va,65:$Vb}),o($Vk,[2,65]),o($Vk,[2,66]),o($Vk,[2,67]),o($Vl,[2,4]),{9:57,16:$V2},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:$V0,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},o($Vc,[2,19]),{21:59,22:30,39:[1,60],63:$V9,64:$Va,65:$Vb},{38:61,40:43,41:44,42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi},o($Vc,[2,31]),{41:62,46:$Vh,47:$Vi},o($Vm,[2,41],{40:63,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vn,[2,42]),o($Vn,[2,43]),o($Vn,[2,44]),o($Vn,[2,45]),o($Vo,[2,46]),o($Vo,[2,47]),o($Vc,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},o($Vj,[2,14]),o($Vj,[2,17],{22:30,21:68,63:$V9,64:$Va,65:$Vb}),{10:[1,69]},{19:[2,13]},o($Vp,[2,34]),{21:70,22:30,63:$V9,64:$Va,65:$Vb},{21:71,22:30,39:[1,72],63:$V9,64:$Va,65:$Vb},o($Vm,[2,40],{40:73,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vm,[2,39]),{32:74,36:$Vq},{21:76,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,48],{39:[1,77]}),o($Vc,[2,50],{39:[1,78]}),o($Vj,[2,16]),o($Vl,[2,5]),o($Vp,[2,36]),o($Vp,[2,35]),{21:79,22:30,63:$V9,64:$Va,65:$Vb},o($Vm,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:$Vq},o($Vc,[2,27]),o($Vc,[2,49]),o($Vc,[2,51]),o($Vp,[2,37]),o($Vc,[2,26]),{33:[2,29]}], +defaultActions: {2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -5835,110 +5870,108 @@ options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0: this.begin('open_directive'); return 61; +case 0: this.begin('open_directive'); return 13; break; -case 1: this.begin('type_directive'); return 62; +case 1: this.begin('type_directive'); return 14; break; -case 2: this.popState(); this.begin('arg_directive'); return 17; +case 2: this.popState(); this.begin('arg_directive'); return 11; break; -case 3: this.popState(); this.popState(); return 64; +case 3: this.popState(); this.popState(); return 16; break; -case 4:return 63; +case 4:return 15; break; case 5:/* skip comments */ break; case 6:/* skip comments */ break; -case 7:/* do nothing */ +case 7:return 10; break; -case 8:return 7; +case 8:/* skip whitespace */ break; -case 9:/* skip whitespace */ +case 9:return 17; break; -case 10:return 6; +case 10:return 17; break; -case 11:return 6; +case 11: this.begin("struct"); /*console.log('Starting struct');*/ return 31; break; -case 12: this.begin("struct"); /*console.log('Starting struct');*/return 26; +case 12:return "EOF_IN_STRUCT"; break; -case 13:return "EOF_IN_STRUCT"; +case 13:return "OPEN_IN_STRUCT"; break; -case 14:return "OPEN_IN_STRUCT"; +case 14: /*console.log('Ending struct');*/this.popState(); return 33; break; -case 15: /*console.log('Ending struct');*/this.popState(); return 28; +case 15:/* nothing */ break; -case 16:/* nothing */ +case 16: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER"; break; -case 17: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER"; +case 17:return 30; break; -case 18:return 25; +case 18:return 48; break; -case 19:return 43; +case 19:return 49; break; -case 20:return 44; +case 20:return 34; break; -case 21:return 29; +case 21:return 35; break; -case 22:return 30; +case 22:this.begin("generic"); break; -case 23:this.begin("generic"); +case 23:this.popState(); break; -case 24:this.popState(); +case 24:return "GENERICTYPE"; break; -case 25:return "GENERICTYPE"; +case 25:this.begin("string"); break; -case 26:this.begin("string"); +case 26:this.popState(); break; -case 27:this.popState(); +case 27:return "STR"; break; -case 28:return "STR"; +case 28:return 43; break; -case 29:return 38; +case 29:return 43; break; -case 30:return 38; +case 30:return 45; break; -case 31:return 40; +case 31:return 45; break; -case 32:return 40; +case 32:return 44; break; -case 33:return 39; +case 33:return 42; break; -case 34:return 37; +case 34:return 46; break; -case 35:return 41; +case 35:return 47; break; -case 36:return 42; +case 36:return 25; break; -case 37:return 20; +case 37:return 61; break; -case 38:return 56; +case 38:return 'DOT'; break; -case 39:return 'DOT'; +case 39:return 'PLUS'; break; -case 40:return 'PLUS'; +case 40:return 58; break; -case 41:return 53; +case 41:return 'EQUALS'; break; case 42:return 'EQUALS'; break; -case 43:return 'EQUALS'; +case 43:return 65; break; -case 44:return 60; +case 44:return 'PUNCTUATION'; break; -case 45:return 'PUNCTUATION'; -break; -case 46:return 59; +case 45:return 64; break; -case 47:return 58; +case 46:return 63; break; -case 48:return 55; +case 47:return 60; break; -case 49:return 9; +case 48:return 19; break; } }, -rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:%%[^\n]*\n*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:$)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/], -conditions: {"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"string":{"rules":[27,28],"inclusive":false},"generic":{"rules":[24,25],"inclusive":false},"struct":{"rules":[13,14,15,16,17],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"inclusive":true}} +rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/], +conditions: {"string":{"rules":[26,27],"inclusive":false},"generic":{"rules":[23,24],"inclusive":false},"struct":{"rules":[12,13,14,15,16],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"inclusive":true}} }); return lexer; })(); @@ -6442,11 +6475,13 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /** * */ + var entities = {}; var relationships = []; var title = ''; @@ -6461,7 +6496,7 @@ var Identification = { IDENTIFYING: 'IDENTIFYING' }; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(this, statement, context, type); }; var addEntity = function addEntity(name) { @@ -6517,6 +6552,9 @@ var clear = function clear() { Cardinality: Cardinality, Identification: Identification, parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().er; + }, addEntity: addEntity, getEntities: getEntities, addRelationship: addRelationship, @@ -7033,7 +7071,7 @@ case 25: $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 26: - yy.parseDirective('}%%', 'close_directive', 'sequence'); + yy.parseDirective('}%%', 'close_directive', 'er'); break; } }, @@ -7615,7 +7653,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "\n .entityBox {\n fill: ".concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(options.edgeLabelBackground, ";\n fillopactity: 0;\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(options.lineColor, ";\n }\n"); + return "\n .entityBox {\n fill: ".concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(options.tertiaryColor, ";\n opacity: 0.3;\n background-color: ").concat(options.tertiaryColor, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(options.lineColor, ";\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -8057,7 +8095,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-'; var MERMAID_DOM_ID_PREFIX = ''; -var config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); +var config = _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"]; var vertices = {}; var edges = []; var classes = []; @@ -8070,7 +8108,7 @@ var direction; // Functions to be run after graph rendering var funs = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_4__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_4__["default"].parseDirective(this, statement, context, type); }; /** * Function called by parser when a node definition has been found @@ -8104,7 +8142,7 @@ var addVertex = function addVertex(_id, text, type, style, classes) { } if (typeof text !== 'undefined') { - config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); + config = _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"]; txt = _common_common__WEBPACK_IMPORTED_MODULE_3__["default"].sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote if (txt[0] === '"' && txt[txt.length - 1] === '"') { @@ -8298,7 +8336,7 @@ var setClickFun = function setClickFun(_id, functionName) { var id = _id; if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id; - if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"].securityLevel !== 'loose') { return; } @@ -8869,6 +8907,9 @@ var destructLink = function destructLink(_str, _startStr) { /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + defaultConfig: function defaultConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"].flowchart; + }, addVertex: addVertex, addLink: addLink, updateLinkInterpolate: updateLinkInterpolate, @@ -10028,211 +10069,214 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,5],$V1=[1,4],$V2=[1,6],$V3=[1,8],$V4=[1,9,10,11,12,32,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$V5=[2,3],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,28],$Vb=[1,53],$Vc=[1,31],$Vd=[1,32],$Ve=[1,33],$Vf=[1,34],$Vg=[1,35],$Vh=[1,47],$Vi=[1,42],$Vj=[1,44],$Vk=[1,39],$Vl=[1,43],$Vm=[1,46],$Vn=[1,50],$Vo=[1,51],$Vp=[1,52],$Vq=[1,41],$Vr=[1,45],$Vs=[1,48],$Vt=[1,49],$Vu=[1,40],$Vv=[1,58],$Vw=[1,61],$Vx=[1,9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Vy=[1,65],$Vz=[1,64],$VA=[1,66],$VB=[9,10,12,63,64],$VC=[9,10,11,12,63,64],$VD=[9,10,11,12,41,63,64],$VE=[9,10,11,12,34,40,41,43,45,47,49,51,53,55,56,58,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VF=[9,10,12,40,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VG=[9,10,12],$VH=[1,9,10,11,12,19,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$VI=[40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VJ=[1,114],$VK=[1,135],$VL=[1,136],$VM=[1,137],$VN=[1,138],$VO=[1,118],$VP=[1,109],$VQ=[1,107],$VR=[1,110],$VS=[1,130],$VT=[1,131],$VU=[1,132],$VV=[1,133],$VW=[1,134],$VX=[1,139],$VY=[1,140],$VZ=[1,112],$V_=[1,120],$V$=[1,123],$V01=[1,121],$V11=[1,122],$V21=[1,115],$V31=[1,128],$V41=[1,127],$V51=[1,111],$V61=[1,108],$V71=[1,117],$V81=[1,119],$V91=[1,124],$Va1=[1,125],$Vb1=[1,126],$Vc1=[1,129],$Vd1=[9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Ve1=[1,143],$Vf1=[1,147],$Vg1=[1,149],$Vh1=[1,150],$Vi1=[9,10,11,12,19,20,32,34,35,36,40,44,46,48,50,52,54,55,57,59,62,63,64,65,68,69,70,71,72,73,74,77,83,84,87,88,89,91,92,93,94,98,99,100,101,102,103],$Vj1=[9,10,11,12,20,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$Vk1=[11,84],$Vl1=[1,219],$Vm1=[1,223],$Vn1=[1,220],$Vo1=[1,217],$Vp1=[1,214],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,218],$Vt1=[1,221],$Vu1=[1,222],$Vv1=[1,224],$Vw1=[1,240],$Vx1=[9,10,12,84],$Vy1=[9,10,11,12,68,80,83,84,87,88,89,90,91,92,93]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,9],$V1=[1,7],$V2=[1,6],$V3=[1,8],$V4=[1,20,21,22,23,38,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$V5=[2,10],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[1,23],$Va=[1,30],$Vb=[1,54],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[1,36],$Vh=[1,48],$Vi=[1,43],$Vj=[1,45],$Vk=[1,40],$Vl=[1,44],$Vm=[1,47],$Vn=[1,51],$Vo=[1,52],$Vp=[1,53],$Vq=[1,42],$Vr=[1,46],$Vs=[1,49],$Vt=[1,50],$Vu=[1,41],$Vv=[1,57],$Vw=[1,62],$Vx=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vy=[1,66],$Vz=[1,65],$VA=[1,67],$VB=[20,21,23,69,70],$VC=[20,21,22,23,69,70],$VD=[20,21,22,23,47,69,70],$VE=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VF=[20,21,23],$VG=[20,21,23,46,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VH=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VI=[46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VJ=[1,115],$VK=[1,136],$VL=[1,137],$VM=[1,138],$VN=[1,139],$VO=[1,119],$VP=[1,110],$VQ=[1,111],$VR=[1,107],$VS=[1,131],$VT=[1,132],$VU=[1,133],$VV=[1,134],$VW=[1,135],$VX=[1,140],$VY=[1,141],$VZ=[1,113],$V_=[1,121],$V$=[1,124],$V01=[1,122],$V11=[1,123],$V21=[1,116],$V31=[1,129],$V41=[1,128],$V51=[1,112],$V61=[1,109],$V71=[1,118],$V81=[1,120],$V91=[1,125],$Va1=[1,126],$Vb1=[1,127],$Vc1=[1,130],$Vd1=[20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Ve1=[1,144],$Vf1=[1,148],$Vg1=[1,150],$Vh1=[1,151],$Vi1=[12,21,22,24],$Vj1=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,90,91,94,95,96,98,99,100,101,105,106,107,108,109,110],$Vk1=[20,21,22,23,26,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vl1=[22,91],$Vm1=[1,220],$Vn1=[1,224],$Vo1=[1,221],$Vp1=[1,218],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,217],$Vt1=[1,219],$Vu1=[1,222],$Vv1=[1,223],$Vw1=[1,225],$Vx1=[1,241],$Vy1=[20,21,23,91],$Vz1=[20,21,22,23,75,87,90,91,94,95,96,97,98,99,100]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"document":5,"directive":6,"line":7,"statement":8,"SEMI":9,"NEWLINE":10,"SPACE":11,"EOF":12,"openDirective":13,"typeDirective":14,"closeDirective":15,"separator":16,":":17,"argDirective":18,"GRAPH":19,"DIR":20,"FirstStmtSeperator":21,"ending":22,"endToken":23,"spaceList":24,"spaceListNewline":25,"verticeStatement":26,"styleStatement":27,"linkStyleStatement":28,"classDefStatement":29,"classStatement":30,"clickStatement":31,"subgraph":32,"text":33,"SQS":34,"SQE":35,"end":36,"link":37,"node":38,"vertex":39,"AMP":40,"STYLE_SEPARATOR":41,"idString":42,"PS":43,"PE":44,"(-":45,"-)":46,"STADIUMSTART":47,"STADIUMEND":48,"SUBROUTINESTART":49,"SUBROUTINEEND":50,"CYLINDERSTART":51,"CYLINDEREND":52,"DIAMOND_START":53,"DIAMOND_STOP":54,"TAGEND":55,"TRAPSTART":56,"TRAPEND":57,"INVTRAPSTART":58,"INVTRAPEND":59,"linkStatement":60,"arrowText":61,"STR":62,"START_LINK":63,"LINK":64,"PIPE":65,"textToken":66,"keywords":67,"STYLE":68,"LINKSTYLE":69,"CLASSDEF":70,"CLASS":71,"CLICK":72,"DOWN":73,"UP":74,"textNoTags":75,"textNoTagsToken":76,"DEFAULT":77,"stylesOpt":78,"alphaNum":79,"HEX":80,"numList":81,"INTERPOLATE":82,"NUM":83,"COMMA":84,"style":85,"styleComponent":86,"ALPHA":87,"COLON":88,"MINUS":89,"UNIT":90,"BRKT":91,"DOT":92,"PCT":93,"TAGSTART":94,"alphaNumToken":95,"idStringToken":96,"alphaNumStatement":97,"PUNCTUATION":98,"UNICODE_TEXT":99,"PLUS":100,"EQUALS":101,"MULT":102,"UNDERSCORE":103,"graphCodeTokens":104,"ARROW_CROSS":105,"ARROW_POINT":106,"ARROW_CIRCLE":107,"ARROW_OPEN":108,"QUOTE":109,"open_directive":110,"type_directive":111,"arg_directive":112,"close_directive":113,"$accept":0,"$end":1}, -terminals_: {2:"error",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",17:":",19:"GRAPH",20:"DIR",32:"subgraph",34:"SQS",35:"SQE",36:"end",40:"AMP",41:"STYLE_SEPARATOR",43:"PS",44:"PE",45:"(-",46:"-)",47:"STADIUMSTART",48:"STADIUMEND",49:"SUBROUTINESTART",50:"SUBROUTINEEND",51:"CYLINDERSTART",52:"CYLINDEREND",53:"DIAMOND_START",54:"DIAMOND_STOP",55:"TAGEND",56:"TRAPSTART",57:"TRAPEND",58:"INVTRAPSTART",59:"INVTRAPEND",62:"STR",63:"START_LINK",64:"LINK",65:"PIPE",68:"STYLE",69:"LINKSTYLE",70:"CLASSDEF",71:"CLASS",72:"CLICK",73:"DOWN",74:"UP",77:"DEFAULT",80:"HEX",82:"INTERPOLATE",83:"NUM",84:"COMMA",87:"ALPHA",88:"COLON",89:"MINUS",90:"UNIT",91:"BRKT",92:"DOT",93:"PCT",94:"TAGSTART",98:"PUNCTUATION",99:"UNICODE_TEXT",100:"PLUS",101:"EQUALS",102:"MULT",103:"UNDERSCORE",105:"ARROW_CROSS",106:"ARROW_POINT",107:"ARROW_CIRCLE",108:"ARROW_OPEN",109:"QUOTE",110:"open_directive",111:"type_directive",112:"arg_directive",113:"close_directive"}, -productions_: [0,[3,2],[3,2],[5,0],[5,2],[7,1],[7,1],[7,1],[7,1],[7,1],[6,4],[6,6],[4,2],[4,2],[4,3],[22,2],[22,1],[23,1],[23,1],[23,1],[21,1],[21,1],[21,2],[25,2],[25,2],[25,1],[25,1],[24,2],[24,1],[8,2],[8,2],[8,2],[8,2],[8,2],[8,2],[8,9],[8,6],[8,4],[8,1],[16,1],[16,1],[16,1],[26,3],[26,4],[26,2],[26,1],[38,1],[38,5],[38,3],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,1],[37,2],[37,3],[37,3],[37,1],[37,3],[60,1],[61,3],[33,1],[33,2],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[75,1],[75,2],[29,5],[29,5],[30,5],[31,5],[31,7],[31,5],[31,7],[27,5],[27,5],[28,5],[28,5],[28,9],[28,9],[28,7],[28,7],[81,1],[81,3],[78,1],[78,3],[85,1],[85,2],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[76,1],[76,1],[76,1],[76,1],[42,1],[42,2],[79,1],[79,2],[97,1],[97,1],[97,1],[97,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[13,1],[14,1],[18,1],[15,1]], +symbols_: {"error":2,"start":3,"mermaidDoc":4,"directive":5,"openDirective":6,"typeDirective":7,"closeDirective":8,"separator":9,":":10,"argDirective":11,"open_directive":12,"type_directive":13,"arg_directive":14,"close_directive":15,"graphConfig":16,"document":17,"line":18,"statement":19,"SEMI":20,"NEWLINE":21,"SPACE":22,"EOF":23,"GRAPH":24,"NODIR":25,"DIR":26,"FirstStmtSeperator":27,"ending":28,"endToken":29,"spaceList":30,"spaceListNewline":31,"verticeStatement":32,"styleStatement":33,"linkStyleStatement":34,"classDefStatement":35,"classStatement":36,"clickStatement":37,"subgraph":38,"text":39,"SQS":40,"SQE":41,"end":42,"link":43,"node":44,"vertex":45,"AMP":46,"STYLE_SEPARATOR":47,"idString":48,"PS":49,"PE":50,"(-":51,"-)":52,"STADIUMSTART":53,"STADIUMEND":54,"SUBROUTINESTART":55,"SUBROUTINEEND":56,"CYLINDERSTART":57,"CYLINDEREND":58,"DIAMOND_START":59,"DIAMOND_STOP":60,"TAGEND":61,"TRAPSTART":62,"TRAPEND":63,"INVTRAPSTART":64,"INVTRAPEND":65,"linkStatement":66,"arrowText":67,"TESTSTR":68,"START_LINK":69,"LINK":70,"PIPE":71,"textToken":72,"STR":73,"keywords":74,"STYLE":75,"LINKSTYLE":76,"CLASSDEF":77,"CLASS":78,"CLICK":79,"DOWN":80,"UP":81,"textNoTags":82,"textNoTagsToken":83,"DEFAULT":84,"stylesOpt":85,"alphaNum":86,"HEX":87,"numList":88,"INTERPOLATE":89,"NUM":90,"COMMA":91,"style":92,"styleComponent":93,"ALPHA":94,"COLON":95,"MINUS":96,"UNIT":97,"BRKT":98,"DOT":99,"PCT":100,"TAGSTART":101,"alphaNumToken":102,"idStringToken":103,"alphaNumStatement":104,"PUNCTUATION":105,"UNICODE_TEXT":106,"PLUS":107,"EQUALS":108,"MULT":109,"UNDERSCORE":110,"graphCodeTokens":111,"ARROW_CROSS":112,"ARROW_POINT":113,"ARROW_CIRCLE":114,"ARROW_OPEN":115,"QUOTE":116,"$accept":0,"$end":1}, +terminals_: {2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASSDEF",78:"CLASS",79:"CLICK",80:"DOWN",81:"UP",84:"DEFAULT",87:"HEX",89:"INTERPOLATE",90:"NUM",91:"COMMA",94:"ALPHA",95:"COLON",96:"MINUS",97:"UNIT",98:"BRKT",99:"DOT",100:"PCT",101:"TAGSTART",105:"PUNCTUATION",106:"UNICODE_TEXT",107:"PLUS",108:"EQUALS",109:"MULT",110:"UNDERSCORE",112:"ARROW_CROSS",113:"ARROW_POINT",114:"ARROW_CIRCLE",115:"ARROW_OPEN",116:"QUOTE"}, +productions_: [0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[88,1],[88,3],[85,1],[85,3],[92,1],[92,2],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[104,1],[104,1],[104,1],[104,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 3: +case 5: + yy.parseDirective('%%{', 'open_directive'); +break; +case 6: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 7: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 8: + yy.parseDirective('}%%', 'close_directive', 'flowchart'); +break; +case 10: this.$ = []; break; -case 4: +case 11: if($$[$0] !== []){ $$[$0-1].push($$[$0]); } this.$=$$[$0-1]; break; -case 5: case 71: case 84: case 119: case 131: case 133: case 134: +case 12: case 76: case 78: case 90: case 136: case 138: case 139: this.$=$$[$0]; break; -case 14: +case 19: + yy.setDirection('TB');this.$ = 'TB'; +break; +case 20: yy.setDirection($$[$0-1]);this.$ = $$[$0-1]; break; -case 29: +case 35: /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes break; -case 30: case 31: case 32: case 33: case 34: +case 36: case 37: case 38: case 39: case 40: this.$=[]; break; -case 35: +case 41: this.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]); break; -case 36: +case 42: this.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]); break; -case 37: +case 43: this.$=yy.addSubGraph(undefined,$$[$0-1],undefined); break; -case 42: +case 47: /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } break; -case 43: +case 48: /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } break; -case 44: +case 49: /*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] } break; -case 45: +case 50: /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] } break; -case 46: +case 51: /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]]; break; -case 47: +case 52: this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ break; -case 48: +case 53: this.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0]) break; -case 49: +case 54: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square'); break; -case 50: +case 55: this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle'); break; -case 51: +case 56: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse'); break; -case 52: +case 57: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium'); break; -case 53: +case 58: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine'); break; -case 54: +case 59: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder'); break; -case 55: +case 60: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round'); break; -case 56: +case 61: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond'); break; -case 57: +case 62: this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon'); break; -case 58: +case 63: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd'); break; -case 59: +case 64: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid'); break; -case 60: +case 65: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid'); break; -case 61: +case 66: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right'); break; -case 62: +case 67: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left'); break; -case 63: +case 68: /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]); break; -case 64: +case 69: $$[$0-1].text = $$[$0];this.$ = $$[$0-1]; break; -case 65: case 66: +case 70: case 71: $$[$0-2].text = $$[$0-1];this.$ = $$[$0-2]; break; -case 67: +case 72: this.$ = $$[$0]; break; -case 68: +case 73: var inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {"type":inf.type,"stroke":inf.stroke,"text":$$[$0-1]}; break; -case 69: +case 74: var inf = yy.destructLink($$[$0]);this.$ = {"type":inf.type,"stroke":inf.stroke}; break; -case 70: +case 75: this.$ = $$[$0-1]; break; -case 72: case 85: case 132: +case 77: case 91: case 137: this.$=$$[$0-1]+''+$$[$0]; break; -case 86: case 87: +case 92: case 93: this.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]); break; -case 88: +case 94: this.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]); break; -case 89: +case 95: this.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined); break; -case 90: +case 96: this.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ; break; -case 91: +case 97: this.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined); break; -case 92: +case 98: this.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] ); break; -case 93: +case 99: this.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]); break; -case 94: case 96: +case 100: case 102: this.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]); break; -case 95: +case 101: this.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]); break; -case 97: +case 103: this.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]); break; -case 98: +case 104: this.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]); break; -case 99: +case 105: this.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]); break; -case 100: +case 106: this.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]); break; -case 101: case 103: +case 107: case 109: this.$ = [$$[$0]] break; -case 102: case 104: +case 108: case 110: $$[$0-2].push($$[$0]);this.$ = $$[$0-2]; break; -case 106: +case 112: this.$ = $$[$0-1] + $$[$0]; break; -case 129: +case 134: this.$=$$[$0] break; -case 130: +case 135: this.$=$$[$0-1]+''+$$[$0] break; -case 135: +case 140: this.$='v'; break; -case 136: +case 141: this.$='-'; break; -case 190: - yy.parseDirective('%%{', 'open_directive'); -break; -case 191: - yy.parseDirective($$[$0], 'type_directive'); -break; -case 192: - $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); -break; -case 193: - yy.parseDirective('}%%', 'close_directive', 'sequence'); -break; } }, -table: [{3:1,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{1:[3]},o($V4,$V5,{5:9}),{3:10,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{4:11,10:$V0,11:$V1,19:$V2},{4:12,10:$V0,11:$V1,19:$V2},{20:[1,13]},{14:14,111:[1,15]},{111:[2,190]},{1:[2,1],6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{1:[2,2]},o($V4,[2,12]),o($V4,[2,13]),{9:[1,55],10:[1,56],11:$Vv,21:54,24:57},{15:59,17:[1,60],113:$Vw},o([17,113],[2,191]),o($Vx,[2,4]),o($Vx,[2,5]),o($Vx,[2,6]),o($Vx,[2,7]),o($Vx,[2,8]),o($Vx,[2,9]),{9:$Vy,10:$Vz,12:$VA,16:62,37:63,60:67,63:[1,68],64:[1,69]},{9:$Vy,10:$Vz,12:$VA,16:70},{9:$Vy,10:$Vz,12:$VA,16:71},{9:$Vy,10:$Vz,12:$VA,16:72},{9:$Vy,10:$Vz,12:$VA,16:73},{9:$Vy,10:$Vz,12:$VA,16:74},{9:$Vy,10:$Vz,11:[1,75],12:$VA,16:76},o($Vx,[2,38]),o($VB,[2,45],{24:77,11:$Vv}),{11:[1,78]},{11:[1,79]},{11:[1,80]},{11:[1,81]},{11:[1,82]},o($VC,[2,46],{41:[1,83]}),o($VD,[2,63],{96:94,34:[1,84],40:$Vb,43:[1,85],45:[1,86],47:[1,87],49:[1,88],51:[1,89],53:[1,90],55:[1,91],56:[1,92],58:[1,93],73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),o($VE,[2,129]),o($VE,[2,150]),o($VE,[2,151]),o($VE,[2,152]),o($VE,[2,153]),o($VE,[2,154]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($V4,[2,14]),o($V4,[2,20]),o($V4,[2,21]),{10:[1,95]},o($VF,[2,28],{24:96,11:$Vv}),{9:$Vy,10:$Vz,12:$VA,16:97},{18:98,112:[1,99]},o($VG,[2,193]),o($Vx,[2,29]),{38:100,39:36,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},o($VH,[2,39]),o($VH,[2,40]),o($VH,[2,41]),o($VI,[2,67],{61:101,62:[1,102],65:[1,103]}),{11:$VJ,19:$VK,20:$VL,32:$VM,33:104,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o([40,62,65,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,69]),o($Vx,[2,30]),o($Vx,[2,31]),o($Vx,[2,32]),o($Vx,[2,33]),o($Vx,[2,34]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:141,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:142}),o($VB,[2,44],{40:$Ve1}),{20:$Vf1,40:$VO,73:$Vg1,79:144,80:[1,145],83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{77:[1,151],81:152,83:[1,153]},{20:$Vf1,40:$VO,73:$Vg1,77:[1,154],79:155,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:156,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:157,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{40:$Vb,42:158,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$VJ,19:$VK,20:$VL,32:$VM,33:159,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:161,36:$VN,40:$VO,43:[1,160],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:162,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:163,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:164,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:165,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:166,36:$VN,40:$VO,53:[1,167],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:168,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:169,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:170,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VE,[2,130]),o($V4,[2,22]),o($VF,[2,27]),o($VH,[2,10]),{15:171,113:$Vw},{113:[2,192]},o($VB,[2,42],{24:172,11:$Vv}),o($VI,[2,64],{11:[1,173]}),{11:[1,174]},{11:$VJ,19:$VK,20:$VL,32:$VM,33:175,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,64:[1,176],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vi1,[2,71]),o($Vi1,[2,118]),o($Vi1,[2,119]),o($Vi1,[2,120]),o($Vi1,[2,121]),o($Vi1,[2,122]),o($Vi1,[2,123]),o($Vi1,[2,124]),o($Vi1,[2,125]),o($Vi1,[2,126]),o($Vi1,[2,127]),o($Vi1,[2,128]),o($Vi1,[2,137]),o($Vi1,[2,138]),o($Vi1,[2,139]),o($Vi1,[2,140]),o($Vi1,[2,141]),o($Vi1,[2,142]),o($Vi1,[2,143]),o($Vi1,[2,144]),o($Vi1,[2,145]),o($Vi1,[2,146]),o($Vi1,[2,147]),o($Vi1,[2,148]),o($Vi1,[2,149]),o($Vi1,[2,73]),o($Vi1,[2,74]),o($Vi1,[2,75]),o($Vi1,[2,76]),o($Vi1,[2,77]),o($Vi1,[2,78]),o($Vi1,[2,79]),o($Vi1,[2,80]),o($Vi1,[2,81]),o($Vi1,[2,82]),o($Vi1,[2,83]),{9:$Vy,10:$Vz,11:$VJ,12:$VA,16:179,19:$VK,20:$VL,32:$VM,34:[1,178],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,180],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vv,24:181},{11:[1,182],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,184]},o($Vj1,[2,131]),o($Vj1,[2,133]),o($Vj1,[2,134]),o($Vj1,[2,135]),o($Vj1,[2,136]),{11:[1,185]},{11:[1,186],84:[1,187]},o($Vk1,[2,101]),{11:[1,188]},{11:[1,189],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,190],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,191],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VC,[2,48],{96:94,40:$Vb,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,192],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:193,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,194],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,46:[1,195],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,48:[1,196],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,50:[1,197],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,52:[1,198],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,199],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:200,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,201],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,202],59:[1,203],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,205],59:[1,204],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{9:$Vy,10:$Vz,12:$VA,16:206},o($VB,[2,43],{40:$Ve1}),o($VI,[2,66]),o($VI,[2,65]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,65:[1,207],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VI,[2,68]),o($Vi1,[2,72]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:208,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:209}),o($Vx,[2,37]),{39:210,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$Vl1,68:$Vm1,78:211,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vj1,[2,132]),{11:$Vl1,68:$Vm1,78:225,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:226,80:$Vn1,82:[1,227],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:228,80:$Vn1,82:[1,229],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{83:[1,230]},{11:$Vl1,68:$Vm1,78:231,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:232,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{20:$Vf1,40:$VO,73:$Vg1,79:233,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,62:[1,235],73:$Vg1,79:234,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,49]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,236],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,55]),o($VD,[2,51]),o($VD,[2,52]),o($VD,[2,53]),o($VD,[2,54]),o($VD,[2,56]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,237],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),o($VD,[2,60]),o($VD,[2,62]),o($VH,[2,11]),o([11,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,70]),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,238],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,239],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},o($VC,[2,47]),o($VG,[2,93],{84:$Vw1}),o($Vx1,[2,103],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($Vy1,[2,105]),o($Vy1,[2,107]),o($Vy1,[2,108]),o($Vy1,[2,109]),o($Vy1,[2,110]),o($Vy1,[2,111]),o($Vy1,[2,112]),o($Vy1,[2,113]),o($Vy1,[2,114]),o($Vy1,[2,115]),o($Vy1,[2,116]),o($Vy1,[2,117]),o($VG,[2,94],{84:$Vw1}),o($VG,[2,95],{84:$Vw1}),{11:[1,242]},o($VG,[2,96],{84:$Vw1}),{11:[1,243]},o($Vk1,[2,102]),o($VG,[2,86],{84:$Vw1}),o($VG,[2,87],{84:$Vw1}),o($VG,[2,88],{95:148,97:183,20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,89],{95:148,97:183,11:[1,244],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,91],{11:[1,245]}),{44:[1,246]},{54:[1,247]},{9:$Vy,10:$Vz,12:$VA,16:248},o($Vx,[2,36]),{11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,85:249,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vy1,[2,106]),{20:$Vf1,40:$VO,73:$Vg1,79:250,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:251,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{62:[1,252]},{62:[1,253]},o($VD,[2,50]),o($VD,[2,57]),o($Vd1,$V5,{5:254}),o($Vx1,[2,104],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($VG,[2,99],{95:148,97:183,11:[1,255],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,100],{95:148,97:183,11:[1,256],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,90]),o($VG,[2,92]),{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,257],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vl1,68:$Vm1,78:258,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:259,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vx,[2,35]),o($VG,[2,97],{84:$Vw1}),o($VG,[2,98],{84:$Vw1})], -defaultActions: {8:[2,190],10:[2,2],99:[2,192]}, +table: [{3:1,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},o($V4,$V5,{17:11}),{7:12,13:[1,13]},{16:14,21:$V1,22:$V2,24:$V3},{16:15,21:$V1,22:$V2,24:$V3},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{8:55,10:[1,56],15:$Vv},o([10,15],[2,6]),o($V4,[2,17]),o($V4,[2,18]),o($V4,[2,19]),{20:[1,59],21:[1,60],22:$Vw,27:58,30:61},o($Vx,[2,11]),o($Vx,[2,12]),o($Vx,[2,13]),o($Vx,[2,14]),o($Vx,[2,15]),o($Vx,[2,16]),{9:63,20:$Vy,21:$Vz,23:$VA,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:$Vy,21:$Vz,23:$VA},{9:72,20:$Vy,21:$Vz,23:$VA},{9:73,20:$Vy,21:$Vz,23:$VA},{9:74,20:$Vy,21:$Vz,23:$VA},{9:75,20:$Vy,21:$Vz,23:$VA},{9:77,20:$Vy,21:$Vz,22:[1,76],23:$VA},o($VB,[2,50],{30:78,22:$Vw}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},o($VC,[2,51],{47:[1,84]}),o($VD,[2,68],{103:95,40:[1,85],46:$Vb,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),o($VE,[2,134]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($VE,[2,165]),o($VE,[2,166]),o($VE,[2,167]),o($VE,[2,168]),o($VE,[2,169]),{9:96,20:$Vy,21:$Vz,23:$VA},{11:97,14:[1,98]},o($VF,[2,8]),o($V4,[2,20]),o($V4,[2,26]),o($V4,[2,27]),{21:[1,99]},o($VG,[2,34],{30:100,22:$Vw}),o($Vx,[2,35]),{44:101,45:37,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VH,[2,44]),o($VH,[2,45]),o($VH,[2,46]),o($VI,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$VJ,24:$VK,26:$VL,38:$VM,39:105,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o([46,68,71,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,74]),o($Vx,[2,36]),o($Vx,[2,37]),o($Vx,[2,38]),o($Vx,[2,39]),o($Vx,[2,40]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:142,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:143}),o($VB,[2,49],{46:$Ve1}),{26:$Vf1,46:$VO,80:$Vg1,86:145,87:[1,146],90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{84:[1,152],88:153,90:[1,154]},{26:$Vf1,46:$VO,80:$Vg1,84:[1,155],86:156,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:157,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:158,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{46:$Vb,48:159,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$VJ,24:$VK,26:$VL,38:$VM,39:160,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:162,42:$VN,46:$VO,49:[1,161],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:163,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:164,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:165,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:166,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:167,42:$VN,46:$VO,59:[1,168],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:169,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:170,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:171,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VE,[2,135]),o($Vi1,[2,3]),{8:172,15:$Vv},{15:[2,7]},o($V4,[2,28]),o($VG,[2,33]),o($VB,[2,47],{30:173,22:$Vw}),o($VI,[2,69],{22:[1,174]}),{22:[1,175]},{22:$VJ,24:$VK,26:$VL,38:$VM,39:176,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,70:[1,177],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vj1,[2,76]),o($Vj1,[2,78]),o($Vj1,[2,124]),o($Vj1,[2,125]),o($Vj1,[2,126]),o($Vj1,[2,127]),o($Vj1,[2,128]),o($Vj1,[2,129]),o($Vj1,[2,130]),o($Vj1,[2,131]),o($Vj1,[2,132]),o($Vj1,[2,133]),o($Vj1,[2,142]),o($Vj1,[2,143]),o($Vj1,[2,144]),o($Vj1,[2,145]),o($Vj1,[2,146]),o($Vj1,[2,147]),o($Vj1,[2,148]),o($Vj1,[2,149]),o($Vj1,[2,150]),o($Vj1,[2,151]),o($Vj1,[2,152]),o($Vj1,[2,153]),o($Vj1,[2,154]),o($Vj1,[2,79]),o($Vj1,[2,80]),o($Vj1,[2,81]),o($Vj1,[2,82]),o($Vj1,[2,83]),o($Vj1,[2,84]),o($Vj1,[2,85]),o($Vj1,[2,86]),o($Vj1,[2,87]),o($Vj1,[2,88]),o($Vj1,[2,89]),{9:180,20:$Vy,21:$Vz,22:$VJ,23:$VA,24:$VK,26:$VL,38:$VM,40:[1,179],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,181],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vw,30:182},{22:[1,183],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,185]},o($Vk1,[2,136]),o($Vk1,[2,138]),o($Vk1,[2,139]),o($Vk1,[2,140]),o($Vk1,[2,141]),{22:[1,186]},{22:[1,187],91:[1,188]},o($Vl1,[2,107]),{22:[1,189]},{22:[1,190],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,191],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,192],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VC,[2,53],{103:95,46:$Vb,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,193],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:194,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,195],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,52:[1,196],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,54:[1,197],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,56:[1,198],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,58:[1,199],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,200],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:201,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,202],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,203],65:[1,204],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,206],65:[1,205],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{9:207,20:$Vy,21:$Vz,23:$VA},o($VB,[2,48],{46:$Ve1}),o($VI,[2,71]),o($VI,[2,70]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,71:[1,208],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VI,[2,73]),o($Vj1,[2,77]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:209,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:210}),o($Vx,[2,43]),{45:211,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:212,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vk1,[2,137]),{22:$Vm1,75:$Vn1,85:226,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:227,87:$Vo1,89:[1,228],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:229,87:$Vo1,89:[1,230],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{90:[1,231]},{22:$Vm1,75:$Vn1,85:232,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:233,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{26:$Vf1,46:$VO,80:$Vg1,86:234,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,73:[1,236],80:$Vg1,86:235,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,54]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,237],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,60]),o($VD,[2,56]),o($VD,[2,57]),o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,238],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,63]),o($VD,[2,64]),o($VD,[2,66]),o($VD,[2,65]),o($VD,[2,67]),o($Vi1,[2,4]),o([22,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,75]),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,239],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,240],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VC,[2,52]),o($VF,[2,99],{91:$Vx1}),o($Vy1,[2,109],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($Vz1,[2,111]),o($Vz1,[2,113]),o($Vz1,[2,114]),o($Vz1,[2,115]),o($Vz1,[2,116]),o($Vz1,[2,117]),o($Vz1,[2,118]),o($Vz1,[2,119]),o($Vz1,[2,120]),o($Vz1,[2,121]),o($Vz1,[2,122]),o($Vz1,[2,123]),o($VF,[2,100],{91:$Vx1}),o($VF,[2,101],{91:$Vx1}),{22:[1,243]},o($VF,[2,102],{91:$Vx1}),{22:[1,244]},o($Vl1,[2,108]),o($VF,[2,92],{91:$Vx1}),o($VF,[2,93],{91:$Vx1}),o($VF,[2,94],{102:149,104:184,26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,95],{102:149,104:184,22:[1,245],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:$Vy,21:$Vz,23:$VA},o($Vx,[2,42]),{22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,92:250,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vz1,[2,112]),{26:$Vf1,46:$VO,80:$Vg1,86:251,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:252,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{73:[1,253]},{73:[1,254]},o($VD,[2,55]),o($VD,[2,62]),o($Vd1,$V5,{17:255}),o($Vy1,[2,110],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($VF,[2,105],{102:149,104:184,22:[1,256],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,106],{102:149,104:184,22:[1,257],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,96]),o($VF,[2,98]),{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,258],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:259,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:260,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vx,[2,41]),o($VF,[2,103],{91:$Vx1}),o($VF,[2,104],{91:$Vx1})], +defaultActions: {2:[2,1],9:[2,5],10:[2,2],98:[2,7]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -10711,15 +10755,15 @@ options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0: this.begin('open_directive'); return 110; +case 0: this.begin('open_directive'); return 12; break; -case 1: this.begin('type_directive'); return 111; +case 1: this.begin('type_directive'); return 13; break; -case 2: this.popState(); this.begin('arg_directive'); return 17; +case 2: this.popState(); this.begin('arg_directive'); return 10; break; -case 3: this.popState(); this.popState(); return 113; +case 3: this.popState(); this.popState(); return 15; break; -case 4:return 112; +case 4:return 14; break; case 5:/* skip comments */ break; @@ -10731,224 +10775,226 @@ case 8:this.popState(); break; case 9:return "STR"; break; -case 10:return 68; +case 10:return 75; +break; +case 11:return 84; break; -case 11:return 77; +case 12:return 76; break; -case 12:return 69; +case 13:return 89; break; -case 13:return 82; +case 14:return 77; break; -case 14:return 70; +case 15:return 78; break; -case 15:return 71; +case 16:return 79; break; -case 16:return 72; +case 17:if(yy.lex.firstGraph()){this.begin("dir");} return 24; break; -case 17:if(yy.lex.firstGraph()){this.begin("dir");} return 19; +case 18:if(yy.lex.firstGraph()){this.begin("dir");} return 24; break; -case 18:if(yy.lex.firstGraph()){this.begin("dir");} return 19; +case 19:return 38; break; -case 19:return 32; +case 20:return 42; break; -case 20:return 36; +case 21: this.popState(); return 25; break; -case 21: this.popState(); return 20; +case 22: this.popState(); return 26; break; -case 22: this.popState(); return 20; +case 23: this.popState(); return 26; break; -case 23: this.popState(); return 20; +case 24: this.popState(); return 26; break; -case 24: this.popState(); return 20; +case 25: this.popState(); return 26; break; -case 25: this.popState(); return 20; +case 26: this.popState(); return 26; break; -case 26: this.popState(); return 20; +case 27: this.popState(); return 26; break; -case 27: this.popState(); return 20; +case 28: this.popState(); return 26; break; -case 28: this.popState(); return 20; +case 29: this.popState(); return 26; break; -case 29: this.popState(); return 20; +case 30: this.popState(); return 26; break; -case 30: this.popState(); return 20; +case 31: this.popState(); return 26; break; -case 31: return 83; +case 32: return 90; break; -case 32:return 91; +case 33:return 98; break; -case 33:return 41; +case 34:return 47; break; -case 34:return 88; +case 35:return 95; break; -case 35:return 40; +case 36:return 46; break; -case 36:return 9; +case 37:return 20; break; -case 37:return 84; +case 38:return 91; break; -case 38:return 102; +case 39:return 109; break; -case 39:return 64; +case 40:return 70; break; -case 40:return 64; +case 41:return 70; break; -case 41:return 64; +case 42:return 70; break; -case 42:return 64; +case 43:return 70; break; -case 43:return 64; +case 44:return 70; break; -case 44:return 64; +case 45:return 70; break; -case 45:return 64; +case 46:return 70; break; -case 46:return 64; +case 47:return 70; break; -case 47:return 64; +case 48:return 70; break; -case 48:return 64; +case 49:return 70; break; -case 49:return 64; +case 50:return 70; break; -case 50:return 64; +case 51:return 70; break; -case 51:return 64; +case 52:return 70; break; -case 52:return 64; +case 53:return 70; break; -case 53:return 64; +case 54:return 70; break; -case 54:return 64; +case 55:return 70; break; -case 55:return 64; +case 56:return 70; break; -case 56:return 64; +case 57:return 70; break; -case 57:return 64; +case 58:return 70; break; -case 58:return 64; +case 59:return 70; break; -case 59:return 64; +case 60:return 70; break; -case 60:return 64; +case 61:return 70; break; -case 61:return 64; +case 62:return 70; break; -case 62:return 64; +case 63:return 70; break; -case 63:return 64; +case 64:return 70; break; -case 64:return 64; +case 65:return 70; break; -case 65:return 64; +case 66:return 70; break; -case 66:return 64; +case 67:return 70; break; -case 67:return 63; +case 68:return 69; break; -case 68:return 63; +case 69:return 69; break; -case 69:return 63; +case 70:return 69; break; -case 70:return 63; +case 71:return 69; break; -case 71:return 63; +case 72:return 69; break; -case 72:return 63; +case 73:return 69; break; -case 73:return 63; +case 74:return 69; break; -case 74:return 63; +case 75:return 69; break; -case 75:return 63; +case 76:return 69; break; -case 76:return 63; +case 77:return 69; break; -case 77:return 63; +case 78:return 69; break; -case 78:return 63; +case 79:return 69; break; -case 79:return 45; +case 80:return 51; break; -case 80:return 46; +case 81:return 52; break; -case 81:return 47; +case 82:return 53; break; -case 82:return 48; +case 83:return 54; break; -case 83:return 49; +case 84:return 55; break; -case 84:return 50; +case 85:return 56; break; -case 85:return 51; +case 86:return 57; break; -case 86:return 52; +case 87:return 58; break; -case 87:return 89; +case 88:return 96; break; -case 88:return 92; +case 89:return 99; break; -case 89:return 103; +case 90:return 110; break; -case 90:return 100; +case 91:return 107; break; -case 91:return 93; +case 92:return 100; break; -case 92:return 101; +case 93:return 108; break; -case 93:return 101; +case 94:return 108; break; -case 94:return 94; +case 95:return 101; break; -case 95:return 55; +case 96:return 61; break; -case 96:return 74; +case 97:return 81; break; -case 97:return 'SEP'; +case 98:return 'SEP'; break; -case 98:return 73; +case 99:return 80; break; -case 99:return 87; +case 100:return 94; break; -case 100:return 57; +case 101:return 63; break; -case 101:return 56; +case 102:return 62; break; -case 102:return 59; +case 103:return 65; break; -case 103:return 58; +case 104:return 64; break; -case 104:return 98; +case 105:return 105; break; -case 105:return 99; +case 106:return 106; break; -case 106:return 65; +case 107:return 71; break; -case 107:return 43; +case 108:return 49; break; -case 108:return 44; +case 109:return 50; break; -case 109:return 34; +case 110:return 40; break; -case 110:return 35; +case 111:return 41; break; -case 111:return 53 +case 112:return 59 break; -case 112:return 54 +case 113:return 60 break; -case 113:return 109; +case 114:return 116; break; -case 114:return 10; +case 115:return 21; break; -case 115:return 11; +case 116:return 22; break; -case 116:return 12; +case 117:return 23; break; } }, -rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%[^\n]*)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/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o]==\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_\/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r|\n|\r\n)+)/,/^(?:\s)/,/^(?:$)/], -conditions: {"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"vertex":{"rules":[],"inclusive":false},"dir":{"rules":[21,22,23,24,25,26,27,28,29,30],"inclusive":false},"string":{"rules":[8,9],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],"inclusive":true}} +rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?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])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"vertex":{"rules":[],"inclusive":false},"dir":{"rules":[21,22,23,24,25,26,27,28,29,30,31],"inclusive":false},"string":{"rules":[8,9],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],"inclusive":true}} }); return lexer; })(); @@ -10991,7 +11037,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return ".label {\n font-family: ".concat(options.fontFamily, ";\n color: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: ").concat(options.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.secondBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(options.fontFamily, ";\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n"); + return ".label {\n font-family: ".concat(options.fontFamily, ";\n color: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: ").concat(options.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.clusterBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(options.fontFamily, ";\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -11002,11 +11048,12 @@ var getStyles = function getStyles(options) { /*!***************************************!*\ !*** ./src/diagrams/gantt/ganttDb.js ***! \***************************************/ -/*! exports provided: clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */ +/*! exports provided: parseDirective, clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAxisFormat", function() { return setAxisFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisFormat", function() { return getAxisFormat; }); @@ -11037,6 +11084,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } @@ -11050,6 +11098,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr + var dateFormat = ''; var axisFormat = ''; var todayMarker = ''; @@ -11063,6 +11112,9 @@ var funs = []; var inclusiveEndDates = false; // The serial order of the task in the script var lastOrder = 0; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(this, statement, context, type); +}; var clear = function clear() { sections = []; tasks = []; @@ -11514,7 +11566,7 @@ var compileTasks = function compileTasks() { var setLink = function setLink(ids, _linkStr) { var linkStr = _linkStr; - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().securityLevel !== 'loose') { linkStr = Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__["sanitizeUrl"])(_linkStr); } @@ -11546,7 +11598,7 @@ var setClass = function setClass(ids, className) { }; var setClickFun = function setClickFun(id, functionName, functionArgs) { - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().securityLevel !== 'loose') { return; } @@ -11642,6 +11694,10 @@ var bindFunctions = function bindFunctions(element) { }); }; /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().gantt; + }, clear: clear, setDateFormat: setDateFormat, getDateFormat: getDateFormat, @@ -12173,90 +12229,102 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,5],$V2=[7,9,11,12,13,14,15,16,17,18,20,27,32],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,23],$Vb=[1,25],$Vc=[1,28],$Vd=[5,7,9,11,12,13,14,15,16,17,18,20,27,32]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"gantt":4,"document":5,"EOF":6,"line":7,"SPACE":8,"statement":9,"NL":10,"dateFormat":11,"inclusiveEndDates":12,"axisFormat":13,"excludes":14,"todayMarker":15,"title":16,"section":17,"clickStatement":18,"taskTxt":19,"taskData":20,"click":21,"callbackname":22,"callbackargs":23,"href":24,"clickStatementDebug":25,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"inclusiveEndDates",13:"axisFormat",14:"excludes",15:"todayMarker",16:"title",17:"section",19:"taskTxt",20:"taskData",21:"click",22:"callbackname",23:"callbackargs",24:"href"}, -productions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]], +symbols_: {"error":2,"start":3,"directive":4,"gantt":5,"document":6,"EOF":7,"line":8,"SPACE":9,"statement":10,"NL":11,"dateFormat":12,"inclusiveEndDates":13,"axisFormat":14,"excludes":15,"todayMarker":16,"title":17,"section":18,"clickStatement":19,"taskTxt":20,"taskData":21,"openDirective":22,"typeDirective":23,"closeDirective":24,":":25,"argDirective":26,"click":27,"callbackname":28,"callbackargs":29,"href":30,"clickStatementDebug":31,"open_directive":32,"type_directive":33,"arg_directive":34,"close_directive":35,"$accept":0,"$end":1}, +terminals_: {2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"}, +productions_: [0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 1: +case 2: return $$[$0-1]; break; -case 2: +case 3: this.$ = [] break; -case 3: +case 4: $$[$0-1].push($$[$0]);this.$ = $$[$0-1] break; -case 4: case 5: +case 5: case 6: this.$ = $$[$0] break; -case 6: case 7: +case 7: case 8: this.$=[]; break; -case 8: +case 9: yy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11); break; -case 9: +case 10: yy.enableInclusiveEndDates();this.$=$$[$0].substr(18); break; -case 10: +case 11: yy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11); break; -case 11: +case 12: yy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9); break; -case 12: +case 13: yy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12); break; -case 13: +case 14: yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6); break; -case 14: +case 15: yy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8); break; -case 16: +case 17: yy.addTask($$[$0-1],$$[$0]);this.$='task'; break; -case 17: +case 21: this.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null); break; -case 18: +case 22: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]); break; -case 19: +case 23: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]); break; -case 20: +case 24: this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]); break; -case 21: +case 25: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]); break; -case 22: +case 26: this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]); break; -case 23: +case 27: this.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]); break; -case 24: case 30: +case 28: case 34: this.$=$$[$0-1] + ' ' + $$[$0]; break; -case 25: case 26: case 28: +case 29: case 30: case 32: this.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0]; break; -case 27: case 29: +case 31: case 33: this.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0]; break; +case 35: + yy.parseDirective('%%{', 'open_directive'); +break; +case 36: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 37: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 38: + yy.parseDirective('}%%', 'close_directive', 'gantt'); +break; } }, -table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])], -defaultActions: {}, +table: [{3:1,4:2,5:$V0,22:4,32:$V1},{1:[3]},{3:6,4:2,5:$V0,22:4,32:$V1},o($V2,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},{24:26,25:[1,27],35:$Vc},o([25,35],[2,36]),o($V2,[2,8],{1:[2,2]}),o($V2,[2,4]),{4:24,10:29,12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,9]),o($V2,[2,10]),o($V2,[2,11]),o($V2,[2,12]),o($V2,[2,13]),o($V2,[2,14]),o($V2,[2,15]),o($V2,[2,16]),{21:[1,30]},o($V2,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},o($V2,[2,5]),o($V2,[2,17]),o($V2,[2,21],{29:[1,36],30:[1,37]}),o($V2,[2,27],{28:[1,38]}),o($Vd,[2,19]),{24:39,35:$Vc},{35:[2,37]},o($V2,[2,22],{30:[1,40]}),o($V2,[2,23]),o($V2,[2,25],{29:[1,41]}),{11:[1,42]},o($V2,[2,24]),o($V2,[2,26]),o($Vd,[2,20])], +defaultActions: {5:[2,35],6:[2,1],28:[2,38],35:[2,37]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -12735,70 +12803,86 @@ options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:return 10; +case 0: this.begin('open_directive'); return 32; break; -case 1:/* skip whitespace */ +case 1: this.begin('type_directive'); return 33; break; -case 2:/* skip comments */ +case 2: this.popState(); this.begin('arg_directive'); return 25; break; -case 3:/* skip comments */ +case 3: this.popState(); this.popState(); return 35; +break; +case 4:return 34; +break; +case 5:/* skip comments */ break; -case 4:this.begin("href"); +case 6:/* skip comments */ break; -case 5:this.popState(); +case 7:/* do nothing */ break; -case 6:return 24; +case 8:return 11; break; -case 7:this.begin("callbackname"); +case 9:/* skip whitespace */ break; -case 8:this.popState(); +case 10:/* skip comments */ break; -case 9:this.popState(); this.begin("callbackargs"); +case 11:/* skip comments */ break; -case 10:return 22; +case 12:this.begin("href"); break; -case 11:this.popState(); +case 13:this.popState(); break; -case 12:return 23; +case 14:return 30; break; -case 13:this.begin("click"); +case 15:this.begin("callbackname"); break; -case 14:this.popState(); +case 16:this.popState(); break; -case 15:return 21; +case 17:this.popState(); this.begin("callbackargs"); break; -case 16:return 4; +case 18:return 28; break; -case 17:return 11; +case 19:this.popState(); +break; +case 20:return 29; +break; +case 21:this.begin("click"); +break; +case 22:this.popState(); break; -case 18:return 12; +case 23:return 27; break; -case 19:return 13; +case 24:return 5; break; -case 20:return 14; +case 25:return 12; break; -case 21:return 15; +case 26:return 13; break; -case 22:return 'date'; +case 27:return 14; break; -case 23:return 16; +case 28:return 15; break; -case 24:return 17; +case 29:return 16; break; -case 25:return 19; +case 30:return 'date'; break; -case 26:return 20; +case 31:return 17; break; -case 27:return ':'; +case 32:return 18; break; -case 28:return 6; +case 33:return 20; break; -case 29:return 'INVALID'; +case 34:return 21; +break; +case 35:return 25; +break; +case 36:return 7; +break; +case 37:return 'INVALID'; break; } }, -rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"callbackargs":{"rules":[11,12],"inclusive":false},"callbackname":{"rules":[8,9,10],"inclusive":false},"href":{"rules":[5,6],"inclusive":false},"click":{"rules":[14,15],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"callbackargs":{"rules":[19,20],"inclusive":false},"callbackname":{"rules":[16,17,18],"inclusive":false},"href":{"rules":[13,14],"inclusive":false},"click":{"rules":[22,23],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"inclusive":true}} }); return lexer; })(); @@ -12841,7 +12925,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ".concat(options.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(options.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(options.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(options.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(options.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(options.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(options.taskBkgColor, ";\n stroke: ").concat(options.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke: ").concat(options.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(options.doneTaskBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(options.taskTextDarkColor, " ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"); + return "\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ".concat(options.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(options.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(options.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(options.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(options.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(options.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(options.taskBkgColor, ";\n stroke: ").concat(options.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke: ").concat(options.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(options.doneTaskBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(options.textColor, " ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -15010,32 +15094,42 @@ var getStyles = function getStyles() { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[1,6],$V3=[1,7],$V4=[1,9],$V5=[1,10,12,19,20,21,22],$V6=[1,6,10,12,19,20,21,22],$V7=[19,20,21],$V8=[1,22],$V9=[6,19,20,21,22]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"pie":4,"document":5,"EOF":6,"line":7,"statement":8,"NL":9,"STR":10,"VALUE":11,"title":12,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"pie",6:"EOF",9:"NL",10:"STR",11:"VALUE",12:"title"}, -productions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]], +symbols_: {"error":2,"start":3,"eol":4,"directive":5,"PIE":6,"document":7,"line":8,"statement":9,"txt":10,"value":11,"title":12,"title_value":13,"openDirective":14,"typeDirective":15,"closeDirective":16,":":17,"argDirective":18,"NEWLINE":19,";":20,"EOF":21,"open_directive":22,"type_directive":23,"arg_directive":24,"close_directive":25,"$accept":0,"$end":1}, +terminals_: {2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"}, +productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 4: - -break; case 6: - - /*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/ - yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); + this.$ = $$[$0-1] break; -case 7: -yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6); +case 8: + yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); +break; +case 9: + this.$=$$[$0].trim();yy.setTitle(this.$); +break; +case 16: + yy.parseDirective('%%{', 'open_directive'); +break; +case 17: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 18: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 19: + yy.parseDirective('}%%', 'close_directive', 'pie'); break; } }, -table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])], -defaultActions: {4:[2,1]}, +table: [{3:1,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{1:[3]},{3:10,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{3:11,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},o($V5,[2,4],{7:12}),o($V6,[2,13]),o($V6,[2,14]),o($V6,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},o($V7,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:$V4}),{16:20,17:[1,21],25:$V8},o([17,25],[2,17]),o($V5,[2,5]),{4:23,19:$V1,20:$V2,21:$V3},{11:[1,24]},{13:[1,25]},o($V7,[2,10]),o($V9,[2,11]),{18:26,24:[1,27]},o($V9,[2,19]),o($V5,[2,6]),o($V7,[2,8]),o($V7,[2,9]),{16:28,25:$V8},{25:[2,18]},o($V9,[2,12])], +defaultActions: {9:[2,16],10:[2,1],11:[2,2],27:[2,18]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -15512,36 +15606,48 @@ stateStackSize:function stateStackSize() { }, options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { - // Pre-lexer code can go here - var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:/* do nothing */ +case 0: this.begin('open_directive'); return 22; +break; +case 1: this.begin('type_directive'); return 23; +break; +case 2: this.popState(); this.begin('arg_directive'); return 17; +break; +case 3: this.popState(); this.popState(); return 25; +break; +case 4:return 24; +break; +case 5:/* skip comments */ +break; +case 6:/* skip comments */{ console.log('Crap after close'); } break; -case 1:/* skip whitespace */ +case 7:return 19; break; -case 2:return 4 ; +case 8:/* do nothing */ break; -case 3:return 9 ; +case 9:/* ignore */ break; -case 4:return 'space'; +case 10: this.begin("title");return 12; break; -case 5:return 12; +case 11: this.popState(); return "title_value"; break; -case 6:/*console.log('begin str');*/this.begin("string"); +case 12: this.begin("string"); break; -case 7:/*console.log('pop-state');*/this.popState(); +case 13: this.popState(); break; -case 8:/*console.log('ending string')*/return "STR"; +case 14: return "txt"; break; -case 9:return "VALUE"; +case 15:return 6; break; -case 10:return 6 ; +case 16:return "value"; +break; +case 17:return 21; break; } }, -rules: [/^(?:%%[^\n]*)/i,/^(?:\s+)/i,/^(?:pie\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:title\s[^#\n;]+)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i], -conditions: {"string":{"rules":[7,8],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,5,6,9,10],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"title":{"rules":[11],"inclusive":false},"string":{"rules":[13,14],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,12,15,16,17],"inclusive":true}} }); return lexer; })(); @@ -15578,18 +15684,26 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { /*!***********************************!*\ !*** ./src/diagrams/pie/pieDb.js ***! \***********************************/ -/*! exports provided: default */ +/*! exports provided: parseDirective, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /** * */ + + var sections = {}; var title = ''; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(this, statement, context, type); +}; var addSection = function addSection(id, value) { if (typeof sections[id] === 'undefined') { @@ -15628,6 +15742,10 @@ var clear = function clear() { /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().pie; + }, addSection: addSection, getSections: getSections, cleanupValue: cleanupValue, @@ -15750,7 +15868,7 @@ var draw = function draw(txt, id) { }); } catch (e) { _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering info diagram'); - _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e); } }; /* harmony default export */ __webpack_exports__["default"] = ({ @@ -16509,15 +16627,15 @@ case 3: this.popState(); this.popState(); return 59; break; case 4:return 58; break; -case 5:/* skip comments */ +case 5:return 5; break; -case 6:/* skip comments */ +case 6:/* skip all whitespace */ break; -case 7:return 5; +case 7:/* skip same-line whitespace */ break; -case 8:/* skip all whitespace */ +case 8:/* skip comments */ break; -case 9:/* skip same-line whitespace */ +case 9:/* skip comments */ break; case 10:/* skip comments */ break; @@ -16595,8 +16713,8 @@ case 46:return 'INVALID'; break; } }, -rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"open_directive":{"rules":[1,10],"inclusive":false},"type_directive":{"rules":[2,3,10],"inclusive":false},"arg_directive":{"rules":[3,4,10],"inclusive":false},"ID":{"rules":[9,10,12],"inclusive":false},"ALIAS":{"rules":[9,10,13,14],"inclusive":false},"LINE":{"rules":[9,10,22],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"open_directive":{"rules":[1,8],"inclusive":false},"type_directive":{"rules":[2,3,8],"inclusive":false},"arg_directive":{"rules":[3,4,8],"inclusive":false},"ID":{"rules":[7,8,12],"inclusive":false},"ALIAS":{"rules":[7,8,13,14],"inclusive":false},"LINE":{"rules":[7,8,22],"inclusive":false},"INITIAL":{"rules":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"inclusive":true}} }); return lexer; })(); @@ -16677,7 +16795,7 @@ var titleWrapped = false; var sequenceNumbersEnabled = false; var wrapEnabled = false; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(this, statement, context, type); }; var addActor = function addActor(id, name, description) { // Don't allow description nulling @@ -16813,7 +16931,7 @@ var parseMessage = function parseMessage(str) { var message = { text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(), - wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? _common_common__WEBPACK_IMPORTED_MODULE_2__["default"].hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap() + wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? _common_common__WEBPACK_IMPORTED_MODULE_2__["default"].hasBreaks(_str) || undefined : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : undefined }; _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('parseMessage:', message); return message; @@ -16969,7 +17087,7 @@ var apply = function apply(param) { getTitle: getTitle, parseDirective: parseDirective, getConfig: function getConfig() { - return _config__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig().sequence; + return _config__WEBPACK_IMPORTED_MODULE_1__["getConfig"]().sequence; }, getTitleWrapped: getTitleWrapped, clear: clear, @@ -18562,24 +18680,24 @@ var size = function size() { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,28],$Vc=[1,23],$Vd=[1,24],$Ve=[1,25],$Vf=[1,26],$Vg=[1,29],$Vh=[1,32],$Vi=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],$Vj=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],$Vk=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],$Vl=[4,5,14,15,17,19,20,22,23,24,25,26,36,39]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"SD":6,"document":7,"line":8,"statement":9,"idStatement":10,"DESCR":11,"-->":12,"HIDE_EMPTY":13,"scale":14,"WIDTH":15,"COMPOSIT_STATE":16,"STRUCT_START":17,"STRUCT_STOP":18,"STATE_DESCR":19,"AS":20,"ID":21,"FORK":22,"JOIN":23,"CONCURRENT":24,"note":25,"notePosition":26,"NOTE_TEXT":27,"EDGE_STATE":28,"left_of":29,"right_of":30,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"SPACE",5:"NL",6:"SD",11:"DESCR",12:"-->",13:"HIDE_EMPTY",14:"scale",15:"WIDTH",16:"COMPOSIT_STATE",17:"STRUCT_START",18:"STRUCT_STOP",19:"STATE_DESCR",20:"AS",21:"ID",22:"FORK",23:"JOIN",24:"CONCURRENT",25:"note",27:"NOTE_TEXT",28:"EDGE_STATE",29:"left_of",30:"right_of"}, -productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]], +symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"directive":6,"SD":7,"document":8,"line":9,"statement":10,"idStatement":11,"DESCR":12,"-->":13,"HIDE_EMPTY":14,"scale":15,"WIDTH":16,"COMPOSIT_STATE":17,"STRUCT_START":18,"STRUCT_STOP":19,"STATE_DESCR":20,"AS":21,"ID":22,"FORK":23,"JOIN":24,"CONCURRENT":25,"note":26,"notePosition":27,"NOTE_TEXT":28,"openDirective":29,"typeDirective":30,"closeDirective":31,":":32,"argDirective":33,"eol":34,";":35,"EDGE_STATE":36,"left_of":37,"right_of":38,"open_directive":39,"type_directive":40,"arg_directive":41,"close_directive":42,"$accept":0,"$end":1}, +terminals_: {2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"}, +productions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 3: +case 4: /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; break; -case 4: +case 5: this.$ = [] break; -case 5: +case 6: if($$[$0]!='nl'){ $$[$0-1].push($$[$0]);this.$ = $$[$0-1] @@ -18587,38 +18705,38 @@ case 5: // console.warn('Got document',$$[$0-1], $$[$0]); break; -case 6: case 7: +case 7: case 8: this.$ = $$[$0] break; -case 8: +case 9: this.$='nl'; break; -case 9: +case 10: /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''}; break; -case 10: +case 11: /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])}; break; -case 11: +case 12: /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/ this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}}; break; -case 12: +case 13: /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/ this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()}; break; -case 16: +case 17: /* console.warn('Adding document for state without id ', $$[$0-3]);*/ this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] } break; -case 17: +case 18: var id=$$[$0]; var description = $$[$0-2].trim(); @@ -18631,40 +18749,52 @@ case 17: break; -case 18: +case 19: //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]); this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] } break; -case 19: +case 20: this.$={ stmt: 'state', id: $$[$0], type: 'fork' } break; -case 20: +case 21: this.$={ stmt: 'state', id: $$[$0], type: 'join' } break; -case 21: +case 22: this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' } break; -case 22: +case 23: /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/ this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}}; break; -case 24: case 25: +case 30: case 31: this.$=$$[$0]; break; +case 34: + yy.parseDirective('%%{', 'open_directive'); +break; +case 35: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 36: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 37: + yy.parseDirective('}%%', 'close_directive', 'state'); +break; } }, -table: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])], -defaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]}, +table: [{3:1,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},o([1,4,5,14,15,17,20,22,23,24,25,26,36,39],$V4,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},{31:30,32:[1,31],42:$Vh},o([32,42],[2,35]),o($Vi,[2,6]),{6:27,10:33,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,8]),o($Vi,[2,9]),o($Vi,[2,10],{12:[1,34],13:[1,35]}),o($Vi,[2,14]),{16:[1,36]},o($Vi,[2,16],{18:[1,37]}),{21:[1,38]},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},o($Vi,[2,25]),o($Vj,[2,30]),o($Vj,[2,31]),o($Vk,[2,26]),{33:43,41:[1,44]},o($Vk,[2,37]),o($Vi,[2,7]),o($Vi,[2,11]),{11:45,22:$Vb,36:$Vg},o($Vi,[2,15]),o($Vl,$V4,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:$Vh},{42:[2,36]},o($Vi,[2,12],{12:[1,51]}),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,52],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},o($Vk,[2,27]),o($Vi,[2,13]),o($Vi,[2,17]),o($Vl,$V4,{8:56}),o($Vi,[2,23]),o($Vi,[2,24]),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,57],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,19])], +defaultActions: {7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -19143,98 +19273,112 @@ options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:return 5; +case 0: this.begin('open_directive'); return 39; break; -case 1:/* skip all whitespace */ +case 1: this.begin('type_directive'); return 40; break; -case 2:/* skip same-line whitespace */ +case 2: this.popState(); this.begin('arg_directive'); return 32; break; -case 3:/* skip comments */ +case 3: this.popState(); this.popState(); return 42; +break; +case 4:return 41; +break; +case 5:/* skip comments */ break; -case 4:/* skip comments */ +case 6:/* skip comments */{ console.log('Crap after close'); } break; -case 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; +case 7:return 5; break; -case 6:return 15; +case 8:/* skip all whitespace */ break; -case 7:this.popState(); +case 9:/* skip same-line whitespace */ break; -case 8: this.pushState('STATE'); +case 10:/* skip comments */ break; -case 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22; +case 11:/* skip comments */ break; -case 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23; +case 12: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 15; break; -case 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22; +case 13:return 16; break; -case 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23; +case 14:this.popState(); break; -case 13:this.begin("STATE_STRING"); +case 15: this.pushState('STATE'); break; -case 14:this.popState();this.pushState('STATE_ID');return "AS"; +case 16:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 23; break; -case 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return "ID"; +case 17:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24; break; -case 16:this.popState(); +case 18:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 23; break; -case 17: /*console.log('Long description:', yy_.yytext);*/return "STATE_DESCR"; +case 19:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24; break; -case 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16; +case 20:this.begin("STATE_STRING"); break; -case 19:this.popState(); +case 21:this.popState();this.pushState('STATE_ID');return "AS"; break; -case 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17; +case 22:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return "ID"; break; -case 21: /*console.log('Ending struct');*/ this.popState(); return 18; +case 23:this.popState(); break; -case 22:/* nothing */ +case 24: /*console.log('Long description:', yy_.yytext);*/return "STATE_DESCR"; break; -case 23: this.begin('NOTE'); return 25; +case 25:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 17; break; -case 24: this.popState();this.pushState('NOTE_ID');return 29; +case 26:this.popState(); break; -case 25: this.popState();this.pushState('NOTE_ID');return 30; +case 27:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 18; break; -case 26: this.popState();this.pushState('FLOATING_NOTE'); +case 28: /*console.log('Ending struct');*/ this.popState(); return 19; break; -case 27:this.popState();this.pushState('FLOATING_NOTE_ID');return "AS"; +case 29:/* nothing */ break; -case 28:/**/ +case 30: this.begin('NOTE'); return 26; break; -case 29: /*console.log('Floating note text: ', yy_.yytext);*/return "NOTE_TEXT"; +case 31: this.popState();this.pushState('NOTE_ID');return 37; break; -case 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return "ID"; +case 32: this.popState();this.pushState('NOTE_ID');return 38; break; -case 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21; +case 33: this.popState();this.pushState('FLOATING_NOTE'); break; -case 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27; +case 34:this.popState();this.pushState('FLOATING_NOTE_ID');return "AS"; break; -case 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27; +case 35:/**/ break; -case 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; +case 36: /*console.log('Floating note text: ', yy_.yytext);*/return "NOTE_TEXT"; break; -case 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; +case 37:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return "ID"; break; -case 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; +case 38: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 22; break; -case 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28; +case 39: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 28; break; -case 38: /*console.log('=>ID=',yy_.yytext);*/ return 21; +case 40: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 28; break; -case 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; +case 41: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; break; -case 40:return 12; +case 42: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; break; -case 41:return 24; +case 43: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 14; break; -case 42:return 5; +case 44: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 36; break; -case 43:return 'INVALID'; +case 45: /*console.log('=>ID=',yy_.yytext);*/ return 22; +break; +case 46: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 12; +break; +case 47:return 13; +break; +case 48:return 25; +break; +case 49:return 5; +break; +case 50:return 'INVALID'; break; } }, -rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"LINE":{"rules":[2,3],"inclusive":false},"struct":{"rules":[2,3,8,21,22,23,37,38,39,40,41],"inclusive":false},"FLOATING_NOTE_ID":{"rules":[30],"inclusive":false},"FLOATING_NOTE":{"rules":[27,28,29],"inclusive":false},"NOTE_TEXT":{"rules":[32,33],"inclusive":false},"NOTE_ID":{"rules":[31],"inclusive":false},"NOTE":{"rules":[24,25,26],"inclusive":false},"SCALE":{"rules":[6,7],"inclusive":false},"ALIAS":{"rules":[],"inclusive":false},"STATE_ID":{"rules":[15],"inclusive":false},"STATE_STRING":{"rules":[16,17],"inclusive":false},"FORK_STATE":{"rules":[],"inclusive":false},"STATE":{"rules":[2,3,9,10,11,12,13,14,18,19,20],"inclusive":false},"ID":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"LINE":{"rules":[9,10],"inclusive":false},"close_directive":{"rules":[9,10],"inclusive":false},"arg_directive":{"rules":[3,4,9,10],"inclusive":false},"type_directive":{"rules":[2,3,9,10],"inclusive":false},"open_directive":{"rules":[1,9,10],"inclusive":false},"struct":{"rules":[9,10,15,28,29,30,44,45,46,47,48],"inclusive":false},"FLOATING_NOTE_ID":{"rules":[37],"inclusive":false},"FLOATING_NOTE":{"rules":[34,35,36],"inclusive":false},"NOTE_TEXT":{"rules":[39,40],"inclusive":false},"NOTE_ID":{"rules":[38],"inclusive":false},"NOTE":{"rules":[31,32,33],"inclusive":false},"SCALE":{"rules":[13,14],"inclusive":false},"ALIAS":{"rules":[],"inclusive":false},"STATE_ID":{"rules":[22],"inclusive":false},"STATE_STRING":{"rules":[23,24],"inclusive":false},"FORK_STATE":{"rules":[],"inclusive":false},"STATE":{"rules":[9,10,16,17,18,19,20,21,25,26,27],"inclusive":false},"ID":{"rules":[9,10],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],"inclusive":true}} }); return lexer; })(); @@ -19695,11 +19839,12 @@ var drawEdge = function drawEdge(elem, path, relation) { /*!***************************************!*\ !*** ./src/diagrams/state/stateDb.js ***! \***************************************/ -/*! exports provided: addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */ +/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addState", function() { return addState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getState", function() { return getState; }); @@ -19712,16 +19857,23 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relationType", function() { return relationType; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./src/utils.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + + var clone = function clone(o) { return JSON.parse(JSON.stringify(o)); }; var rootDoc = []; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_2__["default"].parseDirective(this, statement, context, type); +}; var setRootDoc = function setRootDoc(o) { _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Setting root doc', o); // rootDoc = { id: 'root', doc: o }; @@ -19980,6 +20132,10 @@ var trimColon = function trimColon(str) { }; /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().state; + }, addState: addState, clear: clear, getState: getState, @@ -20243,13 +20399,12 @@ var draw = function draw(text, id) { nodeDb = {}; var parser = _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3___default.a.parser; parser.yy = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition + // try { - try { - parser.parse(text); - } catch (err) { - _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].debug('Parsing failed'); - } // Fetch the default direction, use TD if none was found - + parser.parse(text); // } catch (err) { + // logger.error('Parsing failed', err); + // } + // Fetch the default direction, use TD if none was found var dir = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection(); @@ -20342,7 +20497,6 @@ var draw = function draw(text, id) { rect.setAttribute('ry', 0); rect.setAttribute('width', dim.width); rect.setAttribute('height', dim.height); - rect.setAttribute('style', 'fill:#e8e8e8;'); label.insertBefore(rect, label.firstChild); } } @@ -20646,7 +20800,7 @@ var renderDoc = function renderDoc(doc, diagram, parentId, altBkg) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "g.stateGroup text {\n fill: ".concat(options.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ").concat(options.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(options.labelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(options.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ").concat(options.labelColor, ";\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(options.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(options.textColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(options.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(options.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(options.altBackground ? options.altBackground : '#efefef', ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(options.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(options.lineColor, ";\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n"); + return "g.stateGroup text {\n fill: ".concat(options.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ").concat(options.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(options.labelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(options.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(options.tertiaryColor, ";\n opacity: 0.2;\n}\n.edgeLabel .label text {\n fill: ").concat(options.tertiaryTextColor, ";\n}\n\n.stateLabel text {\n fill: ").concat(options.labelColor, ";\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: ").concat(options.primaryBorderColor, ";\n stroke: black;\n}\n.node circle.state-end {\n fill: ").concat(options.primaryBorderColor, ";\n stroke: ").concat(options.background, ";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(options.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(options.textColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(options.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(options.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(options.altBackground ? options.altBackground : '#efefef', ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(options.noteTextColor, ";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(options.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(options.lineColor, ";\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -20672,6 +20826,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTask", function() { return addTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTaskOrg", function() { return addTaskOrg; }); /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } @@ -20681,13 +20836,14 @@ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + var title = ''; var currentSection = ''; var sections = []; var tasks = []; var rawTasks = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(this, statement, context, type); }; var clear = function clear() { sections.length = 0; @@ -20791,6 +20947,9 @@ var getActors = function getActors() { /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_1__["getConfig"]().journey; + }, clear: clear, setTitle: setTitle, getTitle: getTitle, @@ -21213,7 +21372,7 @@ case 17: $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 18: - yy.parseDirective('}%%', 'close_directive', 'sequence'); + yy.parseDirective('}%%', 'close_directive', 'journey'); break; } }, @@ -22274,8 +22433,8 @@ __webpack_require__.r(__webpack_exports__); var init = function init() { var _this = this; - var conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init'); - + var conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig(); + console.log('Starting rendering diagrams (init) - mermaid.init', conf); var nodes; if (arguments.length >= 2) { @@ -22312,13 +22471,13 @@ var init = function init() { if (typeof mermaid.startOnLoad !== 'undefined') { _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load inner: ' + mermaid.startOnLoad); - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({ + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].updateSiteConfig({ startOnLoad: mermaid.startOnLoad }); } if (typeof mermaid.ganttConfig !== 'undefined') { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({ + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].updateSiteConfig({ gantt: mermaid.ganttConfig }); } @@ -22457,53 +22616,53 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(d3__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../package.json */ "./package.json"); var _package_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ "./package.json", 1); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ "./src/config.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); -/* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js"); -/* harmony import */ var _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer-v2 */ "./src/diagrams/flowchart/flowRenderer-v2.js"); -/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison"); -/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js"); -/* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js"); -/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison"); -/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js"); -/* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js"); -/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison"); -/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js"); -/* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js"); -/* harmony import */ var _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/classRenderer-v2 */ "./src/diagrams/class/classRenderer-v2.js"); -/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison"); -/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js"); -/* harmony import */ var _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/state/stateRenderer */ "./src/diagrams/state/stateRenderer.js"); -/* harmony import */ var _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/state/stateRenderer-v2 */ "./src/diagrams/state/stateRenderer-v2.js"); -/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/state/parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison"); -/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__); -/* harmony import */ var _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/state/stateDb */ "./src/diagrams/state/stateDb.js"); -/* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js"); -/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison"); -/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js"); -/* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js"); -/* harmony import */ var _errorRenderer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./errorRenderer */ "./src/errorRenderer.js"); -/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison"); -/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js"); -/* harmony import */ var _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./diagrams/pie/pieRenderer */ "./src/diagrams/pie/pieRenderer.js"); -/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./diagrams/pie/parser/pie */ "./src/diagrams/pie/parser/pie.jison"); -/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./diagrams/pie/pieDb */ "./src/diagrams/pie/pieDb.js"); -/* harmony import */ var _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./diagrams/er/erDb */ "./src/diagrams/er/erDb.js"); -/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./diagrams/er/parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison"); -/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(_diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__); -/* harmony import */ var _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./diagrams/er/erRenderer */ "./src/diagrams/er/erRenderer.js"); -/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./diagrams/user-journey/parser/journey */ "./src/diagrams/user-journey/parser/journey.jison"); -/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(_diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__); -/* harmony import */ var _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./diagrams/user-journey/journeyDb */ "./src/diagrams/user-journey/journeyDb.js"); -/* harmony import */ var _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./diagrams/user-journey/journeyRenderer */ "./src/diagrams/user-journey/journeyRenderer.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); +/* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js"); +/* harmony import */ var _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer-v2 */ "./src/diagrams/flowchart/flowRenderer-v2.js"); +/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison"); +/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js"); +/* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js"); +/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison"); +/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js"); +/* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js"); +/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison"); +/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__); +/* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js"); +/* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js"); +/* harmony import */ var _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/classRenderer-v2 */ "./src/diagrams/class/classRenderer-v2.js"); +/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison"); +/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17__); +/* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js"); +/* harmony import */ var _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/state/stateRenderer */ "./src/diagrams/state/stateRenderer.js"); +/* harmony import */ var _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/state/stateRenderer-v2 */ "./src/diagrams/state/stateRenderer-v2.js"); +/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/state/parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison"); +/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21__); +/* harmony import */ var _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/state/stateDb */ "./src/diagrams/state/stateDb.js"); +/* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js"); +/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison"); +/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24__); +/* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js"); +/* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js"); +/* harmony import */ var _errorRenderer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./errorRenderer */ "./src/errorRenderer.js"); +/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison"); +/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28__); +/* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js"); +/* harmony import */ var _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./diagrams/pie/pieRenderer */ "./src/diagrams/pie/pieRenderer.js"); +/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./diagrams/pie/parser/pie */ "./src/diagrams/pie/parser/pie.jison"); +/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31__); +/* harmony import */ var _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./diagrams/pie/pieDb */ "./src/diagrams/pie/pieDb.js"); +/* harmony import */ var _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./diagrams/er/erDb */ "./src/diagrams/er/erDb.js"); +/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./diagrams/er/parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison"); +/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(_diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34__); +/* harmony import */ var _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./diagrams/er/erRenderer */ "./src/diagrams/er/erRenderer.js"); +/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./diagrams/user-journey/parser/journey */ "./src/diagrams/user-journey/parser/journey.jison"); +/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36__); +/* harmony import */ var _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./diagrams/user-journey/journeyDb */ "./src/diagrams/user-journey/journeyDb.js"); +/* harmony import */ var _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./diagrams/user-journey/journeyRenderer */ "./src/diagrams/user-journey/journeyRenderer.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./config */ "./src/config.js"); /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./styles */ "./src/styles.js"); /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } @@ -22522,7 +22681,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi */ - + // import * as configApi from './config'; +// // , { +// // setConfig, +// // configApi.getConfig, +// // configApi.updateSiteConfig, +// // configApi.setSiteConfig, +// // configApi.getSiteConfig, +// // configApi.defaultConfig +// // } @@ -22565,87 +22732,87 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi function parse(text) { - var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(text); + var graphInit = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectInit(text); if (graphInit) { reinitialize(graphInit); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('reinit ', graphInit); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('reinit ', graphInit); } - var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(text); + var graphType = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectType(text); var parser; - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Type ' + graphType); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Type ' + graphType); switch (graphType) { case 'git': - parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default.a; - parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__["default"]; + parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24___default.a; + parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_25__["default"]; break; case 'flowchart': - _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear(); - parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a; - parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"]; + _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].clear(); + parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default.a; + parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"]; break; case 'flowchart-v2': - _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear(); - parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a; - parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"]; + _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].clear(); + parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default.a; + parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"]; break; case 'sequence': - parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default.a; - parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__["default"]; + parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default.a; + parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__["default"]; break; case 'gantt': - parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default.a; - parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"]; + parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default.a; + parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"]; break; case 'class': - parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a; - parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"]; + parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default.a; + parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"]; break; case 'classDiagram': - parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a; - parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"]; + parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default.a; + parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"]; break; case 'state': - parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a; - parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"]; + parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default.a; + parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__["default"]; break; case 'stateDiagram': - parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a; - parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"]; + parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default.a; + parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__["default"]; break; case 'info': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('info info info'); - parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default.a; - parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('info info info'); + parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28___default.a; + parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_29__["default"]; break; case 'pie': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('pie'); - parser = _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default.a; - parser.parser.yy = _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('pie'); + parser = _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31___default.a; + parser.parser.yy = _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_32__["default"]; break; case 'er': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('er'); - parser = _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default.a; - parser.parser.yy = _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('er'); + parser = _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34___default.a; + parser.parser.yy = _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_33__["default"]; break; case 'journey': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Journey'); - parser = _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default.a; - parser.parser.yy = _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Journey'); + parser = _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36___default.a; + parser.parser.yy = _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_37__["default"]; break; } @@ -22722,18 +22889,20 @@ var decodeEntities = function decodeEntities(text) { */ var render = function render(id, _txt, cb, container) { + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); var txt = _txt; - var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(txt); + var graphInit = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectInit(txt); if (graphInit) { - reinitialize(graphInit); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](graphInit); } else { - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(); - var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); - updateRendererConfigs(siteConfig); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); + var siteConfig = _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](siteConfig); } - var cnf = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])(); // Check the maximum allowed text size + var cnf = _config__WEBPACK_IMPORTED_MODULE_39__["getConfig"](); + console.log('Render', cnf); // Check the maximum allowed text size if (_txt.length > cnf.maxTextSize) { txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'; @@ -22761,7 +22930,7 @@ var render = function render(id, _txt, cb, container) { window.txt = txt; txt = encodeEntities(txt); var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node(); - var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(txt); // insert inline style into svg + var graphType = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectType(txt); // insert inline style into svg var svg = element.firstChild; var firstChild = svg.firstChild; @@ -22783,7 +22952,7 @@ var render = function render(id, _txt, cb, container) { if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') { - var classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].getClasses(txt); + var classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].getClasses(txt); for (var className in classes) { userStyles += "\n.".concat(className, " > * { ").concat(classes[className].styles.join(' !important; '), " !important; }"); @@ -22813,20 +22982,20 @@ var render = function render(id, _txt, cb, container) { switch (graphType) { case 'git': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(cnf.git); - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].draw(txt, id, false); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].setConf(cnf.git); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].draw(txt, id, false); break; case 'flowchart': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(cnf.flowchart); - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].setConf(cnf.flowchart); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].draw(txt, id, false); break; case 'flowchart-v2': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(cnf.flowchart); - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].draw(txt, id, false); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(cnf.flowchart); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false); break; case 'sequence': @@ -22834,70 +23003,70 @@ var render = function render(id, _txt, cb, container) { if (cnf.sequenceDiagram) { // backwards compatibility - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram)); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram)); console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'); } else { - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(cnf.sequence); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(cnf.sequence); } - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].draw(txt, id); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].draw(txt, id); break; case 'gantt': cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(cnf.gantt); - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].draw(txt, id); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].setConf(cnf.gantt); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].draw(txt, id); break; case 'class': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(cnf.class); - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].draw(txt, id); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].setConf(cnf.class); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].draw(txt, id); break; case 'classDiagram': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].setConf(cnf.class); - _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].draw(txt, id); + _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(cnf.class); + _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__["default"].draw(txt, id); break; case 'state': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(cnf.state); - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].draw(txt, id); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].setConf(cnf.state); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].draw(txt, id); break; case 'stateDiagram': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(cnf.state); - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].draw(txt, id); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(cnf.state); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].draw(txt, id); break; case 'info': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(cnf.class); - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].setConf(cnf.class); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'pie': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(cnf.class); - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].setConf(cnf.class); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'er': - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(cnf.er); - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].setConf(cnf.er); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'journey': - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(cnf.journey); - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].setConf(cnf.journey); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; } } catch (e) { // errorRenderer.setConf(cnf.class); - _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].draw(id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _errorRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].draw(id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); throw e; } @@ -22914,7 +23083,7 @@ var render = function render(id, _txt, cb, container) { // Fix for when the base tag is used var svgCode = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node().innerHTML; - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute); if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') { svgCode = svgCode.replace(/marker-end="url\(.*?#/g, 'marker-end="url(#', 'g'); @@ -22926,22 +23095,22 @@ var render = function render(id, _txt, cb, container) { switch (graphType) { case 'flowchart': case 'flowchart-v2': - cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].bindFunctions); + cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].bindFunctions); break; case 'gantt': - cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"].bindFunctions); + cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"].bindFunctions); break; case 'class': - cb(svgCode, _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"].bindFunctions); + cb(svgCode, _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"].bindFunctions); break; default: cb(svgCode); } } else { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('CB = undefined!'); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('CB = undefined!'); } var node = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node(); @@ -22955,7 +23124,7 @@ var render = function render(id, _txt, cb, container) { var currentDirective = {}; -var parseDirective = function parseDirective(statement, context, type) { +var parseDirective = function parseDirective(p, statement, context, type) { try { if (statement !== undefined) { statement = statement.trim(); @@ -22974,19 +23143,19 @@ var parseDirective = function parseDirective(statement, context, type) { break; case 'close_directive': - handleDirective(currentDirective, type); + handleDirective(p, currentDirective, type); currentDirective = null; break; } } } catch (error) { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error("Error while rendering sequenceDiagram directive: ".concat(statement, " jison context: ").concat(context)); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error(error.message); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error("Error while rendering sequenceDiagram directive: ".concat(statement, " jison context: ").concat(context)); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(error.message); } }; -var handleDirective = function handleDirective(directive, type) { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug("Directive type=".concat(directive.type, " with args:"), directive.args); +var handleDirective = function handleDirective(p, directive, type) { + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug("Directive type=".concat(directive.type, " with args:"), directive.args); switch (directive.type) { case 'init': @@ -23003,73 +23172,60 @@ var handleDirective = function handleDirective(directive, type) { } }); reinitialize(directive.args); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](directive.args); break; } case 'wrap': case 'nowrap': - directive.args = { - config: { - wrap: directive.type === 'wrap' - } - }; - ['config'].forEach(function (prop) { - if (typeof directive.args[prop] !== 'undefined') { - if (type === 'flowchart-v2') { - type = 'flowchart'; - } + if (p && p['setWrap']) { + p.setWrap(directive.type === 'wrap'); + } - directive.args[type] = directive.args[prop]; - delete directive.args[prop]; - } - }); - reinitialize(directive.args); break; default: - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].warn("Unhandled directive: source: '%%{".concat(directive.type, ": ").concat(JSON.stringify(directive.args ? directive.args : {}), "}%%"), directive); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].warn("Unhandled directive: source: '%%{".concat(directive.type, ": ").concat(JSON.stringify(directive.args ? directive.args : {}), "}%%"), directive); break; } }; function updateRendererConfigs(conf) { - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(conf.git); - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(conf.flowchart); - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(conf.flowchart); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].setConf(conf.git); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].setConf(conf.flowchart); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(conf.flowchart); if (typeof conf['sequenceDiagram'] !== 'undefined') { - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["assignWithDepth"])(conf.sequence, conf['sequenceDiagram'])); - } - - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(conf.sequence); - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(conf.gantt); - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(conf.class); - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(conf.state); - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(conf.state); - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(conf.class); - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(conf.class); - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(conf.er); - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(conf.journey); - _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].setConf(conf.class); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(Object(_utils__WEBPACK_IMPORTED_MODULE_4__["assignWithDepth"])(conf.sequence, conf['sequenceDiagram'])); + } + + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(conf.sequence); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].setConf(conf.gantt); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].setConf(conf.class); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].setConf(conf.state); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(conf.state); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].setConf(conf.class); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].setConf(conf.class); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].setConf(conf.er); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].setConf(conf.journey); + _errorRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(conf.class); } function reinitialize(options) { - // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options); - if (options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) { - // Todo merge with user options - options.themeVariables = options.theme; - } // Set default options - - - var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); - updateRendererConfigs(config); - Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.reinitialize: ', config); + "mermaidAPI.reinitialize: v".concat(_package_json__WEBPACK_IMPORTED_MODULE_2__.version), JSON.stringify(options), options.themeVariables.primaryColor; // // if (options.theme && theme[options.theme]) { + // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables); + // // } + // // Set default options + // const config = + // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig(); + // updateRendererConfigs(config); + // setLogLevel(config.logLevel); + // logger.debug('mermaidAPI.reinitialize: ', config); } function initialize(options) { - // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`); - // Set default options + console.trace("mermaidAPI.initialize: v".concat(_package_json__WEBPACK_IMPORTED_MODULE_2__.version, " ").concat(options)); // Set default options + if (options && options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) { // Todo merge with user options options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme].getThemeVariables(options.themeVariables); @@ -23077,15 +23233,11 @@ function initialize(options) { if (options) options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"].default.getThemeVariables(); } - var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setSiteConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); + var config = _typeof(options) === 'object' ? _config__WEBPACK_IMPORTED_MODULE_39__["setSiteConfig"](options) : _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); updateRendererConfigs(config); - Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.initialize: ', config); -} // function getConfig () { -// console.warn('get config') -// return config -// } - + Object(_logger__WEBPACK_IMPORTED_MODULE_3__["setLogLevel"])(config.logLevel); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('mermaidAPI.initialize: ', config); +} var mermaidAPI = Object.freeze({ render: render, @@ -23093,22 +23245,23 @@ var mermaidAPI = Object.freeze({ parseDirective: parseDirective, initialize: initialize, reinitialize: reinitialize, - getConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"], - getSiteConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"], + getConfig: _config__WEBPACK_IMPORTED_MODULE_39__["getConfig"], + getSiteConfig: _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"], + updateSiteConfig: _config__WEBPACK_IMPORTED_MODULE_39__["updateSiteConfig"], reset: function reset() { - // console.warn('reset'); - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(); - var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); + console.warn('reset'); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); + var siteConfig = _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); updateRendererConfigs(siteConfig); }, globalReset: function globalReset() { - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(_config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig); - updateRendererConfigs(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])()); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](_config__WEBPACK_IMPORTED_MODULE_39__["defaultConfig"]); + updateRendererConfigs(_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]()); }, - defaultConfig: _config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig + defaultConfig: _config__WEBPACK_IMPORTED_MODULE_39__["defaultConfig"] }); -Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().logLevel); -_config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])()); +Object(_logger__WEBPACK_IMPORTED_MODULE_3__["setLogLevel"])(_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]().logLevel); +_config__WEBPACK_IMPORTED_MODULE_39__["reset"](_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]()); /* harmony default export */ __webpack_exports__["default"] = (mermaidAPI); /** * ## mermaidAPI configuration defaults @@ -23294,86 +23447,110 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d +var mkBorder = function mkBorder(col, darkMode) { + return darkMode ? Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(col, { + s: -40, + l: 10 + }) : Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(col, { + s: -40, + l: -10 + }); +}; + var Theme = /*#__PURE__*/ function () { function Theme() { _classCallCheck(this, Theme); - /* Base variables */ - this.primaryColor = '#9f33be'; - this.secondaryColor = '#b20238'; - this.tertiaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 30); - this.relationColor = '#000'; // this.primaryColor = '#fa255e'; + /** # Base variables */ + + /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */ + this.background = '#f4f4f4'; // this.background = '#0c0c0c'; + + /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */ + + this.darkMode = false; // this.darkMode = true; + // this.primaryColor = '#1f1f00'; + + this.noteBkgColor = '#fff5ad'; + this.noteTextColor = '#333'; // this.primaryColor = '#9f33be'; + + this.primaryColor = '#f0fff0'; // this.primaryColor = '#fa255e'; + // this.primaryColor = '#ECECFF'; // this.secondaryColor = '#c39ea0'; // this.tertiaryColor = '#f8e5e5'; - // this.primaryColor = '#ECECFF'; - // this.secondaryColor = '#ffffde'; - // this.tertiaryColor = '#ffffde'; - this.background = 'white'; - this.lineColor = '#333333'; + this.secondaryColor = '#dfdfde'; + this.tertiaryColor = '#CCCCFF'; this.border1 = '#9370DB'; this.arrowheadColor = '#333333'; this.fontFamily = '"trebuchet ms", verdana, arial'; this.fontSize = '16px'; - this.labelBackground = '#e8e8e8'; this.textColor = '#333'; - this.noteBkgColor = '#fff5ad'; - this.noteBorderColor = '#aaaa33'; this.updateColors(); + this.relationColor = '#000'; } _createClass(Theme, [{ key: "updateColors", value: function updateColors() { this.secondBkg = this.tertiaryColor; + /* Main */ + + this.secondaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, { + h: 120 + }); + this.tertiaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, { + h: -160 + }); + console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode); + this.primaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.primaryColor); + this.secondaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.secondaryColor); + this.tertiaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.tertiaryColor); + this.lineColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.background); + this.textColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.background); /* Flowchart variables */ this.nodeBkg = this.primaryColor; this.mainBkg = this.primaryColor; - this.nodeBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.primaryColor, 23); // border 1 - + this.nodeBorder = this.primaryBorderColor; this.clusterBkg = this.tertiaryColor; - this.clusterBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.tertiaryColor, 30); + this.clusterBorder = this.tertiaryBorderColor; this.defaultLinkColor = this.lineColor; - this.titleColor = this.textColor; + this.titleColor = this.tertiaryTextColor; this.edgeLabelBackground = this.labelBackground; /* Sequence Diagram variables */ // this.actorBorder = lighten(this.border1, 0.5); - this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 23); + this.actorBorder = this.primaryBorderColor; this.actorBkg = this.mainBkg; - this.actorTextColor = 'black'; + this.actorTextColor = this.primaryTextColor; this.actorLineColor = 'grey'; this.labelBoxBkgColor = this.actorBkg; this.signalColor = this.textColor; this.signalTextColor = this.textColor; this.labelBoxBorderColor = this.actorBorder; this.labelTextColor = this.actorTextColor; - this.loopTextColor = this.actorTextColor; - this.noteBorderColor = this.border2; - this.noteTextColor = this.actorTextColor; + this.loopTextColor = this.actorTextColor; // this.noteTextColor = this.actorTextColor; + this.activationBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.secondaryColor, 10); this.activationBkgColor = this.secondaryColor; this.sequenceNumberColor = 'white'; /* Gantt chart variables */ - this.taskTextColor = this.taskTextLightColor; - this.taskTextOutsideColor = this.taskTextDarkColor; this.sectionBkgColor = this.tertiaryColor; this.altSectionBkgColor = 'white'; this.sectionBkgColor = this.secondaryColor; this.sectionBkgColor2 = this.tertiaryColor; this.altSectionBkgColor = 'white'; this.sectionBkgColor2 = this.primaryColor; - this.taskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23); + this.taskBorderColor = this.primaryBorderColor; this.taskBkgColor = this.primaryColor; - this.taskTextLightColor = 'white'; - this.taskTextColor = 'calculated'; - this.taskTextDarkColor = 'black'; - this.taskTextOutsideColor = 'calculated'; - this.taskTextClickableColor = '#003163'; this.activeTaskBorderColor = this.primaryColor; this.activeTaskBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23); this.gridColor = 'lightgrey'; @@ -23382,9 +23559,17 @@ function () { this.critBorderColor = '#ff8888'; this.critBkgColor = 'red'; this.todayLineColor = 'red'; + this.taskTextColor = this.textColor; + this.taskTextOutsideColor = this.textColor; + this.taskTextLightColor = this.textColor; + this.taskTextColor = this.primaryTextColor; + this.taskTextDarkColor = this.textColor; + this.taskTextOutsideColor = 'calculated'; + this.taskTextClickableColor = '#003163'; /* state colors */ - this.labelColor = 'black'; + this.labelColor = this.primaryTextColor; + this.altBackground = this.tertiaryColor; this.errorBkgColor = '#552222'; this.errorTextColor = '#552222'; /* state colors */ diff --git a/dist/mermaid.core.js.map b/dist/mermaid.core.js.map index 560396f057..cd2ff5dd54 100644 --- a/dist/mermaid.core.js.map +++ b/dist/mermaid.core.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://mermaid/webpack/universalModuleDefinition","webpack://mermaid/webpack/bootstrap","webpack://mermaid/./node_modules/path-browserify/index.js","webpack://mermaid/./node_modules/process/browser.js","webpack://mermaid/(webpack)/buildin/module.js","webpack://mermaid/./src/config.js","webpack://mermaid/./src/dagre-wrapper/clusters.js","webpack://mermaid/./src/dagre-wrapper/createLabel.js","webpack://mermaid/./src/dagre-wrapper/edges.js","webpack://mermaid/./src/dagre-wrapper/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-circle.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-ellipse.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-line.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-node.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-polygon.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-rect.js","webpack://mermaid/./src/dagre-wrapper/markers.js","webpack://mermaid/./src/dagre-wrapper/mermaid-graphlib.js","webpack://mermaid/./src/dagre-wrapper/nodes.js","webpack://mermaid/./src/dagre-wrapper/shapes/note.js","webpack://mermaid/./src/dagre-wrapper/shapes/util.js","webpack://mermaid/./src/diagrams/class/classDb.js","webpack://mermaid/./src/diagrams/class/classRenderer-v2.js","webpack://mermaid/./src/diagrams/class/classRenderer.js","webpack://mermaid/./src/diagrams/class/parser/classDiagram.jison","webpack://mermaid/./src/diagrams/class/styles.js","webpack://mermaid/./src/diagrams/class/svgDraw.js","webpack://mermaid/./src/diagrams/common/common.js","webpack://mermaid/./src/diagrams/er/erDb.js","webpack://mermaid/./src/diagrams/er/erMarkers.js","webpack://mermaid/./src/diagrams/er/erRenderer.js","webpack://mermaid/./src/diagrams/er/parser/erDiagram.jison","webpack://mermaid/./src/diagrams/er/styles.js","webpack://mermaid/./src/diagrams/flowchart/flowChartShapes.js","webpack://mermaid/./src/diagrams/flowchart/flowDb.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer-v2.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer.js","webpack://mermaid/./src/diagrams/flowchart/parser/flow.jison","webpack://mermaid/./src/diagrams/flowchart/styles.js","webpack://mermaid/./src/diagrams/gantt/ganttDb.js","webpack://mermaid/./src/diagrams/gantt/ganttRenderer.js","webpack://mermaid/./src/diagrams/gantt/parser/gantt.jison","webpack://mermaid/./src/diagrams/gantt/styles.js","webpack://mermaid/./src/diagrams/git/gitGraphAst.js","webpack://mermaid/./src/diagrams/git/gitGraphRenderer.js","webpack://mermaid/./src/diagrams/git/parser/gitGraph.jison","webpack://mermaid/./src/diagrams/git/styles.js","webpack://mermaid/./src/diagrams/info/infoDb.js","webpack://mermaid/./src/diagrams/info/infoRenderer.js","webpack://mermaid/./src/diagrams/info/parser/info.jison","webpack://mermaid/./src/diagrams/info/styles.js","webpack://mermaid/./src/diagrams/pie/parser/pie.jison","webpack://mermaid/./src/diagrams/pie/pieDb.js","webpack://mermaid/./src/diagrams/pie/pieRenderer.js","webpack://mermaid/./src/diagrams/pie/styles.js","webpack://mermaid/./src/diagrams/sequence/parser/sequenceDiagram.jison","webpack://mermaid/./src/diagrams/sequence/sequenceDb.js","webpack://mermaid/./src/diagrams/sequence/sequenceRenderer.js","webpack://mermaid/./src/diagrams/sequence/styles.js","webpack://mermaid/./src/diagrams/sequence/svgDraw.js","webpack://mermaid/./src/diagrams/state/id-cache.js","webpack://mermaid/./src/diagrams/state/parser/stateDiagram.jison","webpack://mermaid/./src/diagrams/state/shapes.js","webpack://mermaid/./src/diagrams/state/stateDb.js","webpack://mermaid/./src/diagrams/state/stateRenderer-v2.js","webpack://mermaid/./src/diagrams/state/stateRenderer.js","webpack://mermaid/./src/diagrams/state/styles.js","webpack://mermaid/./src/diagrams/user-journey/journeyDb.js","webpack://mermaid/./src/diagrams/user-journey/journeyRenderer.js","webpack://mermaid/./src/diagrams/user-journey/parser/journey.jison","webpack://mermaid/./src/diagrams/user-journey/styles.js","webpack://mermaid/./src/diagrams/user-journey/svgDraw.js","webpack://mermaid/./src/errorRenderer.js","webpack://mermaid/./src/logger.js","webpack://mermaid/./src/mermaid.js","webpack://mermaid/./src/mermaidAPI.js","webpack://mermaid/./src/styles.js","webpack://mermaid/./src/themes/index.js","webpack://mermaid/./src/themes/theme-base.js","webpack://mermaid/./src/themes/theme-dark.js","webpack://mermaid/./src/themes/theme-default.js","webpack://mermaid/./src/themes/theme-forest.js","webpack://mermaid/./src/themes/theme-neutral.js","webpack://mermaid/./src/utils.js","webpack://mermaid/external \"@braintree/sanitize-url\"","webpack://mermaid/external \"d3\"","webpack://mermaid/external \"dagre\"","webpack://mermaid/external \"dagre-d3\"","webpack://mermaid/external \"dagre-d3/lib/label/add-html-label.js\"","webpack://mermaid/external \"entity-decode/browser\"","webpack://mermaid/external \"graphlib\"","webpack://mermaid/external \"khroma\"","webpack://mermaid/external \"moment-mini\"","webpack://mermaid/external \"stylis\""],"names":["handleThemeVariables","value","theme","getThemeVariables","default","manipulators","themeVariables","config","themeCSS","undefined","maxTextSize","fontFamily","logLevel","securityLevel","startOnLoad","arrowMarkerAbsolute","secure","flowchart","diagramPadding","htmlLabels","nodeSpacing","rankSpacing","curve","padding","sequence","activationWidth","diagramMarginX","diagramMarginY","actorMargin","width","height","boxMargin","boxTextMargin","noteMargin","messageMargin","messageAlign","mirrorActors","bottomMarginAdj","useMaxWidth","rightAngles","showSequenceNumbers","actorFontSize","actorFontFamily","actorFontWeight","noteFontSize","noteFontFamily","noteFontWeight","noteAlign","messageFontSize","messageFontFamily","messageFontWeight","wrap","wrapPadding","labelBoxWidth","labelBoxHeight","messageFont","fontSize","fontWeight","noteFont","actorFont","gantt","titleTopMargin","barHeight","barGap","topPadding","leftPadding","gridLineStartPadding","numberSectionStyles","axisFormat","journey","class","git","state","dividerMargin","sizeUnit","textHeight","titleShift","forkWidth","forkHeight","miniPadding","fontSizeFactor","labelHeight","edgeLengthFactor","compositTitleSize","radius","er","layoutDirection","minEntityWidth","minEntityHeight","entityPadding","stroke","fill","defaultConfig","Object","freeze","siteConfig","assignWithDepth","currentConfig","setSiteConfig","conf","keys","forEach","key","manipulator","clobber","getSiteConfig","setConfig","sanitize","getConfig","options","logger","warn","reset","configApi","rect","parent","node","log","trace","id","shapeSvg","insert","attr","label","text","appendChild","createLabel","labelText","labelStyle","bbox","getBBox","div","children","dv","select","getBoundingClientRect","halfPadding","JSON","stringify","rx","ry","x","y","rectBox","intersect","point","intersectRect","noteGroup","roundedWithTitle","classes","innerRect","append","divider","shapes","clusterElems","insertCluster","elem","shape","getClusterTitleWidth","removeChild","clear","positionCluster","info","el","applyStyle","dom","styleFn","addHtmlLabel","fo","document","createElementNS","labelClass","isNode","html","style","_vertexText","isTitle","vertexText","replace","s","vertexNode","svgLabel","setAttribute","rows","split","Array","isArray","j","length","tspan","setAttributeNS","textContent","trim","edgeLabels","insertEdgeLabel","edge","labelElement","edgeLabel","positionEdgeLabel","points","pos","utils","calcLabelPosition","outsideNode","dx","Math","abs","dy","w","h","intersection","outsidePoint","insidePoint","r","edges","x1","x2","y1","y2","Q","R","q","res","insertEdge","e","clusterDb","diagramType","graph","pointsHasChanged","tail","v","head","slice","unshift","push","toCluster","lastPointOutside","isInside","inter","pointPresent","p","find","fromCluster","updatedPoints","i","insterection","lineData","filter","Number","isNaN","lineFunction","line","d","curveBasis","strokeClasses","thickness","pattern","svgPath","url","window","location","protocol","host","pathname","search","arrowTypeStart","arrowTypeEnd","recursiveRender","_elem","diagramtype","parentCluster","graphlib","json","write","dir","rankdir","nodes","clusters","edgePaths","data","parse","clusterData","setNode","setParent","clusterNode","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","insertNode","name","dagre","layout","positionNode","updatedPath","render","markers","insertMarkers","clearNodes","clearEdges","clearClusters","clearGraphlib","adjustClustersAndEdges","circle","ellipse","polygon","intersectCircle","intersectEllipse","cx","cy","px","py","det","sqrt","intersectLine","p1","p2","q1","q2","a1","a2","b1","b2","c1","c2","r1","r2","r3","r4","denom","offset","num","sameSign","module","exports","intersectNode","console","intersectPolygon","polyPoints","intersections","minX","POSITIVE_INFINITY","minY","entry","min","left","top","sort","pdx","pdy","distp","qdx","qdy","distq","sx","sy","markerArray","type","markerName","extension","composition","aggregation","dependency","cross","barb","decendants","parents","isDecendant","ancenstorId","debug","indexOf","edgeInCluster","clusterId","copy","newGraph","rootId","setEdge","error","removeNode","extractDecendants","concat","validate","_id","getAnchorId","externalConnections","depth","d1","d2","extractor","removeEdge","hasChildren","graphSettings","clusterGraph","Graph","multigraph","compound","setGraph","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","question","labelHelper","questionElem","insertPolygonShape","hexagon","f","m","hex","rect_left_inv_arrow","lean_right","lean_left","trapezoid","inv_trapezoid","rect_right_inv_arrow","cylinder","rectWithTitle","innerLine","text2","flat","textRows","titleBox","descr","join","stadium","subroutine","start","forkJoin","end","innerCircle","class_box","rowPadding","lineHeight","topLine","bottomLine","maxWidth","maxHeight","labelContainer","verticalPos","hasInterface","classData","annotations","interfaceLabel","interfaceBBox","classTitleLabel","classTitleBBox","classAttributes","members","str","lbl","classMethods","methods","diffX","note","fork","nodeElems","_classes","element","map","MERMAID_DOM_ID_PREFIX","relations","classCounter","funs","parseDirective","statement","context","mermaidAPI","splitClassNameAndType","genericType","className","addClass","classId","cssClasses","domId","lookUpDomId","classKeys","setupToolTips","getClass","getClasses","getRelations","addRelation","relation","id1","id2","addAnnotation","annotation","validatedClassName","addMember","member","theClass","memberString","startsWith","endsWith","substring","addMembers","reverse","cleanupLabel","substr","setCssClass","ids","match","setLink","linkStr","tooltip","link","formatUrl","common","sanitizeText","setClickEvent","functionName","setClickFunc","elemId","querySelector","addEventListener","runFunc","bindFunctions","fun","lineType","LINE","DOTTED_LINE","relationType","AGGREGATION","EXTENSION","COMPOSITION","DEPENDENCY","tooltipElem","_groups","svg","selectAll","on","title","transition","duration","scrollX","right","scrollY","body","scrollTop","classed","parser","yy","classDb","idCache","addClasses","g","vertex","classStr","styles","radious","_shape","addRelations","cnt","defaultStyle","defaultLabelStyle","edgeData","arrowhead","getArrowMarker","type1","type2","getStylesFromArray","interpolate","interpolateToCurve","curveLinear","defaultInterpolate","arrowheadStyle","labelpos","labelType","lineBreakRegex","getGraphId","setConf","cnf","drawOld","diagram","isMultiGraph","classDef","svgDraw","drawClass","drawEdge","svgBounds","vBox","draw","_label","labels","querySelectorAll","k","dim","insertBefore","firstChild","marker","getStyles","nodeBorder","classText","mainBkg","nodeBkg","lineColor","edgeCount","path","getRelationType","l","labelPosition","p1_card_x","p1_card_y","p2_card_x","p2_card_y","cardinality_1_point","calcCardinalityPosition","cardinality_2_point","bounds","relationTitle1","relationTitle2","cssClassStr","classInfo","isFirst","titleText2","classTitleString","classTitle","titleHeight","membersLine","addTspan","membersBox","methodsLine","method","classBox","rectWidth","childNodes","parseMember","fieldRegEx","methodRegEx","fieldMatch","methodMatch","buildFieldDisplay","buildMethodDisplay","buildLegacyDisplay","parsedText","displayText","visibility","fieldType","parseGenericTypes","fieldName","err","cssStyle","methodName","parameters","classifier","returnType","parseClassifier","memberText","methodStart","methodEnd","firstChar","textEl","txt","tSpan","cleanedText","getRows","breakToPlaceholder","removeScript","rs","idx","level","placeholderToBreak","hasBreaks","test","splitBreaks","entities","relationships","Cardinality","ZERO_OR_ONE","ZERO_OR_MORE","ONE_OR_MORE","ONLY_ONE","Identification","NON_IDENTIFYING","IDENTIFYING","addEntity","getEntities","addRelationship","entA","rolA","entB","rSpec","rel","entityA","roleA","entityB","relSpec","getRelationships","setTitle","getTitle","ERMarkers","ONLY_ONE_START","ONLY_ONE_END","ZERO_OR_ONE_START","ZERO_OR_ONE_END","ONE_OR_MORE_START","ONE_OR_MORE_END","ZERO_OR_MORE_START","ZERO_OR_MORE_END","drawEntities","svgNode","firstOne","groupNode","textId","textNode","textBBox","entityWidth","max","entityHeight","rectNode","rectBBox","adjustEntities","getEdgeName","addRelationships","relationship","relCnt","drawRelationshipFromLayout","relType","erDb","cardA","erMarkers","cardB","len","getTotalLength","labelPoint","getPointAtLength","labelId","labelNode","labelBBox","erParser","directed","edgesep","firstEntity","edgeLabelBackground","dagreD3","addToRender","addToRenderV2","addShape","vertices","subGraphs","subGraphLookup","tooltips","subCount","firstGraphFlag","direction","addVertex","addSingleLink","_start","_end","linktext","addLink","updateLinkInterpolate","positions","interp","updateLink","isSubstringInArray","textStyles","newStyle1","newStyle2","setDirection","setClass","setTooltip","setClickFun","getTooltip","getDirection","getVertices","getEdges","addSubGraph","list","_title","uniq","a","prims","boolean","number","string","objs","item","hasOwnProperty","nodeList","apply","subGraph","getPosForId","secCount","posCrossRef","indexNodes2","result","count","posCount","childPos","getDepthFirstPos","indexNodes","getSubGraphs","firstGraph","destructStartLink","_str","destructEndLink","destructLink","_startStr","startInfo","lex","addVertices","vert","svgId","parentNode","addEdges","defaultStyles","linkId","linkNameStart","linkNameEnd","flowDb","flow","subG","linkNode","Render","flowChartShapes","arrows","none","normal","util","clusterRects","clusterEl","xPos","baseVal","yPos","cluster","te","classList","add","textColor","arrowheadColor","secondBkg","clusterBorder","titleColor","border2","dateFormat","todayMarker","excludes","sections","tasks","currentSection","tags","inclusiveEndDates","lastOrder","taskCnt","lastTask","lastTaskID","rawTasks","setAxisFormat","getAxisFormat","setTodayMarker","getTodayMarker","setDateFormat","enableInclusiveEndDates","endDatesAreInclusive","getDateFormat","setExcludes","toLowerCase","getExcludes","addSection","getSections","getTasks","allItemsPricessed","compileTasks","maxDepth","iterationCount","isInvalidDate","date","isoWeekday","format","checkTaskDates","task","manualEndTime","startTime","moment","endTime","renderEndTime","fixTaskDates","toDate","invalid","getStartDate","prevTime","re","afterStatement","exec","latestEndingTask","findTaskById","dt","Date","setHours","mDate","isValid","durationToDate","durationStatement","relativeTime","getEndDate","inclusive","parseId","idStr","compileData","prevTask","dataStr","ds","getTaskTags","endTimeData","parseData","prevTaskId","startData","taskDb","addTask","rawTask","section","processed","raw","taskInfo","active","done","crit","milestone","order","addTaskOrg","newTask","description","compileTask","allProcessed","_linkStr","sanitizeUrl","pushFun","open","functionArgs","argList","charAt","callbackFunction","matchFound","t","regex","RegExp","shift","ganttDb","rightPadding","getElementById","parentElement","offsetWidth","useWidth","taskArray","timeScale","scaleTime","domain","rangeRound","categories","catsUnfiltered","checkUnique","taskCompare","b","taskA","taskB","makeGant","pageWidth","pageHeight","gap","colorScale","scaleLinear","range","interpolateHcl","makeGrid","drawRects","vertLabels","drawToday","theArray","theGap","theTopPad","theSidePad","theBarHeight","theColorScale","enter","rectangles","toString","secNum","taskClass","startX","endX","textWidth","taskType","xAxis","axisBottom","tickSize","tickFormat","timeFormat","call","numOccurances","prevGap","getCount","todayG","today","todayLine","arr","hash","getCounts","obj","word","sectionBkgColor","sectionBkgColor2","altSectionBkgColor","gridColor","todayLineColor","taskTextDarkColor","taskTextClickableColor","taskTextColor","taskBkgColor","taskBorderColor","taskTextOutsideColor","activeTaskBkgColor","activeTaskBorderColor","doneTaskBorderColor","doneTaskBkgColor","critBorderColor","critBkgColor","commits","branches","master","curBranch","seq","getId","random","isfastforwardable","currentCommit","otherCommit","isReachableFrom","currentSeq","otherSeq","uniqBy","fn","recordMap","create","reduce","out","setOptions","rawOptString","message","getOptions","commit","msg","branch","merge","otherBranch","checkout","commitRef","ref","parentCount","parseInt","upsert","newval","index","splice","prettyPrintCommitHistory","commitArr","c","newCommit","nextCommit","prettyPrint","getCommitsArray","getBranchesAsObjArray","branchArr","getBranches","getCommits","o","getCurrentBranch","getHead","allCommitsDict","branchNum","nodeFillColor","nodeStrokeWidth","nodeStrokeColor","lineStrokeWidth","branchOffset","leftMargin","branchColors","nodeRadius","nodeLabel","apiConfig","svgCreateDefs","svgDrawLine","colorIdx","color","lineGen","round","getElementCoords","coords","ctm","getCTM","xn","yn","svgDrawLineForCommits","fromId","toId","fromBbox","toBbox","lineStart","lineEnd","cloneNode","selector","renderCommitHistory","commitid","numCommits","size","branchName","renderLines","branchColor","lineDrawn","ver","gitGraphParser","db","assign","setMessage","getMessage","setInfo","inf","getInfo","infoParser","cleanupValue","pieParser","pieData","margin","legendRectSize","legendSpacing","sum","scaleOrdinal","schemeSet2","pie","d3pie","dataReady","entries","arcGenerator","arc","innerRadius","outerRadius","toFixed","centroid","legend","horz","prevActor","actors","messages","notes","titleWrapped","sequenceNumbersEnabled","wrapEnabled","addActor","old","autoWrap","nextActor","activationCount","part","LINETYPE","ACTIVE_START","from","actor","ACTIVE_END","addMessage","idFrom","idTo","answer","to","addSignal","messageType","Error","token","loc","first_line","last_line","first_column","last_column","expected","getMessages","getActors","getActor","getActorKeys","getTitleWrapped","enableSequenceNumbers","setWrap","wrapSetting","parseMessage","SOLID","DOTTED","NOTE","SOLID_CROSS","DOTTED_CROSS","SOLID_OPEN","DOTTED_OPEN","LOOP_START","LOOP_END","ALT_START","ALT_ELSE","ALT_END","OPT_START","OPT_END","PAR_START","PAR_AND","PAR_END","RECT_START","RECT_END","ARROWTYPE","FILLED","OPEN","PLACEMENT","LEFTOF","RIGHTOF","OVER","addNote","placement","titleWrap","param","signalType","loopText","optText","altText","parText","sequenceDb","startx","stopx","starty","stopy","sequenceItems","activations","models","getHeight","loops","it","acc","actorModel","addLoop","loopModel","msgModel","noteModel","lastActor","lastLoop","lastMessage","lastNote","init","updateVal","val","updateBounds","_self","updateFn","updateItemBounds","n","_startx","_stopx","_starty","_stopy","newActivation","actorRect","stackedSize","actorActivations","anchored","anchorElement","endActivation","lastActorActivationIdx","activation","lastIndexOf","createLoop","newLoop","endLoop","pop","addSectionToLoop","loop","sectionTitles","getVerticalPos","bumpVerticalPos","bump","getBounds","drawNote","getNoteRect","rectElem","drawRect","textObj","getTextObj","anchor","textMargin","valign","textElem","drawText","curr","drawMessage","sequenceIndex","lines","textDims","calculateTextDimensions","totalOffset","lineStarty","fromBounds","toBounds","drawActors","actorKeys","prevWidth","prevMargin","drawActor","activationBounds","actorObj","adjustLoopHeightForWrap","loopWidths","preMargin","postMargin","addLoopFn","heightAdjust","loopWidth","textConf","wrapLabel","maxMessageWidthPerActor","getMaxMessageWidthPerActor","calculateActorMargins","calculateLoopBounds","insertArrowHead","insertArrowCrossHead","insertSequenceNumber","activeEnd","activationData","drawActivation","drawLoop","drawBackgroundRect","includes","box","actorLines","extraVertForTitle","isNote","isMessage","textFont","wrappedMessage","messageDimensions","messageWidth","actorToMessageWidth","prop","actDims","actorKey","actorWidth","buildNoteModel","shouldWrap","textDimensions","buildMessageModel","process","fromIdx","toIdx","allBounds","boundedWidth","msgDims","stack","current","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","toAdd","enabled","stk","actorBorder","actorBkg","actorTextColor","actorLineColor","signalColor","sequenceNumberColor","signalTextColor","labelBoxBorderColor","labelBoxBkgColor","labelTextColor","loopTextColor","noteBorderColor","noteBkgColor","noteTextColor","activationBkgColor","activationBorderColor","rectData","textData","prevTextHeight","textElems","yfunc","dominantBaseline","alignmentBaseline","span","drawLabel","txtObject","genPoints","cut","actorCnt","center","_drawTextCandidateFunc","drawLoopLine","sectionHeight","lower","defs","byText","content","textAttrs","_setTextAttrs","byTspan","byFo","toText","fromTextAttrsDict","textPlacement","set","get","drawStartState","drawDivider","drawSimpleState","stateDef","drawDescrState","descriptions","isSecond","descrLine","descrBox","addTitleAndBox","altBkg","pad","dblPad","orgBox","orgWidth","orgX","titleWidth","graphBox","doc","lineY","drawEndState","drawForkJoinState","parentId","tmp","nText","_drawLongText","_text","tHeight","textBounds","drawState","stateInfo","stateBox","stateDb","titleRows","boundstmp","boxHeight","heightAdj","clone","rootDoc","setRootDoc","getRootDoc","docTranslator","first","stmt","state1","state2","currentDoc","newNode","generateId","docNode","getRootDocV2","extract","_doc","addState","newDoc","states","documents","root","currentDocument","startCnt","endCnt","addDescription","des","getState","getStates","logDocuments","_id1","_id2","_descr","theState","dividerCnt","getDividerId","trimColon","nodeDb","setupNode","altFlag","nodeData","noteData","groupData","position","arrowType","setupDoc","startId","endId","transformationLog","renderDoc","getLabelWidth","edgeFreeDoc","ranker","nodeSep","sub","boxBounds","noteDef","nodeCount","svgElem","dividers","pWidth","pShift","getAttribute","labelColor","background","altBackground","allItemsProcessed","updateActors","tempActors","people","unique","Set","taskData","pieces","score","peeps","peopleList","journeyDb","taskMargin","taskFontSize","taskFontFamily","actorColours","sectionFills","sectionColours","drawActorLegend","person","colour","circleData","drawCircle","labelData","LEFT_MARGIN","initGraphics","actorNames","actorPos","actorName","drawTasks","fills","textColours","lastSection","sectionVHeight","taskPos","sectionNumber","drawSection","taskActors","drawTask","fillType0","fillType1","fillType2","fillType3","fillType4","fillType5","fillType6","fillType7","drawFace","faceData","circleElement","face","smile","d3arc","startAngle","PI","endAngle","sad","ambivalent","labelMargin","taskCount","graphics","LEVELS","fatal","setLogLevel","bind","time","arguments","mermaid","sequenceConfig","callback","Node","initialize","ganttConfig","now","innerHTML","decode","detectInit","svgCode","parseError","contentLoaded","graphInit","reinitialize","graphType","detectType","gitGraphAst","flowParser","sequenceParser","ganttParser","classParser","stateParser","infoDb","pieDb","journeyParser","encodeEntities","innerTxt","isInt","decodeEntities","_txt","cb","container","updateRendererConfigs","existingSvg","remove","userStyles","altFontFamily","flowRenderer","stylis","Stylis","rules","style1","createElement","gitGraphRenderer","flowRendererV2","sequenceDiagram","sequenceRenderer","ganttRenderer","classRenderer","classRendererV2","stateRenderer","stateRendererV2","infoRenderer","pkg","version","pieRenderer","erRenderer","journeyRenderer","errorRenderer","currentDirective","args","handleDirective","directive","globalReset","themes","classDiagram","stateDiagram","calcThemeVariables","userOverRides","calcColors","errorBkgColor","errorTextColor","base","baseThemeVariables","dark","darkThemeVariables","defaultThemeVariables","forest","forestThemeVariables","neutral","neutralThemeVariables","Theme","primaryColor","secondaryColor","tertiaryColor","lighten","relationColor","border1","labelBackground","updateColors","darken","clusterBkg","defaultLinkColor","taskTextLightColor","adjust","overrides","userOverrides","calculate","mainContrastColor","darkTextColor","invert","rgba","contrast","critical","d3CurveTypes","curveBasisClosed","curveBasisOpen","curveLinearClosed","curveMonotoneX","curveMonotoneY","curveNatural","curveStep","curveStepAfter","curveStepBefore","directiveWithoutOpen","anyComment","inits","detectDirective","results","commentWithoutDirectives","source","lastIndex","memoize","resolver","cache","defaultCurve","curveName","toUpperCase","arrPaths","fnName","params","distance","pow","traverseEdge","prevPoint","totalDistance","remainingDistance","vectorDistance","distanceRatio","isRelationTypePresent","initialPosition","distanceToCardinalityPoint","angle","atan2","cardinalityPosition","sin","cos","makeid","characters","charactersLength","floor","dst","src","drawSimpleText","joinWith","words","completedLines","nextLine","wordLength","calculateTextWidth","nextLineLength","breakString","hyphenatedStrings","remainingWord","Boolean","currentWord","isLastWord","hyphenCharacter","currentLine","character","lineWidth","currentCharacter","isLastLine","hyphenatedNextLine","calculateTextHeight","fontFamilies","dims","cheight","bBox"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;AClFA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,MAAM;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,8BAA8B;AAClE;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,oBAAoB;AAC9B;AACA;;AAEA;AACA,UAAU,UAAU;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,sBAAsB;AACrD;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7SA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AAC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O,CAACnc,IAAR,CAAa,SAAb,EAAwB0c,IAAxB;AACD,CA9FM;AAgGQ;AACbV,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACtPA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,89BAA89B;AACz+B,aAAa,kjBAAkjB;AAC/jB;AACA;AACA;;AAEA;AACA;AACA;AACA,wB;AACA;AACA;AACA,e;AACA;AACA;AACA,qC;AACA;AACA;AACA,4B;AACA;AACA;AACA,wB;AACA;AACA;AACA,2CAA2C,0B;AAC3C;AACA;AACA;AACA;AACA;AACA,iDAAiD,wBAAwB;AACzE;AACA;AACA,mC;AACA;AACA;AACA,mB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC;AAClC;AACA;AACA,WAAW,8F;AACX;AACA;AACA,WAAW;AACX;AACA;AACA,WAAW,6F;AACX;AACA;AACA,WAAW,8F;AACX;AACA;AACA,SAAS,+C;AACT;AACA;AACA,SAAS,6C;AACT;AACA;AACA,SAAS,6C;AACT;AACA;AACA,SAAS,2C;AACT;AACA;AACA;AACA;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,kCAAkC;AAChE;AACA;AACA;AACA;AACA;AACA,wCAAwC,kBAAkB;AAC1D;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,wBAAwB,mBAAmB,4GAA4G,qBAAqB,WAAW,wBAAwB,EAAE,gQAAgQ;AACpiB,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,WAAW,kCAAkC,YAAY,kCAAkC,WAAW,2CAA2C,YAAY;AAC/T,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACzyBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,gDAEfA,OAAO,CAACke,UAFO,wBAGfle,OAAO,CAACme,SAHO,gDAKRne,OAAO,CAAClG,UALA,gLAiBbkG,OAAO,CAACoe,OAjBK,4BAkBXpe,OAAO,CAACke,UAlBG,uEAwBble,OAAO,CAACke,UAxBK,wGAiC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AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,kfAAkf;AAC7f,aAAa,+QAA+Q;AAC5R;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,iBAAiB,oCAAoC;AACrD;AACA;;AAEA,kBAAkB;AAClB,kEAAkE;;AAElE;AACA;AACA,qC;AACA;AACA;AACA,sC;AACA;AACA;AACA,qC;AACA;AACA;AACA,kC;AACA;AACA;AACA,4C;AACA;AACA;AACA,wC;AACA;AACA;AACA,mC;AACA;AACA;AACA,iB;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,oC;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,cAAc,IAAI,GAAG,0BAA0B,EAAE,cAAc,EAAE,UAAU,EAAE,qEAAqE,EAAE,QAAQ,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,oCAAoC,0CAA0C,wCAAwC,6BAA6B,UAAU,EAAE,gBAAgB,EAAE,UAAU,eAAe,aAAa,EAAE,0BAA0B,uEAAuE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,kCAAkC,8BAA8B,UAAU,EAAE,0BAA0B,EAAE,UAAU;AAC3uB,iBAAiB,+CAA+C;AAChE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,yBAAyB,oBAAoB,8GAA8G,cAAc,uCAAuC,aAAa;AACpT,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,YAAY;AAC9K,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC9sBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,+CAGbA,OAAO,CAACoe,OAHK,4BAIXpe,OAAO,CAACke,UAJG,4DAQble,OAAO,CAACgnB,mBARK,4DAUDhnB,OAAO,CAACgnB,mBAVP,4GAiBThnB,OAAO,CAACse,SAjB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MAAI,EAAJA;AALa,CAAf,E;;;;;;;;;;;AC9eA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,gnDAAgnD;AAC3nD,aAAa,+5BAA+5B;AAC56B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C,WAAW,qD;AACrG;AACA;AACA,8CAA8C,gDAAgD,WAAW,yD;AACzG;AACA;AACA,iCAAiC,aAAa;AAC9C;AACA;AACA,gCAAgC,aAAa;AAC7C;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC,qDAAqD;AACvF;AACA;AACA,oBAAoB;AACpB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA,uBAAuB;AACvB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kCAAkC,UAAU;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,8CAA8C;AAChE;AACA;AACA,kBAAkB,4CAA4C;AAC9D;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,oC;AACrB;AACA;AACA,CAAC;AACD,SAAS,8CAA8C,EAAE,MAAM,YAAY,IAAI,GAAG,+CAA+C,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,kRAAkR,EAAE,QAAQ,8BAA8B,sCAAsC,EAAE,wBAAwB,oGAAoG,0DAA0D,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,oCAAoC,6BAA6B,aAAa,GAAG,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,eA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AAW,+BAA+B,QAAQ,gBAAgB,QAAQ,gBAAgB,+IAA+I,gBAAgB,0JAA0J,gBAAgB,WAAW,GAAG,WAAW,EAAE,WAAW,EAAE,2BAA2B,gBAAgB,sGAAsG,kBAAkB,sJAAsJ,EAAE,sJAAsJ,EAAE,WAAW,EAAE,WAAW,yCAAyC,MAAM,kBAAkB,+FAA+F,gBAAgB,0JAA0J,iBAAiB,0JAA0J,+BAA+B,qRAAqR,EAAE,6GAA6G,EAAE,6GAA6G,6BAA6B,QAAQ,gBAAgB,QAAQ;AAC/ujB,iBAAiB,8BAA8B;AAC/C;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,Y;AACrC;AACA,qCAAqC,Y;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,Y;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mBAAmB;AACnD;AACA,gCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;AACA;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,yBAAyB,wBAAwB,mBAAmB,kbAAkb,45KAA45K,UAAU;AAC59L,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,WAAW,6BAA6B,QAAQ,0DAA0D,WAAW,gCAAgC,YAAY;AACnU,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC9/BA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,8CAENA,OAAO,CAAClG,UAFF,2BAGZkG,OAAO,CAAC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AACF,CAzbM;AA2bQ;AACb7a,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;AC9dA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,gWAAgW;AAC3W,aAAa,gPAAgP;AAC7P;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,oCAAoC;AACpC;AACA;AACA,iCAAiC;AACjC;AACA;AACA,qCAAqC;AACrC;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,gCAAgC;AAChC;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,2CAA2C;AAC7D;AACA;AACA,kBAAkB,+CAA+C;AACjE;AACA;AACA,kBAAkB,yCAAyC;AAC3D;AACA;AACA,kBAAkB,6CAA6C;AAC/D;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,sGAAsG,cAAc,QAAQ,gBAAgB,0EAA0E,0IAA0I,UAAU,EAAE,oBAAoB,0CAA0C,oBAAoB,gBAAgB,UAAU,gBAAgB,UAAU,8BAA8B,UAAU;AAC5kB,kBAAkB;AAClB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iSAAiS,yDAAyD,2BAA2B,6BAA6B,qDAAqD,2BAA2B,kBAAkB,kBAAkB;AACtgB,aAAa,gBAAgB,kCAAkC,iBAAiB,mCAAmC,SAAS,gCAAgC,UAAU,kCAAkC,YAAY;AACpN,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvtBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,0OAabA,OAAO,CAAC23B,eAbK,gDAiBb33B,OAAO,CAAC43B,gBAjBK,8DAsBb53B,OAAO,CAAC63B,kBAtBK,wEA2Bb73B,OAA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CAAC2Q,KAAP,CAAa,gCAAb;AACA3Q,kDAAM,CAAC2Q,KAAP,CAAazJ,CAAC,CAAC8yB,OAAf;AACD;AACF,CArCM;AAuCQ;AACbpd,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACjVA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,uSAAuS;AAClT,aAAa,0JAA0J;AACvK;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,yBAAyB;AACzB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,cAAc,gBAAgB,gBAAgB,sBAAsB,EAAE,QAAQ,EAAE,gFAAgF,eAAe,SAAS,eAAe,UAAU,gBAAgB,0BAA0B,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,0BAA0B,EAAE,QAAQ,eAAe,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU;AAC1lB,iBAAiB,2GAA2G;AAC5H;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW,kCAAkC,WAAW,kCAAkC,YAAY;AACnH,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvrBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAYeA,wEAAf,E;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAGA;AAEA,IAAIgc,OAAO,GAAG,EAAd;AACA,IAAI52B,IAAI,GAAG,KAAX;AAEO,IAAMu7B,UAAU,GAAG,SAAbA,UAAa,CAAA7c,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;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mHAAmH;AAC9H,aAAa,gDAAgD;AAC7D;AACA;AACA;;AAEA;AACA;AACA;AACA,W;AACA;AACA;;AAEA;AACA;AACA,kB;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,iCAAiC,EAAE,QAAQ;AAC7F,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW;AACxB,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC7mBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAEeA,wEAAf,E;;;;;;;;;;;ACFA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mIAAmI;AAC9I,aAAa,gEAAgE;AAC7E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kD;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,0CAA0C,EAAE,QAAQ,yCAAyC,UAAU;AACzJ,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qGAAqG;AACrG,aAAa,UAAU,gCAAgC,YAAY;AACnE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACznBA;AAAA;AAAA;;;AAGA;AAEA,IAAIwP,QAAQ,GAAG,EAAf;AACA,IAAInT,KAAK,GAAG,EAAZ;;AAEA,IAAMwU,UAAU,GAAG,SAAbA,UAAa,CAASpuB,EAAT,EAAatH,KAAb,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Q,kDAAM,CAAC2Q,KAAP,CAAazJ,CAAC,CAAC8yB,OAAf;AACD;AACF,CAtIM;AAwIQ;AACbpd,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;;AC/JA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,8FAIbA,OAAO,CAACg4B,iBAJK,iCAKNh4B,OAAO,CAAClG,UALF,kDAQNkG,OAAO,CAAClG,UARF,0BASbkG,OAAO,CAACgtB,SATK,sEAabhtB,OAAO,CAACg4B,iBAbK,iCAcNh4B,OAAO,CAAClG,UAdF;AAAA,CAAzB;;AAmBemkB,wEAAf,E;;;;;;;;;;;ACnBA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,6yBAA6yB;AACxzB,aAAa,sfAAsf;AACngB;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,c;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,W;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,SAAS,+B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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,W;AAC1B;AACA,wCAAwC,qBAAqB,W;AAC7D;AACA,yBAAyB,iBAAiB,oBAAoB,W;AAC9D;AACA,yBAAyB,iBAAiB,U;AAC1C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;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yCAAyC,a;AACzE;AACA;AACA;AACA;AACA;AACA,gC;AACA;AACA,uBAAuB,yCAAyC,0CAA0C;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA;AAC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ACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;A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;;;;;;;;;;ACAA,mC;;;;;;;;;;;ACAA,wC;;;;;;;;;;;ACAA,mC","file":"mermaid.core.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mermaid\"] = factory();\n\telse\n\t\troot[\"mermaid\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/mermaid.js\");\n","// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\n\n// import { unflatten } from 'flat';\n// import flatten from 'flat';\n\n// import themeVariables from './theme-default';\n// import themeForestVariables from './theme-forest';\n// import themeNeutralVariables from './theme-neutral';\n\nconst handleThemeVariables = value => {\n return theme[value] ? theme[value].getThemeVariables() : theme.default.getThemeVariables();\n};\n\nconst manipulators = {\n themeVariables: handleThemeVariables\n};\n\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\n// debugger;\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport const defaultConfig = Object.freeze(config);\n\nconst siteConfig = assignWithDepth({}, defaultConfig);\nconst currentConfig = assignWithDepth({}, defaultConfig);\n\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf, { clobber: true });\n // Set theme variables if user has set the theme option\n assignWithDepth(siteConfig, conf);\n\n return getSiteConfig();\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n sanitize(conf);\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n assignWithDepth(siteConfig, conf, { clobber: true });\n assignWithDepth(currentConfig, conf, { clobber: true });\n};\n\nconst configApi = Object.freeze({\n sanitize,\n setSiteConfig,\n getSiteConfig,\n setConfig,\n getConfig,\n reset,\n defaultConfig\n});\nexport default configApi;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 0)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,6],$V2=[1,20],$V3=[1,23],$V4=[1,21],$V5=[1,22],$V6=[1,24],$V7=[1,25],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,32],$Vc=[7,9],$Vd=[1,41],$Ve=[1,42],$Vf=[1,43],$Vg=[1,44],$Vh=[1,45],$Vi=[1,46],$Vj=[7,9,20,26,34,37,38,39,40,41,42],$Vk=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],$Vl=[34,58,59,60],$Vm=[34,41,42,58,59,60],$Vn=[34,37,38,39,40,58,59,60],$Vo=[6,7,9,61],$Vp=[7,9,20],$Vq=[1,73];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"directive\":5,\"CLASS_DIAGRAM\":6,\"NEWLINE\":7,\"statements\":8,\"EOF\":9,\"statement\":10,\"className\":11,\"alphaNumToken\":12,\"GENERICTYPE\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"relationStatement\":19,\"LABEL\":20,\"classStatement\":21,\"methodStatement\":22,\"annotationStatement\":23,\"clickStatement\":24,\"CLASS\":25,\"STRUCT_START\":26,\"members\":27,\"STRUCT_STOP\":28,\"ANNOTATION_START\":29,\"ANNOTATION_END\":30,\"MEMBER\":31,\"SEPARATOR\":32,\"relation\":33,\"STR\":34,\"relationType\":35,\"lineType\":36,\"AGGREGATION\":37,\"EXTENSION\":38,\"COMPOSITION\":39,\"DEPENDENCY\":40,\"LINE\":41,\"DOTTED_LINE\":42,\"CALLBACK\":43,\"LINK\":44,\"commentToken\":45,\"textToken\":46,\"graphCodeTokens\":47,\"textNoTagsToken\":48,\"TAGSTART\":49,\"TAGEND\":50,\"==\":51,\"--\":52,\"PCT\":53,\"DEFAULT\":54,\"SPACE\":55,\"MINUS\":56,\"keywords\":57,\"UNICODE_TEXT\":58,\"NUM\":59,\"ALPHA\":60,\"open_directive\":61,\"type_directive\":62,\"arg_directive\":63,\"close_directive\":64,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"CLASS_DIAGRAM\",7:\"NEWLINE\",9:\"EOF\",13:\"GENERICTYPE\",17:\":\",20:\"LABEL\",25:\"CLASS\",26:\"STRUCT_START\",28:\"STRUCT_STOP\",29:\"ANNOTATION_START\",30:\"ANNOTATION_END\",31:\"MEMBER\",32:\"SEPARATOR\",34:\"STR\",37:\"AGGREGATION\",38:\"EXTENSION\",39:\"COMPOSITION\",40:\"DEPENDENCY\",41:\"LINE\",42:\"DOTTED_LINE\",43:\"CALLBACK\",44:\"LINK\",47:\"graphCodeTokens\",49:\"TAGSTART\",50:\"TAGEND\",51:\"==\",52:\"--\",53:\"PCT\",54:\"DEFAULT\",55:\"SPACE\",56:\"MINUS\",57:\"keywords\",58:\"UNICODE_TEXT\",59:\"NUM\",60:\"ALPHA\",61:\"open_directive\",62:\"type_directive\",63:\"arg_directive\",64:\"close_directive\"},\nproductions_: [0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 7:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 10:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 13:\n yy.addRelation($$[$0]); \nbreak;\ncase 14:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 20:\nyy.addClass($$[$0]);\nbreak;\ncase 21:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 22:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 23:\n this.$ = [$$[$0]]; \nbreak;\ncase 24:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 25:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 26:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 27:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 28:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 29:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 30:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 31:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 32:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 33:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 34:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 35:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 36:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 37:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 38:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 39:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 40:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 41:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 42:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 43:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 44:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 45:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 46:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 63:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 64:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 65:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 66:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:5,61:$V1},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:$V0,14:5,61:$V1},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},{16:30,17:[1,31],64:$Vb},o([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},o($Vc,[2,13],{20:[1,35]}),o($Vc,[2,15]),o($Vc,[2,16]),o($Vc,[2,17]),o($Vc,[2,18]),o($Vc,[2,19]),o($Vc,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi}),{11:47,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,27]),o($Vc,[2,28]),{12:48,58:$V8,59:$V9,60:$Va},{11:49,12:26,58:$V8,59:$V9,60:$Va},{11:50,12:26,58:$V8,59:$V9,60:$Va},o($Vj,[2,8],{12:26,11:51,13:[1,52],58:$V8,59:$V9,60:$Va}),o($Vk,[2,60]),o($Vk,[2,61]),o($Vk,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},o($Vc,[2,14]),{11:57,12:26,34:[1,58],58:$V8,59:$V9,60:$Va},{33:59,35:39,36:40,37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi},o($Vc,[2,26]),{36:60,41:$Vh,42:$Vi},o($Vl,[2,36],{35:61,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vn,[2,41]),o($Vn,[2,42]),o($Vc,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},o($Vj,[2,7]),o($Vj,[2,10],{12:26,11:66,58:$V8,59:$V9,60:$Va}),o($Vo,[2,11]),{16:67,64:$Vb},{64:[2,65]},{9:[2,6]},o($Vp,[2,29]),{11:68,12:26,58:$V8,59:$V9,60:$Va},{11:69,12:26,34:[1,70],58:$V8,59:$V9,60:$Va},o($Vl,[2,35],{35:71,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vl,[2,34]),{27:72,31:$Vq},{11:74,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,43],{34:[1,75]}),o($Vc,[2,45],{34:[1,76]}),o($Vj,[2,9]),{7:[1,77]},o($Vp,[2,31]),o($Vp,[2,30]),{11:78,12:26,58:$V8,59:$V9,60:$Va},o($Vl,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:$Vq},o($Vc,[2,22]),o($Vc,[2,44]),o($Vc,[2,46]),o($Vo,[2,12]),o($Vp,[2,32]),o($Vc,[2,21]),{28:[2,24]}],\ndefaultActions: {2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 61; \nbreak;\ncase 1: this.begin('type_directive'); return 62; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 64; \nbreak;\ncase 4:return 63;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 7;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 6;\nbreak;\ncase 12: this.begin(\"struct\"); /*console.log('Starting struct');*/return 26;\nbreak;\ncase 13:return \"EOF_IN_STRUCT\";\nbreak;\ncase 14:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 15: /*console.log('Ending struct');*/this.popState(); return 28;\nbreak;\ncase 16:/* nothing */\nbreak;\ncase 17: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 43;\nbreak;\ncase 20:return 44;\nbreak;\ncase 21:return 29;\nbreak;\ncase 22:return 30;\nbreak;\ncase 23:this.begin(\"generic\");\nbreak;\ncase 24:this.popState();\nbreak;\ncase 25:return \"GENERICTYPE\";\nbreak;\ncase 26:this.begin(\"string\");\nbreak;\ncase 27:this.popState();\nbreak;\ncase 28:return \"STR\";\nbreak;\ncase 29:return 38;\nbreak;\ncase 30:return 38;\nbreak;\ncase 31:return 40;\nbreak;\ncase 32:return 40;\nbreak;\ncase 33:return 39;\nbreak;\ncase 34:return 37;\nbreak;\ncase 35:return 41;\nbreak;\ncase 36:return 42;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 56;\nbreak;\ncase 39:return 'DOT';\nbreak;\ncase 40:return 'PLUS';\nbreak;\ncase 41:return 53;\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 'EQUALS';\nbreak;\ncase 44:return 60;\nbreak;\ncase 45:return 'PUNCTUATION';\nbreak;\ncase 46:return 59;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 55;\nbreak;\ncase 49:return 9;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09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\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"string\":{\"rules\":[27,28],\"inclusive\":false},\"generic\":{\"rules\":[24,25],\"inclusive\":false},\"struct\":{\"rules\":[13,14,15,16,17],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.edgeLabelBackground};\n fillopactity: 0;\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = getConfig();\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = getConfig();\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,5],$V1=[1,4],$V2=[1,6],$V3=[1,8],$V4=[1,9,10,11,12,32,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$V5=[2,3],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,28],$Vb=[1,53],$Vc=[1,31],$Vd=[1,32],$Ve=[1,33],$Vf=[1,34],$Vg=[1,35],$Vh=[1,47],$Vi=[1,42],$Vj=[1,44],$Vk=[1,39],$Vl=[1,43],$Vm=[1,46],$Vn=[1,50],$Vo=[1,51],$Vp=[1,52],$Vq=[1,41],$Vr=[1,45],$Vs=[1,48],$Vt=[1,49],$Vu=[1,40],$Vv=[1,58],$Vw=[1,61],$Vx=[1,9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Vy=[1,65],$Vz=[1,64],$VA=[1,66],$VB=[9,10,12,63,64],$VC=[9,10,11,12,63,64],$VD=[9,10,11,12,41,63,64],$VE=[9,10,11,12,34,40,41,43,45,47,49,51,53,55,56,58,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VF=[9,10,12,40,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VG=[9,10,12],$VH=[1,9,10,11,12,19,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$VI=[40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VJ=[1,114],$VK=[1,135],$VL=[1,136],$VM=[1,137],$VN=[1,138],$VO=[1,118],$VP=[1,109],$VQ=[1,107],$VR=[1,110],$VS=[1,130],$VT=[1,131],$VU=[1,132],$VV=[1,133],$VW=[1,134],$VX=[1,139],$VY=[1,140],$VZ=[1,112],$V_=[1,120],$V$=[1,123],$V01=[1,121],$V11=[1,122],$V21=[1,115],$V31=[1,128],$V41=[1,127],$V51=[1,111],$V61=[1,108],$V71=[1,117],$V81=[1,119],$V91=[1,124],$Va1=[1,125],$Vb1=[1,126],$Vc1=[1,129],$Vd1=[9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Ve1=[1,143],$Vf1=[1,147],$Vg1=[1,149],$Vh1=[1,150],$Vi1=[9,10,11,12,19,20,32,34,35,36,40,44,46,48,50,52,54,55,57,59,62,63,64,65,68,69,70,71,72,73,74,77,83,84,87,88,89,91,92,93,94,98,99,100,101,102,103],$Vj1=[9,10,11,12,20,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$Vk1=[11,84],$Vl1=[1,219],$Vm1=[1,223],$Vn1=[1,220],$Vo1=[1,217],$Vp1=[1,214],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,218],$Vt1=[1,221],$Vu1=[1,222],$Vv1=[1,224],$Vw1=[1,240],$Vx1=[9,10,12,84],$Vy1=[9,10,11,12,68,80,83,84,87,88,89,90,91,92,93];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"directive\":6,\"line\":7,\"statement\":8,\"SEMI\":9,\"NEWLINE\":10,\"SPACE\":11,\"EOF\":12,\"openDirective\":13,\"typeDirective\":14,\"closeDirective\":15,\"separator\":16,\":\":17,\"argDirective\":18,\"GRAPH\":19,\"DIR\":20,\"FirstStmtSeperator\":21,\"ending\":22,\"endToken\":23,\"spaceList\":24,\"spaceListNewline\":25,\"verticeStatement\":26,\"styleStatement\":27,\"linkStyleStatement\":28,\"classDefStatement\":29,\"classStatement\":30,\"clickStatement\":31,\"subgraph\":32,\"text\":33,\"SQS\":34,\"SQE\":35,\"end\":36,\"link\":37,\"node\":38,\"vertex\":39,\"AMP\":40,\"STYLE_SEPARATOR\":41,\"idString\":42,\"PS\":43,\"PE\":44,\"(-\":45,\"-)\":46,\"STADIUMSTART\":47,\"STADIUMEND\":48,\"SUBROUTINESTART\":49,\"SUBROUTINEEND\":50,\"CYLINDERSTART\":51,\"CYLINDEREND\":52,\"DIAMOND_START\":53,\"DIAMOND_STOP\":54,\"TAGEND\":55,\"TRAPSTART\":56,\"TRAPEND\":57,\"INVTRAPSTART\":58,\"INVTRAPEND\":59,\"linkStatement\":60,\"arrowText\":61,\"STR\":62,\"START_LINK\":63,\"LINK\":64,\"PIPE\":65,\"textToken\":66,\"keywords\":67,\"STYLE\":68,\"LINKSTYLE\":69,\"CLASSDEF\":70,\"CLASS\":71,\"CLICK\":72,\"DOWN\":73,\"UP\":74,\"textNoTags\":75,\"textNoTagsToken\":76,\"DEFAULT\":77,\"stylesOpt\":78,\"alphaNum\":79,\"HEX\":80,\"numList\":81,\"INTERPOLATE\":82,\"NUM\":83,\"COMMA\":84,\"style\":85,\"styleComponent\":86,\"ALPHA\":87,\"COLON\":88,\"MINUS\":89,\"UNIT\":90,\"BRKT\":91,\"DOT\":92,\"PCT\":93,\"TAGSTART\":94,\"alphaNumToken\":95,\"idStringToken\":96,\"alphaNumStatement\":97,\"PUNCTUATION\":98,\"UNICODE_TEXT\":99,\"PLUS\":100,\"EQUALS\":101,\"MULT\":102,\"UNDERSCORE\":103,\"graphCodeTokens\":104,\"ARROW_CROSS\":105,\"ARROW_POINT\":106,\"ARROW_CIRCLE\":107,\"ARROW_OPEN\":108,\"QUOTE\":109,\"open_directive\":110,\"type_directive\":111,\"arg_directive\":112,\"close_directive\":113,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",9:\"SEMI\",10:\"NEWLINE\",11:\"SPACE\",12:\"EOF\",17:\":\",19:\"GRAPH\",20:\"DIR\",32:\"subgraph\",34:\"SQS\",35:\"SQE\",36:\"end\",40:\"AMP\",41:\"STYLE_SEPARATOR\",43:\"PS\",44:\"PE\",45:\"(-\",46:\"-)\",47:\"STADIUMSTART\",48:\"STADIUMEND\",49:\"SUBROUTINESTART\",50:\"SUBROUTINEEND\",51:\"CYLINDERSTART\",52:\"CYLINDEREND\",53:\"DIAMOND_START\",54:\"DIAMOND_STOP\",55:\"TAGEND\",56:\"TRAPSTART\",57:\"TRAPEND\",58:\"INVTRAPSTART\",59:\"INVTRAPEND\",62:\"STR\",63:\"START_LINK\",64:\"LINK\",65:\"PIPE\",68:\"STYLE\",69:\"LINKSTYLE\",70:\"CLASSDEF\",71:\"CLASS\",72:\"CLICK\",73:\"DOWN\",74:\"UP\",77:\"DEFAULT\",80:\"HEX\",82:\"INTERPOLATE\",83:\"NUM\",84:\"COMMA\",87:\"ALPHA\",88:\"COLON\",89:\"MINUS\",90:\"UNIT\",91:\"BRKT\",92:\"DOT\",93:\"PCT\",94:\"TAGSTART\",98:\"PUNCTUATION\",99:\"UNICODE_TEXT\",100:\"PLUS\",101:\"EQUALS\",102:\"MULT\",103:\"UNDERSCORE\",105:\"ARROW_CROSS\",106:\"ARROW_POINT\",107:\"ARROW_CIRCLE\",108:\"ARROW_OPEN\",109:\"QUOTE\",110:\"open_directive\",111:\"type_directive\",112:\"arg_directive\",113:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[5,0],[5,2],[7,1],[7,1],[7,1],[7,1],[7,1],[6,4],[6,6],[4,2],[4,2],[4,3],[22,2],[22,1],[23,1],[23,1],[23,1],[21,1],[21,1],[21,2],[25,2],[25,2],[25,1],[25,1],[24,2],[24,1],[8,2],[8,2],[8,2],[8,2],[8,2],[8,2],[8,9],[8,6],[8,4],[8,1],[16,1],[16,1],[16,1],[26,3],[26,4],[26,2],[26,1],[38,1],[38,5],[38,3],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,1],[37,2],[37,3],[37,3],[37,1],[37,3],[60,1],[61,3],[33,1],[33,2],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[75,1],[75,2],[29,5],[29,5],[30,5],[31,5],[31,7],[31,5],[31,7],[27,5],[27,5],[28,5],[28,5],[28,9],[28,9],[28,7],[28,7],[81,1],[81,3],[78,1],[78,3],[85,1],[85,2],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[76,1],[76,1],[76,1],[76,1],[42,1],[42,2],[79,1],[79,2],[97,1],[97,1],[97,1],[97,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[13,1],[14,1],[18,1],[15,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n this.$ = [];\nbreak;\ncase 4:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 5: case 71: case 84: case 119: case 131: case 133: case 134:\nthis.$=$$[$0];\nbreak;\ncase 14:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 29:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 30: case 31: case 32: case 33: case 34:\nthis.$=[];\nbreak;\ncase 35:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 36:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 37:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 42:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 43:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 44:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 45:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 46:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 47:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 48:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 50:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 53:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 57:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 62:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 63:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 64:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 65: case 66:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 67:\nthis.$ = $$[$0];\nbreak;\ncase 68:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 69:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 70:\nthis.$ = $$[$0-1];\nbreak;\ncase 72: case 85: case 132:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 86: case 87:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 89:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 90:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 91:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 92:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 93:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 94: case 96:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 98:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 99:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 100:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 101: case 103:\nthis.$ = [$$[$0]]\nbreak;\ncase 102: case 104:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 106:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 129:\nthis.$=$$[$0]\nbreak;\ncase 130:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 135:\nthis.$='v';\nbreak;\ncase 136:\nthis.$='-';\nbreak;\ncase 190:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 191:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 192:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 193:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{1:[3]},o($V4,$V5,{5:9}),{3:10,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{4:11,10:$V0,11:$V1,19:$V2},{4:12,10:$V0,11:$V1,19:$V2},{20:[1,13]},{14:14,111:[1,15]},{111:[2,190]},{1:[2,1],6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{1:[2,2]},o($V4,[2,12]),o($V4,[2,13]),{9:[1,55],10:[1,56],11:$Vv,21:54,24:57},{15:59,17:[1,60],113:$Vw},o([17,113],[2,191]),o($Vx,[2,4]),o($Vx,[2,5]),o($Vx,[2,6]),o($Vx,[2,7]),o($Vx,[2,8]),o($Vx,[2,9]),{9:$Vy,10:$Vz,12:$VA,16:62,37:63,60:67,63:[1,68],64:[1,69]},{9:$Vy,10:$Vz,12:$VA,16:70},{9:$Vy,10:$Vz,12:$VA,16:71},{9:$Vy,10:$Vz,12:$VA,16:72},{9:$Vy,10:$Vz,12:$VA,16:73},{9:$Vy,10:$Vz,12:$VA,16:74},{9:$Vy,10:$Vz,11:[1,75],12:$VA,16:76},o($Vx,[2,38]),o($VB,[2,45],{24:77,11:$Vv}),{11:[1,78]},{11:[1,79]},{11:[1,80]},{11:[1,81]},{11:[1,82]},o($VC,[2,46],{41:[1,83]}),o($VD,[2,63],{96:94,34:[1,84],40:$Vb,43:[1,85],45:[1,86],47:[1,87],49:[1,88],51:[1,89],53:[1,90],55:[1,91],56:[1,92],58:[1,93],73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),o($VE,[2,129]),o($VE,[2,150]),o($VE,[2,151]),o($VE,[2,152]),o($VE,[2,153]),o($VE,[2,154]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($V4,[2,14]),o($V4,[2,20]),o($V4,[2,21]),{10:[1,95]},o($VF,[2,28],{24:96,11:$Vv}),{9:$Vy,10:$Vz,12:$VA,16:97},{18:98,112:[1,99]},o($VG,[2,193]),o($Vx,[2,29]),{38:100,39:36,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},o($VH,[2,39]),o($VH,[2,40]),o($VH,[2,41]),o($VI,[2,67],{61:101,62:[1,102],65:[1,103]}),{11:$VJ,19:$VK,20:$VL,32:$VM,33:104,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o([40,62,65,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,69]),o($Vx,[2,30]),o($Vx,[2,31]),o($Vx,[2,32]),o($Vx,[2,33]),o($Vx,[2,34]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:141,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:142}),o($VB,[2,44],{40:$Ve1}),{20:$Vf1,40:$VO,73:$Vg1,79:144,80:[1,145],83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{77:[1,151],81:152,83:[1,153]},{20:$Vf1,40:$VO,73:$Vg1,77:[1,154],79:155,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:156,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:157,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{40:$Vb,42:158,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$VJ,19:$VK,20:$VL,32:$VM,33:159,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:161,36:$VN,40:$VO,43:[1,160],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:162,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:163,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:164,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:165,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:166,36:$VN,40:$VO,53:[1,167],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:168,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:169,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:170,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VE,[2,130]),o($V4,[2,22]),o($VF,[2,27]),o($VH,[2,10]),{15:171,113:$Vw},{113:[2,192]},o($VB,[2,42],{24:172,11:$Vv}),o($VI,[2,64],{11:[1,173]}),{11:[1,174]},{11:$VJ,19:$VK,20:$VL,32:$VM,33:175,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,64:[1,176],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vi1,[2,71]),o($Vi1,[2,118]),o($Vi1,[2,119]),o($Vi1,[2,120]),o($Vi1,[2,121]),o($Vi1,[2,122]),o($Vi1,[2,123]),o($Vi1,[2,124]),o($Vi1,[2,125]),o($Vi1,[2,126]),o($Vi1,[2,127]),o($Vi1,[2,128]),o($Vi1,[2,137]),o($Vi1,[2,138]),o($Vi1,[2,139]),o($Vi1,[2,140]),o($Vi1,[2,141]),o($Vi1,[2,142]),o($Vi1,[2,143]),o($Vi1,[2,144]),o($Vi1,[2,145]),o($Vi1,[2,146]),o($Vi1,[2,147]),o($Vi1,[2,148]),o($Vi1,[2,149]),o($Vi1,[2,73]),o($Vi1,[2,74]),o($Vi1,[2,75]),o($Vi1,[2,76]),o($Vi1,[2,77]),o($Vi1,[2,78]),o($Vi1,[2,79]),o($Vi1,[2,80]),o($Vi1,[2,81]),o($Vi1,[2,82]),o($Vi1,[2,83]),{9:$Vy,10:$Vz,11:$VJ,12:$VA,16:179,19:$VK,20:$VL,32:$VM,34:[1,178],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,180],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vv,24:181},{11:[1,182],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,184]},o($Vj1,[2,131]),o($Vj1,[2,133]),o($Vj1,[2,134]),o($Vj1,[2,135]),o($Vj1,[2,136]),{11:[1,185]},{11:[1,186],84:[1,187]},o($Vk1,[2,101]),{11:[1,188]},{11:[1,189],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,190],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,191],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VC,[2,48],{96:94,40:$Vb,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,192],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:193,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,194],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,46:[1,195],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,48:[1,196],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,50:[1,197],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,52:[1,198],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,199],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:200,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,201],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,202],59:[1,203],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,205],59:[1,204],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{9:$Vy,10:$Vz,12:$VA,16:206},o($VB,[2,43],{40:$Ve1}),o($VI,[2,66]),o($VI,[2,65]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,65:[1,207],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VI,[2,68]),o($Vi1,[2,72]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:208,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:209}),o($Vx,[2,37]),{39:210,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$Vl1,68:$Vm1,78:211,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vj1,[2,132]),{11:$Vl1,68:$Vm1,78:225,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:226,80:$Vn1,82:[1,227],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:228,80:$Vn1,82:[1,229],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{83:[1,230]},{11:$Vl1,68:$Vm1,78:231,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:232,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{20:$Vf1,40:$VO,73:$Vg1,79:233,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,62:[1,235],73:$Vg1,79:234,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,49]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,236],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,55]),o($VD,[2,51]),o($VD,[2,52]),o($VD,[2,53]),o($VD,[2,54]),o($VD,[2,56]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,237],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),o($VD,[2,60]),o($VD,[2,62]),o($VH,[2,11]),o([11,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,70]),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,238],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,239],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},o($VC,[2,47]),o($VG,[2,93],{84:$Vw1}),o($Vx1,[2,103],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($Vy1,[2,105]),o($Vy1,[2,107]),o($Vy1,[2,108]),o($Vy1,[2,109]),o($Vy1,[2,110]),o($Vy1,[2,111]),o($Vy1,[2,112]),o($Vy1,[2,113]),o($Vy1,[2,114]),o($Vy1,[2,115]),o($Vy1,[2,116]),o($Vy1,[2,117]),o($VG,[2,94],{84:$Vw1}),o($VG,[2,95],{84:$Vw1}),{11:[1,242]},o($VG,[2,96],{84:$Vw1}),{11:[1,243]},o($Vk1,[2,102]),o($VG,[2,86],{84:$Vw1}),o($VG,[2,87],{84:$Vw1}),o($VG,[2,88],{95:148,97:183,20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,89],{95:148,97:183,11:[1,244],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,91],{11:[1,245]}),{44:[1,246]},{54:[1,247]},{9:$Vy,10:$Vz,12:$VA,16:248},o($Vx,[2,36]),{11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,85:249,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vy1,[2,106]),{20:$Vf1,40:$VO,73:$Vg1,79:250,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:251,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{62:[1,252]},{62:[1,253]},o($VD,[2,50]),o($VD,[2,57]),o($Vd1,$V5,{5:254}),o($Vx1,[2,104],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($VG,[2,99],{95:148,97:183,11:[1,255],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,100],{95:148,97:183,11:[1,256],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,90]),o($VG,[2,92]),{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,257],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vl1,68:$Vm1,78:258,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:259,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vx,[2,35]),o($VG,[2,97],{84:$Vw1}),o($VG,[2,98],{84:$Vw1})],\ndefaultActions: {8:[2,190],10:[2,2],99:[2,192]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 110; \nbreak;\ncase 1: this.begin('type_directive'); return 111; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 113; \nbreak;\ncase 4:return 112;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 68;\nbreak;\ncase 11:return 77;\nbreak;\ncase 12:return 69;\nbreak;\ncase 13:return 82;\nbreak;\ncase 14:return 70;\nbreak;\ncase 15:return 71;\nbreak;\ncase 16:return 72;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 19:return 32;\nbreak;\ncase 20:return 36;\nbreak;\ncase 21: this.popState(); return 20; \nbreak;\ncase 22: this.popState(); return 20; \nbreak;\ncase 23: this.popState(); return 20; \nbreak;\ncase 24: this.popState(); return 20; \nbreak;\ncase 25: this.popState(); return 20; \nbreak;\ncase 26: this.popState(); return 20; \nbreak;\ncase 27: this.popState(); return 20; \nbreak;\ncase 28: this.popState(); return 20; \nbreak;\ncase 29: this.popState(); return 20; \nbreak;\ncase 30: this.popState(); return 20; \nbreak;\ncase 31: return 83;\nbreak;\ncase 32:return 91;\nbreak;\ncase 33:return 41;\nbreak;\ncase 34:return 88;\nbreak;\ncase 35:return 40;\nbreak;\ncase 36:return 9;\nbreak;\ncase 37:return 84;\nbreak;\ncase 38:return 102;\nbreak;\ncase 39:return 64;\nbreak;\ncase 40:return 64;\nbreak;\ncase 41:return 64;\nbreak;\ncase 42:return 64;\nbreak;\ncase 43:return 64;\nbreak;\ncase 44:return 64;\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 64;\nbreak;\ncase 47:return 64;\nbreak;\ncase 48:return 64;\nbreak;\ncase 49:return 64;\nbreak;\ncase 50:return 64;\nbreak;\ncase 51:return 64;\nbreak;\ncase 52:return 64;\nbreak;\ncase 53:return 64;\nbreak;\ncase 54:return 64;\nbreak;\ncase 55:return 64;\nbreak;\ncase 56:return 64;\nbreak;\ncase 57:return 64;\nbreak;\ncase 58:return 64;\nbreak;\ncase 59:return 64;\nbreak;\ncase 60:return 64;\nbreak;\ncase 61:return 64;\nbreak;\ncase 62:return 64;\nbreak;\ncase 63:return 64;\nbreak;\ncase 64:return 64;\nbreak;\ncase 65:return 64;\nbreak;\ncase 66:return 64;\nbreak;\ncase 67:return 63;\nbreak;\ncase 68:return 63;\nbreak;\ncase 69:return 63;\nbreak;\ncase 70:return 63;\nbreak;\ncase 71:return 63;\nbreak;\ncase 72:return 63;\nbreak;\ncase 73:return 63;\nbreak;\ncase 74:return 63;\nbreak;\ncase 75:return 63;\nbreak;\ncase 76:return 63;\nbreak;\ncase 77:return 63;\nbreak;\ncase 78:return 63;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 47;\nbreak;\ncase 82:return 48;\nbreak;\ncase 83:return 49;\nbreak;\ncase 84:return 50;\nbreak;\ncase 85:return 51;\nbreak;\ncase 86:return 52;\nbreak;\ncase 87:return 89;\nbreak;\ncase 88:return 92;\nbreak;\ncase 89:return 103;\nbreak;\ncase 90:return 100;\nbreak;\ncase 91:return 93;\nbreak;\ncase 92:return 101;\nbreak;\ncase 93:return 101;\nbreak;\ncase 94:return 94;\nbreak;\ncase 95:return 55;\nbreak;\ncase 96:return 74;\nbreak;\ncase 97:return 'SEP';\nbreak;\ncase 98:return 73;\nbreak;\ncase 99:return 87;\nbreak;\ncase 100:return 57;\nbreak;\ncase 101:return 56;\nbreak;\ncase 102:return 59;\nbreak;\ncase 103:return 58;\nbreak;\ncase 104:return 98;\nbreak;\ncase 105:return 99;\nbreak;\ncase 106:return 65;\nbreak;\ncase 107:return 43;\nbreak;\ncase 108:return 44;\nbreak;\ncase 109:return 34;\nbreak;\ncase 110:return 35;\nbreak;\ncase 111:return 53\nbreak;\ncase 112:return 54\nbreak;\ncase 113:return 109;\nbreak;\ncase 114:return 10;\nbreak;\ncase 115:return 11;\nbreak;\ncase 116:return 12;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%[^\\n]*)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*<-->\\s*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-Za-z]+)/,/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_\\/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\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\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.taskTextDarkColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () => ``;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n *\n */\nimport { logger } from '../../logger';\n\nlet sections = {};\nlet title = '';\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,10],\"inclusive\":false},\"ID\":{\"rules\":[9,10,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[9,10,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[9,10,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || autoWrap()\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import mermaidAPI from '../../mermaidAPI';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n // console.log('Starting rendering diagrams (init) - mermaid.init');\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n reinitialize(graphInit);\n } else {\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n }\n\n const cnf = getConfig();\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n directive.args = { config: { wrap: directive.type === 'wrap' } };\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options);\n if (options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = options.theme;\n }\n\n // Set default options\n const config = typeof options === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\n// function getConfig () {\n// console.warn('get config')\n// return config\n// }\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig,\n getSiteConfig,\n reset: () => {\n // console.warn('reset');\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import { darken, lighten, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#9f33be';\n this.secondaryColor = '#b20238';\n this.tertiaryColor = lighten(this.primaryColor, 30);\n this.relationColor = '#000';\n\n // this.primaryColor = '#fa255e';\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n // this.primaryColor = '#ECECFF';\n // this.secondaryColor = '#ffffde';\n // this.tertiaryColor = '#ffffde';\n\n this.background = 'white';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n this.noteBkgColor = '#fff5ad';\n this.noteBorderColor = '#aaaa33';\n this.updateColors();\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = darken(this.primaryColor, 23); // border 1\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = darken(this.tertiaryColor, 30);\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = lighten(this.primaryColor, 23);\n this.taskBkgColor = this.primaryColor;\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n","module.exports = require(\"@braintree/sanitize-url\");","module.exports = require(\"d3\");","module.exports = require(\"dagre\");","module.exports = require(\"dagre-d3\");","module.exports = require(\"dagre-d3/lib/label/add-html-label.js\");","module.exports = require(\"entity-decode/browser\");","module.exports = require(\"graphlib\");","module.exports = require(\"khroma\");","module.exports = require(\"moment-mini\");","module.exports = require(\"stylis\");"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://mermaid/webpack/universalModuleDefinition","webpack://mermaid/webpack/bootstrap","webpack://mermaid/./node_modules/path-browserify/index.js","webpack://mermaid/./node_modules/process/browser.js","webpack://mermaid/(webpack)/buildin/module.js","webpack://mermaid/./src/config.js","webpack://mermaid/./src/dagre-wrapper/clusters.js","webpack://mermaid/./src/dagre-wrapper/createLabel.js","webpack://mermaid/./src/dagre-wrapper/edges.js","webpack://mermaid/./src/dagre-wrapper/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-circle.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-ellipse.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-line.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-node.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-polygon.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-rect.js","webpack://mermaid/./src/dagre-wrapper/markers.js","webpack://mermaid/./src/dagre-wrapper/mermaid-graphlib.js","webpack://mermaid/./src/dagre-wrapper/nodes.js","webpack://mermaid/./src/dagre-wrapper/shapes/note.js","webpack://mermaid/./src/dagre-wrapper/shapes/util.js","webpack://mermaid/./src/defaultConfig.js","webpack://mermaid/./src/diagrams/class/classDb.js","webpack://mermaid/./src/diagrams/class/classRenderer-v2.js","webpack://mermaid/./src/diagrams/class/classRenderer.js","webpack://mermaid/./src/diagrams/class/parser/classDiagram.jison","webpack://mermaid/./src/diagrams/class/styles.js","webpack://mermaid/./src/diagrams/class/svgDraw.js","webpack://mermaid/./src/diagrams/common/common.js","webpack://mermaid/./src/diagrams/er/erDb.js","webpack://mermaid/./src/diagrams/er/erMarkers.js","webpack://mermaid/./src/diagrams/er/erRenderer.js","webpack://mermaid/./src/diagrams/er/parser/erDiagram.jison","webpack://mermaid/./src/diagrams/er/styles.js","webpack://mermaid/./src/diagrams/flowchart/flowChartShapes.js","webpack://mermaid/./src/diagrams/flowchart/flowDb.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer-v2.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer.js","webpack://mermaid/./src/diagrams/flowchart/parser/flow.jison","webpack://mermaid/./src/diagrams/flowchart/styles.js","webpack://mermaid/./src/diagrams/gantt/ganttDb.js","webpack://mermaid/./src/diagrams/gantt/ganttRenderer.js","webpack://mermaid/./src/diagrams/gantt/parser/gantt.jison","webpack://mermaid/./src/diagrams/gantt/styles.js","webpack://mermaid/./src/diagrams/git/gitGraphAst.js","webpack://mermaid/./src/diagrams/git/gitGraphRenderer.js","webpack://mermaid/./src/diagrams/git/parser/gitGraph.jison","webpack://mermaid/./src/diagrams/git/styles.js","webpack://mermaid/./src/diagrams/info/infoDb.js","webpack://mermaid/./src/diagrams/info/infoRenderer.js","webpack://mermaid/./src/diagrams/info/parser/info.jison","webpack://mermaid/./src/diagrams/info/styles.js","webpack://mermaid/./src/diagrams/pie/parser/pie.jison","webpack://mermaid/./src/diagrams/pie/pieDb.js","webpack://mermaid/./src/diagrams/pie/pieRenderer.js","webpack://mermaid/./src/diagrams/pie/styles.js","webpack://mermaid/./src/diagrams/sequence/parser/sequenceDiagram.jison","webpack://mermaid/./src/diagrams/sequence/sequenceDb.js","webpack://mermaid/./src/diagrams/sequence/sequenceRenderer.js","webpack://mermaid/./src/diagrams/sequence/styles.js","webpack://mermaid/./src/diagrams/sequence/svgDraw.js","webpack://mermaid/./src/diagrams/state/id-cache.js","webpack://mermaid/./src/diagrams/state/parser/stateDiagram.jison","webpack://mermaid/./src/diagrams/state/shapes.js","webpack://mermaid/./src/diagrams/state/stateDb.js","webpack://mermaid/./src/diagrams/state/stateRenderer-v2.js","webpack://mermaid/./src/diagrams/state/stateRenderer.js","webpack://mermaid/./src/diagrams/state/styles.js","webpack://mermaid/./src/diagrams/user-journey/journeyDb.js","webpack://mermaid/./src/diagrams/user-journey/journeyRenderer.js","webpack://mermaid/./src/diagrams/user-journey/parser/journey.jison","webpack://mermaid/./src/diagrams/user-journey/styles.js","webpack://mermaid/./src/diagrams/user-journey/svgDraw.js","webpack://mermaid/./src/errorRenderer.js","webpack://mermaid/./src/logger.js","webpack://mermaid/./src/mermaid.js","webpack://mermaid/./src/mermaidAPI.js","webpack://mermaid/./src/styles.js","webpack://mermaid/./src/themes/index.js","webpack://mermaid/./src/themes/theme-base.js","webpack://mermaid/./src/themes/theme-dark.js","webpack://mermaid/./src/themes/theme-default.js","webpack://mermaid/./src/themes/theme-forest.js","webpack://mermaid/./src/themes/theme-neutral.js","webpack://mermaid/./src/utils.js","webpack://mermaid/external \"@braintree/sanitize-url\"","webpack://mermaid/external \"d3\"","webpack://mermaid/external \"dagre\"","webpack://mermaid/external \"dagre-d3\"","webpack://mermaid/external \"dagre-d3/lib/label/add-html-label.js\"","webpack://mermaid/external \"entity-decode/browser\"","webpack://mermaid/external \"graphlib\"","webpack://mermaid/external \"khroma\"","webpack://mermaid/external \"moment-mini\"","webpack://mermaid/external \"stylis\""],"names":["defaultConfig","Object","freeze","config","siteConfig","assignWithDepth","directives","currentConfig","updateCurrentConfig","conf","themeVariables","forEach","d","variables","theme","getThemeVariables","setSiteConfig","updateSiteConfig","console","log","getSiteConfig","setConfig","getConfig","sanitize","options","keys","secure","key","logger","trace","addDirective","directive","push","reset","rect","parent","node","id","shapeSvg","insert","attr","label","text","appendChild","createLabel","labelText","labelStyle","undefined","bbox","getBBox","flowchart","htmlLabels","div","children","dv","select","getBoundingClientRect","width","height","padding","halfPadding","JSON","stringify","rx","ry","x","y","rectBox","intersect","point","intersectRect","noteGroup","roundedWithTitle","classes","innerRect","append","divider","shapes","clusterElems","insertCluster","elem","shape","getClusterTitleWidth","removeChild","clear","positionCluster","info","el","applyStyle","dom","styleFn","addHtmlLabel","fo","document","createElementNS","labelClass","isNode","html","style","_vertexText","isTitle","vertexText","replace","s","vertexNode","svgLabel","setAttribute","rows","split","Array","isArray","j","length","tspan","setAttributeNS","textContent","trim","edgeLabels","insertEdgeLabel","edge","labelElement","edgeLabel","positionEdgeLabel","points","pos","utils","calcLabelPosition","outsideNode","dx","Math","abs","dy","w","h","intersection","outsidePoint","insidePoint","warn","r","edges","x1","x2","y1","y2","Q","R","q","res","insertEdge","e","clusterDb","diagramType","graph","pointsHasChanged","tail","v","head","slice","unshift","toCluster","lastPointOutside","isInside","inter","pointPresent","p","find","fromCluster","updatedPoints","i","insterection","lineData","filter","Number","isNaN","lineFunction","line","curve","curveBasis","strokeClasses","thickness","pattern","svgPath","url","state","arrowMarkerAbsolute","window","location","protocol","host","pathname","search","arrowTypeStart","arrowTypeEnd","recursiveRender","_elem","diagramtype","parentCluster","graphlib","json","write","dir","rankdir","nodes","clusters","edgePaths","data","parse","clusterData","setNode","setParent","clusterNode","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","insertNode","name","dagre","layout","positionNode","updatedPath","render","markers","insertMarkers","clearNodes","clearEdges","clearClusters","clearGraphlib","adjustClustersAndEdges","circle","ellipse","polygon","intersectCircle","intersectEllipse","cx","cy","px","py","det","sqrt","intersectLine","p1","p2","q1","q2","a1","a2","b1","b2","c1","c2","r1","r2","r3","r4","denom","offset","num","sameSign","module","exports","intersectNode","intersectPolygon","polyPoints","intersections","minX","POSITIVE_INFINITY","minY","entry","min","left","top","sort","pdx","pdy","distp","qdx","qdy","distq","sx","sy","markerArray","type","markerName","extension","composition","aggregation","dependency","cross","barb","decendants","parents","isDecendant","ancenstorId","debug","indexOf","edgeInCluster","clusterId","copy","newGraph","rootId","setEdge","error","removeNode","extractDecendants","concat","validate","_id","getAnchorId","externalConnections","depth","d1","d2","extractor","removeEdge","hasChildren","graphSettings","clusterGraph","Graph","multigraph","compound","setGraph","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","question","labelHelper","questionElem","insertPolygonShape","hexagon","f","m","hex","rect_left_inv_arrow","lean_right","lean_left","trapezoid","inv_trapezoid","rect_right_inv_arrow","cylinder","rectWithTitle","innerLine","text2","flat","textRows","titleBox","descr","join","stadium","subroutine","start","forkJoin","end","innerCircle","class_box","rowPadding","lineHeight","topLine","bottomLine","maxWidth","maxHeight","labelContainer","verticalPos","hasInterface","classData","annotations","interfaceLabel","interfaceBBox","classTitleLabel","classTitleBBox","classAttributes","members","str","lbl","classMethods","methods","diffX","note","fork","nodeElems","_classes","element","map","themeCSS","maxTextSize","fontFamily","logLevel","securityLevel","startOnLoad","diagramPadding","nodeSpacing","rankSpacing","sequence","activationWidth","diagramMarginX","diagramMarginY","actorMargin","boxMargin","boxTextMargin","noteMargin","messageMargin","messageAlign","mirrorActors","bottomMarginAdj","useMaxWidth","rightAngles","showSequenceNumbers","actorFontSize","actorFontFamily","actorFontWeight","noteFontSize","noteFontFamily","noteFontWeight","noteAlign","messageFontSize","messageFontFamily","messageFontWeight","wrap","wrapPadding","labelBoxWidth","labelBoxHeight","messageFont","fontSize","fontWeight","noteFont","actorFont","gantt","titleTopMargin","barHeight","barGap","topPadding","leftPadding","gridLineStartPadding","numberSectionStyles","axisFormat","journey","class","git","dividerMargin","sizeUnit","textHeight","titleShift","forkWidth","forkHeight","miniPadding","fontSizeFactor","labelHeight","edgeLengthFactor","compositTitleSize","radius","er","layoutDirection","minEntityWidth","minEntityHeight","entityPadding","stroke","fill","MERMAID_DOM_ID_PREFIX","configApi","relations","classCounter","funs","parseDirective","statement","context","mermaidAPI","splitClassNameAndType","genericType","className","addClass","classId","cssClasses","domId","lookUpDomId","classKeys","setupToolTips","getClass","getClasses","getRelations","addRelation","relation","id1","id2","addAnnotation","annotation","validatedClassName","addMember","member","theClass","memberString","startsWith","endsWith","substring","addMembers","reverse","cleanupLabel","substr","setCssClass","ids","match","setLink","linkStr","tooltip","link","formatUrl","common","sanitizeText","setClickEvent","functionName","setClickFunc","elemId","querySelector","addEventListener","runFunc","bindFunctions","fun","lineType","LINE","DOTTED_LINE","relationType","AGGREGATION","EXTENSION","COMPOSITION","DEPENDENCY","tooltipElem","_groups","svg","selectAll","on","title","transition","duration","scrollX","right","scrollY","body","scrollTop","classed","parser","yy","classDb","idCache","addClasses","g","vertex","classStr","styles","radious","_shape","addRelations","cnt","defaultStyle","defaultLabelStyle","edgeData","arrowhead","getArrowMarker","type1","type2","getStylesFromArray","interpolate","interpolateToCurve","curveLinear","defaultInterpolate","arrowheadStyle","labelpos","labelType","lineBreakRegex","getGraphId","setConf","cnf","drawOld","diagram","isMultiGraph","classDef","svgDraw","drawClass","drawEdge","svgBounds","vBox","draw","_label","labels","querySelectorAll","k","dim","insertBefore","firstChild","marker","getStyles","nodeBorder","classText","mainBkg","nodeBkg","lineColor","edgeCount","path","getRelationType","l","labelPosition","p1_card_x","p1_card_y","p2_card_x","p2_card_y","cardinality_1_point","calcCardinalityPosition","cardinality_2_point","bounds","relationTitle1","relationTitle2","cssClassStr","classInfo","isFirst","titleText2","classTitleString","classTitle","titleHeight","membersLine","addTspan","membersBox","methodsLine","method","classBox","rectWidth","childNodes","parseMember","fieldRegEx","methodRegEx","fieldMatch","methodMatch","buildFieldDisplay","buildMethodDisplay","buildLegacyDisplay","parsedText","displayText","visibility","fieldType","parseGenericTypes","fieldName","err","cssStyle","methodName","parameters","classifier","returnType","parseClassifier","memberText","methodStart","methodEnd","firstChar","textEl","txt","tSpan","cleanedText","getRows","breakToPlaceholder","removeScript","rs","idx","level","placeholderToBreak","hasBreaks","test","splitBreaks","entities","relationships","Cardinality","ZERO_OR_ONE","ZERO_OR_MORE","ONE_OR_MORE","ONLY_ONE","Identification","NON_IDENTIFYING","IDENTIFYING","addEntity","getEntities","addRelationship","entA","rolA","entB","rSpec","rel","entityA","roleA","entityB","relSpec","getRelationships","setTitle","getTitle","ERMarkers","ONLY_ONE_START","ONLY_ONE_END","ZERO_OR_ONE_START","ZERO_OR_ONE_END","ONE_OR_MORE_START","ONE_OR_MORE_END","ZERO_OR_MORE_START","ZERO_OR_MORE_END","drawEntities","svgNode","firstOne","groupNode","textId","textNode","textBBox","entityWidth","max","entityHeight","rectNode","rectBBox","adjustEntities","getEdgeName","addRelationships","relationship","relCnt","drawRelationshipFromLayout","relType","erDb","cardA","erMarkers","cardB","len","getTotalLength","labelPoint","getPointAtLength","labelId","labelNode","labelBBox","erParser","directed","edgesep","firstEntity","tertiaryColor","dagreD3","addToRender","addToRenderV2","addShape","vertices","subGraphs","subGraphLookup","tooltips","subCount","firstGraphFlag","direction","addVertex","addSingleLink","_start","_end","linktext","addLink","updateLinkInterpolate","positions","interp","updateLink","isSubstringInArray","textStyles","newStyle1","newStyle2","setDirection","setClass","setTooltip","setClickFun","getTooltip","getDirection","getVertices","getEdges","addSubGraph","list","_title","uniq","a","prims","boolean","number","string","objs","item","hasOwnProperty","nodeList","apply","subGraph","getPosForId","secCount","posCrossRef","indexNodes2","result","count","posCount","childPos","getDepthFirstPos","indexNodes","getSubGraphs","firstGraph","destructStartLink","_str","destructEndLink","destructLink","_startStr","startInfo","lex","addVertices","vert","svgId","parentNode","addEdges","defaultStyles","linkId","linkNameStart","linkNameEnd","flowDb","flow","subG","linkNode","Render","flowChartShapes","arrows","none","normal","util","clusterRects","clusterEl","xPos","baseVal","value","yPos","cluster","te","classList","add","textColor","arrowheadColor","edgeLabelBackground","clusterBkg","clusterBorder","titleColor","secondBkg","border2","dateFormat","todayMarker","excludes","sections","tasks","currentSection","tags","inclusiveEndDates","lastOrder","taskCnt","lastTask","lastTaskID","rawTasks","setAxisFormat","getAxisFormat","setTodayMarker","getTodayMarker","setDateFormat","enableInclusiveEndDates","endDatesAreInclusive","getDateFormat","setExcludes","toLowerCase","getExcludes","addSection","getSections","getTasks","allItemsPricessed","compileTasks","maxDepth","iterationCount","isInvalidDate","date","isoWeekday","format","checkTaskDates","task","manualEndTime","startTime","moment","endTime","renderEndTime","fixTaskDates","toDate","invalid","getStartDate","prevTime","re","afterStatement","exec","latestEndingTask","findTaskById","dt","Date","setHours","mDate","isValid","durationToDate","durationStatement","relativeTime","getEndDate","inclusive","parseId","idStr","compileData","prevTask","dataStr","ds","getTaskTags","endTimeData","parseData","prevTaskId","startData","taskDb","addTask","rawTask","section","processed","raw","taskInfo","active","done","crit","milestone","order","addTaskOrg","newTask","description","compileTask","allProcessed","_linkStr","sanitizeUrl","pushFun","open","functionArgs","argList","charAt","callbackFunction","matchFound","t","regex","RegExp","shift","ganttDb","rightPadding","getElementById","parentElement","offsetWidth","useWidth","taskArray","timeScale","scaleTime","domain","rangeRound","categories","catsUnfiltered","checkUnique","taskCompare","b","taskA","taskB","makeGant","pageWidth","pageHeight","gap","colorScale","scaleLinear","range","interpolateHcl","makeGrid","drawRects","vertLabels","drawToday","theArray","theGap","theTopPad","theSidePad","theBarHeight","theColorScale","enter","rectangles","toString","secNum","taskClass","startX","endX","textWidth","taskType","xAxis","axisBottom","tickSize","tickFormat","timeFormat","call","numOccurances","prevGap","getCount","todayG","today","todayLine","arr","hash","getCounts","obj","word","sectionBkgColor","sectionBkgColor2","altSectionBkgColor","gridColor","todayLineColor","taskTextDarkColor","taskTextClickableColor","taskTextColor","taskBkgColor","taskBorderColor","taskTextOutsideColor","activeTaskBkgColor","activeTaskBorderColor","doneTaskBorderColor","doneTaskBkgColor","critBorderColor","critBkgColor","commits","branches","master","curBranch","seq","getId","random","isfastforwardable","currentCommit","otherCommit","isReachableFrom","currentSeq","otherSeq","uniqBy","fn","recordMap","create","reduce","out","setOptions","rawOptString","message","getOptions","commit","msg","branch","merge","otherBranch","checkout","commitRef","ref","parentCount","parseInt","upsert","newval","index","splice","prettyPrintCommitHistory","commitArr","c","newCommit","nextCommit","prettyPrint","getCommitsArray","getBranchesAsObjArray","branchArr","getBranches","getCommits","o","getCurrentBranch","getHead","allCommitsDict","branchNum","nodeFillColor","nodeStrokeWidth","nodeStrokeColor","lineStrokeWidth","branchOffset","leftMargin","branchColors","nodeRadius","nodeLabel","apiConfig","svgCreateDefs","svgDrawLine","colorIdx","color","lineGen","round","getElementCoords","coords","ctm","getCTM","xn","yn","svgDrawLineForCommits","fromId","toId","fromBbox","toBbox","lineStart","lineEnd","cloneNode","selector","renderCommitHistory","commitid","numCommits","size","branchName","renderLines","branchColor","lineDrawn","ver","gitGraphParser","db","assign","setMessage","getMessage","setInfo","inf","getInfo","infoParser","cleanupValue","pie","pieParser","pieData","margin","legendRectSize","legendSpacing","sum","scaleOrdinal","schemeSet2","d3pie","dataReady","entries","arcGenerator","arc","innerRadius","outerRadius","toFixed","centroid","legend","horz","prevActor","actors","messages","notes","titleWrapped","sequenceNumbersEnabled","wrapEnabled","addActor","old","autoWrap","nextActor","activationCount","part","LINETYPE","ACTIVE_START","from","actor","ACTIVE_END","addMessage","idFrom","idTo","answer","to","addSignal","messageType","Error","token","loc","first_line","last_line","first_column","last_column","expected","getMessages","getActors","getActor","getActorKeys","getTitleWrapped","enableSequenceNumbers","setWrap","wrapSetting","parseMessage","SOLID","DOTTED","NOTE","SOLID_CROSS","DOTTED_CROSS","SOLID_OPEN","DOTTED_OPEN","LOOP_START","LOOP_END","ALT_START","ALT_ELSE","ALT_END","OPT_START","OPT_END","PAR_START","PAR_AND","PAR_END","RECT_START","RECT_END","ARROWTYPE","FILLED","OPEN","PLACEMENT","LEFTOF","RIGHTOF","OVER","addNote","placement","titleWrap","param","signalType","loopText","optText","altText","parText","sequenceDb","startx","stopx","starty","stopy","sequenceItems","activations","models","getHeight","loops","it","acc","actorModel","addLoop","loopModel","msgModel","noteModel","lastActor","lastLoop","lastMessage","lastNote","init","updateVal","val","updateBounds","_self","updateFn","updateItemBounds","n","_startx","_stopx","_starty","_stopy","newActivation","actorRect","stackedSize","actorActivations","anchored","anchorElement","endActivation","lastActorActivationIdx","activation","lastIndexOf","createLoop","newLoop","endLoop","pop","addSectionToLoop","loop","sectionTitles","getVerticalPos","bumpVerticalPos","bump","getBounds","drawNote","getNoteRect","rectElem","drawRect","textObj","getTextObj","anchor","textMargin","valign","textElem","drawText","curr","drawMessage","sequenceIndex","lines","textDims","calculateTextDimensions","totalOffset","lineStarty","fromBounds","toBounds","drawActors","actorKeys","prevWidth","prevMargin","drawActor","activationBounds","actorObj","adjustLoopHeightForWrap","loopWidths","preMargin","postMargin","addLoopFn","heightAdjust","loopWidth","textConf","wrapLabel","maxMessageWidthPerActor","getMaxMessageWidthPerActor","calculateActorMargins","calculateLoopBounds","insertArrowHead","insertArrowCrossHead","insertSequenceNumber","activeEnd","activationData","drawActivation","drawLoop","drawBackgroundRect","includes","box","actorLines","extraVertForTitle","isNote","isMessage","textFont","wrappedMessage","messageDimensions","messageWidth","actorToMessageWidth","prop","actDims","actorKey","actorWidth","buildNoteModel","shouldWrap","textDimensions","buildMessageModel","process","fromIdx","toIdx","allBounds","boundedWidth","msgDims","stack","current","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","toAdd","enabled","stk","actorBorder","actorBkg","actorTextColor","actorLineColor","signalColor","sequenceNumberColor","signalTextColor","labelBoxBorderColor","labelBoxBkgColor","labelTextColor","loopTextColor","noteBorderColor","noteBkgColor","noteTextColor","activationBkgColor","activationBorderColor","rectData","textData","prevTextHeight","textElems","yfunc","dominantBaseline","alignmentBaseline","span","drawLabel","txtObject","genPoints","cut","actorCnt","center","_drawTextCandidateFunc","drawLoopLine","sectionHeight","lower","defs","byText","content","textAttrs","_setTextAttrs","byTspan","byFo","toText","fromTextAttrsDict","textPlacement","set","get","drawStartState","drawDivider","drawSimpleState","stateDef","drawDescrState","descriptions","isSecond","descrLine","descrBox","addTitleAndBox","altBkg","pad","dblPad","orgBox","orgWidth","orgX","titleWidth","graphBox","doc","lineY","drawEndState","drawForkJoinState","parentId","tmp","nText","_drawLongText","_text","tHeight","textBounds","drawState","stateInfo","stateBox","stateDb","titleRows","boundstmp","boxHeight","heightAdj","clone","rootDoc","setRootDoc","getRootDoc","docTranslator","first","stmt","state1","state2","currentDoc","newNode","generateId","docNode","getRootDocV2","extract","_doc","addState","newDoc","states","documents","root","currentDocument","startCnt","endCnt","addDescription","des","getState","getStates","logDocuments","_id1","_id2","_descr","theState","dividerCnt","getDividerId","trimColon","nodeDb","setupNode","altFlag","nodeData","noteData","groupData","position","arrowType","setupDoc","startId","endId","transformationLog","renderDoc","getLabelWidth","edgeFreeDoc","ranker","nodeSep","sub","boxBounds","noteDef","nodeCount","svgElem","dividers","pWidth","pShift","getAttribute","labelColor","background","tertiaryTextColor","primaryBorderColor","altBackground","allItemsProcessed","updateActors","tempActors","people","unique","Set","taskData","pieces","score","peeps","peopleList","journeyDb","taskMargin","taskFontSize","taskFontFamily","actorColours","sectionFills","sectionColours","drawActorLegend","person","colour","circleData","drawCircle","labelData","LEFT_MARGIN","initGraphics","actorNames","actorPos","actorName","drawTasks","fills","textColours","lastSection","sectionVHeight","taskPos","sectionNumber","drawSection","taskActors","drawTask","fillType0","fillType1","fillType2","fillType3","fillType4","fillType5","fillType6","fillType7","drawFace","faceData","circleElement","face","smile","d3arc","startAngle","PI","endAngle","sad","ambivalent","labelMargin","taskCount","graphics","LEVELS","fatal","setLogLevel","bind","time","arguments","mermaid","sequenceConfig","callback","Node","ganttConfig","now","innerHTML","decode","detectInit","svgCode","parseError","initialize","contentLoaded","graphInit","reinitialize","graphType","detectType","gitGraphAst","flowParser","sequenceParser","ganttParser","classParser","stateParser","infoDb","pieDb","journeyParser","encodeEntities","innerTxt","isInt","decodeEntities","_txt","cb","container","existingSvg","remove","userStyles","altFontFamily","flowRenderer","stylis","Stylis","rules","style1","createElement","gitGraphRenderer","flowRendererV2","sequenceDiagram","sequenceRenderer","ganttRenderer","classRenderer","classRendererV2","stateRenderer","stateRendererV2","infoRenderer","pkg","version","pieRenderer","erRenderer","journeyRenderer","errorRenderer","currentDirective","args","handleDirective","updateRendererConfigs","primaryColor","default","globalReset","themes","classDiagram","stateDiagram","calcThemeVariables","userOverRides","calcColors","errorBkgColor","errorTextColor","base","baseThemeVariables","dark","darkThemeVariables","defaultThemeVariables","forest","forestThemeVariables","neutral","neutralThemeVariables","mkBorder","col","darkMode","adjust","Theme","secondaryColor","border1","updateColors","relationColor","secondaryBorderColor","tertiaryBorderColor","primaryTextColor","invert","secondaryTextColor","defaultLinkColor","labelBackground","darken","lighten","taskTextLightColor","overrides","userOverrides","calculate","mainContrastColor","darkTextColor","rgba","contrast","critical","d3CurveTypes","curveBasisClosed","curveBasisOpen","curveLinearClosed","curveMonotoneX","curveMonotoneY","curveNatural","curveStep","curveStepAfter","curveStepBefore","directiveWithoutOpen","anyComment","inits","detectDirective","results","commentWithoutDirectives","source","lastIndex","memoize","resolver","cache","defaultCurve","curveName","toUpperCase","arrPaths","fnName","params","distance","pow","traverseEdge","prevPoint","totalDistance","remainingDistance","vectorDistance","distanceRatio","isRelationTypePresent","initialPosition","distanceToCardinalityPoint","angle","atan2","cardinalityPosition","sin","cos","makeid","characters","charactersLength","floor","dst","src","clobber","drawSimpleText","joinWith","words","completedLines","nextLine","wordLength","calculateTextWidth","nextLineLength","breakString","hyphenatedStrings","remainingWord","Boolean","currentWord","isLastWord","hyphenCharacter","currentLine","character","lineWidth","currentCharacter","isLastLine","hyphenatedNextLine","calculateTextHeight","fontFamilies","dims","cheight","bBox"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;AClFA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,MAAM;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,8BAA8B;AAClE;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,oBAAoB;AAC9B;AACA;;AAEA;AACA,UAAU,UAAU;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,sBAAsB;AACrD;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7SA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;A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EAAE;AAC1C,MAAM;AACN,WAAW,y+BAAy+B;AACp/B,aAAa,qjBAAqjB;AAClkB;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,iC;AACrB;AACA;AACA,wB;AACA;AACA;AACA,e;AACA;AACA;AACA,qC;AACA;AACA;AACA,4B;AACA;AACA;AACA,wB;AACA;AACA;AACA,2CAA2C,0B;AAC3C;AACA;AACA;AACA;AACA;AACA,iDAAiD,wBAAwB;AACzE;AACA;AACA,mC;AACA;AACA;AACA,mB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC;AAClC;AACA;AACA,WAAW,8F;AACX;AACA;AACA,WAAW;AACX;AACA;AACA,WAAW,6F;AACX;AACA;AACA,WAAW,8F;AACX;AACA;AACA,SAAS,+C;AACT;AACA;AACA,SAAS,6C;AACT;AACA;AACA,SAAS,6C;AACT;AACA;AACA,SAAS,2C;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,CAAC;AACD,SAAS,kCAAkC,EAAE,MAAM,EAAE,QAAQ,EAAE,kCAAkC,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,sBAAsB,mBAAmB,qIAAqI,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,oBAAoB,eAAe,UAAU,sFAAsF,gFAAgF,GAAG,iCAAiC,8BAA8B,2BAA2B,EAAE,iCAAiC,EAAE,iCAAiC,eAAe,2CAA2C,0DAA0D,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,+IAA+I,gBAAgB,2CAA2C,EAAE,4DAA4D,gBAAgB,oBAAoB,eAAe,kCAAkC,oGAAoG,UAAU,GAAG,UAAU,EAAE,UAAU,EAAE,UAAU,6BAA6B,iCAAiC,GAAG,UAAU,EAAE,UAAU,gBAAgB,iCAAiC,EAAE,2CAA2C,eAAe,kCAAkC,iBAAiB,aAAa,EAAE,iCAAiC,eAAe,UAAU,gBAAgB,UAAU,0DAA0D,iCAAiC,gBAAgB,UAAU,EAAE,uBAAuB,wEAAwE,UAAU;AAC37D,iBAAiB,gFAAgF;AACjG;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,kCAAkC;AAChE;AACA;AACA;AACA;AACA;AACA,wCAAwC,kBAAkB;AAC1D;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,yBAAyB,4HAA4H,oBAAoB,WAAW,yBAAyB,gQAAgQ;AAChiB,aAAa,UAAU,kCAAkC,YAAY,kCAAkC,WAAW,2CAA2C,mBAA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;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,kfAAkf;AAC7f,aAAa,+QAA+Q;AAC5R;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,iBAAiB,oCAAoC;AACrD;AACA;;AAEA,kBAAkB;AAClB,kEAAkE;;AAElE;AACA;AACA,qC;AACA;AACA;AACA,sC;AACA;AACA;AACA,qC;AACA;AACA;AACA,kC;AACA;AACA;AACA,4C;AACA;AACA;AACA,wC;AACA;AACA;AACA,mC;AACA;AACA;AACA,iB;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,8B;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,cAAc,IAAI,GAAG,0BAA0B,EAAE,cAAc,EAAE,UAAU,EAAE,qEAAqE,EAAE,QAAQ,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,oCAAoC,0CAA0C,wCAAwC,6BAA6B,UAAU,EAAE,gBAAgB,EAAE,UAAU,eAAe,aAAa,EAAE,0BAA0B,uEAAuE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,kCAAkC,8BAA8B,UAAU,EAAE,0BAA0B,EAAE,UAAU;AAC3uB,iBAAiB,+CAA+C;AAChE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;A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ACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,spDAAspD;AACjqD,aAAa,w7BAAw7B;AACr8B;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,qC;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C,WAAW,qD;AACrG;AACA;AACA,8CAA8C,gDAAgD,WAAW,yD;AACzG;AACA;AACA,iCAAiC,aAAa;AAC9C;AACA;AACA,gCAAgC,aAAa;AAC7C;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC,qDAAqD;AACvF;AACA;AACA,oBAAoB;AACpB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA,uBAAuB;AACvB;AACA;AAC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QAAyQ,EAAE,8GAA8G,EAAE,8GAA8G,8BAA8B,QAAQ,iBAAiB,QAAQ;AACz2jB,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mBAAmB;AACnD;AACA,gCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;AACA;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,yBAAyB,mBAAmB,ucAAuc,25KAA25K,UAAU;AAC3+L,aAAa,mBAAmB,6BAA6B,kBAAkB,gCAAgC,mBAAmB,gCAAgC,mBAAmB,8BAA8B,WAAW,6BAA6B,QAAQ,6DAA6D,WAAW,gCAAgC,YAAY;AACvX,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACngCA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAtjB,OAAO;AAAA,8CAENA,OAAO,CAAC2W,UAFF,2BAGZ3W,OAAO,CAACsyB,SAHI,kDAObtyB,OAAO,CAACsyB,SAPK,qHAebtyB,OAAO,CAACyjB,OAfK,4BAgBXzjB,OAAO,CAACujB,UAhBG,+KA4BbvjB,OAAO,CAACuyB,cA5BK,wDAgCXvyB,OAAO,CAAC2jB,SAhCG,kFAqCX3jB,OAAO,CAAC2jB,SArCG,8EA0CD3jB,OAAO,CAACwyB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,CAqbrC;;;AACA,WAASP,QAAT,CAAkBQ,IAAlB,EAAwBJ,GAAxB,EAA6B;AAC3B,WAAOE,SAAS,CAACF,GAAD,CAAT,CAAeI,IAAf,KAAwB,CAA/B;AACD;AACF,CAzbM;AA2bQ;AACbhb,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;AC9dA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,khBAAkhB;AAC7hB,aAAa,uUAAuU;AACpV;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,oCAAoC;AACpC;AACA;AACA,iCAAiC;AACjC;AACA;AACA,qCAAqC;AACrC;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,gCAAgC;AAChC;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,2CAA2C;AAC7D;AACA;AACA,kBAAkB,+CAA+C;AACjE;AACA;AACA,kBAAkB,yCAAyC;AAC3D;AACA;AACA,kBAAkB,6CAA6C;AAC/D;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,iC;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,EAAE,0BAA0B,cAAc,IAAI,GAAG,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,6HAA6H,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,4FAA4F,2IAA2I,UAAU,gBAAgB,oBAAoB,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,0CAA0C,oBAAoB,gBAAgB,UAAU,iBAAiB,aAAa,EAAE,UAAU,eAAe,UAAU,8BAA8B,UAAU,GAAG,UAAU;AAC/1B,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,0BAA0B,qBAAqB,8TAA8T,yDAAyD,2BAA2B,6B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AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,uSAAuS;AAClT,aAAa,0JAA0J;AACvK;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,yBAAyB;AACzB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,cAAc,gBAAgB,gBAAgB,sBAAsB,EAAE,QAAQ,EAAE,gFAAgF,eAAe,SAAS,eAAe,UAAU,gBAAgB,0BAA0B,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,0BAA0B,EAAE,QAAQ,eAAe,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU;AAC1lB,iBAAiB,2GAA2G;AAC5H;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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e,OAAG,CAACxe,IAAJ,CAAS,OAAT,EAAkB,GAAlB,EArBE,CAsBF;AACD,GAvBD,CAuBE,OAAO6G,CAAP,EAAU;AACVzH,kDAAM,CAACkR,KAAP,CAAa,oCAAb;AACAlR,kDAAM,CAACkR,KAAP,CAAazJ,CAAC,CAAC43B,OAAf;AACD;AACF,CA5BM;AA8BQ;AACbvd,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACpDA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mHAAmH;AAC9H,aAAa,gDAAgD;AAC7D;AACA;AACA;;AAEA;AACA;AACA;AACA,W;AACA;AACA;;AAEA;AACA;AACA,kB;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,iCAAiC,EAAE,QAAQ;AAC7F,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW;AACxB,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC7mBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAEeA,wEAAf,E;;;;;;;;;;;ACFA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,wOAAwO,mHAAmH;AACtW,aAAa,2FAA2F,2FAA2F;AACnM;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iD;AACA;AACA;AACA,sBAAsB,oB;AACtB;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,+B;AACrB;AACA;AACA,CAAC;AACD,SAAS,mDAAmD,EAAE,MAAM,EAAE,oDAAoD,EAAE,oDAAoD,cAAc,KAAK,6CAA6C,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,cAAc,uDAAuD,GAAG,uBAAuB,iCAAiC,0BAA0B,EAAE,UAAU,EAAE,UAAU,8BAA8B,gBAAgB,uDAAuD,aAAa,EAAE,UAAU;AAChlB,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AAC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A,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,6yBAA6yB;AACxzB,aAAa,sfAAsf;AACngB;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,c;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,W;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,SAAS,+BAA+B;AACxC;AACA;;AAEA,oBAAoB,0FAA0F;AAC9G,iBAAiB,qEAAqE;AACtF;AACA;AACA;;AAEA,oBAAoB,wFAAwF;AAC5G,iBAAiB,oFAAoF;AACrG;AACA;AACA;;AAEA,oBAAoB,uFAAuF;AAC3G,iBAAiB,mFAAmF;AACpG;AACA;AACA;;AAEA;AACA,oBAAoB,uFAAuF;AAC3G;AACA;AACA,iBAAiB,gDAAgD;AACjE;AACA;AACA;;AAEA;AACA,oBAAoB,uFAAuF;AAC3G;AACA;AACA,iBAAiB,gDAAgD;AACjE;AACA;AACA;AACA,4BAA4B,gFAAgF,W;AAC5G;AACA;AACA,4BAA4B,kFAAkF,W;AAC9G;AACA;;AAEA,uBAAuB,sEAAsE;AAC7F;AACA;;AAEA;AACA;AACA;AACA;AACA,uBAAuB,qFAAqF;AAC5G;AACA;AACA,6B;AACA;AACA;AACA,iB;AACA;AACA;AACA,8B;AACA;AACA;AACA,+B;AACA;AACA;AACA,8BAA8B,4FAA4F;AAC1H,gBAAgB;AAChB;AACA;AACA;AACA,8BAA8B,4FAA4F;AAC1H,eAAe;AACf;AACA;AACA;AACA,8BAA8B,4FAA4F;AAC1H;AACA;AACA,QAAQ;AACR;AACA;AACA,iC;AACA;AACA;AACA,kC;AACA;AACA;AACA,4B;AACA;AACA;AACA,6B;AACA;AACA;AACA,kC;AACA;AACA;AACA,mC;AACA;AACA;AAC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A,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,W;AAC1B;AACA,wCAAwC,qBAAqB,W;AAC7D;AACA,yBAAyB,iBAAiB,oBAAoB,W;AAC9D;AACA,yBAAyB,iBAAiB,U;AAC1C;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,yBAAyB,W;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,W;AAC1B;AACA,0BAA0B,W;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,W;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,uFAAuF,oBAAoB,kDAAkD,iCAAiC,sKAAsK,8MAA8M,qBAAqB,gCAAgC,+GAA+G;AAC7yB,aAAa,kBAAkB,gCAAgC,mBAAmB,kCAAkC,kBAAkB,kCAAkC,OAAO,mCAAmC,UAAU,sCAAsC,SAAS,mCAAmC,YAAY;AAC1T,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB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AAK,GAAG,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,4HAA4H,EAAE,uBAAuB,iCAAiC,mGAAmG,yCAAyC,oBAAoB,iBAAiB,UAAU,eAAe,UAAU,GAAG,UAAU,4CAA4C,oCAAoC,0DAA0D,gBAAgB,2CAA2C,oBAAoB,0BAA0B,KAAK,GAAG,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,eAAe,UAAU,GAAG,8HAA8H,eAAe,UAAU,GAAG,UAAU,EAAE,UAAU,sDAAsD,KAAK,+BAA+B,8HAA8H;AACh7C,iBAAiB,gEAAgE;AACjF;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA,2BAA2B,iCAAiC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,yCAAyC,a;AAC1E;AACA;AACA;AACA;AACA;AACA,iC;AACA;AACA,wBAAwB,yCAAyC,0CAA0C;AAC3G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AACA;AACA;AACA,wBAAwB,2BAA2B;AACnD;AACA,wBAAwB,uCAAuC;AAC/D;AACA;AACA;AACA,wDAAwD;AACxD;AACA,oDAAoD;AACpD;AACA;AACA;AACA,wBAAwB,yBAAyB,2CAA2C;AAC5F;AACA,wCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA,4BAA4B,W;AAC5B;AACA,yBAAyB,0BAA0B;AACnD;AACA,yBAAyB,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C,MAAM;AACN,WAAW,8VAA8V;AACzW,aAAa,gMAAgM;AAC7M;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,gCAAgC;AAChC;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,mC;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,cAAc,IAAI,GAAG,0BAA0B,EAAE,cAAc,EAAE,UAAU,EAAE,6EAA6E,EAAE,QAAQ,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,4CAA4C,wDAAwD,UAAU,gBAAgB,UAAU,EAAE,gBAAgB,EAAE,UAAU,0CAA0C,aAAa,EAAE,UAAU,EAAE,UAAU;AACrhB,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,yBAAyB,oBAAoB,2FAA2F,2BAA2B,kBAAkB,kBAAkB;AAC9R,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,YAAY;AAC9K,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,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cbsD,oBAAkB,EAAlBA,kBAda;AAeby3B,YAAU,EAAVA,UAfa;AAgBbva,QAAM,EAANA,MAhBa;AAiBbkqB,SAAO,EAAPA,OAjBa;AAkBbjqC,SAAO,EAAPA;AAlBa,CAAf,E;;;;;;;;;;;ACzrBA,oD;;;;;;;;;;;ACAA,+B;;;;;;;;;;;ACAA,kC;;;;;;;;;;;ACAA,qC;;;;;;;;;;;ACAA,iE;;;;;;;;;;;ACAA,kD;;;;;;;;;;;ACAA,qC;;;;;;;;;;;ACAA,mC;;;;;;;;;;;ACAA,wC;;;;;;;;;;;ACAA,mC","file":"mermaid.core.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mermaid\"] = factory();\n\telse\n\t\troot[\"mermaid\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/mermaid.js\");\n","// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\nimport config from './defaultConfig';\n\n// debugger;\n\nexport const defaultConfig = Object.freeze(config);\n\nlet siteConfig = assignWithDepth({}, defaultConfig);\nlet directives = [];\nlet currentConfig = assignWithDepth({}, defaultConfig);\n\n\nconst updateCurrentConfig = conf => {\n currentConfig = assignWithDepth({}, siteConfig);\n\n // Apply directives\n let themeVariables;\n directives.forEach( d => {\n currentConfig = assignWithDepth(currentConfig, d);\n if(d.themeVariables) {\n themeVariables = d.themeVariables;\n }\n })\n const variables = theme[currentConfig.theme].getThemeVariables(themeVariables);\n currentConfig.themeVariables = variables;\n}\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n siteConfig = {...defaultConfig, ...conf};\n\n return siteConfig;\n};\nexport const updateSiteConfig = conf => {\n console.log('setSiteConfig');\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n siteConfig = {...siteConfig, ...conf};\n\n // assignWithDesetpth(currentConfig, conf, { clobber: true });\n // // Set theme variables if user has set the theme option\n // assignWithDepth(siteConfig, conf);\n\n return siteConfig;\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n // sanitize(conf);\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n\n // assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.trace(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n\nexport const addDirective = directive => {\n directives.push(directive);\n updateCurrentConfig();\n}\n\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n // Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n // Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n // assignWithDepth(siteConfig, conf, { clobber: true });\n // assignWithDepth(currentConfig, conf, { clobber: true });\n\n // Replace current config with siteConfig\n directives = [];\n updateCurrentConfig();\n};\n\n// const configApi = Object.freeze({\n// sanitize,\n// setSiteConfig,\n// getSiteConfig,\n// setConfig,\n// getConfig,\n// reset,\n// defaultConfig\n// });\n// export default configApi;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 'strokeWidth')\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","import theme from './themes';\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *

\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for journey diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\n\nexport default config;\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = configApi.getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().class,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,7],$V1=[1,6],$V2=[1,14],$V3=[1,24],$V4=[1,27],$V5=[1,25],$V6=[1,26],$V7=[1,28],$V8=[1,29],$V9=[1,31],$Va=[1,32],$Vb=[1,33],$Vc=[10,19],$Vd=[1,45],$Ve=[1,46],$Vf=[1,47],$Vg=[1,48],$Vh=[1,49],$Vi=[1,50],$Vj=[10,19,25,31,39,42,43,44,45,46,47],$Vk=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],$Vl=[10,13,17,19],$Vm=[39,63,64,65],$Vn=[39,46,47,63,64,65],$Vo=[39,42,43,44,45,63,64,65],$Vp=[10,19,25],$Vq=[1,75];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"graphConfig\":6,\"openDirective\":7,\"typeDirective\":8,\"closeDirective\":9,\"NEWLINE\":10,\":\":11,\"argDirective\":12,\"open_directive\":13,\"type_directive\":14,\"arg_directive\":15,\"close_directive\":16,\"CLASS_DIAGRAM\":17,\"statements\":18,\"EOF\":19,\"statement\":20,\"className\":21,\"alphaNumToken\":22,\"GENERICTYPE\":23,\"relationStatement\":24,\"LABEL\":25,\"classStatement\":26,\"methodStatement\":27,\"annotationStatement\":28,\"clickStatement\":29,\"CLASS\":30,\"STRUCT_START\":31,\"members\":32,\"STRUCT_STOP\":33,\"ANNOTATION_START\":34,\"ANNOTATION_END\":35,\"MEMBER\":36,\"SEPARATOR\":37,\"relation\":38,\"STR\":39,\"relationType\":40,\"lineType\":41,\"AGGREGATION\":42,\"EXTENSION\":43,\"COMPOSITION\":44,\"DEPENDENCY\":45,\"LINE\":46,\"DOTTED_LINE\":47,\"CALLBACK\":48,\"LINK\":49,\"commentToken\":50,\"textToken\":51,\"graphCodeTokens\":52,\"textNoTagsToken\":53,\"TAGSTART\":54,\"TAGEND\":55,\"==\":56,\"--\":57,\"PCT\":58,\"DEFAULT\":59,\"SPACE\":60,\"MINUS\":61,\"keywords\":62,\"UNICODE_TEXT\":63,\"NUM\":64,\"ALPHA\":65,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\"NEWLINE\",11:\":\",13:\"open_directive\",14:\"type_directive\",15:\"arg_directive\",16:\"close_directive\",17:\"CLASS_DIAGRAM\",19:\"EOF\",23:\"GENERICTYPE\",25:\"LABEL\",30:\"CLASS\",31:\"STRUCT_START\",33:\"STRUCT_STOP\",34:\"ANNOTATION_START\",35:\"ANNOTATION_END\",36:\"MEMBER\",37:\"SEPARATOR\",39:\"STR\",42:\"AGGREGATION\",43:\"EXTENSION\",44:\"COMPOSITION\",45:\"DEPENDENCY\",46:\"LINE\",47:\"DOTTED_LINE\",48:\"CALLBACK\",49:\"LINK\",52:\"graphCodeTokens\",54:\"TAGSTART\",55:\"TAGEND\",56:\"==\",57:\"--\",58:\"PCT\",59:\"DEFAULT\",60:\"SPACE\",61:\"MINUS\",62:\"keywords\",63:\"UNICODE_TEXT\",64:\"NUM\",65:\"ALPHA\"},\nproductions_: [0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 7:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 8:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 9:\n yy.parseDirective('}%%', 'close_directive', 'class'); \nbreak;\ncase 14:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 15:\n this.$=$$[$0]; \nbreak;\ncase 16:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 17:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 18:\n yy.addRelation($$[$0]); \nbreak;\ncase 19:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 25:\nyy.addClass($$[$0]);\nbreak;\ncase 26:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 27:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 28:\n this.$ = [$$[$0]]; \nbreak;\ncase 29:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 30:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 31:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 32:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 33:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 34:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 35:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 36:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 37:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 38:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 39:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 40:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 41:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 42:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 43:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 44:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 45:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 46:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 47:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 48:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 50:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:$V2},o([11,16],[2,7]),{5:22,7:5,13:$V0,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},o($Vc,[2,18],{25:[1,39]}),o($Vc,[2,20]),o($Vc,[2,21]),o($Vc,[2,22]),o($Vc,[2,23]),o($Vc,[2,24]),o($Vc,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi}),{21:51,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,32]),o($Vc,[2,33]),{22:52,63:$V9,64:$Va,65:$Vb},{21:53,22:30,63:$V9,64:$Va,65:$Vb},{21:54,22:30,63:$V9,64:$Va,65:$Vb},o($Vj,[2,15],{22:30,21:55,23:[1,56],63:$V9,64:$Va,65:$Vb}),o($Vk,[2,65]),o($Vk,[2,66]),o($Vk,[2,67]),o($Vl,[2,4]),{9:57,16:$V2},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:$V0,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},o($Vc,[2,19]),{21:59,22:30,39:[1,60],63:$V9,64:$Va,65:$Vb},{38:61,40:43,41:44,42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi},o($Vc,[2,31]),{41:62,46:$Vh,47:$Vi},o($Vm,[2,41],{40:63,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vn,[2,42]),o($Vn,[2,43]),o($Vn,[2,44]),o($Vn,[2,45]),o($Vo,[2,46]),o($Vo,[2,47]),o($Vc,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},o($Vj,[2,14]),o($Vj,[2,17],{22:30,21:68,63:$V9,64:$Va,65:$Vb}),{10:[1,69]},{19:[2,13]},o($Vp,[2,34]),{21:70,22:30,63:$V9,64:$Va,65:$Vb},{21:71,22:30,39:[1,72],63:$V9,64:$Va,65:$Vb},o($Vm,[2,40],{40:73,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vm,[2,39]),{32:74,36:$Vq},{21:76,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,48],{39:[1,77]}),o($Vc,[2,50],{39:[1,78]}),o($Vj,[2,16]),o($Vl,[2,5]),o($Vp,[2,36]),o($Vp,[2,35]),{21:79,22:30,63:$V9,64:$Va,65:$Vb},o($Vm,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:$Vq},o($Vc,[2,27]),o($Vc,[2,49]),o($Vc,[2,51]),o($Vp,[2,37]),o($Vc,[2,26]),{33:[2,29]}],\ndefaultActions: {2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 13; \nbreak;\ncase 1: this.begin('type_directive'); return 14; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 11; \nbreak;\ncase 3: this.popState(); this.popState(); return 16; \nbreak;\ncase 4:return 15;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 10;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 17;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11: this.begin(\"struct\"); /*console.log('Starting struct');*/ return 31;\nbreak;\ncase 12:return \"EOF_IN_STRUCT\";\nbreak;\ncase 13:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 14: /*console.log('Ending struct');*/this.popState(); return 33;\nbreak;\ncase 15:/* nothing */\nbreak;\ncase 16: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 17:return 30;\nbreak;\ncase 18:return 48;\nbreak;\ncase 19:return 49;\nbreak;\ncase 20:return 34;\nbreak;\ncase 21:return 35;\nbreak;\ncase 22:this.begin(\"generic\");\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24:return \"GENERICTYPE\";\nbreak;\ncase 25:this.begin(\"string\");\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:return \"STR\";\nbreak;\ncase 28:return 43;\nbreak;\ncase 29:return 43;\nbreak;\ncase 30:return 45;\nbreak;\ncase 31:return 45;\nbreak;\ncase 32:return 44;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 46;\nbreak;\ncase 35:return 47;\nbreak;\ncase 36:return 25;\nbreak;\ncase 37:return 61;\nbreak;\ncase 38:return 'DOT';\nbreak;\ncase 39:return 'PLUS';\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 'EQUALS';\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 65;\nbreak;\ncase 44:return 'PUNCTUATION';\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 63;\nbreak;\ncase 47:return 60;\nbreak;\ncase 48:return 19;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%%(?!\\{)*[^\\n]*(\\r?\\n)+)/,/^(?:%%[^\\n]*(\\r?\\n)*)/,/^(?:(\\r?\\n)+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\\n])/,/^(?:[^{}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[26,27],\"inclusive\":false},\"generic\":{\"rules\":[23,24],\"inclusive\":false},\"struct\":{\"rules\":[12,13,14,15,16],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n getConfig: () => configApi.getConfig().er,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'er'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.tertiaryColor};\n opacity: 0.3;\n background-color: ${options.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = configApi.defaultConfig;\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = configApi.defaultConfig;\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (configApi.defaultConfig.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n defaultConfig: () => configApi.defaultConfig.flowchart,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,9],$V1=[1,7],$V2=[1,6],$V3=[1,8],$V4=[1,20,21,22,23,38,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$V5=[2,10],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[1,23],$Va=[1,30],$Vb=[1,54],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[1,36],$Vh=[1,48],$Vi=[1,43],$Vj=[1,45],$Vk=[1,40],$Vl=[1,44],$Vm=[1,47],$Vn=[1,51],$Vo=[1,52],$Vp=[1,53],$Vq=[1,42],$Vr=[1,46],$Vs=[1,49],$Vt=[1,50],$Vu=[1,41],$Vv=[1,57],$Vw=[1,62],$Vx=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vy=[1,66],$Vz=[1,65],$VA=[1,67],$VB=[20,21,23,69,70],$VC=[20,21,22,23,69,70],$VD=[20,21,22,23,47,69,70],$VE=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VF=[20,21,23],$VG=[20,21,23,46,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VH=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VI=[46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VJ=[1,115],$VK=[1,136],$VL=[1,137],$VM=[1,138],$VN=[1,139],$VO=[1,119],$VP=[1,110],$VQ=[1,111],$VR=[1,107],$VS=[1,131],$VT=[1,132],$VU=[1,133],$VV=[1,134],$VW=[1,135],$VX=[1,140],$VY=[1,141],$VZ=[1,113],$V_=[1,121],$V$=[1,124],$V01=[1,122],$V11=[1,123],$V21=[1,116],$V31=[1,129],$V41=[1,128],$V51=[1,112],$V61=[1,109],$V71=[1,118],$V81=[1,120],$V91=[1,125],$Va1=[1,126],$Vb1=[1,127],$Vc1=[1,130],$Vd1=[20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Ve1=[1,144],$Vf1=[1,148],$Vg1=[1,150],$Vh1=[1,151],$Vi1=[12,21,22,24],$Vj1=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,90,91,94,95,96,98,99,100,101,105,106,107,108,109,110],$Vk1=[20,21,22,23,26,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vl1=[22,91],$Vm1=[1,220],$Vn1=[1,224],$Vo1=[1,221],$Vp1=[1,218],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,217],$Vt1=[1,219],$Vu1=[1,222],$Vv1=[1,223],$Vw1=[1,225],$Vx1=[1,241],$Vy1=[20,21,23,91],$Vz1=[20,21,22,23,75,87,90,91,94,95,96,97,98,99,100];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"openDirective\":6,\"typeDirective\":7,\"closeDirective\":8,\"separator\":9,\":\":10,\"argDirective\":11,\"open_directive\":12,\"type_directive\":13,\"arg_directive\":14,\"close_directive\":15,\"graphConfig\":16,\"document\":17,\"line\":18,\"statement\":19,\"SEMI\":20,\"NEWLINE\":21,\"SPACE\":22,\"EOF\":23,\"GRAPH\":24,\"NODIR\":25,\"DIR\":26,\"FirstStmtSeperator\":27,\"ending\":28,\"endToken\":29,\"spaceList\":30,\"spaceListNewline\":31,\"verticeStatement\":32,\"styleStatement\":33,\"linkStyleStatement\":34,\"classDefStatement\":35,\"classStatement\":36,\"clickStatement\":37,\"subgraph\":38,\"text\":39,\"SQS\":40,\"SQE\":41,\"end\":42,\"link\":43,\"node\":44,\"vertex\":45,\"AMP\":46,\"STYLE_SEPARATOR\":47,\"idString\":48,\"PS\":49,\"PE\":50,\"(-\":51,\"-)\":52,\"STADIUMSTART\":53,\"STADIUMEND\":54,\"SUBROUTINESTART\":55,\"SUBROUTINEEND\":56,\"CYLINDERSTART\":57,\"CYLINDEREND\":58,\"DIAMOND_START\":59,\"DIAMOND_STOP\":60,\"TAGEND\":61,\"TRAPSTART\":62,\"TRAPEND\":63,\"INVTRAPSTART\":64,\"INVTRAPEND\":65,\"linkStatement\":66,\"arrowText\":67,\"TESTSTR\":68,\"START_LINK\":69,\"LINK\":70,\"PIPE\":71,\"textToken\":72,\"STR\":73,\"keywords\":74,\"STYLE\":75,\"LINKSTYLE\":76,\"CLASSDEF\":77,\"CLASS\":78,\"CLICK\":79,\"DOWN\":80,\"UP\":81,\"textNoTags\":82,\"textNoTagsToken\":83,\"DEFAULT\":84,\"stylesOpt\":85,\"alphaNum\":86,\"HEX\":87,\"numList\":88,\"INTERPOLATE\":89,\"NUM\":90,\"COMMA\":91,\"style\":92,\"styleComponent\":93,\"ALPHA\":94,\"COLON\":95,\"MINUS\":96,\"UNIT\":97,\"BRKT\":98,\"DOT\":99,\"PCT\":100,\"TAGSTART\":101,\"alphaNumToken\":102,\"idStringToken\":103,\"alphaNumStatement\":104,\"PUNCTUATION\":105,\"UNICODE_TEXT\":106,\"PLUS\":107,\"EQUALS\":108,\"MULT\":109,\"UNDERSCORE\":110,\"graphCodeTokens\":111,\"ARROW_CROSS\":112,\"ARROW_POINT\":113,\"ARROW_CIRCLE\":114,\"ARROW_OPEN\":115,\"QUOTE\":116,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\":\",12:\"open_directive\",13:\"type_directive\",14:\"arg_directive\",15:\"close_directive\",20:\"SEMI\",21:\"NEWLINE\",22:\"SPACE\",23:\"EOF\",24:\"GRAPH\",25:\"NODIR\",26:\"DIR\",38:\"subgraph\",40:\"SQS\",41:\"SQE\",42:\"end\",46:\"AMP\",47:\"STYLE_SEPARATOR\",49:\"PS\",50:\"PE\",51:\"(-\",52:\"-)\",53:\"STADIUMSTART\",54:\"STADIUMEND\",55:\"SUBROUTINESTART\",56:\"SUBROUTINEEND\",57:\"CYLINDERSTART\",58:\"CYLINDEREND\",59:\"DIAMOND_START\",60:\"DIAMOND_STOP\",61:\"TAGEND\",62:\"TRAPSTART\",63:\"TRAPEND\",64:\"INVTRAPSTART\",65:\"INVTRAPEND\",68:\"TESTSTR\",69:\"START_LINK\",70:\"LINK\",71:\"PIPE\",73:\"STR\",75:\"STYLE\",76:\"LINKSTYLE\",77:\"CLASSDEF\",78:\"CLASS\",79:\"CLICK\",80:\"DOWN\",81:\"UP\",84:\"DEFAULT\",87:\"HEX\",89:\"INTERPOLATE\",90:\"NUM\",91:\"COMMA\",94:\"ALPHA\",95:\"COLON\",96:\"MINUS\",97:\"UNIT\",98:\"BRKT\",99:\"DOT\",100:\"PCT\",101:\"TAGSTART\",105:\"PUNCTUATION\",106:\"UNICODE_TEXT\",107:\"PLUS\",108:\"EQUALS\",109:\"MULT\",110:\"UNDERSCORE\",112:\"ARROW_CROSS\",113:\"ARROW_POINT\",114:\"ARROW_CIRCLE\",115:\"ARROW_OPEN\",116:\"QUOTE\"},\nproductions_: [0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[88,1],[88,3],[85,1],[85,3],[92,1],[92,2],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[104,1],[104,1],[104,1],[104,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 5:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 6:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 7:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 8:\n yy.parseDirective('}%%', 'close_directive', 'flowchart'); \nbreak;\ncase 10:\n this.$ = [];\nbreak;\ncase 11:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 12: case 76: case 78: case 90: case 136: case 138: case 139:\nthis.$=$$[$0];\nbreak;\ncase 19:\n yy.setDirection('TB');this.$ = 'TB';\nbreak;\ncase 20:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 35:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 36: case 37: case 38: case 39: case 40:\nthis.$=[];\nbreak;\ncase 41:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 42:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 43:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 47:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 48:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 49:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 50:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 51:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 52:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 53:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 55:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 62:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 63:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 64:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 65:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 66:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 67:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 68:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 69:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 70: case 71:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 72:\nthis.$ = $$[$0];\nbreak;\ncase 73:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 74:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 75:\nthis.$ = $$[$0-1];\nbreak;\ncase 77: case 91: case 137:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 92: case 93:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 97:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 98:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 99:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 100: case 102:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 101:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 103:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 104:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 105:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 106:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 107: case 109:\nthis.$ = [$$[$0]]\nbreak;\ncase 108: case 110:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 112:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 134:\nthis.$=$$[$0]\nbreak;\ncase 135:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 140:\nthis.$='v';\nbreak;\ncase 141:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},o($V4,$V5,{17:11}),{7:12,13:[1,13]},{16:14,21:$V1,22:$V2,24:$V3},{16:15,21:$V1,22:$V2,24:$V3},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{8:55,10:[1,56],15:$Vv},o([10,15],[2,6]),o($V4,[2,17]),o($V4,[2,18]),o($V4,[2,19]),{20:[1,59],21:[1,60],22:$Vw,27:58,30:61},o($Vx,[2,11]),o($Vx,[2,12]),o($Vx,[2,13]),o($Vx,[2,14]),o($Vx,[2,15]),o($Vx,[2,16]),{9:63,20:$Vy,21:$Vz,23:$VA,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:$Vy,21:$Vz,23:$VA},{9:72,20:$Vy,21:$Vz,23:$VA},{9:73,20:$Vy,21:$Vz,23:$VA},{9:74,20:$Vy,21:$Vz,23:$VA},{9:75,20:$Vy,21:$Vz,23:$VA},{9:77,20:$Vy,21:$Vz,22:[1,76],23:$VA},o($VB,[2,50],{30:78,22:$Vw}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},o($VC,[2,51],{47:[1,84]}),o($VD,[2,68],{103:95,40:[1,85],46:$Vb,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),o($VE,[2,134]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($VE,[2,165]),o($VE,[2,166]),o($VE,[2,167]),o($VE,[2,168]),o($VE,[2,169]),{9:96,20:$Vy,21:$Vz,23:$VA},{11:97,14:[1,98]},o($VF,[2,8]),o($V4,[2,20]),o($V4,[2,26]),o($V4,[2,27]),{21:[1,99]},o($VG,[2,34],{30:100,22:$Vw}),o($Vx,[2,35]),{44:101,45:37,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VH,[2,44]),o($VH,[2,45]),o($VH,[2,46]),o($VI,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$VJ,24:$VK,26:$VL,38:$VM,39:105,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o([46,68,71,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,74]),o($Vx,[2,36]),o($Vx,[2,37]),o($Vx,[2,38]),o($Vx,[2,39]),o($Vx,[2,40]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:142,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:143}),o($VB,[2,49],{46:$Ve1}),{26:$Vf1,46:$VO,80:$Vg1,86:145,87:[1,146],90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{84:[1,152],88:153,90:[1,154]},{26:$Vf1,46:$VO,80:$Vg1,84:[1,155],86:156,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:157,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:158,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{46:$Vb,48:159,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$VJ,24:$VK,26:$VL,38:$VM,39:160,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:162,42:$VN,46:$VO,49:[1,161],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:163,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:164,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:165,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:166,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:167,42:$VN,46:$VO,59:[1,168],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:169,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:170,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:171,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VE,[2,135]),o($Vi1,[2,3]),{8:172,15:$Vv},{15:[2,7]},o($V4,[2,28]),o($VG,[2,33]),o($VB,[2,47],{30:173,22:$Vw}),o($VI,[2,69],{22:[1,174]}),{22:[1,175]},{22:$VJ,24:$VK,26:$VL,38:$VM,39:176,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,70:[1,177],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vj1,[2,76]),o($Vj1,[2,78]),o($Vj1,[2,124]),o($Vj1,[2,125]),o($Vj1,[2,126]),o($Vj1,[2,127]),o($Vj1,[2,128]),o($Vj1,[2,129]),o($Vj1,[2,130]),o($Vj1,[2,131]),o($Vj1,[2,132]),o($Vj1,[2,133]),o($Vj1,[2,142]),o($Vj1,[2,143]),o($Vj1,[2,144]),o($Vj1,[2,145]),o($Vj1,[2,146]),o($Vj1,[2,147]),o($Vj1,[2,148]),o($Vj1,[2,149]),o($Vj1,[2,150]),o($Vj1,[2,151]),o($Vj1,[2,152]),o($Vj1,[2,153]),o($Vj1,[2,154]),o($Vj1,[2,79]),o($Vj1,[2,80]),o($Vj1,[2,81]),o($Vj1,[2,82]),o($Vj1,[2,83]),o($Vj1,[2,84]),o($Vj1,[2,85]),o($Vj1,[2,86]),o($Vj1,[2,87]),o($Vj1,[2,88]),o($Vj1,[2,89]),{9:180,20:$Vy,21:$Vz,22:$VJ,23:$VA,24:$VK,26:$VL,38:$VM,40:[1,179],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,181],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vw,30:182},{22:[1,183],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,185]},o($Vk1,[2,136]),o($Vk1,[2,138]),o($Vk1,[2,139]),o($Vk1,[2,140]),o($Vk1,[2,141]),{22:[1,186]},{22:[1,187],91:[1,188]},o($Vl1,[2,107]),{22:[1,189]},{22:[1,190],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,191],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,192],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VC,[2,53],{103:95,46:$Vb,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,193],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:194,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,195],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,52:[1,196],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,54:[1,197],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,56:[1,198],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,58:[1,199],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,200],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:201,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,202],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,203],65:[1,204],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,206],65:[1,205],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{9:207,20:$Vy,21:$Vz,23:$VA},o($VB,[2,48],{46:$Ve1}),o($VI,[2,71]),o($VI,[2,70]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,71:[1,208],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VI,[2,73]),o($Vj1,[2,77]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:209,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:210}),o($Vx,[2,43]),{45:211,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:212,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vk1,[2,137]),{22:$Vm1,75:$Vn1,85:226,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:227,87:$Vo1,89:[1,228],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:229,87:$Vo1,89:[1,230],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{90:[1,231]},{22:$Vm1,75:$Vn1,85:232,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:233,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{26:$Vf1,46:$VO,80:$Vg1,86:234,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,73:[1,236],80:$Vg1,86:235,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,54]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,237],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,60]),o($VD,[2,56]),o($VD,[2,57]),o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,238],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,63]),o($VD,[2,64]),o($VD,[2,66]),o($VD,[2,65]),o($VD,[2,67]),o($Vi1,[2,4]),o([22,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,75]),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,239],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,240],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VC,[2,52]),o($VF,[2,99],{91:$Vx1}),o($Vy1,[2,109],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($Vz1,[2,111]),o($Vz1,[2,113]),o($Vz1,[2,114]),o($Vz1,[2,115]),o($Vz1,[2,116]),o($Vz1,[2,117]),o($Vz1,[2,118]),o($Vz1,[2,119]),o($Vz1,[2,120]),o($Vz1,[2,121]),o($Vz1,[2,122]),o($Vz1,[2,123]),o($VF,[2,100],{91:$Vx1}),o($VF,[2,101],{91:$Vx1}),{22:[1,243]},o($VF,[2,102],{91:$Vx1}),{22:[1,244]},o($Vl1,[2,108]),o($VF,[2,92],{91:$Vx1}),o($VF,[2,93],{91:$Vx1}),o($VF,[2,94],{102:149,104:184,26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,95],{102:149,104:184,22:[1,245],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:$Vy,21:$Vz,23:$VA},o($Vx,[2,42]),{22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,92:250,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vz1,[2,112]),{26:$Vf1,46:$VO,80:$Vg1,86:251,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:252,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{73:[1,253]},{73:[1,254]},o($VD,[2,55]),o($VD,[2,62]),o($Vd1,$V5,{17:255}),o($Vy1,[2,110],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($VF,[2,105],{102:149,104:184,22:[1,256],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,106],{102:149,104:184,22:[1,257],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,96]),o($VF,[2,98]),{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,258],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:259,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:260,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vx,[2,41]),o($VF,[2,103],{91:$Vx1}),o($VF,[2,104],{91:$Vx1})],\ndefaultActions: {2:[2,1],9:[2,5],10:[2,2],98:[2,7]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 12; \nbreak;\ncase 1: this.begin('type_directive'); return 13; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 10; \nbreak;\ncase 3: this.popState(); this.popState(); return 15; \nbreak;\ncase 4:return 14;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 75;\nbreak;\ncase 11:return 84;\nbreak;\ncase 12:return 76;\nbreak;\ncase 13:return 89;\nbreak;\ncase 14:return 77;\nbreak;\ncase 15:return 78;\nbreak;\ncase 16:return 79;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 19:return 38;\nbreak;\ncase 20:return 42;\nbreak;\ncase 21: this.popState(); return 25; \nbreak;\ncase 22: this.popState(); return 26; \nbreak;\ncase 23: this.popState(); return 26; \nbreak;\ncase 24: this.popState(); return 26; \nbreak;\ncase 25: this.popState(); return 26; \nbreak;\ncase 26: this.popState(); return 26; \nbreak;\ncase 27: this.popState(); return 26; \nbreak;\ncase 28: this.popState(); return 26; \nbreak;\ncase 29: this.popState(); return 26; \nbreak;\ncase 30: this.popState(); return 26; \nbreak;\ncase 31: this.popState(); return 26; \nbreak;\ncase 32: return 90;\nbreak;\ncase 33:return 98;\nbreak;\ncase 34:return 47;\nbreak;\ncase 35:return 95;\nbreak;\ncase 36:return 46;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 91;\nbreak;\ncase 39:return 109;\nbreak;\ncase 40:return 70;\nbreak;\ncase 41:return 70;\nbreak;\ncase 42:return 70;\nbreak;\ncase 43:return 70;\nbreak;\ncase 44:return 70;\nbreak;\ncase 45:return 70;\nbreak;\ncase 46:return 70;\nbreak;\ncase 47:return 70;\nbreak;\ncase 48:return 70;\nbreak;\ncase 49:return 70;\nbreak;\ncase 50:return 70;\nbreak;\ncase 51:return 70;\nbreak;\ncase 52:return 70;\nbreak;\ncase 53:return 70;\nbreak;\ncase 54:return 70;\nbreak;\ncase 55:return 70;\nbreak;\ncase 56:return 70;\nbreak;\ncase 57:return 70;\nbreak;\ncase 58:return 70;\nbreak;\ncase 59:return 70;\nbreak;\ncase 60:return 70;\nbreak;\ncase 61:return 70;\nbreak;\ncase 62:return 70;\nbreak;\ncase 63:return 70;\nbreak;\ncase 64:return 70;\nbreak;\ncase 65:return 70;\nbreak;\ncase 66:return 70;\nbreak;\ncase 67:return 70;\nbreak;\ncase 68:return 69;\nbreak;\ncase 69:return 69;\nbreak;\ncase 70:return 69;\nbreak;\ncase 71:return 69;\nbreak;\ncase 72:return 69;\nbreak;\ncase 73:return 69;\nbreak;\ncase 74:return 69;\nbreak;\ncase 75:return 69;\nbreak;\ncase 76:return 69;\nbreak;\ncase 77:return 69;\nbreak;\ncase 78:return 69;\nbreak;\ncase 79:return 69;\nbreak;\ncase 80:return 51;\nbreak;\ncase 81:return 52;\nbreak;\ncase 82:return 53;\nbreak;\ncase 83:return 54;\nbreak;\ncase 84:return 55;\nbreak;\ncase 85:return 56;\nbreak;\ncase 86:return 57;\nbreak;\ncase 87:return 58;\nbreak;\ncase 88:return 96;\nbreak;\ncase 89:return 99;\nbreak;\ncase 90:return 110;\nbreak;\ncase 91:return 107;\nbreak;\ncase 92:return 100;\nbreak;\ncase 93:return 108;\nbreak;\ncase 94:return 108;\nbreak;\ncase 95:return 101;\nbreak;\ncase 96:return 61;\nbreak;\ncase 97:return 81;\nbreak;\ncase 98:return 'SEP';\nbreak;\ncase 99:return 80;\nbreak;\ncase 100:return 94;\nbreak;\ncase 101:return 63;\nbreak;\ncase 102:return 62;\nbreak;\ncase 103:return 65;\nbreak;\ncase 104:return 64;\nbreak;\ncase 105:return 105;\nbreak;\ncase 106:return 106;\nbreak;\ncase 107:return 71;\nbreak;\ncase 108:return 49;\nbreak;\ncase 109:return 50;\nbreak;\ncase 110:return 40;\nbreak;\ncase 111:return 41;\nbreak;\ncase 112:return 59\nbreak;\ncase 113:return 60\nbreak;\ncase 114:return 116;\nbreak;\ncase 115:return 21;\nbreak;\ncase 116:return 22;\nbreak;\ncase 117:return 23;\nbreak;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\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r?\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30,31],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (configApi.getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (configApi.getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().gantt,\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,5],$V2=[7,9,11,12,13,14,15,16,17,18,20,27,32],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,23],$Vb=[1,25],$Vc=[1,28],$Vd=[5,7,9,11,12,13,14,15,16,17,18,20,27,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"directive\":4,\"gantt\":5,\"document\":6,\"EOF\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NL\":11,\"dateFormat\":12,\"inclusiveEndDates\":13,\"axisFormat\":14,\"excludes\":15,\"todayMarker\":16,\"title\":17,\"section\":18,\"clickStatement\":19,\"taskTxt\":20,\"taskData\":21,\"openDirective\":22,\"typeDirective\":23,\"closeDirective\":24,\":\":25,\"argDirective\":26,\"click\":27,\"callbackname\":28,\"callbackargs\":29,\"href\":30,\"clickStatementDebug\":31,\"open_directive\":32,\"type_directive\":33,\"arg_directive\":34,\"close_directive\":35,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"gantt\",7:\"EOF\",9:\"SPACE\",11:\"NL\",12:\"dateFormat\",13:\"inclusiveEndDates\",14:\"axisFormat\",15:\"excludes\",16:\"todayMarker\",17:\"title\",18:\"section\",20:\"taskTxt\",21:\"taskData\",25:\":\",27:\"click\",28:\"callbackname\",29:\"callbackargs\",30:\"href\",32:\"open_directive\",33:\"type_directive\",34:\"arg_directive\",35:\"close_directive\"},\nproductions_: [0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 9:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 10:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 11:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 12:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 13:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 14:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 15:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 17:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 21:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 22:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 23:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 24:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 25:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 26:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 27:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 28: case 34:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 29: case 30: case 32:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 31: case 33:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 35:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 36:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 37:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 38:\n yy.parseDirective('}%%', 'close_directive', 'gantt'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:$V0,22:4,32:$V1},{1:[3]},{3:6,4:2,5:$V0,22:4,32:$V1},o($V2,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},{24:26,25:[1,27],35:$Vc},o([25,35],[2,36]),o($V2,[2,8],{1:[2,2]}),o($V2,[2,4]),{4:24,10:29,12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,9]),o($V2,[2,10]),o($V2,[2,11]),o($V2,[2,12]),o($V2,[2,13]),o($V2,[2,14]),o($V2,[2,15]),o($V2,[2,16]),{21:[1,30]},o($V2,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},o($V2,[2,5]),o($V2,[2,17]),o($V2,[2,21],{29:[1,36],30:[1,37]}),o($V2,[2,27],{28:[1,38]}),o($Vd,[2,19]),{24:39,35:$Vc},{35:[2,37]},o($V2,[2,22],{30:[1,40]}),o($V2,[2,23]),o($V2,[2,25],{29:[1,41]}),{11:[1,42]},o($V2,[2,24]),o($V2,[2,26]),o($Vd,[2,20])],\ndefaultActions: {5:[2,35],6:[2,1],28:[2,38],35:[2,37]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 32; \nbreak;\ncase 1: this.begin('type_directive'); return 33; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 25; \nbreak;\ncase 3: this.popState(); this.popState(); return 35; \nbreak;\ncase 4:return 34;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 11;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12:this.begin(\"href\");\nbreak;\ncase 13:this.popState();\nbreak;\ncase 14:return 30;\nbreak;\ncase 15:this.begin(\"callbackname\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 18:return 28;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return 29;\nbreak;\ncase 21:this.begin(\"click\");\nbreak;\ncase 22:this.popState();\nbreak;\ncase 23:return 27;\nbreak;\ncase 24:return 5;\nbreak;\ncase 25:return 12;\nbreak;\ncase 26:return 13;\nbreak;\ncase 27:return 14;\nbreak;\ncase 28:return 15;\nbreak;\ncase 29:return 16;\nbreak;\ncase 30:return 'date';\nbreak;\ncase 31:return 17;\nbreak;\ncase 32:return 18;\nbreak;\ncase 33:return 20;\nbreak;\ncase 34:return 21;\nbreak;\ncase 35:return 25;\nbreak;\ncase 36:return 7;\nbreak;\ncase 37:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)*[^\\n]*)/i,/^(?:[^\\}]%%*[^\\n]*)/i,/^(?:%%*[^\\n]*[\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"callbackargs\":{\"rules\":[19,20],\"inclusive\":false},\"callbackname\":{\"rules\":[16,17,18],\"inclusive\":false},\"href\":{\"rules\":[13,14],\"inclusive\":false},\"click\":{\"rules\":[22,23],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () => ``;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[1,6],$V3=[1,7],$V4=[1,9],$V5=[1,10,12,19,20,21,22],$V6=[1,6,10,12,19,20,21,22],$V7=[19,20,21],$V8=[1,22],$V9=[6,19,20,21,22];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"eol\":4,\"directive\":5,\"PIE\":6,\"document\":7,\"line\":8,\"statement\":9,\"txt\":10,\"value\":11,\"title\":12,\"title_value\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"NEWLINE\":19,\";\":20,\"EOF\":21,\"open_directive\":22,\"type_directive\":23,\"arg_directive\":24,\"close_directive\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"PIE\",10:\"txt\",11:\"value\",12:\"title\",13:\"title_value\",17:\":\",19:\"NEWLINE\",20:\";\",21:\"EOF\",22:\"open_directive\",23:\"type_directive\",24:\"arg_directive\",25:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$ = $$[$0-1] \nbreak;\ncase 8:\n yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 9:\n this.$=$$[$0].trim();yy.setTitle(this.$); \nbreak;\ncase 16:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 17:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 18:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 19:\n yy.parseDirective('}%%', 'close_directive', 'pie'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{1:[3]},{3:10,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{3:11,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},o($V5,[2,4],{7:12}),o($V6,[2,13]),o($V6,[2,14]),o($V6,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},o($V7,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:$V4}),{16:20,17:[1,21],25:$V8},o([17,25],[2,17]),o($V5,[2,5]),{4:23,19:$V1,20:$V2,21:$V3},{11:[1,24]},{13:[1,25]},o($V7,[2,10]),o($V9,[2,11]),{18:26,24:[1,27]},o($V9,[2,19]),o($V5,[2,6]),o($V7,[2,8]),o($V7,[2,9]),{16:28,25:$V8},{25:[2,18]},o($V9,[2,12])],\ndefaultActions: {9:[2,16],10:[2,1],11:[2,2],27:[2,18]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 22; \nbreak;\ncase 1: this.begin('type_directive'); return 23; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 25; \nbreak;\ncase 4:return 24;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 19;\nbreak;\ncase 8:/* do nothing */\nbreak;\ncase 9:/* ignore */\nbreak;\ncase 10: this.begin(\"title\");return 12; \nbreak;\ncase 11: this.popState(); return \"title_value\"; \nbreak;\ncase 12: this.begin(\"string\"); \nbreak;\ncase 13: this.popState(); \nbreak;\ncase 14: return \"txt\"; \nbreak;\ncase 15:return 6;\nbreak;\ncase 16:return \"value\";\nbreak;\ncase 17:return 21;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n\\r]+)/i,/^(?:%%[^\\n]*)/i,/^(?:[\\s]+)/i,/^(?:title\\b)/i,/^(?:(?!\\n||)*[^\\n]*)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:pie\\b)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"title\":{\"rules\":[11],\"inclusive\":false},\"string\":{\"rules\":[13,14],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,12,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet sections = {};\nlet title = '';\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().pie,\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+((?!(-x|--x))[\\-]*[^\\+\\->:\\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,8],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,8],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,8],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || undefined\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : undefined\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,28],$Vc=[1,23],$Vd=[1,24],$Ve=[1,25],$Vf=[1,26],$Vg=[1,29],$Vh=[1,32],$Vi=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],$Vj=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],$Vk=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],$Vl=[4,5,14,15,17,19,20,22,23,24,25,26,36,39];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"idStatement\":11,\"DESCR\":12,\"-->\":13,\"HIDE_EMPTY\":14,\"scale\":15,\"WIDTH\":16,\"COMPOSIT_STATE\":17,\"STRUCT_START\":18,\"STRUCT_STOP\":19,\"STATE_DESCR\":20,\"AS\":21,\"ID\":22,\"FORK\":23,\"JOIN\":24,\"CONCURRENT\":25,\"note\":26,\"notePosition\":27,\"NOTE_TEXT\":28,\"openDirective\":29,\"typeDirective\":30,\"closeDirective\":31,\":\":32,\"argDirective\":33,\"eol\":34,\";\":35,\"EDGE_STATE\":36,\"left_of\":37,\"right_of\":38,\"open_directive\":39,\"type_directive\":40,\"arg_directive\":41,\"close_directive\":42,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",12:\"DESCR\",13:\"-->\",14:\"HIDE_EMPTY\",15:\"scale\",16:\"WIDTH\",17:\"COMPOSIT_STATE\",18:\"STRUCT_START\",19:\"STRUCT_STOP\",20:\"STATE_DESCR\",21:\"AS\",22:\"ID\",23:\"FORK\",24:\"JOIN\",25:\"CONCURRENT\",26:\"note\",28:\"NOTE_TEXT\",32:\":\",35:\";\",36:\"EDGE_STATE\",37:\"left_of\",38:\"right_of\",39:\"open_directive\",40:\"type_directive\",41:\"arg_directive\",42:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$='nl';\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 11:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 12:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 13:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 17:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 18:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 19:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 22:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 23:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 30: case 31:\nthis.$=$$[$0];\nbreak;\ncase 34:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 35:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 36:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 37:\n yy.parseDirective('}%%', 'close_directive', 'state'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},o([1,4,5,14,15,17,20,22,23,24,25,26,36,39],$V4,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},{31:30,32:[1,31],42:$Vh},o([32,42],[2,35]),o($Vi,[2,6]),{6:27,10:33,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,8]),o($Vi,[2,9]),o($Vi,[2,10],{12:[1,34],13:[1,35]}),o($Vi,[2,14]),{16:[1,36]},o($Vi,[2,16],{18:[1,37]}),{21:[1,38]},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},o($Vi,[2,25]),o($Vj,[2,30]),o($Vj,[2,31]),o($Vk,[2,26]),{33:43,41:[1,44]},o($Vk,[2,37]),o($Vi,[2,7]),o($Vi,[2,11]),{11:45,22:$Vb,36:$Vg},o($Vi,[2,15]),o($Vl,$V4,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:$Vh},{42:[2,36]},o($Vi,[2,12],{12:[1,51]}),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,52],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},o($Vk,[2,27]),o($Vi,[2,13]),o($Vi,[2,17]),o($Vl,$V4,{8:56}),o($Vi,[2,23]),o($Vi,[2,24]),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,57],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,19])],\ndefaultActions: {7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 39; \nbreak;\ncase 1: this.begin('type_directive'); return 40; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 32; \nbreak;\ncase 3: this.popState(); this.popState(); return 42; \nbreak;\ncase 4:return 41;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 15; \nbreak;\ncase 13:return 16;\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15: this.pushState('STATE'); \nbreak;\ncase 16:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 17:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 18:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 19:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 20:this.begin(\"STATE_STRING\");\nbreak;\ncase 21:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 22:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 25:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 17;\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 18;\nbreak;\ncase 28: /*console.log('Ending struct');*/ this.popState(); return 19;\nbreak;\ncase 29:/* nothing */\nbreak;\ncase 30: this.begin('NOTE'); return 26; \nbreak;\ncase 31: this.popState();this.pushState('NOTE_ID');return 37;\nbreak;\ncase 32: this.popState();this.pushState('NOTE_ID');return 38;\nbreak;\ncase 33: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 34:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 35:/**/\nbreak;\ncase 36: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 37:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 38: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 22;\nbreak;\ncase 39: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 28;\nbreak;\ncase 40: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 28;\nbreak;\ncase 41: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 42: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 43: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 14; \nbreak;\ncase 44: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 36;\nbreak;\ncase 45: /*console.log('=>ID=',yy_.yytext);*/ return 22;\nbreak;\ncase 46: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 12; \nbreak;\ncase 47:return 13;\nbreak;\ncase 48:return 25;\nbreak;\ncase 49:return 5;\nbreak;\ncase 50:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:[\\s]+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[9,10],\"inclusive\":false},\"close_directive\":{\"rules\":[9,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,9,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,9,10],\"inclusive\":false},\"open_directive\":{\"rules\":[1,9,10],\"inclusive\":false},\"struct\":{\"rules\":[9,10,15,28,29,30,44,45,46,47,48],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[37],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[34,35,36],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[39,40],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[38],\"inclusive\":false},\"NOTE\":{\"rules\":[31,32,33],\"inclusive\":false},\"SCALE\":{\"rules\":[13,14],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[22],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[23,24],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[9,10,16,17,18,19,20,21,25,26,27],\"inclusive\":false},\"ID\":{\"rules\":[9,10],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().state,\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.error('Parsing failed', err);\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${options.tertiaryColor};\n opacity: 0.2;\n}\n.edgeLabel .label text {\n fill: ${options.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: ${options.primaryBorderColor};\n stroke: black;\n}\n.node circle.state-end {\n fill: ${options.primaryBorderColor};\n stroke: ${options.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${options.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().journey,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'journey'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n console.log('Starting rendering diagrams (init) - mermaid.init', conf);\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.updateSiteConfig({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.updateSiteConfig({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\n// import * as configApi from './config';\n// // , {\n// // setConfig,\n// // configApi.getConfig,\n// // configApi.updateSiteConfig,\n// // configApi.setSiteConfig,\n// // configApi.getSiteConfig,\n// // configApi.defaultConfig\n// // }\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport * as configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n configApi.reset();\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n configApi.addDirective(graphInit);\n } else {\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n configApi.addDirective(siteConfig);\n }\n\n const cnf = configApi.getConfig();\n console.log('Render', cnf);\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(p, statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(p, currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(p, directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n configApi.addDirective(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n if (p && p['setWrap']) {\n p.setWrap(directive.type === 'wrap');\n }\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n `mermaidAPI.reinitialize: v${pkg.version}`,\n JSON.stringify(options),\n options.themeVariables.primaryColor;\n // // if (options.theme && theme[options.theme]) {\n // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n // // }\n // // Set default options\n // const config =\n // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig();\n // updateRendererConfigs(config);\n // setLogLevel(config.logLevel);\n // logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n console.trace(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config =\n typeof options === 'object' ? configApi.setSiteConfig(options) : configApi.getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig: configApi.getConfig,\n getSiteConfig: configApi.getSiteConfig,\n updateSiteConfig: configApi.updateSiteConfig,\n reset: () => {\n console.warn('reset');\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(configApi.getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(configApi.getConfig().logLevel);\nconfigApi.reset(configApi.getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import { darken, lighten, adjust, invert } from 'khroma';\n\nconst mkBorder = (col, darkMode) =>\n darkMode ? adjust(col, { s: -40, l: 10 }) : adjust(col, { s: -40, l: -10 });\nclass Theme {\n constructor() {\n /** # Base variables */\n /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */\n this.background = '#f4f4f4';\n // this.background = '#0c0c0c';\n /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */\n this.darkMode = false;\n // this.darkMode = true;\n // this.primaryColor = '#1f1f00';\n\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = '#333';\n // this.primaryColor = '#9f33be';\n this.primaryColor = '#f0fff0';\n // this.primaryColor = '#fa255e';\n // this.primaryColor = '#ECECFF';\n\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n this.secondaryColor = '#dfdfde';\n this.tertiaryColor = '#CCCCFF';\n\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.textColor = '#333';\n this.updateColors();\n this.relationColor = '#000';\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Main */\n this.secondaryColor = adjust(this.primaryColor, { h: 120 });\n this.tertiaryColor = adjust(this.primaryColor, { h: -160 });\n console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor);\n this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode);\n this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode);\n this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode);\n this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode);\n\n this.primaryTextColor = invert(this.primaryColor);\n this.secondaryTextColor = invert(this.secondaryColor);\n this.tertiaryTextColor = invert(this.tertiaryColor);\n this.lineColor = invert(this.background);\n this.textColor = invert(this.background);\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = this.primaryBorderColor;\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = this.tertiaryBorderColor;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.tertiaryTextColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = this.primaryBorderColor;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.primaryTextColor;\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n // this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = this.primaryBorderColor;\n this.taskBkgColor = this.primaryColor;\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n this.taskTextColor = this.textColor;\n this.taskTextOutsideColor = this.textColor;\n this.taskTextLightColor = this.textColor;\n this.taskTextColor = this.primaryTextColor;\n this.taskTextDarkColor = this.textColor;\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n\n /* state colors */\n this.labelColor = this.primaryTextColor;\n this.altBackground = this.tertiaryColor;\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n","module.exports = require(\"@braintree/sanitize-url\");","module.exports = require(\"d3\");","module.exports = require(\"dagre\");","module.exports = require(\"dagre-d3\");","module.exports = require(\"dagre-d3/lib/label/add-html-label.js\");","module.exports = require(\"entity-decode/browser\");","module.exports = require(\"graphlib\");","module.exports = require(\"khroma\");","module.exports = require(\"moment-mini\");","module.exports = require(\"stylis\");"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mermaid.js b/dist/mermaid.js index a173caf7de..41377daaa9 100644 --- a/dist/mermaid.js +++ b/dist/mermaid.js @@ -49035,7 +49035,7 @@ module.exports = function(module) { /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */ /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"khroma\":\"^1.1.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"stylis\":\"^3.5.2\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); +module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"description\":\"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\"main\":\"dist/mermaid.core.js\",\"keywords\":[\"diagram\",\"markdown\",\"flowchart\",\"sequence diagram\",\"gantt\",\"class diagram\",\"git graph\"],\"scripts\":{\"build:development\":\"webpack --progress --colors\",\"build:production\":\"yarn build:development -p --config webpack.config.prod.babel.js\",\"build\":\"yarn build:development && yarn build:production\",\"postbuild\":\"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\"build:watch\":\"yarn build --watch\",\"minify\":\"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\"release\":\"yarn build\",\"lint\":\"eslint src\",\"e2e:depr\":\"yarn lint && jest e2e --config e2e/jest.config.js\",\"cypress\":\"percy exec -- cypress run\",\"e2e\":\"start-server-and-test dev http://localhost:9000/ cypress\",\"e2e-upd\":\"yarn lint && jest e2e -u --config e2e/jest.config.js\",\"dev\":\"webpack-dev-server --config webpack.config.e2e.js\",\"test\":\"yarn lint && jest src/.*\",\"test:watch\":\"jest --watch src\",\"prepublishOnly\":\"yarn build && yarn test && yarn e2e\",\"prepare\":\"yarn build\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/knsv/mermaid\"},\"author\":\"Knut Sveidqvist\",\"license\":\"MIT\",\"standard\":{\"ignore\":[\"**/parser/*.js\",\"dist/**/*.js\",\"cypress/**/*.js\"],\"globals\":[\"page\"]},\"dependencies\":{\"@braintree/sanitize-url\":\"^3.1.0\",\"babel-eslint\":\"^10.1.0\",\"d3\":\"^5.7.0\",\"dagre\":\"^0.8.4\",\"dagre-d3\":\"^0.6.4\",\"entity-decode\":\"^2.0.2\",\"graphlib\":\"^2.1.7\",\"he\":\"^1.2.0\",\"khroma\":\"^1.1.0\",\"minify\":\"^4.1.1\",\"moment-mini\":\"^2.22.1\",\"stylis\":\"^3.5.2\"},\"devDependencies\":{\"@babel/core\":\"^7.2.2\",\"@babel/preset-env\":\"^7.8.4\",\"@babel/register\":\"^7.0.0\",\"@percy/cypress\":\"*\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^24.9.0\",\"babel-loader\":\"^8.0.4\",\"coveralls\":\"^3.0.2\",\"css-loader\":\"^2.0.1\",\"css-to-string-loader\":\"^0.1.3\",\"cypress\":\"4.0.1\",\"documentation\":\"^12.0.1\",\"eslint\":\"^6.3.0\",\"eslint-config-prettier\":\"^6.3.0\",\"eslint-plugin-prettier\":\"^3.1.0\",\"husky\":\"^1.2.1\",\"identity-obj-proxy\":\"^3.0.0\",\"jest\":\"^24.9.0\",\"jison\":\"^0.4.18\",\"moment\":\"^2.23.0\",\"node-sass\":\"^4.12.0\",\"prettier\":\"^1.18.2\",\"puppeteer\":\"^1.17.0\",\"sass-loader\":\"^7.1.0\",\"start-server-and-test\":\"^1.10.6\",\"terser-webpack-plugin\":\"^2.2.2\",\"webpack\":\"^4.41.2\",\"webpack-bundle-analyzer\":\"^3.7.0\",\"webpack-cli\":\"^3.1.2\",\"webpack-dev-server\":\"^3.4.1\",\"webpack-node-externals\":\"^1.7.2\",\"yarn-upgrade-all\":\"^0.5.0\"},\"files\":[\"dist\"],\"yarn-upgrade-all\":{\"ignore\":[\"babel-core\"]},\"sideEffects\":[\"**/*.css\",\"**/*.scss\"],\"husky\":{\"hooks\":{\"pre-push\":\"yarn test\"}}}"); /***/ }), @@ -49043,2758 +49043,2265 @@ module.exports = JSON.parse("{\"name\":\"mermaid\",\"version\":\"8.6.4\",\"descr /*!***********************!*\ !*** ./src/config.js ***! \***********************/ -/*! exports provided: defaultConfig, setSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, reset, default */ +/*! exports provided: defaultConfig, setSiteConfig, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultConfig", function() { return defaultConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSiteConfig", function() { return setSiteConfig; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateSiteConfig", function() { return updateSiteConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSiteConfig", function() { return getSiteConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setConfig", function() { return setConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfig", function() { return getConfig; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitize", function() { return sanitize; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addDirective", function() { return addDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reset", function() { return reset; }); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); +/* harmony import */ var _defaultConfig__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultConfig */ "./src/defaultConfig.js"); +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - // import { unflatten } from 'flat'; -// import flatten from 'flat'; -// import themeVariables from './theme-default'; -// import themeForestVariables from './theme-forest'; -// import themeNeutralVariables from './theme-neutral'; +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -var handleThemeVariables = function handleThemeVariables(value) { - return _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value] ? _themes__WEBPACK_IMPORTED_MODULE_2__["default"][value].getThemeVariables() : _themes__WEBPACK_IMPORTED_MODULE_2__["default"].default.getThemeVariables(); + + + + // debugger; + +var defaultConfig = Object.freeze(_defaultConfig__WEBPACK_IMPORTED_MODULE_3__["default"]); +var siteConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); +var directives = []; +var currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); + +var updateCurrentConfig = function updateCurrentConfig(conf) { + currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig); // Apply directives + + var themeVariables; + directives.forEach(function (d) { + currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, d); + + if (d.themeVariables) { + themeVariables = d.themeVariables; + } + }); + var variables = _themes__WEBPACK_IMPORTED_MODULE_2__["default"][currentConfig.theme].getThemeVariables(themeVariables); + currentConfig.themeVariables = variables; +}; +/** + *## setSiteConfig + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array| + ***Notes:** + *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset + *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig + *to the defaultConfig + *Note: currentConfig is set in this function + **Default value: At default, will mirror Global Config** + * @param conf - the base currentConfig to use as siteConfig + * @returns {*} - the siteConfig + */ + + +var setSiteConfig = function setSiteConfig(conf) { + siteConfig = _objectSpread({}, defaultConfig, {}, conf); + return siteConfig; }; +var updateSiteConfig = function updateSiteConfig(conf) { + console.log('setSiteConfig'); // Object.keys(conf).forEach(key => { + // const manipulator = manipulators[key]; + // conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; + // }); -var manipulators = { - themeVariables: handleThemeVariables + siteConfig = _objectSpread({}, siteConfig, {}, conf); // assignWithDesetpth(currentConfig, conf, { clobber: true }); + // // Set theme variables if user has set the theme option + // assignWithDepth(siteConfig, conf); + + return siteConfig; }; /** - * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** - * - * ## **What follows are config instructions for older versions** - * These are the default options which can be overridden with the initialization call like so: - * **Example 1:** - *

- * mermaid.initialize({
- *   flowchart:{
- *     htmlLabels: false
- *   }
- * });
- * 
- * - * **Example 2:** - *
- * <script>
- *   var config = {
- *     startOnLoad:true,
- *     flowchart:{
- *       useMaxWidth:true,
- *       htmlLabels:true,
- *       curve:'cardinal',
- *     },
+ *## getSiteConfig
+ *| Function | Description         | Type    |  Values             |
+ *| --------- | ------------------- | ------- |  ------------------ |
+ *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values  in siteConfig|
+ ***Notes**:
+ *Returns **any** values in siteConfig.
+ * @returns {*}
+ */
+
+var getSiteConfig = function getSiteConfig() {
+  return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig);
+};
+/**
+ *## setConfig
+ *| Function  | Description         | Type    | Values             |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|
+ ***Notes**:
+ *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any
+ *values found in conf with key found in siteConfig.secure will be replaced with the corresponding
+ *siteConfig value.
+ * @param conf - the potential currentConfig
+ * @returns {*} - the currentConfig merged with the sanitized conf
+ */
+
+var setConfig = function setConfig(conf) {
+  // sanitize(conf);
+  // Object.keys(conf).forEach(key => {
+  //   const manipulator = manipulators[key];
+  //   conf[key] = manipulator ? manipulator(conf[key]) : conf[key];
+  // });
+  // assignWithDepth(currentConfig, conf);
+  return getConfig();
+};
+/**
+ *   ## getConfig
+ *| Function  | Description         | Type    | Return Values            |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|
+ ***Notes**:
+ *Returns **any** the currentConfig
+ * @returns {*} - the currentConfig
+ */
+
+var getConfig = function getConfig() {
+  return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, currentConfig);
+};
+/**
+ *## sanitize
+ *| Function | Description         | Type    | Values             |
+ *| --------- | ------------------- | ------- | ------------------ |
+ *| sanitize  |Sets the siteConfig to desired values. | Put Request |None|
+ *Ensures options parameter does not attempt to override siteConfig secure keys
+ *Note: modifies options in-place
+ * @param options - the potential setConfig parameter
+ */
+
+var sanitize = function sanitize(options) {
+  Object.keys(siteConfig.secure).forEach(function (key) {
+    if (typeof options[siteConfig.secure[key]] !== 'undefined') {
+      // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script
+      // can exploit the logger's attempt to stringify the value and execute arbitrary code
+      _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace("Denied attempt to modify a secure key ".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);
+      delete options[siteConfig.secure[key]];
+    }
+  });
+};
+var addDirective = function addDirective(directive) {
+  directives.push(directive);
+  updateCurrentConfig();
+};
+/**
+ *## reset
+ *| Function | Description         | Type    | Required | Values             |
+ *| --------- | ------------------- | ------- | -------- | ------------------ |
+ *| reset|Resets currentConfig to conf| Put Request | Required | None|
  *
- *     securityLevel:'loose',
- *   };
- *   mermaid.initialize(config);
- * </script>
- * 
- * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array| * - * @name Configuration + **Notes : + (default: current siteConfig ) (optional, default `getSiteConfig()`) + * @param conf - the base currentConfig to reset to (default: current siteConfig ) */ -var config = { - /** theme , the CSS style sheet - * - * theme , the CSS style sheet - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| - * - ***Notes:**To disable any pre-defined mermaid theme, use "null". - *
-   *  "theme": "forest",
-   *  "themeCSS": ".node rect { fill: red; }"
-   * 
- */ - theme: 'default', - themeVariables: _themes__WEBPACK_IMPORTED_MODULE_2__["default"]['default'].getThemeVariables(), - themeCSS: undefined, +var reset = function reset() { + var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig(); + // Object.keys(siteConfig).forEach(key => delete siteConfig[key]); + // Object.keys(currentConfig).forEach(key => delete currentConfig[key]); + // assignWithDepth(siteConfig, conf, { clobber: true }); + // assignWithDepth(currentConfig, conf, { clobber: true }); + // Replace current config with siteConfig + directives = []; + updateCurrentConfig(); +}; // const configApi = Object.freeze({ +// sanitize, +// setSiteConfig, +// getSiteConfig, +// setConfig, +// getConfig, +// reset, +// defaultConfig +// }); +// export default configApi; - /* **maxTextSize** - The maximum allowed size of the users text diamgram */ - maxTextSize: 50000, +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| - * - ***notes: Default value is \\"trebuchet ms\\". - */ - fontFamily: '"trebuchet ms", verdana, arial;', +/***/ "./src/dagre-wrapper/clusters.js": +/*!***************************************!*\ + !*** ./src/dagre-wrapper/clusters.js ***! + \***************************************/ +/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | - * - * - ***Notes:** - *- debug: 1. - *- info: 2. - *- warn: 3. - *- error: 4. - *- fatal: 5(default). - */ - logLevel: 5, +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertCluster", function() { return insertCluster; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClusterTitleWidth", function() { return getClusterTitleWidth; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionCluster", function() { return positionCluster; }); +/* harmony import */ var _intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect/intersect-rect */ "./src/dagre-wrapper/intersect/intersect-rect.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config.js"); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | - * - ***Notes: - *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled - *- **loose**: tags in text are allowed, click functionality is enabled - *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled - */ - securityLevel: 'strict', + // eslint-disable-line - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | - * - ***Notes:** - ***Default value: true** - */ - startOnLoad: true, - /** - *| Parameter | Description |Type | Required |Values| - *| --- | --- | --- | --- | --- | - *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | - * - * - *## Notes**: This matters if you are using base tag settings. - ***Default value: false**. - */ - arrowMarkerAbsolute: false, - /** - * This option controls which currentConfig keys are considered _secure_ and can only be changed via - * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to - * the `secure` keys in the current currentConfig. This prevents malicious graph directives from - * overriding a site's default security. - */ - secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], - /** - * The object containing configurations specific for flowcharts - */ - flowchart: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 8**. - */ - diagramPadding: 8, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| - * - ***Notes: Default value: true**. - */ - htmlLabels: true, +var rect = function rect(parent, node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Creating subgraph rect for ', node.id, node); // Add outer g element - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | - * - ***Notes: - *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** - ***Default value 50**. - */ - nodeSpacing: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | - * - ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. - ***Default value 50**. - */ - rankSpacing: 50, + var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| - * - ***Notes: - *Default Vaue: Linear** - */ - curve: 'linear', - // Only used in new experimental rendering - // repreesents the padding between the labels and the shape - padding: 15 - }, + var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect - /** - * The object containing configurations specific for sequence diagrams - */ - sequence: { - /** - * widt of the activation rect - * **Default value 10**. - */ - activationWidth: 10, + var label = shapeSvg.insert('g').attr('class', 'cluster-label'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, + var bbox = text.getBBox(); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| - * - ***Notes:** - ***Default value 10**. - */ - diagramMarginY: 10, + if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, + var padding = 0 * node.padding; + var halfPadding = padding / 2; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 65**.. - */ - height: 65, + label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - boxMargin: 10, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| - * - ***Notes:** - * - ***Default value 5**. - */ - boxTextMargin: 5, + return shapeSvg; +}; +/** + * Non visiable cluster where the note is group with its + */ - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - noteMargin: 10, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, +var noteGroup = function noteGroup(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | - * - ***Notes:**center **default** - */ - messageAlign: 'center', + var rect = shapeSvg.insert('rect', ':first-child'); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | - * - ***Notes:** - * - ***Default value true**. - */ - mirrorActors: true, + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | True, False | - * - ***Notes:** - *when this flag is set to true, the height and width is set to 100% and is then scaling with the - *available space. If set to false, the absolute space required is used. - ***Default value: True**. - */ - useMaxWidth: true, + return shapeSvg; +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | - * - ***Notes:** - * - *This will display arrows that start and begin at the same node as right angles, rather than a curve - ***Default value false**. - */ - rightAngles: false, +var roundedWithTitle = function roundedWithTitle(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | - * - ***Notes:** - ***Default value false**. - */ - showSequenceNumbers: false, + var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - actorFontSize: 14, + var label = shapeSvg.insert('g').attr('class', 'cluster-label'); + var innerRect = shapeSvg.append('rect'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | - * - ***Notes:** - ***Default value "Open-Sans", "sans-serif"**. - */ - actorFontFamily: '"Open-Sans", "sans-serif"', + var bbox = text.getBBox(); - /** - * This sets the font weight of the actor's description - * **Default value 400. - */ - actorFontWeight: 400, + if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - noteFontSize: 14, + bbox = text.getBBox(); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | - * - ***Notes:** - ***Default value: trebuchet ms **. - */ - noteFontFamily: '"trebuchet ms", verdana, arial', + rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); + innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label - /** - * This sets the font weight of the note's description - * **Default value 400. - */ - noteFontWeight: 400, + label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels ? 5 : 3)) + ')'); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| - * - ***Notes:** - ***Default value center**. - */ - noteAlign: 'center', + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | - * - ***Notes:** - ***Default value 16**. - */ - messageFontSize: 16, + return shapeSvg; +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | - * - ***Notes:** - ***Default value:"trebuchet ms**. - */ - messageFontFamily: '"trebuchet ms", verdana, arial', +var divider = function divider(parent, node) { + // Add outer g element + var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect - /** - * This sets the font weight of the message's description - * **Default value 400. - */ - messageFontWeight: 400, + var rect = shapeSvg.insert('rect', ':first-child'); + var padding = 0 * node.padding; + var halfPadding = padding / 2; // center the rect around its coordinate - /** - * This sets the auto-wrap state for the diagram - * **Default value false. - */ - wrap: false, + rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding); + var rectBox = rect.node().getBBox(); + node.width = rectBox.width; + node.height = rectBox.height; - /** - * This sets the auto-wrap padding for the diagram (sides only) - * **Default value 10. - */ - wrapPadding: 10, + node.intersect = function (point) { + return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); + }; - /** - * This sets the width of the loop-box (loop, alt, opt, par) - * **Default value 50. - */ - labelBoxWidth: 50, + return shapeSvg; +}; - /** - * This sets the height of the loop-box (loop, alt, opt, par) - * **Default value 20. - */ - labelBoxHeight: 20, - messageFont: function messageFont() { - return { - fontFamily: this.messageFontFamily, - fontSize: this.messageFontSize, - fontWeight: this.messageFontWeight - }; - }, - noteFont: function noteFont() { - return { - fontFamily: this.noteFontFamily, - fontSize: this.noteFontSize, - fontWeight: this.noteFontWeight - }; - }, - actorFont: function actorFont() { - return { - fontFamily: this.actorFontFamily, - fontSize: this.actorFontSize, - fontWeight: this.actorFontWeight - }; - } - }, +var shapes = { + rect: rect, + roundedWithTitle: roundedWithTitle, + noteGroup: noteGroup, + divider: divider +}; +var clusterElems = {}; +var insertCluster = function insertCluster(elem, node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Inserting cluster'); + var shape = node.shape || 'rect'; + clusterElems[node.id] = shapes[shape](elem, node); +}; +var getClusterTitleWidth = function getClusterTitleWidth(elem, node) { + var label = Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true); + elem.node().appendChild(label); + var width = label.getBBox().width; + elem.node().removeChild(label); + return width; +}; +var clear = function clear() { + clusterElems = {}; +}; +var positionCluster = function positionCluster(node) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Position cluster'); + var el = clusterElems[node.id]; + el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); +}; - /** - * The object containing configurations specific for gantt diagrams* - */ - gantt: { - /** - *### titleTopMargin - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 25**. - */ - titleTopMargin: 25, +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 20**. - */ - barHeight: 20, +/***/ "./src/dagre-wrapper/createLabel.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/createLabel.js ***! + \******************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - barGap: 4, +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ "./src/config.js"); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - topPadding: 50, + // eslint-disable-line +// let vertexNode; +// if (getConfig().flowchart.htmlLabels) { +// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? +// const node = { +// label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => ``) +// }; +// vertexNode = addHtmlLabel(svg, node).node(); +// vertexNode.parentNode.removeChild(vertexNode); +// } else { +// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); +// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:')); +// const rows = vertexText.split(common.lineBreakRegex); +// for (let j = 0; j < rows.length; j++) { +// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); +// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); +// tspan.setAttribute('dy', '1em'); +// tspan.setAttribute('x', '1'); +// tspan.textContent = rows[j]; +// svgLabel.appendChild(tspan); +// } +// vertexNode = svgLabel; +// } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | - * - ***Notes:** - ***Default value 75**. - */ - leftPadding: 75, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 35**. - */ - gridLineStartPadding: 35, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize | Font size| Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 11**. - */ - fontSize: 11, +function applyStyle(dom, styleFn) { + if (styleFn) { + dom.attr('style', styleFn); + } +} - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | - * - ***Notes:** - * - ***Default value '"Open-Sans", "sans-serif"'**. - */ - fontFamily: '"Open-Sans", "sans-serif"', +function addHtmlLabel(node) { + // var fo = root.append('foreignObject').attr('width', '100000'); + // var div = fo.append('xhtml:div'); + // div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); + // var label = node.label; + // switch (typeof label) { + // case 'function': + // div.insert(label); + // break; + // case 'object': + // // Currently we assume this is a DOM object. + // div.insert(function() { + // return label; + // }); + // break; + // default: + // div.html(label); + // } + // applyStyle(div, node.labelStyle); + // div.style('display', 'inline-block'); + // // Fix for firefox + // div.style('white-space', 'nowrap'); + // var client = div.node().getBoundingClientRect(); + // fo.attr('width', client.width).attr('height', client.height); + var fo = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject')); + var div = fo.append('xhtml:div'); + var label = node.label; + var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel'; + div.html('' + label + ''); + applyStyle(div, node.labelStyle); + div.style('display', 'inline-block'); // Fix for firefox - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - numberSectionStyles: 4, + div.style('white-space', 'nowrap'); + div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); + return fo.node(); +} - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | - * - ***Notes:** - * - * This might need adjustment to match your locale and preferences - ***Default value '%Y-%m-%d'**. - */ - axisFormat: '%Y-%m-%d' - }, +var createLabel = function createLabel(_vertexText, style, isTitle, isNode) { + var vertexText = _vertexText || ''; - /** - * The object containing configurations specific for sequence diagrams - */ - journey: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, + if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().flowchart.htmlLabels) { + // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? + vertexText = vertexText.replace(/\\n|\n/g, '
'); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('vertexText' + vertexText); + var node = { + isNode: isNode, + label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) { + return ""); + }) + }; + var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 10**.. - */ - diagramMarginY: 10, + return vertexNode; + } else { + var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); + svgLabel.setAttribute('style', style.replace('color:', 'fill:')); + var rows = []; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, + if (typeof vertexText === 'string') { + rows = vertexText.split(/\\n|\n|/gi); + } else if (Array.isArray(vertexText)) { + rows = vertexText; + } else { + rows = []; + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, + for (var j = 0; j < rows.length; j++) { + var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); + tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); + tspan.setAttribute('dy', '1em'); + tspan.setAttribute('x', '0'); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 65**. - */ - height: 65, + if (isTitle) { + tspan.setAttribute('class', 'title-row'); + } else { + tspan.setAttribute('class', 'row'); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - boxMargin: 10, + tspan.textContent = rows[j].trim(); + svgLabel.appendChild(tspan); + } - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - */ - boxTextMargin: 5, + return svgLabel; + } +}; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - noteMargin: 10, +/* harmony default export */ __webpack_exports__["default"] = (createLabel); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, +/***/ }), - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | - * - ***Notes:**default:center** - */ - messageAlign: 'center', +/***/ "./src/dagre-wrapper/edges.js": +/*!************************************!*\ + !*** ./src/dagre-wrapper/edges.js ***! + \************************************/ +/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdgeLabel", function() { return insertEdgeLabel; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionEdgeLabel", function() { return positionEdgeLabel; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function() { return intersection; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdge", function() { return insertEdge; }); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js"); + // eslint-disable-line - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See notes | Boolean | 4 | True, False | - * - ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the - *available space if not the absolute space required is used. - * - ***Default value true**. - */ - useMaxWidth: true, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | - * - ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves - ***Default value false**. - */ - rightAngles: false - }, - class: { - arrowMarkerAbsolute: false - }, - git: { - arrowMarkerAbsolute: false - }, - state: { - dividerMargin: 10, - sizeUnit: 5, - padding: 8, - textHeight: 10, - titleShift: -15, - noteMargin: 10, - forkWidth: 70, - forkHeight: 7, - // Used - miniPadding: 2, - // Font size factor, this is used to guess the width of the edges labels before rendering by dagre - // layout. This might need updating if/when switching font - fontSizeFactor: 5.02, - fontSize: 24, - labelHeight: 16, - edgeLengthFactor: '20', - compositTitleSize: 35, - radius: 5 - }, - - /** - * The object containing configurations specific for entity relationship diagrams - */ - er: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 20**. - */ - diagramPadding: 20, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | - * - ***Notes:** - *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. - * T = top, B = bottom, L = left, and R = right. - ***Default value: TB **. - */ - layoutDirection: 'TB', - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 100**. - */ - minEntityWidth: 100, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 75 ** - */ - minEntityHeight: 75, + // import { calcLabelPosition } from '../utils'; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | - * - ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. - ***Default value: 15 ** - */ - entityPadding: 15, +var edgeLabels = {}; +var clear = function clear() { + edgeLabels = {}; +}; +var insertEdgeLabel = function insertEdgeLabel(elem, edge) { + // Create the actual text element + var labelElement = Object(_createLabel__WEBPACK_IMPORTED_MODULE_1__["default"])(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | - ***Default value: gray ** - */ - stroke: 'gray', + var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fill | Fill color of entity boxes | String | 4 | Any recognized color | - * - ***Notes:** - ***Default value:'honeydew'** - */ - fill: 'honeydew', + var label = edgeLabel.insert('g').attr('class', 'label'); + label.node().appendChild(labelElement); // Center the label - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize| Font Size in pixels| Integer | | Any Positive Value | - * - ***Notes:**Font size (expressed as an integer representing a number of pixels) - ***Default value: 12 ** - */ - fontSize: 12, + var bbox = labelElement.getBBox(); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | true, false | - * - ***Notes:** - *When this flag is set to true, the diagram width is locked to 100% and - *scaled based on available space. If set to false, the diagram reserves its - *absolute width. - ***Default value: true**. - */ - useMaxWidth: true + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var div = labelElement.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(labelElement); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); } -}; // debugger; - -config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -var defaultConfig = Object.freeze(config); -var siteConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); -var currentConfig = Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, defaultConfig); -/** - *## setSiteConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array| - ***Notes:** - *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset - *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig - *to the defaultConfig - *Note: currentConfig is set in this function - **Default value: At default, will mirror Global Config** - * @param conf - the base currentConfig to use as siteConfig - * @returns {*} - the siteConfig - */ - -var setSiteConfig = function setSiteConfig(conf) { - Object.keys(conf).forEach(function (key) { - var manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, { - clobber: true - }); // Set theme variables if user has set the theme option - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf); - return getSiteConfig(); -}; -/** - *## getSiteConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig| - ***Notes**: - *Returns **any** values in siteConfig. - * @returns {*} - */ + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning -var getSiteConfig = function getSiteConfig() { - return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, siteConfig); -}; -/** - *## setConfig - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array| - ***Notes**: - *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any - *values found in conf with key found in siteConfig.secure will be replaced with the corresponding - *siteConfig value. - * @param conf - the potential currentConfig - * @returns {*} - the currentConfig merged with the sanitized conf - */ + edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height -var setConfig = function setConfig(conf) { - sanitize(conf); - Object.keys(conf).forEach(function (key) { - var manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf); - return getConfig(); + edge.width = bbox.width; + edge.height = bbox.height; }; -/** - * ## getConfig - *| Function | Description | Type | Return Values | - *| --------- | ------------------- | ------- | ------------------ | - *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig| - ***Notes**: - *Returns **any** the currentConfig - * @returns {*} - the currentConfig - */ +var positionEdgeLabel = function positionEdgeLabel(edge, points) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Moving label', edge.id, edge.label, edgeLabels[edge.id]); -var getConfig = function getConfig() { - return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])({}, currentConfig); -}; -/** - *## sanitize - *| Function | Description | Type | Values | - *| --------- | ------------------- | ------- | ------------------ | - *| sanitize |Sets the siteConfig to desired values. | Put Request |None| - *Ensures options parameter does not attempt to override siteConfig secure keys - *Note: modifies options in-place - * @param options - the potential setConfig parameter - */ + if (edge.label) { + var el = edgeLabels[edge.id]; + var x = edge.x; + var y = edge.y; -var sanitize = function sanitize(options) { - Object.keys(siteConfig.secure).forEach(function (key) { - if (typeof options[siteConfig.secure[key]] !== 'undefined') { - // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script - // can exploit the logger's attempt to stringify the value and execute arbitrary code - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn("Denied attempt to modify a secure key ".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]); - delete options[siteConfig.secure[key]]; + if (points) { + // debugger; + var pos = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].calcLabelPosition(points); + x = pos.x; + y = pos.y; } - }); -}; -/** - *## reset - *| Function | Description | Type | Required | Values | - *| --------- | ------------------- | ------- | -------- | ------------------ | - *| reset|Resets currentConfig to conf| Put Request | Required | None| - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array| - * - **Notes : - (default: current siteConfig ) (optional, default `getSiteConfig()`) - * @param conf - the base currentConfig to reset to (default: current siteConfig ) - */ -var reset = function reset() { - var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig(); - Object.keys(siteConfig).forEach(function (key) { - return delete siteConfig[key]; - }); - Object.keys(currentConfig).forEach(function (key) { - return delete currentConfig[key]; - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(siteConfig, conf, { - clobber: true - }); - Object(_utils__WEBPACK_IMPORTED_MODULE_0__["assignWithDepth"])(currentConfig, conf, { - clobber: true - }); + el.attr('transform', 'translate(' + x + ', ' + y + ')'); + } +}; // const getRelationType = function(type) { +// switch (type) { +// case stateDb.relationType.AGGREGATION: +// return 'aggregation'; +// case stateDb.relationType.EXTENSION: +// return 'extension'; +// case stateDb.relationType.COMPOSITION: +// return 'composition'; +// case stateDb.relationType.DEPENDENCY: +// return 'dependency'; +// } +// }; + +var outsideNode = function outsideNode(node, point) { + // logger.warn('Checking bounds ', node, point); + var x = node.x; + var y = node.y; + var dx = Math.abs(point.x - x); + var dy = Math.abs(point.y - y); + var w = node.width / 2; + var h = node.height / 2; + + if (dx >= w || dy >= h) { + return true; + } + + return false; }; -var configApi = Object.freeze({ - sanitize: sanitize, - setSiteConfig: setSiteConfig, - getSiteConfig: getSiteConfig, - setConfig: setConfig, - getConfig: getConfig, - reset: reset, - defaultConfig: defaultConfig -}); -/* harmony default export */ __webpack_exports__["default"] = (configApi); -/***/ }), +var intersection = function intersection(node, outsidePoint, insidePoint) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node); + var x = node.x; + var y = node.y; + var dx = Math.abs(x - insidePoint.x); + var w = node.width / 2; + var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx; + var h = node.height / 2; + var edges = { + x1: x - w, + x2: x + w, + y1: y - h, + y2: y + h + }; -/***/ "./src/dagre-wrapper/clusters.js": -/*!***************************************!*\ - !*** ./src/dagre-wrapper/clusters.js ***! - \***************************************/ -/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('calc equals on edge'); + return outsidePoint; + } -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertCluster", function() { return insertCluster; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClusterTitleWidth", function() { return getClusterTitleWidth; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionCluster", function() { return positionCluster; }); -/* harmony import */ var _intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect/intersect-rect */ "./src/dagre-wrapper/intersect/intersect-rect.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config.js"); + var Q = Math.abs(outsidePoint.y - insidePoint.y); + var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn(); - // eslint-disable-line + if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { + // eslint-disable-line + // Intersection is top or bottom of rect. + // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; + var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; + r = R * q / Q; + var res = { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r, + y: outsidePoint.y + q + }; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("topp/bott calc, Q ".concat(Q, ", q ").concat(q, ", R ").concat(R, ", r ").concat(r), res); + return res; + } else { + // Intersection onn sides of rect + // q = (Q * r) / R; + // q = 2; + // r = (R * q) / Q; + if (insidePoint.x < outsidePoint.x) { + r = outsidePoint.x - w - x; + } else { + // r = outsidePoint.x - w - x; + r = x - w - outsidePoint.x; + } + var _q = _q = Q * r / R; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("sides calc, Q ".concat(Q, ", q ").concat(_q, ", R ").concat(R, ", r ").concat(r), { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, + y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q + }); + return { + x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, + y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q + }; + } +}; //(edgePaths, e, edge, clusterDb, diagramtype, graph) +var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) { + var points = edge.points; + var pointsHasChanged = false; + var tail = graph.node(e.v); + var head = graph.node(e.w); + if (head.intersect && tail.intersect) { + points = points.slice(1, edge.points.length - 1); + points.unshift(tail.intersect(points[0])); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1])); + points.push(head.intersect(points[points.length - 1])); + } -var rect = function rect(parent, node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Creating subgraph rect for ', node.id, node); // Add outer g element + if (edge.toCluster) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('to cluster', clusterDb[edge.toCluster]); + points = []; + var lastPointOutside; + var isInside = false; + edge.points.forEach(function (point) { + var node = clusterDb[edge.toCluster].node; - var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect + if (!outsideNode(node, point) && !isInside) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect - var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect + var inter = intersection(node, lastPointOutside, point); + var pointPresent = false; + points.forEach(function (p) { + pointPresent = pointPresent || p.x === inter.x && p.y === inter.y; + }); // if (!pointPresent) { - var label = shapeSvg.insert('g').attr('class', 'cluster-label'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label + if (!points.find(function (e) { + return e.x === inter.x && e.y === inter.y; + })) { + points.push(inter); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('no intersect', inter, points); + } - var bbox = text.getBBox(); + isInside = true; + } else { + if (!isInside) points.push(point); + } - if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); + lastPointOutside = point; + }); + pointsHasChanged = true; } - var padding = 0 * node.padding; - var halfPadding = padding / 2; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate + if (edge.fromCluster) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('from cluster', clusterDb[edge.fromCluster]); + var updatedPoints = []; - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label + var _lastPointOutside; - label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + var _isInside = false; - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + for (var i = points.length - 1; i >= 0; i--) { + var point = points[i]; + var node = clusterDb[edge.fromCluster].node; - return shapeSvg; -}; -/** - * Non visiable cluster where the note is group with its - */ + if (!outsideNode(node, point) && !_isInside) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('inside', edge.fromCluster, point, node); // First point inside the rect + var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point)); -var noteGroup = function noteGroup(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect + updatedPoints.unshift(insterection); // points.push(insterection); - var rect = shapeSvg.insert('rect', ':first-child'); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate + _isInside = true; + } else { + // at the outside + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Outside point', point); + if (!_isInside) updatedPoints.unshift(point); + } - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + _lastPointOutside = point; + } - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + points = updatedPoints; + pointsHasChanged = true; + } // The data for our line - return shapeSvg; -}; -var roundedWithTitle = function roundedWithTitle(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect + var lineData = points.filter(function (p) { + return !Number.isNaN(p.y); + }); // This is the accessor function we talked about above - var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect + var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_2__["line"])().x(function (d) { + return d.x; + }).y(function (d) { + return d.y; + }).curve(d3__WEBPACK_IMPORTED_MODULE_2__["curveBasis"]); // Contruct stroke classes based on properties - var label = shapeSvg.insert('g').attr('class', 'cluster-label'); - var innerRect = shapeSvg.append('rect'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label + var strokeClasses; - var bbox = text.getBBox(); + switch (edge.thickness) { + case 'normal': + strokeClasses = 'edge-thickness-normal'; + break; - if (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_3__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } + case 'thick': + strokeClasses = 'edge-thickness-thick'; + break; - bbox = text.getBBox(); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate + default: + strokeClasses = ''; + } - rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); - innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label - - label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (Object(_config__WEBPACK_IMPORTED_MODULE_4__["getConfig"])().flowchart.htmlLabels ? 5 : 3)) + ')'); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + switch (edge.pattern) { + case 'solid': + strokeClasses += ' edge-pattern-solid'; + break; - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + case 'dotted': + strokeClasses += ' edge-pattern-dotted'; + break; - return shapeSvg; -}; + case 'dashed': + strokeClasses += ' edge-pattern-dashed'; + break; + } -var divider = function divider(parent, node) { - // Add outer g element - var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect + var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate + // edge.points.forEach(point => { + // elem + // .append('circle') + // .style('stroke', 'red') + // .style('fill', 'red') + // .attr('r', 1) + // .attr('cx', point.x) + // .attr('cy', point.y); + // }); - var rect = shapeSvg.insert('rect', ':first-child'); - var padding = 0 * node.padding; - var halfPadding = padding / 2; // center the rect around its coordinate + var url = ''; - rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding); - var rectBox = rect.node().getBBox(); - node.width = rectBox.width; - node.height = rectBox.height; + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().state.arrowMarkerAbsolute) { + url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search; + url = url.replace(/\(/g, '\\('); + url = url.replace(/\)/g, '\\)'); + } - node.intersect = function (point) { - return Object(_intersect_intersect_rect__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point); - }; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeStart', edge.arrowTypeStart); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeEnd', edge.arrowTypeEnd); - return shapeSvg; -}; + switch (edge.arrowTypeStart) { + case 'arrow_cross': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')'); + break; -var shapes = { - rect: rect, - roundedWithTitle: roundedWithTitle, - noteGroup: noteGroup, - divider: divider -}; -var clusterElems = {}; -var insertCluster = function insertCluster(elem, node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Inserting cluster'); - var shape = node.shape || 'rect'; - clusterElems[node.id] = shapes[shape](elem, node); -}; -var getClusterTitleWidth = function getClusterTitleWidth(elem, node) { - var label = Object(_createLabel__WEBPACK_IMPORTED_MODULE_2__["default"])(node.labelText, node.labelStyle, undefined, true); - elem.node().appendChild(label); - var width = label.getBBox().width; - elem.node().removeChild(label); - return width; -}; -var clear = function clear() { - clusterElems = {}; -}; -var positionCluster = function positionCluster(node) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Position cluster'); - var el = clusterElems[node.id]; - el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); -}; + case 'arrow_point': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')'); + break; -/***/ }), + case 'arrow_barb': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')'); + break; -/***/ "./src/dagre-wrapper/createLabel.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/createLabel.js ***! - \******************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + case 'arrow_circle': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')'); + break; -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ "./src/config.js"); + case 'aggregation': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')'); + break; - // eslint-disable-line -// let vertexNode; -// if (getConfig().flowchart.htmlLabels) { -// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? -// const node = { -// label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, s => ``) -// }; -// vertexNode = addHtmlLabel(svg, node).node(); -// vertexNode.parentNode.removeChild(vertexNode); -// } else { -// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); -// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:')); -// const rows = vertexText.split(common.lineBreakRegex); -// for (let j = 0; j < rows.length; j++) { -// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); -// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); -// tspan.setAttribute('dy', '1em'); -// tspan.setAttribute('x', '1'); -// tspan.textContent = rows[j]; -// svgLabel.appendChild(tspan); -// } -// vertexNode = svgLabel; -// } + case 'extension': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')'); + break; + case 'composition': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')'); + break; + case 'dependency': + svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')'); + break; -function applyStyle(dom, styleFn) { - if (styleFn) { - dom.attr('style', styleFn); + default: } -} -function addHtmlLabel(node) { - // var fo = root.append('foreignObject').attr('width', '100000'); - // var div = fo.append('xhtml:div'); - // div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); - // var label = node.label; - // switch (typeof label) { - // case 'function': - // div.insert(label); - // break; - // case 'object': - // // Currently we assume this is a DOM object. - // div.insert(function() { - // return label; - // }); - // break; - // default: - // div.html(label); - // } - // applyStyle(div, node.labelStyle); - // div.style('display', 'inline-block'); - // // Fix for firefox - // div.style('white-space', 'nowrap'); - // var client = div.node().getBoundingClientRect(); - // fo.attr('width', client.width).attr('height', client.height); - var fo = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject')); - var div = fo.append('xhtml:div'); - var label = node.label; - var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel'; - div.html('' + label + ''); - applyStyle(div, node.labelStyle); - div.style('display', 'inline-block'); // Fix for firefox + switch (edge.arrowTypeEnd) { + case 'arrow_cross': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')'); + break; - div.style('white-space', 'nowrap'); - div.attr('xmlns', 'http://www.w3.org/1999/xhtml'); - return fo.node(); -} + case 'arrow_point': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')'); + break; -var createLabel = function createLabel(_vertexText, style, isTitle, isNode) { - var vertexText = _vertexText || ''; + case 'arrow_barb': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')'); + break; - if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().flowchart.htmlLabels) { - // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? - vertexText = vertexText.replace(/\\n|\n/g, '
'); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('vertexText' + vertexText); - var node = { - isNode: isNode, - label: vertexText.replace(/fa[lrsb]?:fa-[\w-]+/g, function (s) { - return ""); - }) - }; - var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode); + case 'arrow_circle': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')'); + break; - return vertexNode; - } else { - var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text'); - svgLabel.setAttribute('style', style.replace('color:', 'fill:')); - var rows = []; + case 'aggregation': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')'); + break; - if (typeof vertexText === 'string') { - rows = vertexText.split(/\\n|\n|/gi); - } else if (Array.isArray(vertexText)) { - rows = vertexText; - } else { - rows = []; - } + case 'extension': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')'); + break; - for (var j = 0; j < rows.length; j++) { - var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan'); - tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve'); - tspan.setAttribute('dy', '1em'); - tspan.setAttribute('x', '0'); + case 'composition': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')'); + break; - if (isTitle) { - tspan.setAttribute('class', 'title-row'); - } else { - tspan.setAttribute('class', 'row'); - } + case 'dependency': + svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')'); + break; - tspan.textContent = rows[j].trim(); - svgLabel.appendChild(tspan); - } + default: + } - return svgLabel; + if (pointsHasChanged) { + return points; } }; -/* harmony default export */ __webpack_exports__["default"] = (createLabel); - /***/ }), -/***/ "./src/dagre-wrapper/edges.js": +/***/ "./src/dagre-wrapper/index.js": /*!************************************!*\ - !*** ./src/dagre-wrapper/edges.js ***! + !*** ./src/dagre-wrapper/index.js ***! \************************************/ -/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */ +/*! exports provided: render */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdgeLabel", function() { return insertEdgeLabel; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionEdgeLabel", function() { return positionEdgeLabel; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "intersection", function() { return intersection; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertEdge", function() { return insertEdge; }); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "./src/utils.js"); - // eslint-disable-line - +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); +/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js"); +/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _markers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./markers */ "./src/dagre-wrapper/markers.js"); +/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mermaid-graphlib */ "./src/dagre-wrapper/mermaid-graphlib.js"); +/* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodes */ "./src/dagre-wrapper/nodes.js"); +/* harmony import */ var _clusters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clusters */ "./src/dagre-wrapper/clusters.js"); +/* harmony import */ var _edges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edges */ "./src/dagre-wrapper/edges.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); - // import { calcLabelPosition } from '../utils'; -var edgeLabels = {}; -var clear = function clear() { - edgeLabels = {}; -}; -var insertEdgeLabel = function insertEdgeLabel(elem, edge) { - // Create the actual text element - var labelElement = Object(_createLabel__WEBPACK_IMPORTED_MODULE_1__["default"])(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout - var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text - var label = edgeLabel.insert('g').attr('class', 'label'); - label.node().appendChild(labelElement); // Center the label - var bbox = labelElement.getBBox(); - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = labelElement.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(labelElement); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning - edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height +var recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph in recursive render:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), parentCluster); + var dir = graph.graph().rankdir; + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Dir in recursive render - dir:', dir); - edge.width = bbox.width; - edge.height = bbox.height; -}; -var positionEdgeLabel = function positionEdgeLabel(edge, points) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Moving label', edge.id, edge.label, edgeLabels[edge.id]); + var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line - if (edge.label) { - var el = edgeLabels[edge.id]; - var x = edge.x; - var y = edge.y; - if (points) { - // debugger; - var pos = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].calcLabelPosition(points); - x = pos.x; - y = pos.y; - } + if (!graph.nodes()) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('No nodes found for', graph); + } else { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive render', graph.nodes()); + } - el.attr('transform', 'translate(' + x + ', ' + y + ')'); + if (graph.edges().length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive edges', graph.edge(graph.edges()[0])); } -}; // const getRelationType = function(type) { -// switch (type) { -// case stateDb.relationType.AGGREGATION: -// return 'aggregation'; -// case stateDb.relationType.EXTENSION: -// return 'extension'; -// case stateDb.relationType.COMPOSITION: -// return 'composition'; -// case stateDb.relationType.DEPENDENCY: -// return 'dependency'; -// } -// }; -var outsideNode = function outsideNode(node, point) { - // logger.warn('Checking bounds ', node, point); - var x = node.x; - var y = node.y; - var dx = Math.abs(point.x - x); - var dy = Math.abs(point.y - y); - var w = node.width / 2; - var h = node.height / 2; + var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line - if (dx >= w || dy >= h) { - return true; - } + var edgePaths = elem.insert('g').attr('class', 'edgePaths'); + var edgeLabels = elem.insert('g').attr('class', 'edgeLabels'); + var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated + // to the abstract node and is later used by dagre for the layout - return false; -}; + graph.nodes().forEach(function (v) { + var node = graph.node(v); -var intersection = function intersection(node, outsidePoint, insidePoint) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node); - var x = node.x; - var y = node.y; - var dx = Math.abs(x - insidePoint.x); - var w = node.width / 2; - var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx; - var h = node.height / 2; - var edges = { - x1: x - w, - x2: x + w, - y1: y - h, - y2: y + h - }; + if (typeof parentCluster !== 'undefined') { + var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true; - if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('calc equals on edge'); - return outsidePoint; - } + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Setting data for cluster', data); + graph.setNode(parentCluster.id, data); + graph.setParent(v, parentCluster.id, data); + } - var Q = Math.abs(outsidePoint.y - insidePoint.y); - var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn(); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v))); - if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { - // eslint-disable-line - // Intersection is top or bottom of rect. - // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; - var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y; - r = R * q / Q; - var res = { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r, - y: outsidePoint.y + q - }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("topp/bott calc, Q ".concat(Q, ", q ").concat(q, ", R ").concat(R, ", r ").concat(r), res); - return res; - } else { - // Intersection onn sides of rect - // q = (Q * r) / R; - // q = 2; - // r = (R * q) / Q; - if (insidePoint.x < outsidePoint.x) { - r = outsidePoint.x - w - x; + if (node && node.clusterNode) { + // const children = graph.children(v); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster identified', v, node, graph.node(v)); + var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v)); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_3__["updateNodeBounds"])(node, newEl); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["setNodeElem"])(newEl, node); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Recursive render complete', newEl, node); } else { - // r = outsidePoint.x - w - x; - r = x - w - outsidePoint.x; + if (graph.children(v).length > 0) { + // This is a cluster but not to be rendered recusively + // Render as before + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster - the non recursive path', v, node.id, node, graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph)); + _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id] = { + id: Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph), + node: node + }; // insertCluster(clusters, graph.node(v)); + } else { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Node - the non recursive path', v, node.id, node); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["insertNode"])(nodes, graph.node(v), dir); + } } + }); // Insert labels, this will insert them into the dom so that the width can be calculated + // Also figure out which edges point to/from clusters and adjust them accordingly + // Edges from/to clusters really points to the first child in the cluster. + // TODO: pick optimal child in the cluster to us as link anchor - var _q = _q = Q * r / R; - - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn("sides calc, Q ".concat(Q, ", q ").concat(_q, ", R ").concat(R, ", r ").concat(r), { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, - y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q - }); - return { - x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w, - y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q - }; - } -}; //(edgePaths, e, edge, clusterDb, diagramtype, graph) + graph.edges().forEach(function (e) { + var edge = graph.edge(e.v, e.w, e.name); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster -var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) { - var points = edge.points; - var pointsHasChanged = false; - var tail = graph.node(e.v); - var head = graph.node(e.w); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Fix', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], 'ids:', e.v, e.w, 'Translateing: ', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.v], _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.w]); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdgeLabel"])(edgeLabels, edge); + }); + graph.edges().forEach(function (e) { + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + }); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('### Layout ###'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(graph); + dagre__WEBPACK_IMPORTED_MODULE_0___default.a.layout(graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph after layout:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); // Move the nodes to the correct place - if (head.intersect && tail.intersect) { - points = points.slice(1, edge.points.length - 1); - points.unshift(tail.intersect(points[0])); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1])); - points.push(head.intersect(points[points.length - 1])); - } + graph.nodes().forEach(function (v) { + var node = graph.node(v); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': ' + JSON.stringify(graph.node(v))); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height); - if (edge.toCluster) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('to cluster', clusterDb[edge.toCluster]); - points = []; - var lastPointOutside; - var isInside = false; - edge.points.forEach(function (point) { - var node = clusterDb[edge.toCluster].node; + if (node && node.clusterNode) { + // clusterDb[node.id].node = node; + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); + } else { + // Non cluster node + if (graph.children(v).length > 0) { + // A cluster in the non-recurive way + // positionCluster(node); + Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["insertCluster"])(clusters, node); + _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id].node = node; + } else { + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); + } + } + }); // Move the edge labels to the correct place after layout - if (!outsideNode(node, point) && !isInside) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect + graph.edges().forEach(function (e) { + var edge = graph.edge(e); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge); + var updatedPath = Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdge"])(edgePaths, e, edge, _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], diagramtype, graph); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["positionEdgeLabel"])(edge, updatedPath); + }); + return elem; +}; - var inter = intersection(node, lastPointOutside, point); - var pointPresent = false; - points.forEach(function (p) { - pointPresent = pointPresent || p.x === inter.x && p.y === inter.y; - }); // if (!pointPresent) { +var render = function render(elem, graph, markers, diagramtype, id) { + Object(_markers__WEBPACK_IMPORTED_MODULE_2__["default"])(elem, markers, diagramtype, id); + Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["clear"])(); + Object(_edges__WEBPACK_IMPORTED_MODULE_7__["clear"])(); + Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["clear"])(); + Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clear"])(); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph before:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["adjustClustersAndEdges"])(graph); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph after:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph ever after:', graph.graph()); + recursiveRender(elem, graph, diagramtype); +}; // const shapeDefinitions = {}; +// export const addShape = ({ shapeType: fun }) => { +// shapeDefinitions[shapeType] = fun; +// }; +// const arrowDefinitions = {}; +// export const addArrow = ({ arrowType: fun }) => { +// arrowDefinitions[arrowType] = fun; +// }; - if (!points.find(function (e) { - return e.x === inter.x && e.y === inter.y; - })) { - points.push(inter); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('no intersect', inter, points); - } +/***/ }), - isInside = true; - } else { - if (!isInside) points.push(point); - } +/***/ "./src/dagre-wrapper/intersect/index.js": +/*!**********************************************!*\ + !*** ./src/dagre-wrapper/intersect/index.js ***! + \**********************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - lastPointOutside = point; - }); - pointsHasChanged = true; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-node.js */ "./src/dagre-wrapper/intersect/intersect-node.js"); +/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_intersect_node_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intersect-circle.js */ "./src/dagre-wrapper/intersect/intersect-circle.js"); +/* harmony import */ var _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./intersect-ellipse.js */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); +/* harmony import */ var _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./intersect-polygon.js */ "./src/dagre-wrapper/intersect/intersect-polygon.js"); +/* harmony import */ var _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect-rect.js */ "./src/dagre-wrapper/intersect/intersect-rect.js"); +/* + * Borrowed with love from from dagrge-d3. Many thanks to cpettitt! + */ - if (edge.fromCluster) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('edge', edge); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('from cluster', clusterDb[edge.fromCluster]); - var updatedPoints = []; - var _lastPointOutside; - var _isInside = false; - for (var i = points.length - 1; i >= 0; i--) { - var point = points[i]; - var node = clusterDb[edge.fromCluster].node; - if (!outsideNode(node, point) && !_isInside) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('inside', edge.fromCluster, point, node); // First point inside the rect +/* harmony default export */ __webpack_exports__["default"] = ({ + node: _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default.a, + circle: _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"], + ellipse: _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__["default"], + polygon: _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__["default"], + rect: _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__["default"] +}); - var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point)); +/***/ }), - updatedPoints.unshift(insterection); // points.push(insterection); +/***/ "./src/dagre-wrapper/intersect/intersect-circle.js": +/*!*********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! + \*********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _isInside = true; - } else { - // at the outside - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Outside point', point); - if (!_isInside) updatedPoints.unshift(point); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-ellipse */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); - _lastPointOutside = point; - } - points = updatedPoints; - pointsHasChanged = true; - } // The data for our line +function intersectCircle(node, rx, point) { + return Object(_intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__["default"])(node, rx, rx, point); +} +/* harmony default export */ __webpack_exports__["default"] = (intersectCircle); - var lineData = points.filter(function (p) { - return !Number.isNaN(p.y); - }); // This is the accessor function we talked about above +/***/ }), - var lineFunction = Object(d3__WEBPACK_IMPORTED_MODULE_2__["line"])().x(function (d) { - return d.x; - }).y(function (d) { - return d.y; - }).curve(d3__WEBPACK_IMPORTED_MODULE_2__["curveBasis"]); // Contruct stroke classes based on properties +/***/ "./src/dagre-wrapper/intersect/intersect-ellipse.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! + \**********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var strokeClasses; +"use strict"; +__webpack_require__.r(__webpack_exports__); +function intersectEllipse(node, rx, ry, point) { + // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html + var cx = node.x; + var cy = node.y; + var px = cx - point.x; + var py = cy - point.y; + var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px); + var dx = Math.abs(rx * ry * px / det); - switch (edge.thickness) { - case 'normal': - strokeClasses = 'edge-thickness-normal'; - break; + if (point.x < cx) { + dx = -dx; + } - case 'thick': - strokeClasses = 'edge-thickness-thick'; - break; + var dy = Math.abs(rx * ry * py / det); - default: - strokeClasses = ''; + if (point.y < cy) { + dy = -dy; } - switch (edge.pattern) { - case 'solid': - strokeClasses += ' edge-pattern-solid'; - break; - - case 'dotted': - strokeClasses += ' edge-pattern-dotted'; - break; + return { + x: cx + dx, + y: cy + dy + }; +} - case 'dashed': - strokeClasses += ' edge-pattern-dashed'; - break; - } +/* harmony default export */ __webpack_exports__["default"] = (intersectEllipse); - var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate - // edge.points.forEach(point => { - // elem - // .append('circle') - // .style('stroke', 'red') - // .style('fill', 'red') - // .attr('r', 1) - // .attr('cx', point.x) - // .attr('cy', point.y); - // }); +/***/ }), - var url = ''; +/***/ "./src/dagre-wrapper/intersect/intersect-line.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-line.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().state.arrowMarkerAbsolute) { - url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search; - url = url.replace(/\(/g, '\\('); - url = url.replace(/\)/g, '\\)'); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* + * Returns the point at which two lines, p and q, intersect or returns + * undefined if they do not intersect. + */ +function intersectLine(p1, p2, q1, q2) { + // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, + // p7 and p473. + var a1, a2, b1, b2, c1, c2; + var r1, r2, r3, r4; + var denom, offset, num; + var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x + + // b1 y + c1 = 0. - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeStart', edge.arrowTypeStart); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('arrowTypeEnd', edge.arrowTypeEnd); + a1 = p2.y - p1.y; + b1 = p1.x - p2.x; + c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4. - switch (edge.arrowTypeStart) { - case 'arrow_cross': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')'); - break; + r3 = a1 * q1.x + b1 * q1.y + c1; + r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on + // same side of line 1, the line segments do not intersect. - case 'arrow_point': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')'); - break; + if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) { + return; + } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0 - case 'arrow_barb': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')'); - break; - case 'arrow_circle': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')'); - break; + a2 = q2.y - q1.y; + b2 = q1.x - q2.x; + c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2 - case 'aggregation': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')'); - break; + r1 = a2 * p1.x + b2 * p1.y + c2; + r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie + // on same side of second line segment, the line segments do + // not intersect. - case 'extension': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')'); - break; + if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) { + return; + } // Line segments intersect: compute intersection point. - case 'composition': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')'); - break; - case 'dependency': - svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')'); - break; + denom = a1 * b2 - a2 * b1; - default: + if (denom === 0) { + return; } - switch (edge.arrowTypeEnd) { - case 'arrow_cross': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')'); - break; + offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It + // is added or subtracted to the numerator, depending upon the + // sign of the numerator. - case 'arrow_point': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')'); - break; - - case 'arrow_barb': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')'); - break; - - case 'arrow_circle': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')'); - break; + num = b1 * c2 - b2 * c1; + x = num < 0 ? (num - offset) / denom : (num + offset) / denom; + num = a2 * c1 - a1 * c2; + y = num < 0 ? (num - offset) / denom : (num + offset) / denom; + return { + x: x, + y: y + }; +} - case 'aggregation': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')'); - break; +function sameSign(r1, r2) { + return r1 * r2 > 0; +} - case 'extension': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')'); - break; +/* harmony default export */ __webpack_exports__["default"] = (intersectLine); - case 'composition': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')'); - break; +/***/ }), - case 'dependency': - svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')'); - break; +/***/ "./src/dagre-wrapper/intersect/intersect-node.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { - default: - } +module.exports = intersectNode; - if (pointsHasChanged) { - return points; - } -}; +function intersectNode(node, point) { + console.info('Intersect Node'); + return node.intersect(point); +} /***/ }), -/***/ "./src/dagre-wrapper/index.js": -/*!************************************!*\ - !*** ./src/dagre-wrapper/index.js ***! - \************************************/ -/*! exports provided: render */ +/***/ "./src/dagre-wrapper/intersect/intersect-polygon.js": +/*!**********************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! + \**********************************************************/ +/*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); -/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dagre */ "./node_modules/dagre/index.js"); -/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _markers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./markers */ "./src/dagre-wrapper/markers.js"); -/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mermaid-graphlib */ "./src/dagre-wrapper/mermaid-graphlib.js"); -/* harmony import */ var _nodes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./nodes */ "./src/dagre-wrapper/nodes.js"); -/* harmony import */ var _clusters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./clusters */ "./src/dagre-wrapper/clusters.js"); -/* harmony import */ var _edges__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./edges */ "./src/dagre-wrapper/edges.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _intersect_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-line */ "./src/dagre-wrapper/intersect/intersect-line.js"); +/* eslint "no-console": off */ + +/* harmony default export */ __webpack_exports__["default"] = (intersectPolygon); +/* + * Returns the point ({x, y}) at which the point argument intersects with the + * node argument assuming that it has the shape specified by polygon. + */ + +function intersectPolygon(node, polyPoints, point) { + var x1 = node.x; + var y1 = node.y; + var intersections = []; + var minX = Number.POSITIVE_INFINITY; + var minY = Number.POSITIVE_INFINITY; + if (typeof polyPoints.forEach === 'function') { + polyPoints.forEach(function (entry) { + minX = Math.min(minX, entry.x); + minY = Math.min(minY, entry.y); + }); + } else { + minX = Math.min(minX, polyPoints.x); + minY = Math.min(minY, polyPoints.y); + } + var left = x1 - node.width / 2 - minX; + var top = y1 - node.height / 2 - minY; + for (var i = 0; i < polyPoints.length; i++) { + var p1 = polyPoints[i]; + var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0]; + var intersect = Object(_intersect_line__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point, { + x: left + p1.x, + y: top + p1.y + }, { + x: left + p2.x, + y: top + p2.y + }); + if (intersect) { + intersections.push(intersect); + } + } + if (!intersections.length) { + console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); + return node; + } + if (intersections.length > 1) { + // More intersections, find the one nearest to edge end point + intersections.sort(function (p, q) { + var pdx = p.x - point.x; + var pdy = p.y - point.y; + var distp = Math.sqrt(pdx * pdx + pdy * pdy); + var qdx = q.x - point.x; + var qdy = q.y - point.y; + var distq = Math.sqrt(qdx * qdx + qdy * qdy); + return distp < distq ? -1 : distp === distq ? 0 : 1; + }); + } + return intersections[0]; +} +/***/ }), +/***/ "./src/dagre-wrapper/intersect/intersect-rect.js": +/*!*******************************************************!*\ + !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! + \*******************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph in recursive render:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), parentCluster); - var dir = graph.graph().rankdir; - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Dir in recursive render - dir:', dir); +"use strict"; +__webpack_require__.r(__webpack_exports__); +var intersectRect = function intersectRect(node, point) { + var x = node.x; + var y = node.y; // Rectangle intersection algorithm from: + // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes - var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line + var dx = point.x - x; + var dy = point.y - y; + var w = node.width / 2; + var h = node.height / 2; + var sx, sy; + if (Math.abs(dy) * w > Math.abs(dx) * h) { + // Intersection is top or bottom of rect. + if (dy < 0) { + h = -h; + } - if (!graph.nodes()) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('No nodes found for', graph); + sx = dy === 0 ? 0 : h * dx / dy; + sy = h; } else { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive render', graph.nodes()); - } + // Intersection is left or right of rect. + if (dx < 0) { + w = -w; + } - if (graph.edges().length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Recursive edges', graph.edge(graph.edges()[0])); + sx = w; + sy = dx === 0 ? 0 : w * dy / dx; } - var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line + return { + x: x + sx, + y: y + sy + }; +}; - var edgePaths = elem.insert('g').attr('class', 'edgePaths'); - var edgeLabels = elem.insert('g').attr('class', 'edgeLabels'); - var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated - // to the abstract node and is later used by dagre for the layout +/* harmony default export */ __webpack_exports__["default"] = (intersectRect); - graph.nodes().forEach(function (v) { - var node = graph.node(v); +/***/ }), - if (typeof parentCluster !== 'undefined') { - var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true; +/***/ "./src/dagre-wrapper/markers.js": +/*!**************************************!*\ + !*** ./src/dagre-wrapper/markers.js ***! + \**************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Setting data for cluster', data); - graph.setNode(parentCluster.id, data); - graph.setParent(v, parentCluster.id, data); - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/** + * Setup arrow head and define the marker. The result is appended to the svg. + */ + // Only add the number of markers that the diagram needs - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v))); +var insertMarkers = function insertMarkers(elem, markerArray, type, id) { + markerArray.forEach(function (markerName) { + markers[markerName](elem, type, id); + }); +}; - if (node && node.clusterNode) { - // const children = graph.children(v); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster identified', v, node, graph.node(v)); - var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v)); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_3__["updateNodeBounds"])(node, newEl); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["setNodeElem"])(newEl, node); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Recursive render complete', newEl, node); - } else { - if (graph.children(v).length > 0) { - // This is a cluster but not to be rendered recusively - // Render as before - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Cluster - the non recursive path', v, node.id, node, graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph)); - _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id] = { - id: Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["findNonClusterChild"])(node.id, graph), - node: node - }; // insertCluster(clusters, graph.node(v)); - } else { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Node - the non recursive path', v, node.id, node); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["insertNode"])(nodes, graph.node(v), dir); - } - } - }); // Insert labels, this will insert them into the dom so that the width can be calculated - // Also figure out which edges point to/from clusters and adjust them accordingly - // Edges from/to clusters really points to the first child in the cluster. - // TODO: pick optimal child in the cluster to us as link anchor +var extension = function extension(elem, type, id) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Making markers for ', id); + elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z'); + elem.append('defs').append('marker').attr('id', type + '-extensionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead +}; - graph.edges().forEach(function (e) { - var edge = graph.edge(e.v, e.w, e.name); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster +var composition = function composition(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker composition ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker composition ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); +}; - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Fix', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], 'ids:', e.v, e.w, 'Translateing: ', _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.v], _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][e.w]); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdgeLabel"])(edgeLabels, edge); - }); - graph.edges().forEach(function (e) { - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - }); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('### Layout ###'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('#############################################'); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info(graph); - dagre__WEBPACK_IMPORTED_MODULE_0___default.a.layout(graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Graph after layout:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); // Move the nodes to the correct place +var aggregation = function aggregation(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker aggregation ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker aggregation ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); +}; - graph.nodes().forEach(function (v) { - var node = graph.node(v); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': ' + JSON.stringify(graph.node(v))); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height); +var dependency = function dependency(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker dependency ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'); + elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker dependency ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); +}; - if (node && node.clusterNode) { - // clusterDb[node.id].node = node; - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); - } else { - // Non cluster node - if (graph.children(v).length > 0) { - // A cluster in the non-recurive way - // positionCluster(node); - Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["insertCluster"])(clusters, node); - _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"][node.id].node = node; - } else { - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["positionNode"])(node); - } - } - }); // Move the edge labels to the correct place after layout +var point = function point(elem, type) { + elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); +}; - graph.edges().forEach(function (e) { - var edge = graph.edge(e); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge); - var updatedPath = Object(_edges__WEBPACK_IMPORTED_MODULE_7__["insertEdge"])(edgePaths, e, edge, _mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clusterDb"], diagramtype, graph); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["positionEdgeLabel"])(edge, updatedPath); - }); - return elem; +var circle = function circle(elem, type) { + elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); }; -var render = function render(elem, graph, markers, diagramtype, id) { - Object(_markers__WEBPACK_IMPORTED_MODULE_2__["default"])(elem, markers, diagramtype, id); - Object(_nodes__WEBPACK_IMPORTED_MODULE_5__["clear"])(); - Object(_edges__WEBPACK_IMPORTED_MODULE_7__["clear"])(); - Object(_clusters__WEBPACK_IMPORTED_MODULE_6__["clear"])(); - Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["clear"])(); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph before:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - Object(_mermaid_graphlib__WEBPACK_IMPORTED_MODULE_4__["adjustClustersAndEdges"])(graph); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph after:', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - _logger__WEBPACK_IMPORTED_MODULE_8__["logger"].warn('Graph ever after:', graph.graph()); - recursiveRender(elem, graph, diagramtype); -}; // const shapeDefinitions = {}; -// export const addShape = ({ shapeType: fun }) => { -// shapeDefinitions[shapeType] = fun; -// }; -// const arrowDefinitions = {}; -// export const addArrow = ({ arrowType: fun }) => { -// arrowDefinitions[arrowType] = fun; -// }; +var cross = function cross(elem, type) { + elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); + elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); +}; + +var barb = function barb(elem, type) { + elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 'strokeWidth').attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'); +}; // TODO rename the class diagram markers to something shape descriptive and semanitc free + + +var markers = { + extension: extension, + composition: composition, + aggregation: aggregation, + dependency: dependency, + point: point, + circle: circle, + cross: cross, + barb: barb +}; +/* harmony default export */ __webpack_exports__["default"] = (insertMarkers); /***/ }), -/***/ "./src/dagre-wrapper/intersect/index.js": -/*!**********************************************!*\ - !*** ./src/dagre-wrapper/intersect/index.js ***! - \**********************************************/ -/*! exports provided: default */ +/***/ "./src/dagre-wrapper/mermaid-graphlib.js": +/*!***********************************************!*\ + !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! + \***********************************************/ +/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-node.js */ "./src/dagre-wrapper/intersect/intersect-node.js"); -/* harmony import */ var _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_intersect_node_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./intersect-circle.js */ "./src/dagre-wrapper/intersect/intersect-circle.js"); -/* harmony import */ var _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./intersect-ellipse.js */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); -/* harmony import */ var _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./intersect-polygon.js */ "./src/dagre-wrapper/intersect/intersect-polygon.js"); -/* harmony import */ var _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect-rect.js */ "./src/dagre-wrapper/intersect/intersect-rect.js"); -/* - * Borrowed with love from from dagrge-d3. Many thanks to cpettitt! +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clusterDb", function() { return clusterDb; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractDecendants", function() { return extractDecendants; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findNonClusterChild", function() { return findNonClusterChild; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustClustersAndEdges", function() { return adjustClustersAndEdges; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractor", function() { return extractor; }); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js"); +/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); +/** + * Decorates with functions required by mermaids dagre-wrapper. */ +var clusterDb = {}; +var decendants = {}; +var parents = {}; +var clear = function clear() { + decendants = {}; + parents = {}; + clusterDb = {}; +}; + +var isDecendant = function isDecendant(id, ancenstorId) { + // if (id === ancenstorId) return true; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0); + if (decendants[ancenstorId].indexOf(id) >= 0) return true; + return false; +}; +var edgeInCluster = function edgeInCluster(edge, clusterId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Decendants of ', clusterId, ' is ', decendants[clusterId]); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent + if (edge.v === clusterId) return false; + if (edge.w === clusterId) return false; -/* harmony default export */ __webpack_exports__["default"] = ({ - node: _intersect_node_js__WEBPACK_IMPORTED_MODULE_0___default.a, - circle: _intersect_circle_js__WEBPACK_IMPORTED_MODULE_1__["default"], - ellipse: _intersect_ellipse_js__WEBPACK_IMPORTED_MODULE_2__["default"], - polygon: _intersect_polygon_js__WEBPACK_IMPORTED_MODULE_3__["default"], - rect: _intersect_rect_js__WEBPACK_IMPORTED_MODULE_4__["default"] -}); + if (!decendants[clusterId]) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Tilt, ', clusterId, ',not in decendants'); + return false; + } -/***/ }), + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Here '); + if (decendants[clusterId].indexOf(edge.v) >= 0) return true; + if (isDecendant(edge.v, clusterId)) return true; + if (isDecendant(edge.w, clusterId)) return true; + if (decendants[clusterId].indexOf(edge.w) >= 0) return true; + return false; +}; -/***/ "./src/dagre-wrapper/intersect/intersect-circle.js": -/*!*********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! - \*********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +var copy = function copy(clusterId, graph, newGraph, rootId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); + var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-ellipse */ "./src/dagre-wrapper/intersect/intersect-ellipse.js"); + if (clusterId !== rootId) { + nodes.push(clusterId); + } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes); + nodes.forEach(function (node) { + if (graph.children(node).length > 0) { + copy(node, graph, newGraph, rootId); + } else { + var data = graph.node(node); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId); -function intersectCircle(node, rx, point) { - return Object(_intersect_ellipse__WEBPACK_IMPORTED_MODULE_0__["default"])(node, rx, rx, point); -} + newGraph.setNode(node, data); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, graph.parent(node)); -/* harmony default export */ __webpack_exports__["default"] = (intersectCircle); + if (rootId !== graph.parent(node)) { + newGraph.setParent(node, graph.parent(node)); + } -/***/ }), + if (clusterId !== rootId && node !== clusterId) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, clusterId); + newGraph.setParent(node, clusterId); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId); + } -/***/ "./src/dagre-wrapper/intersect/intersect-ellipse.js": -/*!**********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! - \**********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + var edges = graph.edges(node); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying Edges', edges); + edges.forEach(function (edge) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge', edge); + var data = graph.edge(edge.v, edge.w, edge.name); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge data', data, rootId); -"use strict"; -__webpack_require__.r(__webpack_exports__); -function intersectEllipse(node, rx, ry, point) { - // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html - var cx = node.x; - var cy = node.y; - var px = cx - point.x; - var py = cy - point.y; - var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px); - var dx = Math.abs(rx * ry * px / det); + try { + // Do not copy edges in and out of the root cluster, they belong to the parent graph + if (edgeInCluster(edge, rootId)) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying as ', edge.v, edge.w, data, edge.name); + newGraph.setEdge(edge.v, edge.w, data, edge.name); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0])); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId); + } + } catch (e) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(e); + } + }); + } - if (point.x < cx) { - dx = -dx; - } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Removing node', node); + graph.removeNode(node); + }); +}; - var dy = Math.abs(rx * ry * py / det); +var extractDecendants = function extractDecendants(id, graph) { + // log.debug('Extracting ', id); + var children = graph.children(id); + var res = [].concat(children); - if (point.y < cy) { - dy = -dy; + for (var i = 0; i < children.length; i++) { + parents[children[i]] = id; + res = res.concat(extractDecendants(children[i], graph)); } - return { - x: cx + dx, - y: cy + dy - }; -} - -/* harmony default export */ __webpack_exports__["default"] = (intersectEllipse); + return res; +}; +/** + * Validates the graph, checking that all parent child relation points to existing nodes and that + * edges between nodes also ia correct. When not correct the function logs the discrepancies. + * @param {graphlib graph} g + */ -/***/ }), +var validate = function validate(graph) { + var edges = graph.edges(); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edges: ', edges); -/***/ "./src/dagre-wrapper/intersect/intersect-line.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-line.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + for (var i = 0; i < edges.length; i++) { + if (graph.children(edges[i].v).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].v, ' is part of and edge even though it has children'); + return false; + } -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* - * Returns the point at which two lines, p and q, intersect or returns - * undefined if they do not intersect. + if (graph.children(edges[i].w).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].w, ' is part of and edge even though it has children'); + return false; + } + } + + return true; +}; +/** + * Finds a child that is not a cluster. When faking a edge between a node and a cluster. + * @param {Finds a } id + * @param {*} graph */ -function intersectLine(p1, p2, q1, q2) { - // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994, - // p7 and p473. - var a1, a2, b1, b2, c1, c2; - var r1, r2, r3, r4; - var denom, offset, num; - var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x + - // b1 y + c1 = 0. - a1 = p2.y - p1.y; - b1 = p1.x - p2.x; - c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4. +var findNonClusterChild = function findNonClusterChild(id, graph) { + // const node = graph.node(id); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching', id); // const children = graph.children(id).reverse(); - r3 = a1 * q1.x + b1 * q1.y + c1; - r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on - // same side of line 1, the line segments do not intersect. + var children = graph.children(id); //.reverse(); - if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) { - return; - } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0 + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching children of id ', id, children); + + if (children.length < 1) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('This is a valid node', id); + return id; + } + for (var i = 0; i < children.length; i++) { + var _id = findNonClusterChild(children[i], graph); - a2 = q2.y - q1.y; - b2 = q1.x - q2.x; - c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2 + if (_id) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Found replacement for', id, ' => ', _id); + return _id; + } + } +}; - r1 = a2 * p1.x + b2 * p1.y + c2; - r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie - // on same side of second line segment, the line segments do - // not intersect. +var getAnchorId = function getAnchorId(id) { + if (!clusterDb[id]) { + return id; + } // If the cluster has no external connections - if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) { - return; - } // Line segments intersect: compute intersection point. + if (!clusterDb[id].externalConnections) { + return id; + } // Return the replacement node - denom = a1 * b2 - a2 * b1; - if (denom === 0) { - return; + if (clusterDb[id]) { + return clusterDb[id].id; } - offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It - // is added or subtracted to the numerator, depending upon the - // sign of the numerator. + return id; +}; - num = b1 * c2 - b2 * c1; - x = num < 0 ? (num - offset) / denom : (num + offset) / denom; - num = a2 * c1 - a1 * c2; - y = num < 0 ? (num - offset) / denom : (num + offset) / denom; - return { - x: x, - y: y - }; -} +var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) { + if (!graph || depth > 10) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting out, no graph '); + return; + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting in, graph '); + } // Go through the nodes and for each cluster found, save a replacment node, this can be used when + // faking a link to a cluster -function sameSign(r1, r2) { - return r1 * r2 > 0; -} -/* harmony default export */ __webpack_exports__["default"] = (intersectLine); + graph.nodes().forEach(function (id) { + var children = graph.children(id); -/***/ }), + if (children.length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph)); + decendants[id] = extractDecendants(id, graph); + clusterDb[id] = { + id: findNonClusterChild(id, graph), + clusterData: graph.node(id) + }; + } + }); // Check incoming and outgoing edges for each cluster -/***/ "./src/dagre-wrapper/intersect/intersect-node.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + graph.nodes().forEach(function (id) { + var children = graph.children(id); + var edges = graph.edges(); -module.exports = intersectNode; + if (children.length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster identified', id, decendants); + edges.forEach(function (edge) { + // log.debug('Edge, decendants: ', edge, decendants[id]); + // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box) + if (edge.v !== id && edge.w !== id) { + // Any edge where either the one of the nodes is decending to the cluster but not the other + // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) { + var d1 = isDecendant(edge.v, id); + var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around -function intersectNode(node, point) { - console.info('Intersect Node'); - return node.intersect(point); -} + if (d1 ^ d2) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Edge: ', edge, ' leaves cluster ', id); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Decendants of ', id, ': ', decendants[id]); + clusterDb[id].externalConnections = true; + } + } + }); + } + }); + extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node + // in the cluster inorder to fake the edge -/***/ }), + graph.edges().forEach(function (e) { + var edge = graph.edge(e); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); + var v = e.v; + var w = e.w; // Check if link is either from or to a cluster -/***/ "./src/dagre-wrapper/intersect/intersect-polygon.js": -/*!**********************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! - \**********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _intersect_line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./intersect-line */ "./src/dagre-wrapper/intersect/intersect-line.js"); -/* eslint "no-console": off */ + if (clusterDb[e.v] || clusterDb[e.w]) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Fixing and trixing - removing', e.v, e.w, e.name); + v = getAnchorId(e.v); + w = getAnchorId(e.w); + graph.removeEdge(e.v, e.w, e.name); + if (v !== e.v) edge.fromCluster = e.v; + if (w !== e.w) edge.toCluster = e.w; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Replacing with', v, w, e.name); + graph.setEdge(v, w, edge, e.name); + } + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Adjusted Graph', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace(clusterDb); // Remove references to extracted cluster + // graph.edges().forEach(edge => { + // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) { + // graph.removeEdge(edge); + // } + // }); +}; +var extractor = function extractor(graph, depth) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('extractor - ', depth, graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), graph.children('D')); -/* harmony default export */ __webpack_exports__["default"] = (intersectPolygon); -/* - * Returns the point ({x, y}) at which the point argument intersects with the - * node argument assuming that it has the shape specified by polygon. - */ + if (depth > 10) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('Bailing out'); + return; + } // For clusters without incoming and/or outgoing edges, create a new cluster-node + // containing the nodes and edges in the custer in a new graph + // for (let i = 0;) -function intersectPolygon(node, polyPoints, point) { - var x1 = node.x; - var y1 = node.y; - var intersections = []; - var minX = Number.POSITIVE_INFINITY; - var minY = Number.POSITIVE_INFINITY; - if (typeof polyPoints.forEach === 'function') { - polyPoints.forEach(function (entry) { - minX = Math.min(minX, entry.x); - minY = Math.min(minY, entry.y); - }); - } else { - minX = Math.min(minX, polyPoints.x); - minY = Math.min(minY, polyPoints.y); + var nodes = graph.nodes(); + var hasChildren = false; + + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var children = graph.children(node); + hasChildren = hasChildren || children.length > 0; } - var left = x1 - node.width / 2 - minX; - var top = y1 - node.height / 2 - minY; + if (!hasChildren) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Done, no node has children', graph.nodes()); + return; + } // const clusters = Object.keys(clusterDb); + // clusters.forEach(clusterId => { - for (var i = 0; i < polyPoints.length; i++) { - var p1 = polyPoints[i]; - var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0]; - var intersect = Object(_intersect_line__WEBPACK_IMPORTED_MODULE_0__["default"])(node, point, { - x: left + p1.x, - y: top + p1.y - }, { - x: left + p2.x, - y: top + p2.y - }); - if (intersect) { - intersections.push(intersect); - } - } + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Nodes = ', nodes, depth); - if (!intersections.length) { - console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); - return node; - } + for (var _i = 0; _i < nodes.length; _i++) { + var _node = nodes[_i]; + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check + // that it still is in the game - if (intersections.length > 1) { - // More intersections, find the one nearest to edge end point - intersections.sort(function (p, q) { - var pdx = p.x - point.x; - var pdy = p.y - point.y; - var distp = Math.sqrt(pdx * pdx + pdy * pdy); - var qdx = q.x - point.x; - var qdy = q.y - point.y; - var distq = Math.sqrt(qdx * qdx + qdy * qdy); - return distp < distq ? -1 : distp === distq ? 0 : 1; - }); + if (!clusterDb[_node]) { + // Skip if the node is not a cluster + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not a cluster', _node, depth); // break; + } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster without external connections, without a parent and with children', _node, depth); + var graphSettings = graph.graph(); + var clusterGraph = new graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.Graph({ + multigraph: true, + compound: true + }).setGraph({ + rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB', + // Todo: set proper spacing + nodesep: 50, + ranksep: 50, + marginx: 8, + marginy: 8 + }).setDefaultEdgeLabel(function () { + return {}; + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph before copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + copy(_node, graph, clusterGraph, _node); + graph.setNode(_node, { + clusterNode: true, + id: _node, + clusterData: clusterDb[_node].clusterData, + labelText: clusterDb[_node].labelText, + graph: clusterGraph + }); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(clusterGraph)); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); + } else { + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(clusterDb); + } } - return intersections[0]; -} - -/***/ }), - -/***/ "./src/dagre-wrapper/intersect/intersect-rect.js": -/*!*******************************************************!*\ - !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! - \*******************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var intersectRect = function intersectRect(node, point) { - var x = node.x; - var y = node.y; // Rectangle intersection algorithm from: - // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes - - var dx = point.x - x; - var dy = point.y - y; - var w = node.width / 2; - var h = node.height / 2; - var sx, sy; + nodes = graph.nodes(); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New list of nodes', nodes); - if (Math.abs(dy) * w > Math.abs(dx) * h) { - // Intersection is top or bottom of rect. - if (dy < 0) { - h = -h; - } + for (var _i2 = 0; _i2 < nodes.length; _i2++) { + var _node2 = nodes[_i2]; + var data = graph.node(_node2); + _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(' Now next leveö', _node2, data); - sx = dy === 0 ? 0 : h * dx / dy; - sy = h; - } else { - // Intersection is left or right of rect. - if (dx < 0) { - w = -w; + if (data.clusterNode) { + extractor(data.graph, depth + 1); } - - sx = w; - sy = dx === 0 ? 0 : w * dy / dx; } - - return { - x: x + sx, - y: y + sy - }; }; -/* harmony default export */ __webpack_exports__["default"] = (intersectRect); - /***/ }), -/***/ "./src/dagre-wrapper/markers.js": -/*!**************************************!*\ - !*** ./src/dagre-wrapper/markers.js ***! - \**************************************/ -/*! exports provided: default */ +/***/ "./src/dagre-wrapper/nodes.js": +/*!************************************!*\ + !*** ./src/dagre-wrapper/nodes.js ***! + \************************************/ +/*! exports provided: insertNode, setNodeElem, clear, positionNode */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/** - * Setup arrow head and define the marker. The result is appended to the svg. - */ - // Only add the number of markers that the diagram needs +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertNode", function() { return insertNode; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setNodeElem", function() { return setNodeElem; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionNode", function() { return positionNode; }); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); +/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); +/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var _shapes_note__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapes/note */ "./src/dagre-wrapper/shapes/note.js"); -var insertMarkers = function insertMarkers(elem, markerArray, type, id) { - markerArray.forEach(function (markerName) { - markers[markerName](elem, type, id); - }); -}; + // eslint-disable-line -var extension = function extension(elem, type, id) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Making markers for ', id); - elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z'); - elem.append('defs').append('marker').attr('id', type + '-extensionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead -}; -var composition = function composition(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker composition ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker composition ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); -}; -var aggregation = function aggregation(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker aggregation ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker aggregation ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); -}; -var dependency = function dependency(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker dependency ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'); - elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker dependency ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); -}; -var point = function point(elem, type) { - elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); -}; -var circle = function circle(elem, type) { - elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0'); -}; -var cross = function cross(elem, type) { - elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') - .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); - elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black') - .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0'); -}; +var question = function question(parent, node) { + var _labelHelper = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper.shapeSvg, + bbox = _labelHelper.bbox; -var barb = function barb(elem, type) { - elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'); -}; // TODO rename the class diagram markers to something shape descriptive and semanitc free + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var s = w + h; + var points = [{ + x: s / 2, + y: 0 + }, { + x: s, + y: -s / 2 + }, { + x: s / 2, + y: -s + }, { + x: 0, + y: -s / 2 + }]; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Question main (Circle)'); + var questionElem = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, s, s, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, questionElem); + node.intersect = function (point) { + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn('Intersect called'); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, points, point); + }; -var markers = { - extension: extension, - composition: composition, - aggregation: aggregation, - dependency: dependency, - point: point, - circle: circle, - cross: cross, - barb: barb + return shapeSvg; }; -/* harmony default export */ __webpack_exports__["default"] = (insertMarkers); -/***/ }), +var hexagon = function hexagon(parent, node) { + var _labelHelper2 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper2.shapeSvg, + bbox = _labelHelper2.bbox; -/***/ "./src/dagre-wrapper/mermaid-graphlib.js": -/*!***********************************************!*\ - !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! - \***********************************************/ -/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + var f = 4; + var h = bbox.height + node.padding; + var m = h / f; + var w = bbox.width + 2 * m + node.padding; + var points = [{ + x: m, + y: 0 + }, { + x: w - m, + y: 0 + }, { + x: w, + y: -h / 2 + }, { + x: w - m, + y: -h + }, { + x: m, + y: -h + }, { + x: 0, + y: -h / 2 + }]; + var hex = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, hex); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clusterDb", function() { return clusterDb; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractDecendants", function() { return extractDecendants; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findNonClusterChild", function() { return findNonClusterChild; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustClustersAndEdges", function() { return adjustClustersAndEdges; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractor", function() { return extractor; }); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphlib */ "./node_modules/graphlib/index.js"); -/* harmony import */ var graphlib__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphlib__WEBPACK_IMPORTED_MODULE_1__); -/** - * Decorates with functions required by mermaids dagre-wrapper. - */ - - -var clusterDb = {}; -var decendants = {}; -var parents = {}; -var clear = function clear() { - decendants = {}; - parents = {}; - clusterDb = {}; -}; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; -var isDecendant = function isDecendant(id, ancenstorId) { - // if (id === ancenstorId) return true; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0); - if (decendants[ancenstorId].indexOf(id) >= 0) return true; - return false; + return shapeSvg; }; -var edgeInCluster = function edgeInCluster(edge, clusterId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Decendants of ', clusterId, ' is ', decendants[clusterId]); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent +var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { + var _labelHelper3 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper3.shapeSvg, + bbox = _labelHelper3.bbox; - if (edge.v === clusterId) return false; - if (edge.w === clusterId) return false; + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -h / 2, + y: 0 + }, { + x: w, + y: 0 + }, { + x: w, + y: -h + }, { + x: -h / 2, + y: -h + }, { + x: 0, + y: -h / 2 + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - if (!decendants[clusterId]) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Tilt, ', clusterId, ',not in decendants'); - return false; - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Here '); - if (decendants[clusterId].indexOf(edge.v) >= 0) return true; - if (isDecendant(edge.v, clusterId)) return true; - if (isDecendant(edge.w, clusterId)) return true; - if (decendants[clusterId].indexOf(edge.w) >= 0) return true; - return false; + return shapeSvg; }; -var copy = function copy(clusterId, graph, newGraph, rootId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); - var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root - - if (clusterId !== rootId) { - nodes.push(clusterId); - } +var lean_right = function lean_right(parent, node) { + var _labelHelper4 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper4.shapeSvg, + bbox = _labelHelper4.bbox; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes); - nodes.forEach(function (node) { - if (graph.children(node).length > 0) { - copy(node, graph, newGraph, rootId); - } else { - var data = graph.node(node); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -2 * h / 6, + y: 0 + }, { + x: w - h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: -h + }, { + x: h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - newGraph.setNode(node, data); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, graph.parent(node)); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - if (rootId !== graph.parent(node)) { - newGraph.setParent(node, graph.parent(node)); - } + return shapeSvg; +}; - if (clusterId !== rootId && node !== clusterId) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Setting parent', node, clusterId); - newGraph.setParent(node, clusterId); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId); - } +var lean_left = function lean_left(parent, node) { + var _labelHelper5 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper5.shapeSvg, + bbox = _labelHelper5.bbox; - var edges = graph.edges(node); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Copying Edges', edges); - edges.forEach(function (edge) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge', edge); - var data = graph.edge(edge.v, edge.w, edge.name); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Edge data', data, rootId); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: 2 * h / 6, + y: 0 + }, { + x: w + h / 6, + y: 0 + }, { + x: w - 2 * h / 6, + y: -h + }, { + x: -h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - try { - // Do not copy edges in and out of the root cluster, they belong to the parent graph - if (edgeInCluster(edge, rootId)) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Copying as ', edge.v, edge.w, data, edge.name); - newGraph.setEdge(edge.v, edge.w, data, edge.name); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0])); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId); - } - } catch (e) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error(e); - } - }); - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Removing node', node); - graph.removeNode(node); - }); + return shapeSvg; }; -var extractDecendants = function extractDecendants(id, graph) { - // log.debug('Extracting ', id); - var children = graph.children(id); - var res = [].concat(children); +var trapezoid = function trapezoid(parent, node) { + var _labelHelper6 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper6.shapeSvg, + bbox = _labelHelper6.bbox; - for (var i = 0; i < children.length; i++) { - parents[children[i]] = id; - res = res.concat(extractDecendants(children[i], graph)); - } + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: -2 * h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: 0 + }, { + x: w - h / 6, + y: -h + }, { + x: h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - return res; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; + + return shapeSvg; }; -/** - * Validates the graph, checking that all parent child relation points to existing nodes and that - * edges between nodes also ia correct. When not correct the function logs the discrepancies. - * @param {graphlib graph} g - */ -var validate = function validate(graph) { - var edges = graph.edges(); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edges: ', edges); +var inv_trapezoid = function inv_trapezoid(parent, node) { + var _labelHelper7 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper7.shapeSvg, + bbox = _labelHelper7.bbox; - for (var i = 0; i < edges.length; i++) { - if (graph.children(edges[i].v).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].v, ' is part of and edge even though it has children'); - return false; - } + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: h / 6, + y: 0 + }, { + x: w - h / 6, + y: 0 + }, { + x: w + 2 * h / 6, + y: -h + }, { + x: -2 * h / 6, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - if (graph.children(edges[i].w).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('The node ', edges[i].w, ' is part of and edge even though it has children'); - return false; - } - } + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - return true; + return shapeSvg; }; -/** - * Finds a child that is not a cluster. When faking a edge between a node and a cluster. - * @param {Finds a } id - * @param {*} graph - */ -var findNonClusterChild = function findNonClusterChild(id, graph) { - // const node = graph.node(id); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching', id); // const children = graph.children(id).reverse(); +var rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) { + var _labelHelper8 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper8.shapeSvg, + bbox = _labelHelper8.bbox; - var children = graph.children(id); //.reverse(); + var w = bbox.width + node.padding; + var h = bbox.height + node.padding; + var points = [{ + x: 0, + y: 0 + }, { + x: w + h / 2, + y: 0 + }, { + x: w, + y: -h / 2 + }, { + x: w + h / 2, + y: -h + }, { + x: 0, + y: -h + }]; + var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Searching children of id ', id, children); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + }; - if (children.length < 1) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('This is a valid node', id); - return id; - } + return shapeSvg; +}; - for (var i = 0; i < children.length; i++) { - var _id = findNonClusterChild(children[i], graph); +var cylinder = function cylinder(parent, node) { + var _labelHelper9 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper9.shapeSvg, + bbox = _labelHelper9.bbox; - if (_id) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Found replacement for', id, ' => ', _id); - return _id; + var w = bbox.width + node.padding; + var rx = w / 2; + var ry = rx / (2.5 + w / 50); + var h = bbox.height + ry + node.padding; + var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h; + var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + + node.intersect = function (point) { + var pos = _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + var x = pos.x - node.x; + + if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) { + // ellipsis equation: x*x / a*a + y*y / b*b = 1 + // solve for y to get adjustion value for pos.y + var y = ry * ry * (1 - x * x / (rx * rx)); + if (y != 0) y = Math.sqrt(y); + y = ry - y; + if (point.y - node.y > 0) y = -y; + pos.y += y; } - } -}; -var getAnchorId = function getAnchorId(id) { - if (!clusterDb[id]) { - return id; - } // If the cluster has no external connections + return pos; + }; + return shapeSvg; +}; - if (!clusterDb[id].externalConnections) { - return id; - } // Return the replacement node +var rect = function rect(parent, node) { + var _labelHelper10 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, 'node ' + node.classes, true), + shapeSvg = _labelHelper10.shapeSvg, + bbox = _labelHelper10.bbox, + halfPadding = _labelHelper10.halfPadding; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Classes = ', node.classes); // add the rect - if (clusterDb[id]) { - return clusterDb[id].id; - } + var rect = shapeSvg.insert('rect', ':first-child'); + rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - return id; + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; + + return shapeSvg; }; -var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) { - if (!graph || depth > 10) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting out, no graph '); - return; +var rectWithTitle = function rectWithTitle(parent, node) { + // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes); + var classes; + + if (!node.classes) { + classes = 'node default'; } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Opting in, graph '); - } // Go through the nodes and for each cluster found, save a replacment node, this can be used when - // faking a link to a cluster + classes = 'node ' + node.classes; + } // Add outer g element - graph.nodes().forEach(function (id) { - var children = graph.children(id); + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - if (children.length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph)); - decendants[id] = extractDecendants(id, graph); - clusterDb[id] = { - id: findNonClusterChild(id, graph), - clusterData: graph.node(id) - }; - } - }); // Check incoming and outgoing edges for each cluster + var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect'); - graph.nodes().forEach(function (id) { - var children = graph.children(id); - var edges = graph.edges(); + var innerLine = shapeSvg.insert('line'); + var label = shapeSvg.insert('g').attr('class', 'label'); + var text2 = node.labelText.flat(); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Label text', text2[0]); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(text2[0], node.labelStyle, true, true)); + var bbox; - if (children.length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster identified', id, decendants); - edges.forEach(function (edge) { - // log.debug('Edge, decendants: ', edge, decendants[id]); - // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box) - if (edge.v !== id && edge.w !== id) { - // Any edge where either the one of the nodes is decending to the cluster but not the other - // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) { - var d1 = isDecendant(edge.v, id); - var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); + } - if (d1 ^ d2) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Edge: ', edge, ' leaves cluster ', id); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Decendants of ', id, ': ', decendants[id]); - clusterDb[id].externalConnections = true; - } - } - }); - } - }); - extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node - // in the cluster inorder to fake the edge + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Text 2', text2); + var textRows = text2.slice(1, text2.length); + var titleBox = text.getBBox(); + var descr = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(textRows.join('
'), node.labelStyle, true, true)); - graph.edges().forEach(function (e) { - var edge = graph.edge(e); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e))); - var v = e.v; - var w = e.w; // Check if link is either from or to a cluster + if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { + var _div = descr.children[0]; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]); + var _dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr); - if (clusterDb[e.v] || clusterDb[e.w]) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Fixing and trixing - removing', e.v, e.w, e.name); - v = getAnchorId(e.v); - w = getAnchorId(e.w); - graph.removeEdge(e.v, e.w, e.name); - if (v !== e.v) edge.fromCluster = e.v; - if (w !== e.w) edge.toCluster = e.w; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Replacing with', v, w, e.name); - graph.setEdge(v, w, edge, e.name); - } - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].warn('Adjusted Graph', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].trace(clusterDb); // Remove references to extracted cluster - // graph.edges().forEach(edge => { - // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) { - // graph.removeEdge(edge); - // } - // }); -}; -var extractor = function extractor(graph, depth) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('extractor - ', depth, graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph), graph.children('D')); + bbox = _div.getBoundingClientRect(); - if (depth > 10) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].error('Bailing out'); - return; - } // For clusters without incoming and/or outgoing edges, create a new cluster-node - // containing the nodes and edges in the custer in a new graph - // for (let i = 0;) + _dv.attr('width', bbox.width); + _dv.attr('height', bbox.height); + } // bbox = label.getBBox(); + // logger.info(descr); - var nodes = graph.nodes(); - var hasChildren = false; - for (var i = 0; i < nodes.length; i++) { - var node = nodes[i]; - var children = graph.children(node); - hasChildren = hasChildren || children.length > 0; - } + var halfPadding = node.padding / 2; + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + + bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')'); + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + + bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label + // Bounding box for title and text - if (!hasChildren) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Done, no node has children', graph.nodes()); - return; - } // const clusters = Object.keys(clusterDb); - // clusters.forEach(clusterId => { + bbox = label.node().getBBox(); // Center the label + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'); + rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Nodes = ', nodes, depth); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; - for (var _i = 0; _i < nodes.length; _i++) { - var _node = nodes[_i]; - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check - // that it still is in the game + return shapeSvg; +}; - if (!clusterDb[_node]) { - // Skip if the node is not a cluster - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Not a cluster', _node, depth); // break; - } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster without external connections, without a parent and with children', _node, depth); - var graphSettings = graph.graph(); - var clusterGraph = new graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.Graph({ - multigraph: true, - compound: true - }).setGraph({ - rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB', - // Todo: set proper spacing - nodesep: 50, - ranksep: 50, - marginx: 8, - marginy: 8 - }).setDefaultEdgeLabel(function () { - return {}; - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph before copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - copy(_node, graph, clusterGraph, _node); - graph.setNode(_node, { - clusterNode: true, - id: _node, - clusterData: clusterDb[_node].clusterData, - labelText: clusterDb[_node].labelText, - graph: clusterGraph - }); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(clusterGraph)); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Old graph after copy', graphlib__WEBPACK_IMPORTED_MODULE_1___default.a.json.write(graph)); - } else { - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(clusterDb); - } - } - - nodes = graph.nodes(); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug('New list of nodes', nodes); - - for (var _i2 = 0; _i2 < nodes.length; _i2++) { - var _node2 = nodes[_i2]; - var data = graph.node(_node2); - _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].debug(' Now next leveö', _node2, data); - - if (data.clusterNode) { - extractor(data.graph, depth + 1); - } - } -}; - -/***/ }), - -/***/ "./src/dagre-wrapper/nodes.js": -/*!************************************!*\ - !*** ./src/dagre-wrapper/nodes.js ***! - \************************************/ -/*! exports provided: insertNode, setNodeElem, clear, positionNode */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertNode", function() { return insertNode; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setNodeElem", function() { return setNodeElem; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionNode", function() { return positionNode; }); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../logger */ "./src/logger.js"); -/* harmony import */ var _shapes_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shapes/util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config */ "./src/config.js"); -/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var _shapes_note__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shapes/note */ "./src/dagre-wrapper/shapes/note.js"); - - // eslint-disable-line - - - - - - - -var question = function question(parent, node) { - var _labelHelper = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper.shapeSvg, - bbox = _labelHelper.bbox; +var stadium = function stadium(parent, node) { + var _labelHelper11 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper11.shapeSvg, + bbox = _labelHelper11.bbox; - var w = bbox.width + node.padding; var h = bbox.height + node.padding; - var s = w + h; - var points = [{ - x: s / 2, - y: 0 - }, { - x: s, - y: -s / 2 - }, { - x: s / 2, - y: -s - }, { - x: 0, - y: -s / 2 - }]; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Question main (Circle)'); - var questionElem = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, s, s, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, questionElem); + var w = bbox.width + h / 4 + node.padding; // add the rect + + var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); node.intersect = function (point) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].warn('Intersect called'); - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, points, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); }; return shapeSvg; }; -var hexagon = function hexagon(parent, node) { - var _labelHelper2 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper2.shapeSvg, - bbox = _labelHelper2.bbox; +var circle = function circle(parent, node) { + var _labelHelper12 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper12.shapeSvg, + bbox = _labelHelper12.bbox, + halfPadding = _labelHelper12.halfPadding; - var f = 4; - var h = bbox.height + node.padding; - var m = h / f; - var w = bbox.width + 2 * m + node.padding; - var points = [{ - x: m, - y: 0 - }, { - x: w - m, - y: 0 - }, { - x: w, - y: -h / 2 - }, { - x: w - m, - y: -h - }, { - x: m, - y: -h - }, { - x: 0, - y: -h / 2 - }]; - var hex = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, hex); + var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + + circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle main'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle intersect', node, bbox.width / 2 + halfPadding, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, bbox.width / 2 + halfPadding, point); }; return shapeSvg; }; -var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { - var _labelHelper3 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper3.shapeSvg, - bbox = _labelHelper3.bbox; +var subroutine = function subroutine(parent, node) { + var _labelHelper13 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), + shapeSvg = _labelHelper13.shapeSvg, + bbox = _labelHelper13.bbox; var w = bbox.width + node.padding; var h = bbox.height + node.padding; var points = [{ - x: -h / 2, + x: 0, y: 0 }, { x: w, @@ -51803,41 +51310,26 @@ var rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) { x: w, y: -h }, { - x: -h / 2, + x: 0, y: -h }, { x: 0, - y: -h / 2 - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - - return shapeSvg; -}; - -var lean_right = function lean_right(parent, node) { - var _labelHelper4 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper4.shapeSvg, - bbox = _labelHelper4.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: -2 * h / 6, y: 0 }, { - x: w - h / 6, + x: -8, y: 0 }, { - x: w + 2 * h / 6, + x: w + 8, + y: 0 + }, { + x: w + 8, y: -h }, { - x: h / 6, + x: -8, y: -h + }, { + x: -8, + y: 0 }]; var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); @@ -51849,694 +51341,1234 @@ var lean_right = function lean_right(parent, node) { return shapeSvg; }; -var lean_left = function lean_left(parent, node) { - var _labelHelper5 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper5.shapeSvg, - bbox = _labelHelper5.bbox; +var start = function start(parent, node) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 2 * h / 6, - y: 0 - }, { - x: w + h / 6, - y: 0 - }, { - x: w - 2 * h / 6, - y: -h - }, { - x: -h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); }; return shapeSvg; }; -var trapezoid = function trapezoid(parent, node) { - var _labelHelper6 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper6.shapeSvg, - bbox = _labelHelper6.bbox; +var forkJoin = function forkJoin(parent, node, dir) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var width = 70; + var height = 10; - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: -2 * h / 6, - y: 0 - }, { - x: w + 2 * h / 6, - y: 0 - }, { - x: w - h / 6, - y: -h - }, { - x: h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); + if (dir === 'LR') { + width = 10; + height = 70; + } + + var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join'); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, shape); + node.height = node.height + node.padding / 2; + node.width = node.width + node.padding / 2; node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); }; return shapeSvg; }; -var inv_trapezoid = function inv_trapezoid(parent, node) { - var _labelHelper7 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper7.shapeSvg, - bbox = _labelHelper7.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: h / 6, - y: 0 - }, { - x: w - h / 6, - y: 0 - }, { - x: w + 2 * h / 6, - y: -h - }, { - x: -2 * h / 6, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); +var end = function end(parent, node) { + var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); + var innerCircle = shapeSvg.insert('circle', ':first-child'); + var circle = shapeSvg.insert('circle', ':first-child'); + circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); + innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); }; return shapeSvg; }; -var rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) { - var _labelHelper8 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper8.shapeSvg, - bbox = _labelHelper8.bbox; - - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 0, - y: 0 - }, { - x: w + h / 2, - y: 0 - }, { - x: w, - y: -h / 2 - }, { - x: w + h / 2, - y: -h - }, { - x: 0, - y: -h - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - - return shapeSvg; -}; +var class_box = function class_box(parent, node) { + var halfPadding = node.padding / 2; + var rowPadding = 4; + var lineHeight = 8; + var classes; -var cylinder = function cylinder(parent, node) { - var _labelHelper9 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper9.shapeSvg, - bbox = _labelHelper9.bbox; + if (!node.classes) { + classes = 'node default'; + } else { + classes = 'node ' + node.classes; + } // Add outer g element - var w = bbox.width + node.padding; - var rx = w / 2; - var ry = rx / (2.5 + w / 50); - var h = bbox.height + ry + node.padding; - var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h; - var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - node.intersect = function (point) { - var pos = _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - var x = pos.x - node.x; + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) { - // ellipsis equation: x*x / a*a + y*y / b*b = 1 - // solve for y to get adjustion value for pos.y - var y = ry * ry * (1 - x * x / (rx * rx)); - if (y != 0) y = Math.sqrt(y); - y = ry - y; - if (point.y - node.y > 0) y = -y; - pos.y += y; - } + var rect = shapeSvg.insert('rect', ':first-child'); + var topLine = shapeSvg.insert('line'); + var bottomLine = shapeSvg.insert('line'); + var maxWidth = 0; + var maxHeight = rowPadding; + var labelContainer = shapeSvg.insert('g').attr('class', 'label'); + var verticalPos = 0; + var hasInterface = node.classData.annotations && node.classData.annotations[0]; // 1. Create the labels - return pos; - }; + var interfaceLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.classData.annotations[0], node.labelStyle, true, true)); + var interfaceBBox = interfaceLabel.getBBox(); - return shapeSvg; -}; + if (node.classData.annotations[0]) { + maxHeight += interfaceBBox.height + rowPadding; + maxWidth += interfaceBBox.width; + } -var rect = function rect(parent, node) { - var _labelHelper10 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, 'node ' + node.classes, true), - shapeSvg = _labelHelper10.shapeSvg, - bbox = _labelHelper10.bbox, - halfPadding = _labelHelper10.halfPadding; + var classTitleLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.labelText, node.labelStyle, true, true)); + var classTitleBBox = classTitleLabel.getBBox(); + maxHeight += classTitleBBox.height + rowPadding; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Classes = ', node.classes); // add the rect + if (classTitleBBox.width > maxWidth) { + maxWidth = classTitleBBox.width; + } - var rect = shapeSvg.insert('rect', ':first-child'); - rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); + var classAttributes = []; + node.classData.members.forEach(function (str) { + var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); + var bbox = lbl.getBBox(); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; + if (bbox.width > maxWidth) { + maxWidth = bbox.width; + } - return shapeSvg; -}; + maxHeight += bbox.height + rowPadding; + classAttributes.push(lbl); + }); + var classMethods = []; + node.classData.methods.forEach(function (str) { + var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); + var bbox = lbl.getBBox(); -var rectWithTitle = function rectWithTitle(parent, node) { - // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes); - var classes; + if (bbox.width > maxWidth) { + maxWidth = bbox.width; + } - if (!node.classes) { - classes = 'node default'; - } else { - classes = 'node ' + node.classes; - } // Add outer g element + maxHeight += bbox.height + rowPadding; + classMethods.push(lbl); + }); + maxHeight += lineHeight; // 2. Position the labels + // position the interface label + if (hasInterface) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel).attr('transform', 'translate( ' + -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 + ', ' + -1 * maxHeight / 2 + ')'); + verticalPos = interfaceBBox.height + rowPadding; + } // Positin the class title label - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect - var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect'); + var diffX = (maxWidth - classTitleBBox.width) / 2; + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(classTitleLabel).attr('transform', 'translate( ' + (-1 * maxWidth / 2 + diffX) + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + topLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); + verticalPos += lineHeight; + classAttributes.forEach(function (lbl) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + }); + bottomLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); + verticalPos += lineHeight; + classMethods.forEach(function (lbl) { + Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); + verticalPos += classTitleBBox.height + rowPadding; + }); // - var innerLine = shapeSvg.insert('line'); - var label = shapeSvg.insert('g').attr('class', 'label'); - var text2 = node.labelText.flat(); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Label text', text2[0]); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(text2[0], node.labelStyle, true, true)); var bbox; if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text); + var div = interfaceLabel.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel); bbox = div.getBoundingClientRect(); dv.attr('width', bbox.width); dv.attr('height', bbox.height); - } + } // bbox = labelContainer.getBBox(); + // logger.info('Text 2', text2); + // const textRows = text2.slice(1, text2.length); + // let titleBox = text.getBBox(); + // const descr = label + // .node() + // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true)); + // if (getConfig().flowchart.htmlLabels) { + // const div = descr.children[0]; + // const dv = select(descr); + // bbox = div.getBoundingClientRect(); + // dv.attr('width', bbox.width); + // dv.attr('height', bbox.height); + // } + // // bbox = label.getBBox(); + // // logger.info(descr); + // select(descr).attr( + // 'transform', + // 'translate( ' + + // // (titleBox.width - bbox.width) / 2 + + // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + + // ', ' + + // (titleBox.height + halfPadding + 5) + + // ')' + // ); + // select(text).attr( + // 'transform', + // 'translate( ' + + // // (titleBox.width - bbox.width) / 2 + + // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + + // ', ' + + // 0 + + // ')' + // ); + // // Get the size of the label + // // Bounding box for title and text + // bbox = label.node().getBBox(); + // // Center the label + // label.attr( + // 'transform', + // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')' + // ); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Text 2', text2); - var textRows = text2.slice(1, text2.length); - var titleBox = text.getBBox(); - var descr = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(textRows.join('
'), node.labelStyle, true, true)); - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var _div = descr.children[0]; + rect.attr('class', 'outer title-state').attr('x', -maxWidth / 2 - halfPadding).attr('y', -(maxHeight / 2) - halfPadding).attr('width', maxWidth + node.padding).attr('height', maxHeight + node.padding); // innerLine + // .attr('class', 'divider') + // .attr('x1', -bbox.width / 2 - halfPadding) + // .attr('x2', bbox.width / 2 + halfPadding) + // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding) + // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); - var _dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr); + Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - bbox = _div.getBoundingClientRect(); + node.intersect = function (point) { + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); + }; - _dv.attr('width', bbox.width); + return shapeSvg; +}; - _dv.attr('height', bbox.height); - } // bbox = label.getBBox(); - // logger.info(descr); - - - var halfPadding = node.padding / 2; - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + - bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')'); - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 + - bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label - // Bounding box for title and text - - bbox = label.node().getBBox(); // Center the label - - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'); - rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; - - return shapeSvg; +var shapes = { + question: question, + rect: rect, + rectWithTitle: rectWithTitle, + circle: circle, + stadium: stadium, + hexagon: hexagon, + rect_left_inv_arrow: rect_left_inv_arrow, + lean_right: lean_right, + lean_left: lean_left, + trapezoid: trapezoid, + inv_trapezoid: inv_trapezoid, + rect_right_inv_arrow: rect_right_inv_arrow, + cylinder: cylinder, + start: start, + end: end, + note: _shapes_note__WEBPACK_IMPORTED_MODULE_6__["default"], + subroutine: subroutine, + fork: forkJoin, + join: forkJoin, + class_box: class_box }; - -var stadium = function stadium(parent, node) { - var _labelHelper11 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper11.shapeSvg, - bbox = _labelHelper11.bbox; - - var h = bbox.height + node.padding; - var w = bbox.width + h / 4 + node.padding; // add the rect - - var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); - - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; - - return shapeSvg; +var nodeElems = {}; +var insertNode = function insertNode(elem, node, dir) { + nodeElems[node.id] = shapes[node.shape](elem, node, dir); }; +var setNodeElem = function setNodeElem(elem, node) { + nodeElems[node.id] = elem; +}; +var clear = function clear() { + nodeElems = {}; +}; +var positionNode = function positionNode(node) { + var el = nodeElems[node.id]; + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'); + var padding = 8; -var circle = function circle(parent, node) { - var _labelHelper12 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper12.shapeSvg, - bbox = _labelHelper12.bbox, - halfPadding = _labelHelper12.halfPadding; - - var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + if (node.clusterNode) { + el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')'); + } else { + el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); + } +}; - circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle main'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); +/***/ }), - node.intersect = function (point) { - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Circle intersect', node, bbox.width / 2 + halfPadding, point); - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, bbox.width / 2 + halfPadding, point); - }; +/***/ "./src/dagre-wrapper/shapes/note.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/note.js ***! + \******************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - return shapeSvg; -}; +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/dagre-wrapper/shapes/util.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); +/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); -var subroutine = function subroutine(parent, node) { - var _labelHelper13 = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["labelHelper"])(parent, node, undefined, true), - shapeSvg = _labelHelper13.shapeSvg, - bbox = _labelHelper13.bbox; + // eslint-disable-line - var w = bbox.width + node.padding; - var h = bbox.height + node.padding; - var points = [{ - x: 0, - y: 0 - }, { - x: w, - y: 0 - }, { - x: w, - y: -h - }, { - x: 0, - y: -h - }, { - x: 0, - y: 0 - }, { - x: -8, - y: 0 - }, { - x: w + 8, - y: 0 - }, { - x: w + 8, - y: -h - }, { - x: -8, - y: -h - }, { - x: -8, - y: 0 - }]; - var el = Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["insertPolygonShape"])(shapeSvg, w, h, points); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, el); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].polygon(node, point); - }; - return shapeSvg; -}; +var note = function note(parent, node) { + var _labelHelper = Object(_util__WEBPACK_IMPORTED_MODULE_0__["labelHelper"])(parent, node, 'node ' + node.classes, true), + shapeSvg = _labelHelper.shapeSvg, + bbox = _labelHelper.bbox, + halfPadding = _labelHelper.halfPadding; -var start = function start(parent, node) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate + _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Classes = ', node.classes); // add the rect - circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); + var rect = shapeSvg.insert('rect', ':first-child'); + rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); + Object(_util__WEBPACK_IMPORTED_MODULE_0__["updateNodeBounds"])(node, rect); node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); + return _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].rect(node, point); }; return shapeSvg; }; -var forkJoin = function forkJoin(parent, node, dir) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var width = 70; - var height = 10; - - if (dir === 'LR') { - width = 10; - height = 70; - } - - var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join'); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, shape); - node.height = node.height + node.padding / 2; - node.width = node.width + node.padding / 2; +/* harmony default export */ __webpack_exports__["default"] = (note); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; +/***/ }), - return shapeSvg; -}; +/***/ "./src/dagre-wrapper/shapes/util.js": +/*!******************************************!*\ + !*** ./src/dagre-wrapper/shapes/util.js ***! + \******************************************/ +/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var end = function end(parent, node) { - var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id); - var innerCircle = shapeSvg.insert('circle', ':first-child'); - var circle = shapeSvg.insert('circle', ':first-child'); - circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14); - innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10); - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, circle); +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelHelper", function() { return labelHelper; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateNodeBounds", function() { return updateNodeBounds; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertPolygonShape", function() { return insertPolygonShape; }); +/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLabel */ "./src/dagre-wrapper/createLabel.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); +/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].circle(node, 7, point); - }; - return shapeSvg; -}; -var class_box = function class_box(parent, node) { - var halfPadding = node.padding / 2; - var rowPadding = 4; - var lineHeight = 8; +var labelHelper = function labelHelper(parent, node, _classes, isNode) { var classes; - if (!node.classes) { + if (!_classes) { classes = 'node default'; } else { - classes = 'node ' + node.classes; + classes = _classes; } // Add outer g element - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect + var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect - var rect = shapeSvg.insert('rect', ':first-child'); - var topLine = shapeSvg.insert('line'); - var bottomLine = shapeSvg.insert('line'); - var maxWidth = 0; - var maxHeight = rowPadding; - var labelContainer = shapeSvg.insert('g').attr('class', 'label'); - var verticalPos = 0; - var hasInterface = node.classData.annotations && node.classData.annotations[0]; // 1. Create the labels + var label = shapeSvg.insert('g').attr('class', 'label'); + var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_0__["default"])(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label - var interfaceLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.classData.annotations[0], node.labelStyle, true, true)); - var interfaceBBox = interfaceLabel.getBBox(); + var bbox = text.getBBox(); - if (node.classData.annotations[0]) { - maxHeight += interfaceBBox.height + rowPadding; - maxWidth += interfaceBBox.width; + if (Object(_config__WEBPACK_IMPORTED_MODULE_1__["getConfig"])().flowchart.htmlLabels) { + var div = text.children[0]; + var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(text); + bbox = div.getBoundingClientRect(); + dv.attr('width', bbox.width); + dv.attr('height', bbox.height); } - var classTitleLabel = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(node.labelText, node.labelStyle, true, true)); - var classTitleBBox = classTitleLabel.getBBox(); - maxHeight += classTitleBBox.height + rowPadding; + var halfPadding = node.padding / 2; // Center the label - if (classTitleBBox.width > maxWidth) { - maxWidth = classTitleBBox.width; - } - - var classAttributes = []; - node.classData.members.forEach(function (str) { - var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); - var bbox = lbl.getBBox(); - - if (bbox.width > maxWidth) { - maxWidth = bbox.width; - } + label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); + return { + shapeSvg: shapeSvg, + bbox: bbox, + halfPadding: halfPadding, + label: label + }; +}; +var updateNodeBounds = function updateNodeBounds(node, element) { + var bbox = element.node().getBBox(); + node.width = bbox.width; + node.height = bbox.height; +}; +function insertPolygonShape(parent, w, h, points) { + return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) { + return d.x + ',' + d.y; + }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')'); +} - maxHeight += bbox.height + rowPadding; - classAttributes.push(lbl); - }); - var classMethods = []; - node.classData.methods.forEach(function (str) { - var lbl = labelContainer.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_5__["default"])(str, node.labelStyle, true, true)); - var bbox = lbl.getBBox(); +/***/ }), - if (bbox.width > maxWidth) { - maxWidth = bbox.width; - } +/***/ "./src/defaultConfig.js": +/*!******************************!*\ + !*** ./src/defaultConfig.js ***! + \******************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - maxHeight += bbox.height + rowPadding; - classMethods.push(lbl); - }); - maxHeight += lineHeight; // 2. Position the labels - // position the interface label +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); - if (hasInterface) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel).attr('transform', 'translate( ' + -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 + ', ' + -1 * maxHeight / 2 + ')'); - verticalPos = interfaceBBox.height + rowPadding; - } // Positin the class title label +/** + * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** + * + * ## **What follows are config instructions for older versions** + * These are the default options which can be overridden with the initialization call like so: + * **Example 1:** + *
+ * mermaid.initialize({
+ *   flowchart:{
+ *     htmlLabels: false
+ *   }
+ * });
+ * 
+ * + * **Example 2:** + *
+ * <script>
+ *   var config = {
+ *     startOnLoad:true,
+ *     flowchart:{
+ *       useMaxWidth:true,
+ *       htmlLabels:true,
+ *       curve:'cardinal',
+ *     },
+ *
+ *     securityLevel:'loose',
+ *   };
+ *   mermaid.initialize(config);
+ * </script>
+ * 
+ * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. + * + * @name Configuration + */ +var config = { + /** theme , the CSS style sheet + * + * theme , the CSS style sheet + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| + * + ***Notes:**To disable any pre-defined mermaid theme, use "null". + *
+   *  "theme": "forest",
+   *  "themeCSS": ".node rect { fill: red; }"
+   * 
+ */ + theme: 'default', + themeVariables: _themes__WEBPACK_IMPORTED_MODULE_0__["default"]['default'].getThemeVariables(), + themeCSS: undefined, - var diffX = (maxWidth - classTitleBBox.width) / 2; - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(classTitleLabel).attr('transform', 'translate( ' + (-1 * maxWidth / 2 + diffX) + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - topLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); - verticalPos += lineHeight; - classAttributes.forEach(function (lbl) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos + lineHeight / 2) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - }); - bottomLine.attr('class', 'divider').attr('x1', -maxWidth / 2 - halfPadding).attr('x2', maxWidth / 2 + halfPadding).attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos).attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos); - verticalPos += lineHeight; - classMethods.forEach(function (lbl) { - Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(lbl).attr('transform', 'translate( ' + -maxWidth / 2 + ', ' + (-1 * maxHeight / 2 + verticalPos) + ')'); - verticalPos += classTitleBBox.height + rowPadding; - }); // + /* **maxTextSize** - The maximum allowed size of the users text diamgram */ + maxTextSize: 50000, - var bbox; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| + * + ***notes: Default value is \\"trebuchet ms\\". + */ + fontFamily: '"trebuchet ms", verdana, arial;', - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().flowchart.htmlLabels) { - var div = interfaceLabel.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_0__["select"])(interfaceLabel); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } // bbox = labelContainer.getBBox(); - // logger.info('Text 2', text2); - // const textRows = text2.slice(1, text2.length); - // let titleBox = text.getBBox(); - // const descr = label - // .node() - // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true)); - // if (getConfig().flowchart.htmlLabels) { - // const div = descr.children[0]; - // const dv = select(descr); - // bbox = div.getBoundingClientRect(); - // dv.attr('width', bbox.width); - // dv.attr('height', bbox.height); - // } - // // bbox = label.getBBox(); - // // logger.info(descr); - // select(descr).attr( - // 'transform', - // 'translate( ' + - // // (titleBox.width - bbox.width) / 2 + - // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + - // ', ' + - // (titleBox.height + halfPadding + 5) + - // ')' - // ); - // select(text).attr( - // 'transform', - // 'translate( ' + - // // (titleBox.width - bbox.width) / 2 + - // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + - // ', ' + - // 0 + - // ')' - // ); - // // Get the size of the label - // // Bounding box for title and text - // bbox = label.node().getBBox(); - // // Center the label - // label.attr( - // 'transform', - // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')' - // ); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | + * + * + ***Notes:** + *- debug: 1. + *- info: 2. + *- warn: 3. + *- error: 4. + *- fatal: 5(default). + */ + logLevel: 5, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | + * + ***Notes: + *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled + *- **loose**: tags in text are allowed, click functionality is enabled + *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled + */ + securityLevel: 'strict', - rect.attr('class', 'outer title-state').attr('x', -maxWidth / 2 - halfPadding).attr('y', -(maxHeight / 2) - halfPadding).attr('width', maxWidth + node.padding).attr('height', maxHeight + node.padding); // innerLine - // .attr('class', 'divider') - // .attr('x1', -bbox.width / 2 - halfPadding) - // .attr('x2', bbox.width / 2 + halfPadding) - // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding) - // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | + * + ***Notes:** + ***Default value: true** + */ + startOnLoad: true, - Object(_shapes_util__WEBPACK_IMPORTED_MODULE_2__["updateNodeBounds"])(node, rect); + /** + *| Parameter | Description |Type | Required |Values| + *| --- | --- | --- | --- | --- | + *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | + * + * + *## Notes**: This matters if you are using base tag settings. + ***Default value: false**. + */ + arrowMarkerAbsolute: false, - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].rect(node, point); - }; + /** + * This option controls which currentConfig keys are considered _secure_ and can only be changed via + * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to + * the `secure` keys in the current currentConfig. This prevents malicious graph directives from + * overriding a site's default security. + */ + secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], - return shapeSvg; -}; + /** + * The object containing configurations specific for flowcharts + */ + flowchart: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 8**. + */ + diagramPadding: 8, -var shapes = { - question: question, - rect: rect, - rectWithTitle: rectWithTitle, - circle: circle, - stadium: stadium, - hexagon: hexagon, - rect_left_inv_arrow: rect_left_inv_arrow, - lean_right: lean_right, - lean_left: lean_left, - trapezoid: trapezoid, - inv_trapezoid: inv_trapezoid, - rect_right_inv_arrow: rect_right_inv_arrow, - cylinder: cylinder, - start: start, - end: end, - note: _shapes_note__WEBPACK_IMPORTED_MODULE_6__["default"], - subroutine: subroutine, - fork: forkJoin, - join: forkJoin, - class_box: class_box -}; -var nodeElems = {}; -var insertNode = function insertNode(elem, node, dir) { - nodeElems[node.id] = shapes[node.shape](elem, node, dir); -}; -var setNodeElem = function setNodeElem(elem, node) { - nodeElems[node.id] = elem; -}; -var clear = function clear() { - nodeElems = {}; -}; -var positionNode = function positionNode(node) { - var el = nodeElems[node.id]; - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'); - var padding = 8; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| + * + ***Notes: Default value: true**. + */ + htmlLabels: true, - if (node.clusterNode) { - el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')'); - } else { - el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')'); - } -}; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | + * + ***Notes: + *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** + ***Default value 50**. + */ + nodeSpacing: 50, -/***/ }), + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | + * + ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. + ***Default value 50**. + */ + rankSpacing: 50, -/***/ "./src/dagre-wrapper/shapes/note.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/shapes/note.js ***! - \******************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| + * + ***Notes: + *Default Vaue: Linear** + */ + curve: 'linear', + // Only used in new experimental rendering + // repreesents the padding between the labels and the shape + padding: 15 + }, -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/dagre-wrapper/shapes/util.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); -/* harmony import */ var _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../intersect/index.js */ "./src/dagre-wrapper/intersect/index.js"); + /** + * The object containing configurations specific for sequence diagrams + */ + sequence: { + /** + * widt of the activation rect + * **Default value 10**. + */ + activationWidth: 10, - // eslint-disable-line + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| + * + ***Notes:** + ***Default value 10**. + */ + diagramMarginY: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 65**.. + */ + height: 65, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + boxMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| + * + ***Notes:** + * + ***Default value 5**. + */ + boxTextMargin: 5, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + noteMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | + * + ***Notes:**center **default** + */ + messageAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | + * + ***Notes:** + * + ***Default value true**. + */ + mirrorActors: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | True, False | + * + ***Notes:** + *when this flag is set to true, the height and width is set to 100% and is then scaling with the + *available space. If set to false, the absolute space required is used. + ***Default value: True**. + */ + useMaxWidth: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | + * + ***Notes:** + * + *This will display arrows that start and begin at the same node as right angles, rather than a curve + ***Default value false**. + */ + rightAngles: false, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | + * + ***Notes:** + ***Default value false**. + */ + showSequenceNumbers: false, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + actorFontSize: 14, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | + * + ***Notes:** + ***Default value "Open-Sans", "sans-serif"**. + */ + actorFontFamily: '"Open-Sans", "sans-serif"', + + /** + * This sets the font weight of the actor's description + * **Default value 400. + */ + actorFontWeight: 400, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + noteFontSize: 14, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | + * + ***Notes:** + ***Default value: trebuchet ms **. + */ + noteFontFamily: '"trebuchet ms", verdana, arial', + + /** + * This sets the font weight of the note's description + * **Default value 400. + */ + noteFontWeight: 400, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| + * + ***Notes:** + ***Default value center**. + */ + noteAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | + * + ***Notes:** + ***Default value 16**. + */ + messageFontSize: 16, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | + * + ***Notes:** + ***Default value:"trebuchet ms**. + */ + messageFontFamily: '"trebuchet ms", verdana, arial', + + /** + * This sets the font weight of the message's description + * **Default value 400. + */ + messageFontWeight: 400, + + /** + * This sets the auto-wrap state for the diagram + * **Default value false. + */ + wrap: false, + + /** + * This sets the auto-wrap padding for the diagram (sides only) + * **Default value 10. + */ + wrapPadding: 10, + + /** + * This sets the width of the loop-box (loop, alt, opt, par) + * **Default value 50. + */ + labelBoxWidth: 50, + + /** + * This sets the height of the loop-box (loop, alt, opt, par) + * **Default value 20. + */ + labelBoxHeight: 20, + messageFont: function messageFont() { + return { + fontFamily: this.messageFontFamily, + fontSize: this.messageFontSize, + fontWeight: this.messageFontWeight + }; + }, + noteFont: function noteFont() { + return { + fontFamily: this.noteFontFamily, + fontSize: this.noteFontSize, + fontWeight: this.noteFontWeight + }; + }, + actorFont: function actorFont() { + return { + fontFamily: this.actorFontFamily, + fontSize: this.actorFontSize, + fontWeight: this.actorFontWeight + }; + } + }, + + /** + * The object containing configurations specific for gantt diagrams* + */ + gantt: { + /** + *### titleTopMargin + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 25**. + */ + titleTopMargin: 25, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 20**. + */ + barHeight: 20, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + barGap: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + topPadding: 50, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | + * + ***Notes:** + ***Default value 75**. + */ + leftPadding: 75, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 35**. + */ + gridLineStartPadding: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize | Font size| Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 11**. + */ + fontSize: 11, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | + * + ***Notes:** + * + ***Default value '"Open-Sans", "sans-serif"'**. + */ + fontFamily: '"Open-Sans", "sans-serif"', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + numberSectionStyles: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | + * + ***Notes:** + * + * This might need adjustment to match your locale and preferences + ***Default value '%Y-%m-%d'**. + */ + axisFormat: '%Y-%m-%d' + }, + + /** + * The object containing configurations specific for journey diagrams + */ + journey: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 10**.. + */ + diagramMarginY: 10, -var note = function note(parent, node) { - var _labelHelper = Object(_util__WEBPACK_IMPORTED_MODULE_0__["labelHelper"])(parent, node, 'node ' + node.classes, true), - shapeSvg = _labelHelper.shapeSvg, - bbox = _labelHelper.bbox, - halfPadding = _labelHelper.halfPadding; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, - _logger__WEBPACK_IMPORTED_MODULE_1__["logger"].info('Classes = ', node.classes); // add the rect + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, - var rect = shapeSvg.insert('rect', ':first-child'); - rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding); - Object(_util__WEBPACK_IMPORTED_MODULE_0__["updateNodeBounds"])(node, rect); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 65**. + */ + height: 65, - node.intersect = function (point) { - return _intersect_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].rect(node, point); - }; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + boxMargin: 10, - return shapeSvg; -}; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + */ + boxTextMargin: 5, -/* harmony default export */ __webpack_exports__["default"] = (note); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + noteMargin: 10, -/***/ }), + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, -/***/ "./src/dagre-wrapper/shapes/util.js": -/*!******************************************!*\ - !*** ./src/dagre-wrapper/shapes/util.js ***! - \******************************************/ -/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | + * + ***Notes:**default:center** + */ + messageAlign: 'center', -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "labelHelper", function() { return labelHelper; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateNodeBounds", function() { return updateNodeBounds; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "insertPolygonShape", function() { return insertPolygonShape; }); -/* harmony import */ var _createLabel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLabel */ "./src/dagre-wrapper/createLabel.js"); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); -/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See notes | Boolean | 4 | True, False | + * + ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the + *available space if not the absolute space required is used. + * + ***Default value true**. + */ + useMaxWidth: true, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | + * + ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves + ***Default value false**. + */ + rightAngles: false + }, + class: { + arrowMarkerAbsolute: false + }, + git: { + arrowMarkerAbsolute: false + }, + state: { + dividerMargin: 10, + sizeUnit: 5, + padding: 8, + textHeight: 10, + titleShift: -15, + noteMargin: 10, + forkWidth: 70, + forkHeight: 7, + // Used + miniPadding: 2, + // Font size factor, this is used to guess the width of the edges labels before rendering by dagre + // layout. This might need updating if/when switching font + fontSizeFactor: 5.02, + fontSize: 24, + labelHeight: 16, + edgeLengthFactor: '20', + compositTitleSize: 35, + radius: 5 + }, -var labelHelper = function labelHelper(parent, node, _classes, isNode) { - var classes; + /** + * The object containing configurations specific for entity relationship diagrams + */ + er: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 20**. + */ + diagramPadding: 20, - if (!_classes) { - classes = 'node default'; - } else { - classes = _classes; - } // Add outer g element + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | + * + ***Notes:** + *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. + * T = top, B = bottom, L = left, and R = right. + ***Default value: TB **. + */ + layoutDirection: 'TB', + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 100**. + */ + minEntityWidth: 100, - var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 75 ** + */ + minEntityHeight: 75, - var label = shapeSvg.insert('g').attr('class', 'label'); - var text = label.node().appendChild(Object(_createLabel__WEBPACK_IMPORTED_MODULE_0__["default"])(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | + * + ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. + ***Default value: 15 ** + */ + entityPadding: 15, - var bbox = text.getBBox(); + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | + ***Default value: gray ** + */ + stroke: 'gray', - if (Object(_config__WEBPACK_IMPORTED_MODULE_1__["getConfig"])().flowchart.htmlLabels) { - var div = text.children[0]; - var dv = Object(d3__WEBPACK_IMPORTED_MODULE_2__["select"])(text); - bbox = div.getBoundingClientRect(); - dv.attr('width', bbox.width); - dv.attr('height', bbox.height); - } + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fill | Fill color of entity boxes | String | 4 | Any recognized color | + * + ***Notes:** + ***Default value:'honeydew'** + */ + fill: 'honeydew', - var halfPadding = node.padding / 2; // Center the label + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize| Font Size in pixels| Integer | | Any Positive Value | + * + ***Notes:**Font size (expressed as an integer representing a number of pixels) + ***Default value: 12 ** + */ + fontSize: 12, - label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); - return { - shapeSvg: shapeSvg, - bbox: bbox, - halfPadding: halfPadding, - label: label - }; -}; -var updateNodeBounds = function updateNodeBounds(node, element) { - var bbox = element.node().getBBox(); - node.width = bbox.width; - node.height = bbox.height; + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | true, false | + * + ***Notes:** + *When this flag is set to true, the diagram width is locked to 100% and + *scaled based on available space. If set to false, the diagram reserves its + *absolute width. + ***Default value: true**. + */ + useMaxWidth: true + } }; -function insertPolygonShape(parent, w, h, points) { - return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) { - return d.x + ',' + d.y; - }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')'); -} +config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +/* harmony default export */ __webpack_exports__["default"] = (config); /***/ }), @@ -52580,13 +52612,13 @@ __webpack_require__.r(__webpack_exports__); var MERMAID_DOM_ID_PREFIX = 'classid-'; -var config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); +var config = _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"](); var relations = []; var classes = {}; var classCounter = 0; var funs = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(this, statement, context, type); }; var splitClassNameAndType = function splitClassNameAndType(id) { @@ -52847,6 +52879,9 @@ var setupToolTips = function setupToolTips(element) { funs.push(setupToolTips); /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().class; + }, addClass: addClass, bindFunctions: bindFunctions, clear: clear, @@ -53602,132 +53637,132 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,6],$V2=[1,20],$V3=[1,23],$V4=[1,21],$V5=[1,22],$V6=[1,24],$V7=[1,25],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,32],$Vc=[7,9],$Vd=[1,41],$Ve=[1,42],$Vf=[1,43],$Vg=[1,44],$Vh=[1,45],$Vi=[1,46],$Vj=[7,9,20,26,34,37,38,39,40,41,42],$Vk=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],$Vl=[34,58,59,60],$Vm=[34,41,42,58,59,60],$Vn=[34,37,38,39,40,58,59,60],$Vo=[6,7,9,61],$Vp=[7,9,20],$Vq=[1,73]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,7],$V1=[1,6],$V2=[1,14],$V3=[1,24],$V4=[1,27],$V5=[1,25],$V6=[1,26],$V7=[1,28],$V8=[1,29],$V9=[1,31],$Va=[1,32],$Vb=[1,33],$Vc=[10,19],$Vd=[1,45],$Ve=[1,46],$Vf=[1,47],$Vg=[1,48],$Vh=[1,49],$Vi=[1,50],$Vj=[10,19,25,31,39,42,43,44,45,46,47],$Vk=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],$Vl=[10,13,17,19],$Vm=[39,63,64,65],$Vn=[39,46,47,63,64,65],$Vo=[39,42,43,44,45,63,64,65],$Vp=[10,19,25],$Vq=[1,75]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"directive":5,"CLASS_DIAGRAM":6,"NEWLINE":7,"statements":8,"EOF":9,"statement":10,"className":11,"alphaNumToken":12,"GENERICTYPE":13,"openDirective":14,"typeDirective":15,"closeDirective":16,":":17,"argDirective":18,"relationStatement":19,"LABEL":20,"classStatement":21,"methodStatement":22,"annotationStatement":23,"clickStatement":24,"CLASS":25,"STRUCT_START":26,"members":27,"STRUCT_STOP":28,"ANNOTATION_START":29,"ANNOTATION_END":30,"MEMBER":31,"SEPARATOR":32,"relation":33,"STR":34,"relationType":35,"lineType":36,"AGGREGATION":37,"EXTENSION":38,"COMPOSITION":39,"DEPENDENCY":40,"LINE":41,"DOTTED_LINE":42,"CALLBACK":43,"LINK":44,"commentToken":45,"textToken":46,"graphCodeTokens":47,"textNoTagsToken":48,"TAGSTART":49,"TAGEND":50,"==":51,"--":52,"PCT":53,"DEFAULT":54,"SPACE":55,"MINUS":56,"keywords":57,"UNICODE_TEXT":58,"NUM":59,"ALPHA":60,"open_directive":61,"type_directive":62,"arg_directive":63,"close_directive":64,"$accept":0,"$end":1}, -terminals_: {2:"error",6:"CLASS_DIAGRAM",7:"NEWLINE",9:"EOF",13:"GENERICTYPE",17:":",20:"LABEL",25:"CLASS",26:"STRUCT_START",28:"STRUCT_STOP",29:"ANNOTATION_START",30:"ANNOTATION_END",31:"MEMBER",32:"SEPARATOR",34:"STR",37:"AGGREGATION",38:"EXTENSION",39:"COMPOSITION",40:"DEPENDENCY",41:"LINE",42:"DOTTED_LINE",43:"CALLBACK",44:"LINK",47:"graphCodeTokens",49:"TAGSTART",50:"TAGEND",51:"==",52:"--",53:"PCT",54:"DEFAULT",55:"SPACE",56:"MINUS",57:"keywords",58:"UNICODE_TEXT",59:"NUM",60:"ALPHA",61:"open_directive",62:"type_directive",63:"arg_directive",64:"close_directive"}, -productions_: [0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]], +symbols_: {"error":2,"start":3,"mermaidDoc":4,"directive":5,"graphConfig":6,"openDirective":7,"typeDirective":8,"closeDirective":9,"NEWLINE":10,":":11,"argDirective":12,"open_directive":13,"type_directive":14,"arg_directive":15,"close_directive":16,"CLASS_DIAGRAM":17,"statements":18,"EOF":19,"statement":20,"className":21,"alphaNumToken":22,"GENERICTYPE":23,"relationStatement":24,"LABEL":25,"classStatement":26,"methodStatement":27,"annotationStatement":28,"clickStatement":29,"CLASS":30,"STRUCT_START":31,"members":32,"STRUCT_STOP":33,"ANNOTATION_START":34,"ANNOTATION_END":35,"MEMBER":36,"SEPARATOR":37,"relation":38,"STR":39,"relationType":40,"lineType":41,"AGGREGATION":42,"EXTENSION":43,"COMPOSITION":44,"DEPENDENCY":45,"LINE":46,"DOTTED_LINE":47,"CALLBACK":48,"LINK":49,"commentToken":50,"textToken":51,"graphCodeTokens":52,"textNoTagsToken":53,"TAGSTART":54,"TAGEND":55,"==":56,"--":57,"PCT":58,"DEFAULT":59,"SPACE":60,"MINUS":61,"keywords":62,"UNICODE_TEXT":63,"NUM":64,"ALPHA":65,"$accept":0,"$end":1}, +terminals_: {2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",30:"CLASS",31:"STRUCT_START",33:"STRUCT_STOP",34:"ANNOTATION_START",35:"ANNOTATION_END",36:"MEMBER",37:"SEPARATOR",39:"STR",42:"AGGREGATION",43:"EXTENSION",44:"COMPOSITION",45:"DEPENDENCY",46:"LINE",47:"DOTTED_LINE",48:"CALLBACK",49:"LINK",52:"graphCodeTokens",54:"TAGSTART",55:"TAGEND",56:"==",57:"--",58:"PCT",59:"DEFAULT",60:"SPACE",61:"MINUS",62:"keywords",63:"UNICODE_TEXT",64:"NUM",65:"ALPHA"}, +productions_: [0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { +case 6: + yy.parseDirective('%%{', 'open_directive'); +break; case 7: - this.$=$$[$0-1]+$$[$0]; + yy.parseDirective($$[$0], 'type_directive'); break; case 8: - this.$=$$[$0]; + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 9: + yy.parseDirective('}%%', 'close_directive', 'class'); +break; +case 14: + this.$=$$[$0-1]+$$[$0]; +break; +case 15: + this.$=$$[$0]; +break; +case 16: this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; break; -case 10: +case 17: this.$=$$[$0-1]+'~'+$$[$0]; break; -case 13: +case 18: yy.addRelation($$[$0]); break; -case 14: +case 19: $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); break; -case 20: +case 25: yy.addClass($$[$0]); break; -case 21: +case 26: /*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]); break; -case 22: +case 27: yy.addAnnotation($$[$0],$$[$0-2]); break; -case 23: +case 28: this.$ = [$$[$0]]; break; -case 24: +case 29: $$[$0].push($$[$0-1]);this.$=$$[$0]; break; -case 25: +case 30: /*console.log('Rel found',$$[$0]);*/ break; -case 26: +case 31: yy.addMember($$[$0-1],yy.cleanupLabel($$[$0])); break; -case 27: +case 32: /*console.warn('Member',$$[$0]);*/ break; -case 28: +case 33: /*console.log('sep found',$$[$0]);*/ break; -case 29: +case 34: this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; break; -case 30: +case 35: this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'} break; -case 31: +case 36: this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; break; -case 32: +case 37: this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} break; -case 33: +case 38: this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; break; -case 34: +case 39: this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; break; -case 35: +case 40: this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; break; -case 36: +case 41: this.$={type1:'none',type2:'none',lineType:$$[$0]}; break; -case 37: +case 42: this.$=yy.relationType.AGGREGATION; break; -case 38: +case 43: this.$=yy.relationType.EXTENSION; break; -case 39: +case 44: this.$=yy.relationType.COMPOSITION; break; -case 40: +case 45: this.$=yy.relationType.DEPENDENCY; break; -case 41: +case 46: this.$=yy.lineType.LINE; break; -case 42: +case 47: this.$=yy.lineType.DOTTED_LINE; break; -case 43: +case 48: this.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined); break; -case 44: +case 49: this.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]); break; -case 45: +case 50: this.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined); break; -case 46: +case 51: this.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]); break; -case 63: - yy.parseDirective('%%{', 'open_directive'); -break; -case 64: - yy.parseDirective($$[$0], 'type_directive'); -break; -case 65: - $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); -break; -case 66: - yy.parseDirective('}%%', 'close_directive', 'sequence'); -break; } }, -table: [{3:1,4:2,5:3,6:$V0,14:5,61:$V1},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:$V0,14:5,61:$V1},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},{16:30,17:[1,31],64:$Vb},o([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},o($Vc,[2,13],{20:[1,35]}),o($Vc,[2,15]),o($Vc,[2,16]),o($Vc,[2,17]),o($Vc,[2,18]),o($Vc,[2,19]),o($Vc,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi}),{11:47,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,27]),o($Vc,[2,28]),{12:48,58:$V8,59:$V9,60:$Va},{11:49,12:26,58:$V8,59:$V9,60:$Va},{11:50,12:26,58:$V8,59:$V9,60:$Va},o($Vj,[2,8],{12:26,11:51,13:[1,52],58:$V8,59:$V9,60:$Va}),o($Vk,[2,60]),o($Vk,[2,61]),o($Vk,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},o($Vc,[2,14]),{11:57,12:26,34:[1,58],58:$V8,59:$V9,60:$Va},{33:59,35:39,36:40,37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi},o($Vc,[2,26]),{36:60,41:$Vh,42:$Vi},o($Vl,[2,36],{35:61,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vn,[2,41]),o($Vn,[2,42]),o($Vc,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},o($Vj,[2,7]),o($Vj,[2,10],{12:26,11:66,58:$V8,59:$V9,60:$Va}),o($Vo,[2,11]),{16:67,64:$Vb},{64:[2,65]},{9:[2,6]},o($Vp,[2,29]),{11:68,12:26,58:$V8,59:$V9,60:$Va},{11:69,12:26,34:[1,70],58:$V8,59:$V9,60:$Va},o($Vl,[2,35],{35:71,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vl,[2,34]),{27:72,31:$Vq},{11:74,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,43],{34:[1,75]}),o($Vc,[2,45],{34:[1,76]}),o($Vj,[2,9]),{7:[1,77]},o($Vp,[2,31]),o($Vp,[2,30]),{11:78,12:26,58:$V8,59:$V9,60:$Va},o($Vl,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:$Vq},o($Vc,[2,22]),o($Vc,[2,44]),o($Vc,[2,46]),o($Vo,[2,12]),o($Vp,[2,32]),o($Vc,[2,21]),{28:[2,24]}], -defaultActions: {2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]}, +table: [{3:1,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:$V2},o([11,16],[2,7]),{5:22,7:5,13:$V0,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},o($Vc,[2,18],{25:[1,39]}),o($Vc,[2,20]),o($Vc,[2,21]),o($Vc,[2,22]),o($Vc,[2,23]),o($Vc,[2,24]),o($Vc,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi}),{21:51,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,32]),o($Vc,[2,33]),{22:52,63:$V9,64:$Va,65:$Vb},{21:53,22:30,63:$V9,64:$Va,65:$Vb},{21:54,22:30,63:$V9,64:$Va,65:$Vb},o($Vj,[2,15],{22:30,21:55,23:[1,56],63:$V9,64:$Va,65:$Vb}),o($Vk,[2,65]),o($Vk,[2,66]),o($Vk,[2,67]),o($Vl,[2,4]),{9:57,16:$V2},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:$V0,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},o($Vc,[2,19]),{21:59,22:30,39:[1,60],63:$V9,64:$Va,65:$Vb},{38:61,40:43,41:44,42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi},o($Vc,[2,31]),{41:62,46:$Vh,47:$Vi},o($Vm,[2,41],{40:63,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vn,[2,42]),o($Vn,[2,43]),o($Vn,[2,44]),o($Vn,[2,45]),o($Vo,[2,46]),o($Vo,[2,47]),o($Vc,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},o($Vj,[2,14]),o($Vj,[2,17],{22:30,21:68,63:$V9,64:$Va,65:$Vb}),{10:[1,69]},{19:[2,13]},o($Vp,[2,34]),{21:70,22:30,63:$V9,64:$Va,65:$Vb},{21:71,22:30,39:[1,72],63:$V9,64:$Va,65:$Vb},o($Vm,[2,40],{40:73,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vm,[2,39]),{32:74,36:$Vq},{21:76,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,48],{39:[1,77]}),o($Vc,[2,50],{39:[1,78]}),o($Vj,[2,16]),o($Vl,[2,5]),o($Vp,[2,36]),o($Vp,[2,35]),{21:79,22:30,63:$V9,64:$Va,65:$Vb},o($Vm,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:$Vq},o($Vc,[2,27]),o($Vc,[2,49]),o($Vc,[2,51]),o($Vp,[2,37]),o($Vc,[2,26]),{33:[2,29]}], +defaultActions: {2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -54206,110 +54241,108 @@ options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0: this.begin('open_directive'); return 61; +case 0: this.begin('open_directive'); return 13; break; -case 1: this.begin('type_directive'); return 62; +case 1: this.begin('type_directive'); return 14; break; -case 2: this.popState(); this.begin('arg_directive'); return 17; +case 2: this.popState(); this.begin('arg_directive'); return 11; break; -case 3: this.popState(); this.popState(); return 64; +case 3: this.popState(); this.popState(); return 16; break; -case 4:return 63; +case 4:return 15; break; case 5:/* skip comments */ break; case 6:/* skip comments */ break; -case 7:/* do nothing */ +case 7:return 10; break; -case 8:return 7; +case 8:/* skip whitespace */ break; -case 9:/* skip whitespace */ +case 9:return 17; break; -case 10:return 6; +case 10:return 17; break; -case 11:return 6; +case 11: this.begin("struct"); /*console.log('Starting struct');*/ return 31; break; -case 12: this.begin("struct"); /*console.log('Starting struct');*/return 26; +case 12:return "EOF_IN_STRUCT"; break; -case 13:return "EOF_IN_STRUCT"; +case 13:return "OPEN_IN_STRUCT"; break; -case 14:return "OPEN_IN_STRUCT"; +case 14: /*console.log('Ending struct');*/this.popState(); return 33; break; -case 15: /*console.log('Ending struct');*/this.popState(); return 28; +case 15:/* nothing */ break; -case 16:/* nothing */ +case 16: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER"; break; -case 17: /*console.log('lex-member: ' + yy_.yytext);*/ return "MEMBER"; +case 17:return 30; break; -case 18:return 25; +case 18:return 48; break; -case 19:return 43; +case 19:return 49; break; -case 20:return 44; +case 20:return 34; break; -case 21:return 29; +case 21:return 35; break; -case 22:return 30; +case 22:this.begin("generic"); break; -case 23:this.begin("generic"); +case 23:this.popState(); break; -case 24:this.popState(); +case 24:return "GENERICTYPE"; break; -case 25:return "GENERICTYPE"; +case 25:this.begin("string"); break; -case 26:this.begin("string"); +case 26:this.popState(); break; -case 27:this.popState(); +case 27:return "STR"; break; -case 28:return "STR"; +case 28:return 43; break; -case 29:return 38; +case 29:return 43; break; -case 30:return 38; +case 30:return 45; break; -case 31:return 40; +case 31:return 45; break; -case 32:return 40; +case 32:return 44; break; -case 33:return 39; +case 33:return 42; break; -case 34:return 37; +case 34:return 46; break; -case 35:return 41; +case 35:return 47; break; -case 36:return 42; +case 36:return 25; break; -case 37:return 20; +case 37:return 61; break; -case 38:return 56; +case 38:return 'DOT'; break; -case 39:return 'DOT'; +case 39:return 'PLUS'; break; -case 40:return 'PLUS'; +case 40:return 58; break; -case 41:return 53; +case 41:return 'EQUALS'; break; case 42:return 'EQUALS'; break; -case 43:return 'EQUALS'; +case 43:return 65; break; -case 44:return 60; +case 44:return 'PUNCTUATION'; break; -case 45:return 'PUNCTUATION'; -break; -case 46:return 59; +case 45:return 64; break; -case 47:return 58; +case 46:return 63; break; -case 48:return 55; +case 47:return 60; break; -case 49:return 9; +case 48:return 19; break; } }, -rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:%%[^\n]*\n*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:$)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/], -conditions: {"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"string":{"rules":[27,28],"inclusive":false},"generic":{"rules":[24,25],"inclusive":false},"struct":{"rules":[13,14,15,16,17],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"inclusive":true}} +rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/], +conditions: {"string":{"rules":[26,27],"inclusive":false},"generic":{"rules":[23,24],"inclusive":false},"struct":{"rules":[12,13,14,15,16],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"inclusive":true}} }); return lexer; })(); @@ -54812,11 +54845,13 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /** * */ + var entities = {}; var relationships = []; var title = ''; @@ -54831,7 +54866,7 @@ var Identification = { IDENTIFYING: 'IDENTIFYING' }; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(this, statement, context, type); }; var addEntity = function addEntity(name) { @@ -54887,6 +54922,9 @@ var clear = function clear() { Cardinality: Cardinality, Identification: Identification, parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().er; + }, addEntity: addEntity, getEntities: getEntities, addRelationship: addRelationship, @@ -55402,7 +55440,7 @@ case 25: $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 26: - yy.parseDirective('}%%', 'close_directive', 'sequence'); + yy.parseDirective('}%%', 'close_directive', 'er'); break; } }, @@ -55984,7 +56022,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "\n .entityBox {\n fill: ".concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(options.edgeLabelBackground, ";\n fillopactity: 0;\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(options.lineColor, ";\n }\n"); + return "\n .entityBox {\n fill: ".concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(options.tertiaryColor, ";\n opacity: 0.3;\n background-color: ").concat(options.tertiaryColor, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(options.lineColor, ";\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -56425,7 +56463,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-'; var MERMAID_DOM_ID_PREFIX = ''; -var config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); +var config = _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"]; var vertices = {}; var edges = []; var classes = []; @@ -56438,7 +56476,7 @@ var direction; // Functions to be run after graph rendering var funs = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_4__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_4__["default"].parseDirective(this, statement, context, type); }; /** * Function called by parser when a node definition has been found @@ -56472,7 +56510,7 @@ var addVertex = function addVertex(_id, text, type, style, classes) { } if (typeof text !== 'undefined') { - config = Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])(); + config = _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"]; txt = _common_common__WEBPACK_IMPORTED_MODULE_3__["default"].sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote if (txt[0] === '"' && txt[txt.length - 1] === '"') { @@ -56666,7 +56704,7 @@ var setClickFun = function setClickFun(_id, functionName) { var id = _id; if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id; - if (Object(_config__WEBPACK_IMPORTED_MODULE_2__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"].securityLevel !== 'loose') { return; } @@ -57237,6 +57275,9 @@ var destructLink = function destructLink(_str, _startStr) { /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + defaultConfig: function defaultConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["defaultConfig"].flowchart; + }, addVertex: addVertex, addLink: addLink, updateLinkInterpolate: updateLinkInterpolate, @@ -58394,211 +58435,214 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,5],$V1=[1,4],$V2=[1,6],$V3=[1,8],$V4=[1,9,10,11,12,32,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$V5=[2,3],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,28],$Vb=[1,53],$Vc=[1,31],$Vd=[1,32],$Ve=[1,33],$Vf=[1,34],$Vg=[1,35],$Vh=[1,47],$Vi=[1,42],$Vj=[1,44],$Vk=[1,39],$Vl=[1,43],$Vm=[1,46],$Vn=[1,50],$Vo=[1,51],$Vp=[1,52],$Vq=[1,41],$Vr=[1,45],$Vs=[1,48],$Vt=[1,49],$Vu=[1,40],$Vv=[1,58],$Vw=[1,61],$Vx=[1,9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Vy=[1,65],$Vz=[1,64],$VA=[1,66],$VB=[9,10,12,63,64],$VC=[9,10,11,12,63,64],$VD=[9,10,11,12,41,63,64],$VE=[9,10,11,12,34,40,41,43,45,47,49,51,53,55,56,58,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VF=[9,10,12,40,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VG=[9,10,12],$VH=[1,9,10,11,12,19,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$VI=[40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VJ=[1,114],$VK=[1,135],$VL=[1,136],$VM=[1,137],$VN=[1,138],$VO=[1,118],$VP=[1,109],$VQ=[1,107],$VR=[1,110],$VS=[1,130],$VT=[1,131],$VU=[1,132],$VV=[1,133],$VW=[1,134],$VX=[1,139],$VY=[1,140],$VZ=[1,112],$V_=[1,120],$V$=[1,123],$V01=[1,121],$V11=[1,122],$V21=[1,115],$V31=[1,128],$V41=[1,127],$V51=[1,111],$V61=[1,108],$V71=[1,117],$V81=[1,119],$V91=[1,124],$Va1=[1,125],$Vb1=[1,126],$Vc1=[1,129],$Vd1=[9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Ve1=[1,143],$Vf1=[1,147],$Vg1=[1,149],$Vh1=[1,150],$Vi1=[9,10,11,12,19,20,32,34,35,36,40,44,46,48,50,52,54,55,57,59,62,63,64,65,68,69,70,71,72,73,74,77,83,84,87,88,89,91,92,93,94,98,99,100,101,102,103],$Vj1=[9,10,11,12,20,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$Vk1=[11,84],$Vl1=[1,219],$Vm1=[1,223],$Vn1=[1,220],$Vo1=[1,217],$Vp1=[1,214],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,218],$Vt1=[1,221],$Vu1=[1,222],$Vv1=[1,224],$Vw1=[1,240],$Vx1=[9,10,12,84],$Vy1=[9,10,11,12,68,80,83,84,87,88,89,90,91,92,93]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,9],$V1=[1,7],$V2=[1,6],$V3=[1,8],$V4=[1,20,21,22,23,38,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$V5=[2,10],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[1,23],$Va=[1,30],$Vb=[1,54],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[1,36],$Vh=[1,48],$Vi=[1,43],$Vj=[1,45],$Vk=[1,40],$Vl=[1,44],$Vm=[1,47],$Vn=[1,51],$Vo=[1,52],$Vp=[1,53],$Vq=[1,42],$Vr=[1,46],$Vs=[1,49],$Vt=[1,50],$Vu=[1,41],$Vv=[1,57],$Vw=[1,62],$Vx=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vy=[1,66],$Vz=[1,65],$VA=[1,67],$VB=[20,21,23,69,70],$VC=[20,21,22,23,69,70],$VD=[20,21,22,23,47,69,70],$VE=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VF=[20,21,23],$VG=[20,21,23,46,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VH=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VI=[46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VJ=[1,115],$VK=[1,136],$VL=[1,137],$VM=[1,138],$VN=[1,139],$VO=[1,119],$VP=[1,110],$VQ=[1,111],$VR=[1,107],$VS=[1,131],$VT=[1,132],$VU=[1,133],$VV=[1,134],$VW=[1,135],$VX=[1,140],$VY=[1,141],$VZ=[1,113],$V_=[1,121],$V$=[1,124],$V01=[1,122],$V11=[1,123],$V21=[1,116],$V31=[1,129],$V41=[1,128],$V51=[1,112],$V61=[1,109],$V71=[1,118],$V81=[1,120],$V91=[1,125],$Va1=[1,126],$Vb1=[1,127],$Vc1=[1,130],$Vd1=[20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Ve1=[1,144],$Vf1=[1,148],$Vg1=[1,150],$Vh1=[1,151],$Vi1=[12,21,22,24],$Vj1=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,90,91,94,95,96,98,99,100,101,105,106,107,108,109,110],$Vk1=[20,21,22,23,26,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vl1=[22,91],$Vm1=[1,220],$Vn1=[1,224],$Vo1=[1,221],$Vp1=[1,218],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,217],$Vt1=[1,219],$Vu1=[1,222],$Vv1=[1,223],$Vw1=[1,225],$Vx1=[1,241],$Vy1=[20,21,23,91],$Vz1=[20,21,22,23,75,87,90,91,94,95,96,97,98,99,100]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"mermaidDoc":3,"graphConfig":4,"document":5,"directive":6,"line":7,"statement":8,"SEMI":9,"NEWLINE":10,"SPACE":11,"EOF":12,"openDirective":13,"typeDirective":14,"closeDirective":15,"separator":16,":":17,"argDirective":18,"GRAPH":19,"DIR":20,"FirstStmtSeperator":21,"ending":22,"endToken":23,"spaceList":24,"spaceListNewline":25,"verticeStatement":26,"styleStatement":27,"linkStyleStatement":28,"classDefStatement":29,"classStatement":30,"clickStatement":31,"subgraph":32,"text":33,"SQS":34,"SQE":35,"end":36,"link":37,"node":38,"vertex":39,"AMP":40,"STYLE_SEPARATOR":41,"idString":42,"PS":43,"PE":44,"(-":45,"-)":46,"STADIUMSTART":47,"STADIUMEND":48,"SUBROUTINESTART":49,"SUBROUTINEEND":50,"CYLINDERSTART":51,"CYLINDEREND":52,"DIAMOND_START":53,"DIAMOND_STOP":54,"TAGEND":55,"TRAPSTART":56,"TRAPEND":57,"INVTRAPSTART":58,"INVTRAPEND":59,"linkStatement":60,"arrowText":61,"STR":62,"START_LINK":63,"LINK":64,"PIPE":65,"textToken":66,"keywords":67,"STYLE":68,"LINKSTYLE":69,"CLASSDEF":70,"CLASS":71,"CLICK":72,"DOWN":73,"UP":74,"textNoTags":75,"textNoTagsToken":76,"DEFAULT":77,"stylesOpt":78,"alphaNum":79,"HEX":80,"numList":81,"INTERPOLATE":82,"NUM":83,"COMMA":84,"style":85,"styleComponent":86,"ALPHA":87,"COLON":88,"MINUS":89,"UNIT":90,"BRKT":91,"DOT":92,"PCT":93,"TAGSTART":94,"alphaNumToken":95,"idStringToken":96,"alphaNumStatement":97,"PUNCTUATION":98,"UNICODE_TEXT":99,"PLUS":100,"EQUALS":101,"MULT":102,"UNDERSCORE":103,"graphCodeTokens":104,"ARROW_CROSS":105,"ARROW_POINT":106,"ARROW_CIRCLE":107,"ARROW_OPEN":108,"QUOTE":109,"open_directive":110,"type_directive":111,"arg_directive":112,"close_directive":113,"$accept":0,"$end":1}, -terminals_: {2:"error",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",17:":",19:"GRAPH",20:"DIR",32:"subgraph",34:"SQS",35:"SQE",36:"end",40:"AMP",41:"STYLE_SEPARATOR",43:"PS",44:"PE",45:"(-",46:"-)",47:"STADIUMSTART",48:"STADIUMEND",49:"SUBROUTINESTART",50:"SUBROUTINEEND",51:"CYLINDERSTART",52:"CYLINDEREND",53:"DIAMOND_START",54:"DIAMOND_STOP",55:"TAGEND",56:"TRAPSTART",57:"TRAPEND",58:"INVTRAPSTART",59:"INVTRAPEND",62:"STR",63:"START_LINK",64:"LINK",65:"PIPE",68:"STYLE",69:"LINKSTYLE",70:"CLASSDEF",71:"CLASS",72:"CLICK",73:"DOWN",74:"UP",77:"DEFAULT",80:"HEX",82:"INTERPOLATE",83:"NUM",84:"COMMA",87:"ALPHA",88:"COLON",89:"MINUS",90:"UNIT",91:"BRKT",92:"DOT",93:"PCT",94:"TAGSTART",98:"PUNCTUATION",99:"UNICODE_TEXT",100:"PLUS",101:"EQUALS",102:"MULT",103:"UNDERSCORE",105:"ARROW_CROSS",106:"ARROW_POINT",107:"ARROW_CIRCLE",108:"ARROW_OPEN",109:"QUOTE",110:"open_directive",111:"type_directive",112:"arg_directive",113:"close_directive"}, -productions_: [0,[3,2],[3,2],[5,0],[5,2],[7,1],[7,1],[7,1],[7,1],[7,1],[6,4],[6,6],[4,2],[4,2],[4,3],[22,2],[22,1],[23,1],[23,1],[23,1],[21,1],[21,1],[21,2],[25,2],[25,2],[25,1],[25,1],[24,2],[24,1],[8,2],[8,2],[8,2],[8,2],[8,2],[8,2],[8,9],[8,6],[8,4],[8,1],[16,1],[16,1],[16,1],[26,3],[26,4],[26,2],[26,1],[38,1],[38,5],[38,3],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,1],[37,2],[37,3],[37,3],[37,1],[37,3],[60,1],[61,3],[33,1],[33,2],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[75,1],[75,2],[29,5],[29,5],[30,5],[31,5],[31,7],[31,5],[31,7],[27,5],[27,5],[28,5],[28,5],[28,9],[28,9],[28,7],[28,7],[81,1],[81,3],[78,1],[78,3],[85,1],[85,2],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[76,1],[76,1],[76,1],[76,1],[42,1],[42,2],[79,1],[79,2],[97,1],[97,1],[97,1],[97,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[13,1],[14,1],[18,1],[15,1]], +symbols_: {"error":2,"start":3,"mermaidDoc":4,"directive":5,"openDirective":6,"typeDirective":7,"closeDirective":8,"separator":9,":":10,"argDirective":11,"open_directive":12,"type_directive":13,"arg_directive":14,"close_directive":15,"graphConfig":16,"document":17,"line":18,"statement":19,"SEMI":20,"NEWLINE":21,"SPACE":22,"EOF":23,"GRAPH":24,"NODIR":25,"DIR":26,"FirstStmtSeperator":27,"ending":28,"endToken":29,"spaceList":30,"spaceListNewline":31,"verticeStatement":32,"styleStatement":33,"linkStyleStatement":34,"classDefStatement":35,"classStatement":36,"clickStatement":37,"subgraph":38,"text":39,"SQS":40,"SQE":41,"end":42,"link":43,"node":44,"vertex":45,"AMP":46,"STYLE_SEPARATOR":47,"idString":48,"PS":49,"PE":50,"(-":51,"-)":52,"STADIUMSTART":53,"STADIUMEND":54,"SUBROUTINESTART":55,"SUBROUTINEEND":56,"CYLINDERSTART":57,"CYLINDEREND":58,"DIAMOND_START":59,"DIAMOND_STOP":60,"TAGEND":61,"TRAPSTART":62,"TRAPEND":63,"INVTRAPSTART":64,"INVTRAPEND":65,"linkStatement":66,"arrowText":67,"TESTSTR":68,"START_LINK":69,"LINK":70,"PIPE":71,"textToken":72,"STR":73,"keywords":74,"STYLE":75,"LINKSTYLE":76,"CLASSDEF":77,"CLASS":78,"CLICK":79,"DOWN":80,"UP":81,"textNoTags":82,"textNoTagsToken":83,"DEFAULT":84,"stylesOpt":85,"alphaNum":86,"HEX":87,"numList":88,"INTERPOLATE":89,"NUM":90,"COMMA":91,"style":92,"styleComponent":93,"ALPHA":94,"COLON":95,"MINUS":96,"UNIT":97,"BRKT":98,"DOT":99,"PCT":100,"TAGSTART":101,"alphaNumToken":102,"idStringToken":103,"alphaNumStatement":104,"PUNCTUATION":105,"UNICODE_TEXT":106,"PLUS":107,"EQUALS":108,"MULT":109,"UNDERSCORE":110,"graphCodeTokens":111,"ARROW_CROSS":112,"ARROW_POINT":113,"ARROW_CIRCLE":114,"ARROW_OPEN":115,"QUOTE":116,"$accept":0,"$end":1}, +terminals_: {2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASSDEF",78:"CLASS",79:"CLICK",80:"DOWN",81:"UP",84:"DEFAULT",87:"HEX",89:"INTERPOLATE",90:"NUM",91:"COMMA",94:"ALPHA",95:"COLON",96:"MINUS",97:"UNIT",98:"BRKT",99:"DOT",100:"PCT",101:"TAGSTART",105:"PUNCTUATION",106:"UNICODE_TEXT",107:"PLUS",108:"EQUALS",109:"MULT",110:"UNDERSCORE",112:"ARROW_CROSS",113:"ARROW_POINT",114:"ARROW_CIRCLE",115:"ARROW_OPEN",116:"QUOTE"}, +productions_: [0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[88,1],[88,3],[85,1],[85,3],[92,1],[92,2],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[104,1],[104,1],[104,1],[104,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 3: +case 5: + yy.parseDirective('%%{', 'open_directive'); +break; +case 6: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 7: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 8: + yy.parseDirective('}%%', 'close_directive', 'flowchart'); +break; +case 10: this.$ = []; break; -case 4: +case 11: if($$[$0] !== []){ $$[$0-1].push($$[$0]); } this.$=$$[$0-1]; break; -case 5: case 71: case 84: case 119: case 131: case 133: case 134: +case 12: case 76: case 78: case 90: case 136: case 138: case 139: this.$=$$[$0]; break; -case 14: +case 19: + yy.setDirection('TB');this.$ = 'TB'; +break; +case 20: yy.setDirection($$[$0-1]);this.$ = $$[$0-1]; break; -case 29: +case 35: /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes break; -case 30: case 31: case 32: case 33: case 34: +case 36: case 37: case 38: case 39: case 40: this.$=[]; break; -case 35: +case 41: this.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]); break; -case 36: +case 42: this.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]); break; -case 37: +case 43: this.$=yy.addSubGraph(undefined,$$[$0-1],undefined); break; -case 42: +case 47: /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } break; -case 43: +case 48: /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } break; -case 44: +case 49: /*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] } break; -case 45: +case 50: /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] } break; -case 46: +case 51: /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]]; break; -case 47: +case 52: this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ break; -case 48: +case 53: this.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0]) break; -case 49: +case 54: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square'); break; -case 50: +case 55: this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle'); break; -case 51: +case 56: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse'); break; -case 52: +case 57: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium'); break; -case 53: +case 58: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine'); break; -case 54: +case 59: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder'); break; -case 55: +case 60: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round'); break; -case 56: +case 61: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond'); break; -case 57: +case 62: this.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon'); break; -case 58: +case 63: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd'); break; -case 59: +case 64: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid'); break; -case 60: +case 65: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid'); break; -case 61: +case 66: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right'); break; -case 62: +case 67: this.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left'); break; -case 63: +case 68: /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]); break; -case 64: +case 69: $$[$0-1].text = $$[$0];this.$ = $$[$0-1]; break; -case 65: case 66: +case 70: case 71: $$[$0-2].text = $$[$0-1];this.$ = $$[$0-2]; break; -case 67: +case 72: this.$ = $$[$0]; break; -case 68: +case 73: var inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {"type":inf.type,"stroke":inf.stroke,"text":$$[$0-1]}; break; -case 69: +case 74: var inf = yy.destructLink($$[$0]);this.$ = {"type":inf.type,"stroke":inf.stroke}; break; -case 70: +case 75: this.$ = $$[$0-1]; break; -case 72: case 85: case 132: +case 77: case 91: case 137: this.$=$$[$0-1]+''+$$[$0]; break; -case 86: case 87: +case 92: case 93: this.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]); break; -case 88: +case 94: this.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]); break; -case 89: +case 95: this.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined); break; -case 90: +case 96: this.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ; break; -case 91: +case 97: this.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined); break; -case 92: +case 98: this.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] ); break; -case 93: +case 99: this.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]); break; -case 94: case 96: +case 100: case 102: this.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]); break; -case 95: +case 101: this.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]); break; -case 97: +case 103: this.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]); break; -case 98: +case 104: this.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]); break; -case 99: +case 105: this.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]); break; -case 100: +case 106: this.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]); break; -case 101: case 103: +case 107: case 109: this.$ = [$$[$0]] break; -case 102: case 104: +case 108: case 110: $$[$0-2].push($$[$0]);this.$ = $$[$0-2]; break; -case 106: +case 112: this.$ = $$[$0-1] + $$[$0]; break; -case 129: +case 134: this.$=$$[$0] break; -case 130: +case 135: this.$=$$[$0-1]+''+$$[$0] break; -case 135: +case 140: this.$='v'; break; -case 136: +case 141: this.$='-'; break; -case 190: - yy.parseDirective('%%{', 'open_directive'); -break; -case 191: - yy.parseDirective($$[$0], 'type_directive'); -break; -case 192: - $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); -break; -case 193: - yy.parseDirective('}%%', 'close_directive', 'sequence'); -break; } }, -table: [{3:1,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{1:[3]},o($V4,$V5,{5:9}),{3:10,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{4:11,10:$V0,11:$V1,19:$V2},{4:12,10:$V0,11:$V1,19:$V2},{20:[1,13]},{14:14,111:[1,15]},{111:[2,190]},{1:[2,1],6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{1:[2,2]},o($V4,[2,12]),o($V4,[2,13]),{9:[1,55],10:[1,56],11:$Vv,21:54,24:57},{15:59,17:[1,60],113:$Vw},o([17,113],[2,191]),o($Vx,[2,4]),o($Vx,[2,5]),o($Vx,[2,6]),o($Vx,[2,7]),o($Vx,[2,8]),o($Vx,[2,9]),{9:$Vy,10:$Vz,12:$VA,16:62,37:63,60:67,63:[1,68],64:[1,69]},{9:$Vy,10:$Vz,12:$VA,16:70},{9:$Vy,10:$Vz,12:$VA,16:71},{9:$Vy,10:$Vz,12:$VA,16:72},{9:$Vy,10:$Vz,12:$VA,16:73},{9:$Vy,10:$Vz,12:$VA,16:74},{9:$Vy,10:$Vz,11:[1,75],12:$VA,16:76},o($Vx,[2,38]),o($VB,[2,45],{24:77,11:$Vv}),{11:[1,78]},{11:[1,79]},{11:[1,80]},{11:[1,81]},{11:[1,82]},o($VC,[2,46],{41:[1,83]}),o($VD,[2,63],{96:94,34:[1,84],40:$Vb,43:[1,85],45:[1,86],47:[1,87],49:[1,88],51:[1,89],53:[1,90],55:[1,91],56:[1,92],58:[1,93],73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),o($VE,[2,129]),o($VE,[2,150]),o($VE,[2,151]),o($VE,[2,152]),o($VE,[2,153]),o($VE,[2,154]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($V4,[2,14]),o($V4,[2,20]),o($V4,[2,21]),{10:[1,95]},o($VF,[2,28],{24:96,11:$Vv}),{9:$Vy,10:$Vz,12:$VA,16:97},{18:98,112:[1,99]},o($VG,[2,193]),o($Vx,[2,29]),{38:100,39:36,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},o($VH,[2,39]),o($VH,[2,40]),o($VH,[2,41]),o($VI,[2,67],{61:101,62:[1,102],65:[1,103]}),{11:$VJ,19:$VK,20:$VL,32:$VM,33:104,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o([40,62,65,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,69]),o($Vx,[2,30]),o($Vx,[2,31]),o($Vx,[2,32]),o($Vx,[2,33]),o($Vx,[2,34]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:141,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:142}),o($VB,[2,44],{40:$Ve1}),{20:$Vf1,40:$VO,73:$Vg1,79:144,80:[1,145],83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{77:[1,151],81:152,83:[1,153]},{20:$Vf1,40:$VO,73:$Vg1,77:[1,154],79:155,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:156,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:157,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{40:$Vb,42:158,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$VJ,19:$VK,20:$VL,32:$VM,33:159,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:161,36:$VN,40:$VO,43:[1,160],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:162,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:163,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:164,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:165,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:166,36:$VN,40:$VO,53:[1,167],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:168,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:169,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:170,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VE,[2,130]),o($V4,[2,22]),o($VF,[2,27]),o($VH,[2,10]),{15:171,113:$Vw},{113:[2,192]},o($VB,[2,42],{24:172,11:$Vv}),o($VI,[2,64],{11:[1,173]}),{11:[1,174]},{11:$VJ,19:$VK,20:$VL,32:$VM,33:175,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,64:[1,176],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vi1,[2,71]),o($Vi1,[2,118]),o($Vi1,[2,119]),o($Vi1,[2,120]),o($Vi1,[2,121]),o($Vi1,[2,122]),o($Vi1,[2,123]),o($Vi1,[2,124]),o($Vi1,[2,125]),o($Vi1,[2,126]),o($Vi1,[2,127]),o($Vi1,[2,128]),o($Vi1,[2,137]),o($Vi1,[2,138]),o($Vi1,[2,139]),o($Vi1,[2,140]),o($Vi1,[2,141]),o($Vi1,[2,142]),o($Vi1,[2,143]),o($Vi1,[2,144]),o($Vi1,[2,145]),o($Vi1,[2,146]),o($Vi1,[2,147]),o($Vi1,[2,148]),o($Vi1,[2,149]),o($Vi1,[2,73]),o($Vi1,[2,74]),o($Vi1,[2,75]),o($Vi1,[2,76]),o($Vi1,[2,77]),o($Vi1,[2,78]),o($Vi1,[2,79]),o($Vi1,[2,80]),o($Vi1,[2,81]),o($Vi1,[2,82]),o($Vi1,[2,83]),{9:$Vy,10:$Vz,11:$VJ,12:$VA,16:179,19:$VK,20:$VL,32:$VM,34:[1,178],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,180],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vv,24:181},{11:[1,182],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,184]},o($Vj1,[2,131]),o($Vj1,[2,133]),o($Vj1,[2,134]),o($Vj1,[2,135]),o($Vj1,[2,136]),{11:[1,185]},{11:[1,186],84:[1,187]},o($Vk1,[2,101]),{11:[1,188]},{11:[1,189],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,190],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,191],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VC,[2,48],{96:94,40:$Vb,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,192],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:193,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,194],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,46:[1,195],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,48:[1,196],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,50:[1,197],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,52:[1,198],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,199],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:200,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,201],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,202],59:[1,203],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,205],59:[1,204],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{9:$Vy,10:$Vz,12:$VA,16:206},o($VB,[2,43],{40:$Ve1}),o($VI,[2,66]),o($VI,[2,65]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,65:[1,207],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VI,[2,68]),o($Vi1,[2,72]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:208,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:209}),o($Vx,[2,37]),{39:210,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$Vl1,68:$Vm1,78:211,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vj1,[2,132]),{11:$Vl1,68:$Vm1,78:225,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:226,80:$Vn1,82:[1,227],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:228,80:$Vn1,82:[1,229],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{83:[1,230]},{11:$Vl1,68:$Vm1,78:231,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:232,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{20:$Vf1,40:$VO,73:$Vg1,79:233,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,62:[1,235],73:$Vg1,79:234,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,49]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,236],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,55]),o($VD,[2,51]),o($VD,[2,52]),o($VD,[2,53]),o($VD,[2,54]),o($VD,[2,56]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,237],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),o($VD,[2,60]),o($VD,[2,62]),o($VH,[2,11]),o([11,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,70]),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,238],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,239],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},o($VC,[2,47]),o($VG,[2,93],{84:$Vw1}),o($Vx1,[2,103],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($Vy1,[2,105]),o($Vy1,[2,107]),o($Vy1,[2,108]),o($Vy1,[2,109]),o($Vy1,[2,110]),o($Vy1,[2,111]),o($Vy1,[2,112]),o($Vy1,[2,113]),o($Vy1,[2,114]),o($Vy1,[2,115]),o($Vy1,[2,116]),o($Vy1,[2,117]),o($VG,[2,94],{84:$Vw1}),o($VG,[2,95],{84:$Vw1}),{11:[1,242]},o($VG,[2,96],{84:$Vw1}),{11:[1,243]},o($Vk1,[2,102]),o($VG,[2,86],{84:$Vw1}),o($VG,[2,87],{84:$Vw1}),o($VG,[2,88],{95:148,97:183,20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,89],{95:148,97:183,11:[1,244],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,91],{11:[1,245]}),{44:[1,246]},{54:[1,247]},{9:$Vy,10:$Vz,12:$VA,16:248},o($Vx,[2,36]),{11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,85:249,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vy1,[2,106]),{20:$Vf1,40:$VO,73:$Vg1,79:250,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:251,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{62:[1,252]},{62:[1,253]},o($VD,[2,50]),o($VD,[2,57]),o($Vd1,$V5,{5:254}),o($Vx1,[2,104],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($VG,[2,99],{95:148,97:183,11:[1,255],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,100],{95:148,97:183,11:[1,256],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,90]),o($VG,[2,92]),{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,257],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vl1,68:$Vm1,78:258,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:259,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vx,[2,35]),o($VG,[2,97],{84:$Vw1}),o($VG,[2,98],{84:$Vw1})], -defaultActions: {8:[2,190],10:[2,2],99:[2,192]}, +table: [{3:1,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},o($V4,$V5,{17:11}),{7:12,13:[1,13]},{16:14,21:$V1,22:$V2,24:$V3},{16:15,21:$V1,22:$V2,24:$V3},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{8:55,10:[1,56],15:$Vv},o([10,15],[2,6]),o($V4,[2,17]),o($V4,[2,18]),o($V4,[2,19]),{20:[1,59],21:[1,60],22:$Vw,27:58,30:61},o($Vx,[2,11]),o($Vx,[2,12]),o($Vx,[2,13]),o($Vx,[2,14]),o($Vx,[2,15]),o($Vx,[2,16]),{9:63,20:$Vy,21:$Vz,23:$VA,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:$Vy,21:$Vz,23:$VA},{9:72,20:$Vy,21:$Vz,23:$VA},{9:73,20:$Vy,21:$Vz,23:$VA},{9:74,20:$Vy,21:$Vz,23:$VA},{9:75,20:$Vy,21:$Vz,23:$VA},{9:77,20:$Vy,21:$Vz,22:[1,76],23:$VA},o($VB,[2,50],{30:78,22:$Vw}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},o($VC,[2,51],{47:[1,84]}),o($VD,[2,68],{103:95,40:[1,85],46:$Vb,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),o($VE,[2,134]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($VE,[2,165]),o($VE,[2,166]),o($VE,[2,167]),o($VE,[2,168]),o($VE,[2,169]),{9:96,20:$Vy,21:$Vz,23:$VA},{11:97,14:[1,98]},o($VF,[2,8]),o($V4,[2,20]),o($V4,[2,26]),o($V4,[2,27]),{21:[1,99]},o($VG,[2,34],{30:100,22:$Vw}),o($Vx,[2,35]),{44:101,45:37,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VH,[2,44]),o($VH,[2,45]),o($VH,[2,46]),o($VI,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$VJ,24:$VK,26:$VL,38:$VM,39:105,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o([46,68,71,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,74]),o($Vx,[2,36]),o($Vx,[2,37]),o($Vx,[2,38]),o($Vx,[2,39]),o($Vx,[2,40]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:142,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:143}),o($VB,[2,49],{46:$Ve1}),{26:$Vf1,46:$VO,80:$Vg1,86:145,87:[1,146],90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{84:[1,152],88:153,90:[1,154]},{26:$Vf1,46:$VO,80:$Vg1,84:[1,155],86:156,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:157,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:158,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{46:$Vb,48:159,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$VJ,24:$VK,26:$VL,38:$VM,39:160,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:162,42:$VN,46:$VO,49:[1,161],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:163,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:164,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:165,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:166,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:167,42:$VN,46:$VO,59:[1,168],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:169,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:170,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:171,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VE,[2,135]),o($Vi1,[2,3]),{8:172,15:$Vv},{15:[2,7]},o($V4,[2,28]),o($VG,[2,33]),o($VB,[2,47],{30:173,22:$Vw}),o($VI,[2,69],{22:[1,174]}),{22:[1,175]},{22:$VJ,24:$VK,26:$VL,38:$VM,39:176,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,70:[1,177],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vj1,[2,76]),o($Vj1,[2,78]),o($Vj1,[2,124]),o($Vj1,[2,125]),o($Vj1,[2,126]),o($Vj1,[2,127]),o($Vj1,[2,128]),o($Vj1,[2,129]),o($Vj1,[2,130]),o($Vj1,[2,131]),o($Vj1,[2,132]),o($Vj1,[2,133]),o($Vj1,[2,142]),o($Vj1,[2,143]),o($Vj1,[2,144]),o($Vj1,[2,145]),o($Vj1,[2,146]),o($Vj1,[2,147]),o($Vj1,[2,148]),o($Vj1,[2,149]),o($Vj1,[2,150]),o($Vj1,[2,151]),o($Vj1,[2,152]),o($Vj1,[2,153]),o($Vj1,[2,154]),o($Vj1,[2,79]),o($Vj1,[2,80]),o($Vj1,[2,81]),o($Vj1,[2,82]),o($Vj1,[2,83]),o($Vj1,[2,84]),o($Vj1,[2,85]),o($Vj1,[2,86]),o($Vj1,[2,87]),o($Vj1,[2,88]),o($Vj1,[2,89]),{9:180,20:$Vy,21:$Vz,22:$VJ,23:$VA,24:$VK,26:$VL,38:$VM,40:[1,179],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,181],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vw,30:182},{22:[1,183],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,185]},o($Vk1,[2,136]),o($Vk1,[2,138]),o($Vk1,[2,139]),o($Vk1,[2,140]),o($Vk1,[2,141]),{22:[1,186]},{22:[1,187],91:[1,188]},o($Vl1,[2,107]),{22:[1,189]},{22:[1,190],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,191],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,192],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VC,[2,53],{103:95,46:$Vb,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,193],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:194,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,195],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,52:[1,196],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,54:[1,197],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,56:[1,198],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,58:[1,199],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,200],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:201,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,202],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,203],65:[1,204],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,206],65:[1,205],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{9:207,20:$Vy,21:$Vz,23:$VA},o($VB,[2,48],{46:$Ve1}),o($VI,[2,71]),o($VI,[2,70]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,71:[1,208],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VI,[2,73]),o($Vj1,[2,77]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:209,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:210}),o($Vx,[2,43]),{45:211,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:212,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vk1,[2,137]),{22:$Vm1,75:$Vn1,85:226,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:227,87:$Vo1,89:[1,228],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:229,87:$Vo1,89:[1,230],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{90:[1,231]},{22:$Vm1,75:$Vn1,85:232,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:233,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{26:$Vf1,46:$VO,80:$Vg1,86:234,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,73:[1,236],80:$Vg1,86:235,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,54]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,237],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,60]),o($VD,[2,56]),o($VD,[2,57]),o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,238],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,63]),o($VD,[2,64]),o($VD,[2,66]),o($VD,[2,65]),o($VD,[2,67]),o($Vi1,[2,4]),o([22,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,75]),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,239],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,240],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VC,[2,52]),o($VF,[2,99],{91:$Vx1}),o($Vy1,[2,109],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($Vz1,[2,111]),o($Vz1,[2,113]),o($Vz1,[2,114]),o($Vz1,[2,115]),o($Vz1,[2,116]),o($Vz1,[2,117]),o($Vz1,[2,118]),o($Vz1,[2,119]),o($Vz1,[2,120]),o($Vz1,[2,121]),o($Vz1,[2,122]),o($Vz1,[2,123]),o($VF,[2,100],{91:$Vx1}),o($VF,[2,101],{91:$Vx1}),{22:[1,243]},o($VF,[2,102],{91:$Vx1}),{22:[1,244]},o($Vl1,[2,108]),o($VF,[2,92],{91:$Vx1}),o($VF,[2,93],{91:$Vx1}),o($VF,[2,94],{102:149,104:184,26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,95],{102:149,104:184,22:[1,245],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:$Vy,21:$Vz,23:$VA},o($Vx,[2,42]),{22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,92:250,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vz1,[2,112]),{26:$Vf1,46:$VO,80:$Vg1,86:251,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:252,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{73:[1,253]},{73:[1,254]},o($VD,[2,55]),o($VD,[2,62]),o($Vd1,$V5,{17:255}),o($Vy1,[2,110],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($VF,[2,105],{102:149,104:184,22:[1,256],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,106],{102:149,104:184,22:[1,257],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,96]),o($VF,[2,98]),{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,258],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:259,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:260,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vx,[2,41]),o($VF,[2,103],{91:$Vx1}),o($VF,[2,104],{91:$Vx1})], +defaultActions: {2:[2,1],9:[2,5],10:[2,2],98:[2,7]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -59077,15 +59121,15 @@ options: {}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0: this.begin('open_directive'); return 110; +case 0: this.begin('open_directive'); return 12; break; -case 1: this.begin('type_directive'); return 111; +case 1: this.begin('type_directive'); return 13; break; -case 2: this.popState(); this.begin('arg_directive'); return 17; +case 2: this.popState(); this.begin('arg_directive'); return 10; break; -case 3: this.popState(); this.popState(); return 113; +case 3: this.popState(); this.popState(); return 15; break; -case 4:return 112; +case 4:return 14; break; case 5:/* skip comments */ break; @@ -59097,224 +59141,226 @@ case 8:this.popState(); break; case 9:return "STR"; break; -case 10:return 68; +case 10:return 75; +break; +case 11:return 84; break; -case 11:return 77; +case 12:return 76; break; -case 12:return 69; +case 13:return 89; break; -case 13:return 82; +case 14:return 77; break; -case 14:return 70; +case 15:return 78; break; -case 15:return 71; +case 16:return 79; break; -case 16:return 72; +case 17:if(yy.lex.firstGraph()){this.begin("dir");} return 24; break; -case 17:if(yy.lex.firstGraph()){this.begin("dir");} return 19; +case 18:if(yy.lex.firstGraph()){this.begin("dir");} return 24; break; -case 18:if(yy.lex.firstGraph()){this.begin("dir");} return 19; +case 19:return 38; break; -case 19:return 32; +case 20:return 42; break; -case 20:return 36; +case 21: this.popState(); return 25; break; -case 21: this.popState(); return 20; +case 22: this.popState(); return 26; break; -case 22: this.popState(); return 20; +case 23: this.popState(); return 26; break; -case 23: this.popState(); return 20; +case 24: this.popState(); return 26; break; -case 24: this.popState(); return 20; +case 25: this.popState(); return 26; break; -case 25: this.popState(); return 20; +case 26: this.popState(); return 26; break; -case 26: this.popState(); return 20; +case 27: this.popState(); return 26; break; -case 27: this.popState(); return 20; +case 28: this.popState(); return 26; break; -case 28: this.popState(); return 20; +case 29: this.popState(); return 26; break; -case 29: this.popState(); return 20; +case 30: this.popState(); return 26; break; -case 30: this.popState(); return 20; +case 31: this.popState(); return 26; break; -case 31: return 83; +case 32: return 90; break; -case 32:return 91; +case 33:return 98; break; -case 33:return 41; +case 34:return 47; break; -case 34:return 88; +case 35:return 95; break; -case 35:return 40; +case 36:return 46; break; -case 36:return 9; +case 37:return 20; break; -case 37:return 84; +case 38:return 91; break; -case 38:return 102; +case 39:return 109; break; -case 39:return 64; +case 40:return 70; break; -case 40:return 64; +case 41:return 70; break; -case 41:return 64; +case 42:return 70; break; -case 42:return 64; +case 43:return 70; break; -case 43:return 64; +case 44:return 70; break; -case 44:return 64; +case 45:return 70; break; -case 45:return 64; +case 46:return 70; break; -case 46:return 64; +case 47:return 70; break; -case 47:return 64; +case 48:return 70; break; -case 48:return 64; +case 49:return 70; break; -case 49:return 64; +case 50:return 70; break; -case 50:return 64; +case 51:return 70; break; -case 51:return 64; +case 52:return 70; break; -case 52:return 64; +case 53:return 70; break; -case 53:return 64; +case 54:return 70; break; -case 54:return 64; +case 55:return 70; break; -case 55:return 64; +case 56:return 70; break; -case 56:return 64; +case 57:return 70; break; -case 57:return 64; +case 58:return 70; break; -case 58:return 64; +case 59:return 70; break; -case 59:return 64; +case 60:return 70; break; -case 60:return 64; +case 61:return 70; break; -case 61:return 64; +case 62:return 70; break; -case 62:return 64; +case 63:return 70; break; -case 63:return 64; +case 64:return 70; break; -case 64:return 64; +case 65:return 70; break; -case 65:return 64; +case 66:return 70; break; -case 66:return 64; +case 67:return 70; break; -case 67:return 63; +case 68:return 69; break; -case 68:return 63; +case 69:return 69; break; -case 69:return 63; +case 70:return 69; break; -case 70:return 63; +case 71:return 69; break; -case 71:return 63; +case 72:return 69; break; -case 72:return 63; +case 73:return 69; break; -case 73:return 63; +case 74:return 69; break; -case 74:return 63; +case 75:return 69; break; -case 75:return 63; +case 76:return 69; break; -case 76:return 63; +case 77:return 69; break; -case 77:return 63; +case 78:return 69; break; -case 78:return 63; +case 79:return 69; break; -case 79:return 45; +case 80:return 51; break; -case 80:return 46; +case 81:return 52; break; -case 81:return 47; +case 82:return 53; break; -case 82:return 48; +case 83:return 54; break; -case 83:return 49; +case 84:return 55; break; -case 84:return 50; +case 85:return 56; break; -case 85:return 51; +case 86:return 57; break; -case 86:return 52; +case 87:return 58; break; -case 87:return 89; +case 88:return 96; break; -case 88:return 92; +case 89:return 99; break; -case 89:return 103; +case 90:return 110; break; -case 90:return 100; +case 91:return 107; break; -case 91:return 93; +case 92:return 100; break; -case 92:return 101; +case 93:return 108; break; -case 93:return 101; +case 94:return 108; break; -case 94:return 94; +case 95:return 101; break; -case 95:return 55; +case 96:return 61; break; -case 96:return 74; +case 97:return 81; break; -case 97:return 'SEP'; +case 98:return 'SEP'; break; -case 98:return 73; +case 99:return 80; break; -case 99:return 87; +case 100:return 94; break; -case 100:return 57; +case 101:return 63; break; -case 101:return 56; +case 102:return 62; break; -case 102:return 59; +case 103:return 65; break; -case 103:return 58; +case 104:return 64; break; -case 104:return 98; +case 105:return 105; break; -case 105:return 99; +case 106:return 106; break; -case 106:return 65; +case 107:return 71; break; -case 107:return 43; +case 108:return 49; break; -case 108:return 44; +case 109:return 50; break; -case 109:return 34; +case 110:return 40; break; -case 110:return 35; +case 111:return 41; break; -case 111:return 53 +case 112:return 59 break; -case 112:return 54 +case 113:return 60 break; -case 113:return 109; +case 114:return 116; break; -case 114:return 10; +case 115:return 21; break; -case 115:return 11; +case 116:return 22; break; -case 116:return 12; +case 117:return 23; break; } }, -rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%[^\n]*)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\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[!"#$%&'*+,-.`?\\_\/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r|\n|\r\n)+)/,/^(?:\s)/,/^(?:$)/], -conditions: {"open_directive":{"rules":[1],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"vertex":{"rules":[],"inclusive":false},"dir":{"rules":[21,22,23,24,25,26,27,28,29,30],"inclusive":false},"string":{"rules":[8,9],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],"inclusive":true}} +rules: [/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*<-->\s*)/,/^(?:\s*[x]--[x]\s*)/,/^(?:\s*[o]--[o]\s*)/,/^(?:\s*[o]\.-[o]\s*)/,/^(?:\s*<==>\s*)/,/^(?:\s*[o]==[o]\s*)/,/^(?:\s*[x]==[x]\s*)/,/^(?:\s*[x].-[x]\s*)/,/^(?:\s*[x]-\.-[x]\s*)/,/^(?:\s*<\.->\s*)/,/^(?:\s*<-\.->\s*)/,/^(?:\s*[o]-\.-[o]\s*)/,/^(?:\s*--[o]\s*)/,/^(?:\s*---\s*)/,/^(?:\s*-\.-[x]\s*)/,/^(?:\s*-\.->\s*)/,/^(?:\s*-\.-[o]\s*)/,/^(?:\s*-\.-\s*)/,/^(?:\s*.-[x]\s*)/,/^(?:\s*\.->\s*)/,/^(?:\s*\.-[o]\s*)/,/^(?:\s*\.-\s*)/,/^(?:\s*==[x]\s*)/,/^(?:\s*==>\s*)/,/^(?:\s*==[o]\s*)/,/^(?:\s*==[\=]\s*)/,/^(?:\s*<--\s*)/,/^(?:\s*[x]--\s*)/,/^(?:\s*[o]--\s*)/,/^(?:\s*<-\.\s*)/,/^(?:\s*[x]-\.\s*)/,/^(?:\s*[o]-\.\s*)/,/^(?:\s*<==\s*)/,/^(?:\s*[x]==\s*)/,/^(?:\s*[o]==\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"vertex":{"rules":[],"inclusive":false},"dir":{"rules":[21,22,23,24,25,26,27,28,29,30,31],"inclusive":false},"string":{"rules":[8,9],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],"inclusive":true}} }); return lexer; })(); @@ -59357,7 +59403,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return ".label {\n font-family: ".concat(options.fontFamily, ";\n color: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: ").concat(options.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.secondBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(options.fontFamily, ";\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n"); + return ".label {\n font-family: ".concat(options.fontFamily, ";\n color: ").concat(options.textColor, ";\n }\n\n .label text {\n fill: ").concat(options.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(options.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(options.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(options.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(options.clusterBkg, ";\n stroke: ").concat(options.clusterBorder, ";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(options.titleColor, ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(options.fontFamily, ";\n font-size: 12px;\n background: ").concat(options.secondBkg, ";\n border: 1px solid ").concat(options.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -59368,11 +59414,12 @@ var getStyles = function getStyles(options) { /*!***************************************!*\ !*** ./src/diagrams/gantt/ganttDb.js ***! \***************************************/ -/*! exports provided: clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */ +/*! exports provided: parseDirective, clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAxisFormat", function() { return setAxisFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAxisFormat", function() { return getAxisFormat; }); @@ -59403,6 +59450,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } @@ -59416,6 +59464,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr + var dateFormat = ''; var axisFormat = ''; var todayMarker = ''; @@ -59429,6 +59478,9 @@ var funs = []; var inclusiveEndDates = false; // The serial order of the task in the script var lastOrder = 0; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_5__["default"].parseDirective(this, statement, context, type); +}; var clear = function clear() { sections = []; tasks = []; @@ -59880,7 +59932,7 @@ var compileTasks = function compileTasks() { var setLink = function setLink(ids, _linkStr) { var linkStr = _linkStr; - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().securityLevel !== 'loose') { linkStr = Object(_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_1__["sanitizeUrl"])(_linkStr); } @@ -59912,7 +59964,7 @@ var setClass = function setClass(ids, className) { }; var setClickFun = function setClickFun(id, functionName, functionArgs) { - if (Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().securityLevel !== 'loose') { + if (_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().securityLevel !== 'loose') { return; } @@ -60008,6 +60060,10 @@ var bindFunctions = function bindFunctions(element) { }); }; /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().gantt; + }, clear: clear, setDateFormat: setDateFormat, getDateFormat: getDateFormat, @@ -60538,90 +60594,102 @@ var draw = function draw(text, id) { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,5],$V2=[7,9,11,12,13,14,15,16,17,18,20,27,32],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,23],$Vb=[1,25],$Vc=[1,28],$Vd=[5,7,9,11,12,13,14,15,16,17,18,20,27,32]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"gantt":4,"document":5,"EOF":6,"line":7,"SPACE":8,"statement":9,"NL":10,"dateFormat":11,"inclusiveEndDates":12,"axisFormat":13,"excludes":14,"todayMarker":15,"title":16,"section":17,"clickStatement":18,"taskTxt":19,"taskData":20,"click":21,"callbackname":22,"callbackargs":23,"href":24,"clickStatementDebug":25,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"inclusiveEndDates",13:"axisFormat",14:"excludes",15:"todayMarker",16:"title",17:"section",19:"taskTxt",20:"taskData",21:"click",22:"callbackname",23:"callbackargs",24:"href"}, -productions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]], +symbols_: {"error":2,"start":3,"directive":4,"gantt":5,"document":6,"EOF":7,"line":8,"SPACE":9,"statement":10,"NL":11,"dateFormat":12,"inclusiveEndDates":13,"axisFormat":14,"excludes":15,"todayMarker":16,"title":17,"section":18,"clickStatement":19,"taskTxt":20,"taskData":21,"openDirective":22,"typeDirective":23,"closeDirective":24,":":25,"argDirective":26,"click":27,"callbackname":28,"callbackargs":29,"href":30,"clickStatementDebug":31,"open_directive":32,"type_directive":33,"arg_directive":34,"close_directive":35,"$accept":0,"$end":1}, +terminals_: {2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"}, +productions_: [0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 1: +case 2: return $$[$0-1]; break; -case 2: +case 3: this.$ = [] break; -case 3: +case 4: $$[$0-1].push($$[$0]);this.$ = $$[$0-1] break; -case 4: case 5: +case 5: case 6: this.$ = $$[$0] break; -case 6: case 7: +case 7: case 8: this.$=[]; break; -case 8: +case 9: yy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11); break; -case 9: +case 10: yy.enableInclusiveEndDates();this.$=$$[$0].substr(18); break; -case 10: +case 11: yy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11); break; -case 11: +case 12: yy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9); break; -case 12: +case 13: yy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12); break; -case 13: +case 14: yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6); break; -case 14: +case 15: yy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8); break; -case 16: +case 17: yy.addTask($$[$0-1],$$[$0]);this.$='task'; break; -case 17: +case 21: this.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null); break; -case 18: +case 22: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]); break; -case 19: +case 23: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]); break; -case 20: +case 24: this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]); break; -case 21: +case 25: this.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]); break; -case 22: +case 26: this.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]); break; -case 23: +case 27: this.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]); break; -case 24: case 30: +case 28: case 34: this.$=$$[$0-1] + ' ' + $$[$0]; break; -case 25: case 26: case 28: +case 29: case 30: case 32: this.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0]; break; -case 27: case 29: +case 31: case 33: this.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0]; break; +case 35: + yy.parseDirective('%%{', 'open_directive'); +break; +case 36: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 37: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 38: + yy.parseDirective('}%%', 'close_directive', 'gantt'); +break; } }, -table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])], -defaultActions: {}, +table: [{3:1,4:2,5:$V0,22:4,32:$V1},{1:[3]},{3:6,4:2,5:$V0,22:4,32:$V1},o($V2,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},{24:26,25:[1,27],35:$Vc},o([25,35],[2,36]),o($V2,[2,8],{1:[2,2]}),o($V2,[2,4]),{4:24,10:29,12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,9]),o($V2,[2,10]),o($V2,[2,11]),o($V2,[2,12]),o($V2,[2,13]),o($V2,[2,14]),o($V2,[2,15]),o($V2,[2,16]),{21:[1,30]},o($V2,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},o($V2,[2,5]),o($V2,[2,17]),o($V2,[2,21],{29:[1,36],30:[1,37]}),o($V2,[2,27],{28:[1,38]}),o($Vd,[2,19]),{24:39,35:$Vc},{35:[2,37]},o($V2,[2,22],{30:[1,40]}),o($V2,[2,23]),o($V2,[2,25],{29:[1,41]}),{11:[1,42]},o($V2,[2,24]),o($V2,[2,26]),o($Vd,[2,20])], +defaultActions: {5:[2,35],6:[2,1],28:[2,38],35:[2,37]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -61100,70 +61168,86 @@ options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:return 10; +case 0: this.begin('open_directive'); return 32; break; -case 1:/* skip whitespace */ +case 1: this.begin('type_directive'); return 33; break; -case 2:/* skip comments */ +case 2: this.popState(); this.begin('arg_directive'); return 25; break; -case 3:/* skip comments */ +case 3: this.popState(); this.popState(); return 35; +break; +case 4:return 34; +break; +case 5:/* skip comments */ break; -case 4:this.begin("href"); +case 6:/* skip comments */ break; -case 5:this.popState(); +case 7:/* do nothing */ break; -case 6:return 24; +case 8:return 11; break; -case 7:this.begin("callbackname"); +case 9:/* skip whitespace */ break; -case 8:this.popState(); +case 10:/* skip comments */ break; -case 9:this.popState(); this.begin("callbackargs"); +case 11:/* skip comments */ break; -case 10:return 22; +case 12:this.begin("href"); break; -case 11:this.popState(); +case 13:this.popState(); break; -case 12:return 23; +case 14:return 30; break; -case 13:this.begin("click"); +case 15:this.begin("callbackname"); break; -case 14:this.popState(); +case 16:this.popState(); break; -case 15:return 21; +case 17:this.popState(); this.begin("callbackargs"); break; -case 16:return 4; +case 18:return 28; break; -case 17:return 11; +case 19:this.popState(); +break; +case 20:return 29; +break; +case 21:this.begin("click"); +break; +case 22:this.popState(); break; -case 18:return 12; +case 23:return 27; break; -case 19:return 13; +case 24:return 5; break; -case 20:return 14; +case 25:return 12; break; -case 21:return 15; +case 26:return 13; break; -case 22:return 'date'; +case 27:return 14; break; -case 23:return 16; +case 28:return 15; break; -case 24:return 17; +case 29:return 16; break; -case 25:return 19; +case 30:return 'date'; break; -case 26:return 20; +case 31:return 17; break; -case 27:return ':'; +case 32:return 18; break; -case 28:return 6; +case 33:return 20; break; -case 29:return 'INVALID'; +case 34:return 21; +break; +case 35:return 25; +break; +case 36:return 7; +break; +case 37:return 'INVALID'; break; } }, -rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"callbackargs":{"rules":[11,12],"inclusive":false},"callbackname":{"rules":[8,9,10],"inclusive":false},"href":{"rules":[5,6],"inclusive":false},"click":{"rules":[14,15],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"callbackargs":{"rules":[19,20],"inclusive":false},"callbackname":{"rules":[16,17,18],"inclusive":false},"href":{"rules":[13,14],"inclusive":false},"click":{"rules":[22,23],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"inclusive":true}} }); return lexer; })(); @@ -61206,7 +61290,7 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ".concat(options.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(options.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(options.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(options.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(options.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(options.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(options.taskBkgColor, ";\n stroke: ").concat(options.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke: ").concat(options.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(options.doneTaskBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(options.taskTextDarkColor, " ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"); + return "\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ".concat(options.sectionBkgColor, ";\n }\n\n .section2 {\n fill: ").concat(options.sectionBkgColor2, ";\n }\n\n .section1,\n .section3 {\n fill: ").concat(options.altSectionBkgColor, ";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle1 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle2 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle3 {\n fill: ").concat(options.titleColor, ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(options.gridColor, ";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(options.fontFamily, ";\n fill: ").concat(options.textColor, ";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(options.todayLineColor, ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(options.taskTextDarkColor, ";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(options.taskTextClickableColor, " !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(options.taskTextColor, ";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(options.taskBkgColor, ";\n stroke: ").concat(options.taskBorderColor, ";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(options.taskTextOutsideColor, ";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke: ").concat(options.activeTaskBorderColor, ";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(options.doneTaskBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.critBkgColor, ";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.activeTaskBkgColor, ";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(options.critBorderColor, ";\n fill: ").concat(options.doneTaskBkgColor, ";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(options.taskTextDarkColor, " !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(options.textColor, " ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -63373,32 +63457,42 @@ var getStyles = function getStyles() { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[1,6],$V3=[1,7],$V4=[1,9],$V5=[1,10,12,19,20,21,22],$V6=[1,6,10,12,19,20,21,22],$V7=[19,20,21],$V8=[1,22],$V9=[6,19,20,21,22]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"pie":4,"document":5,"EOF":6,"line":7,"statement":8,"NL":9,"STR":10,"VALUE":11,"title":12,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"pie",6:"EOF",9:"NL",10:"STR",11:"VALUE",12:"title"}, -productions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]], +symbols_: {"error":2,"start":3,"eol":4,"directive":5,"PIE":6,"document":7,"line":8,"statement":9,"txt":10,"value":11,"title":12,"title_value":13,"openDirective":14,"typeDirective":15,"closeDirective":16,":":17,"argDirective":18,"NEWLINE":19,";":20,"EOF":21,"open_directive":22,"type_directive":23,"arg_directive":24,"close_directive":25,"$accept":0,"$end":1}, +terminals_: {2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"}, +productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 4: - -break; case 6: - - /*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/ - yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); + this.$ = $$[$0-1] break; -case 7: -yy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6); +case 8: + yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); +break; +case 9: + this.$=$$[$0].trim();yy.setTitle(this.$); +break; +case 16: + yy.parseDirective('%%{', 'open_directive'); +break; +case 17: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 18: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 19: + yy.parseDirective('}%%', 'close_directive', 'pie'); break; } }, -table: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])], -defaultActions: {4:[2,1]}, +table: [{3:1,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{1:[3]},{3:10,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{3:11,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},o($V5,[2,4],{7:12}),o($V6,[2,13]),o($V6,[2,14]),o($V6,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},o($V7,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:$V4}),{16:20,17:[1,21],25:$V8},o([17,25],[2,17]),o($V5,[2,5]),{4:23,19:$V1,20:$V2,21:$V3},{11:[1,24]},{13:[1,25]},o($V7,[2,10]),o($V9,[2,11]),{18:26,24:[1,27]},o($V9,[2,19]),o($V5,[2,6]),o($V7,[2,8]),o($V7,[2,9]),{16:28,25:$V8},{25:[2,18]},o($V9,[2,12])], +defaultActions: {9:[2,16],10:[2,1],11:[2,2],27:[2,18]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -63875,36 +63969,48 @@ stateStackSize:function stateStackSize() { }, options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { - // Pre-lexer code can go here - var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:/* do nothing */ +case 0: this.begin('open_directive'); return 22; +break; +case 1: this.begin('type_directive'); return 23; +break; +case 2: this.popState(); this.begin('arg_directive'); return 17; +break; +case 3: this.popState(); this.popState(); return 25; +break; +case 4:return 24; +break; +case 5:/* skip comments */ +break; +case 6:/* skip comments */{ console.log('Crap after close'); } break; -case 1:/* skip whitespace */ +case 7:return 19; break; -case 2:return 4 ; +case 8:/* do nothing */ break; -case 3:return 9 ; +case 9:/* ignore */ break; -case 4:return 'space'; +case 10: this.begin("title");return 12; break; -case 5:return 12; +case 11: this.popState(); return "title_value"; break; -case 6:/*console.log('begin str');*/this.begin("string"); +case 12: this.begin("string"); break; -case 7:/*console.log('pop-state');*/this.popState(); +case 13: this.popState(); break; -case 8:/*console.log('ending string')*/return "STR"; +case 14: return "txt"; break; -case 9:return "VALUE"; +case 15:return 6; break; -case 10:return 6 ; +case 16:return "value"; +break; +case 17:return 21; break; } }, -rules: [/^(?:%%[^\n]*)/i,/^(?:\s+)/i,/^(?:pie\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:title\s[^#\n;]+)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i], -conditions: {"string":{"rules":[7,8],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,5,6,9,10],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i], +conditions: {"close_directive":{"rules":[],"inclusive":false},"arg_directive":{"rules":[3,4],"inclusive":false},"type_directive":{"rules":[2,3],"inclusive":false},"open_directive":{"rules":[1],"inclusive":false},"title":{"rules":[11],"inclusive":false},"string":{"rules":[13,14],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,9,10,12,15,16,17],"inclusive":true}} }); return lexer; })(); @@ -63941,18 +64047,26 @@ if ( true && __webpack_require__.c[__webpack_require__.s] === module) { /*!***********************************!*\ !*** ./src/diagrams/pie/pieDb.js ***! \***********************************/ -/*! exports provided: default */ +/*! exports provided: parseDirective, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config */ "./src/config.js"); /** * */ + + var sections = {}; var title = ''; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].parseDirective(this, statement, context, type); +}; var addSection = function addSection(id, value) { if (typeof sections[id] === 'undefined') { @@ -63991,6 +64105,10 @@ var clear = function clear() { /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_2__["getConfig"]().pie; + }, addSection: addSection, getSections: getSections, cleanupValue: cleanupValue, @@ -64112,7 +64230,7 @@ var draw = function draw(txt, id) { }); } catch (e) { _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error('Error while rendering info diagram'); - _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e.message); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(e); } }; /* harmony default export */ __webpack_exports__["default"] = ({ @@ -64871,15 +64989,15 @@ case 3: this.popState(); this.popState(); return 59; break; case 4:return 58; break; -case 5:/* skip comments */ +case 5:return 5; break; -case 6:/* skip comments */ +case 6:/* skip all whitespace */ break; -case 7:return 5; +case 7:/* skip same-line whitespace */ break; -case 8:/* skip all whitespace */ +case 8:/* skip comments */ break; -case 9:/* skip same-line whitespace */ +case 9:/* skip comments */ break; case 10:/* skip comments */ break; @@ -64957,8 +65075,8 @@ case 46:return 'INVALID'; break; } }, -rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"open_directive":{"rules":[1,10],"inclusive":false},"type_directive":{"rules":[2,3,10],"inclusive":false},"arg_directive":{"rules":[3,4,10],"inclusive":false},"ID":{"rules":[9,10,12],"inclusive":false},"ALIAS":{"rules":[9,10,13,14],"inclusive":false},"LINE":{"rules":[9,10,22],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"open_directive":{"rules":[1,8],"inclusive":false},"type_directive":{"rules":[2,3,8],"inclusive":false},"arg_directive":{"rules":[3,4,8],"inclusive":false},"ID":{"rules":[7,8,12],"inclusive":false},"ALIAS":{"rules":[7,8,13,14],"inclusive":false},"LINE":{"rules":[7,8,22],"inclusive":false},"INITIAL":{"rules":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"inclusive":true}} }); return lexer; })(); @@ -65039,7 +65157,7 @@ var titleWrapped = false; var sequenceNumbersEnabled = false; var wrapEnabled = false; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(this, statement, context, type); }; var addActor = function addActor(id, name, description) { // Don't allow description nulling @@ -65175,7 +65293,7 @@ var parseMessage = function parseMessage(str) { var message = { text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(), - wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? _common_common__WEBPACK_IMPORTED_MODULE_2__["default"].hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap() + wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? _common_common__WEBPACK_IMPORTED_MODULE_2__["default"].hasBreaks(_str) || undefined : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : undefined }; _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('parseMessage:', message); return message; @@ -65331,7 +65449,7 @@ var apply = function apply(param) { getTitle: getTitle, parseDirective: parseDirective, getConfig: function getConfig() { - return _config__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig().sequence; + return _config__WEBPACK_IMPORTED_MODULE_1__["getConfig"]().sequence; }, getTitleWrapped: getTitleWrapped, clear: clear, @@ -66923,24 +67041,24 @@ var size = function size() { } */ var parser = (function(){ -var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28]; +var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,28],$Vc=[1,23],$Vd=[1,24],$Ve=[1,25],$Vf=[1,26],$Vg=[1,29],$Vh=[1,32],$Vi=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],$Vj=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],$Vk=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],$Vl=[4,5,14,15,17,19,20,22,23,24,25,26,36,39]; var parser = {trace: function trace () { }, yy: {}, -symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"SD":6,"document":7,"line":8,"statement":9,"idStatement":10,"DESCR":11,"-->":12,"HIDE_EMPTY":13,"scale":14,"WIDTH":15,"COMPOSIT_STATE":16,"STRUCT_START":17,"STRUCT_STOP":18,"STATE_DESCR":19,"AS":20,"ID":21,"FORK":22,"JOIN":23,"CONCURRENT":24,"note":25,"notePosition":26,"NOTE_TEXT":27,"EDGE_STATE":28,"left_of":29,"right_of":30,"$accept":0,"$end":1}, -terminals_: {2:"error",4:"SPACE",5:"NL",6:"SD",11:"DESCR",12:"-->",13:"HIDE_EMPTY",14:"scale",15:"WIDTH",16:"COMPOSIT_STATE",17:"STRUCT_START",18:"STRUCT_STOP",19:"STATE_DESCR",20:"AS",21:"ID",22:"FORK",23:"JOIN",24:"CONCURRENT",25:"note",27:"NOTE_TEXT",28:"EDGE_STATE",29:"left_of",30:"right_of"}, -productions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]], +symbols_: {"error":2,"start":3,"SPACE":4,"NL":5,"directive":6,"SD":7,"document":8,"line":9,"statement":10,"idStatement":11,"DESCR":12,"-->":13,"HIDE_EMPTY":14,"scale":15,"WIDTH":16,"COMPOSIT_STATE":17,"STRUCT_START":18,"STRUCT_STOP":19,"STATE_DESCR":20,"AS":21,"ID":22,"FORK":23,"JOIN":24,"CONCURRENT":25,"note":26,"notePosition":27,"NOTE_TEXT":28,"openDirective":29,"typeDirective":30,"closeDirective":31,":":32,"argDirective":33,"eol":34,";":35,"EDGE_STATE":36,"left_of":37,"right_of":38,"open_directive":39,"type_directive":40,"arg_directive":41,"close_directive":42,"$accept":0,"$end":1}, +terminals_: {2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"}, +productions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]], performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) { /* this == yyval */ var $0 = $$.length - 1; switch (yystate) { -case 3: +case 4: /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; break; -case 4: +case 5: this.$ = [] break; -case 5: +case 6: if($$[$0]!='nl'){ $$[$0-1].push($$[$0]);this.$ = $$[$0-1] @@ -66948,38 +67066,38 @@ case 5: // console.warn('Got document',$$[$0-1], $$[$0]); break; -case 6: case 7: +case 7: case 8: this.$ = $$[$0] break; -case 8: +case 9: this.$='nl'; break; -case 9: +case 10: /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''}; break; -case 10: +case 11: /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])}; break; -case 11: +case 12: /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/ this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}}; break; -case 12: +case 13: /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/ this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()}; break; -case 16: +case 17: /* console.warn('Adding document for state without id ', $$[$0-3]);*/ this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] } break; -case 17: +case 18: var id=$$[$0]; var description = $$[$0-2].trim(); @@ -66992,40 +67110,52 @@ case 17: break; -case 18: +case 19: //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]); this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] } break; -case 19: +case 20: this.$={ stmt: 'state', id: $$[$0], type: 'fork' } break; -case 20: +case 21: this.$={ stmt: 'state', id: $$[$0], type: 'join' } break; -case 21: +case 22: this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' } break; -case 22: +case 23: /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/ this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}}; break; -case 24: case 25: +case 30: case 31: this.$=$$[$0]; break; +case 34: + yy.parseDirective('%%{', 'open_directive'); +break; +case 35: + yy.parseDirective($$[$0], 'type_directive'); +break; +case 36: + $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); +break; +case 37: + yy.parseDirective('}%%', 'close_directive', 'state'); +break; } }, -table: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])], -defaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]}, +table: [{3:1,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},o([1,4,5,14,15,17,20,22,23,24,25,26,36,39],$V4,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},{31:30,32:[1,31],42:$Vh},o([32,42],[2,35]),o($Vi,[2,6]),{6:27,10:33,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,8]),o($Vi,[2,9]),o($Vi,[2,10],{12:[1,34],13:[1,35]}),o($Vi,[2,14]),{16:[1,36]},o($Vi,[2,16],{18:[1,37]}),{21:[1,38]},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},o($Vi,[2,25]),o($Vj,[2,30]),o($Vj,[2,31]),o($Vk,[2,26]),{33:43,41:[1,44]},o($Vk,[2,37]),o($Vi,[2,7]),o($Vi,[2,11]),{11:45,22:$Vb,36:$Vg},o($Vi,[2,15]),o($Vl,$V4,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:$Vh},{42:[2,36]},o($Vi,[2,12],{12:[1,51]}),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,52],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},o($Vk,[2,27]),o($Vi,[2,13]),o($Vi,[2,17]),o($Vl,$V4,{8:56}),o($Vi,[2,23]),o($Vi,[2,24]),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,57],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,19])], +defaultActions: {7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]}, parseError: function parseError (str, hash) { if (hash.recoverable) { this.trace(str); @@ -67504,98 +67634,112 @@ options: {"case-insensitive":true}, performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { var YYSTATE=YY_START; switch($avoiding_name_collisions) { -case 0:return 5; +case 0: this.begin('open_directive'); return 39; break; -case 1:/* skip all whitespace */ +case 1: this.begin('type_directive'); return 40; break; -case 2:/* skip same-line whitespace */ +case 2: this.popState(); this.begin('arg_directive'); return 32; break; -case 3:/* skip comments */ +case 3: this.popState(); this.popState(); return 42; +break; +case 4:return 41; +break; +case 5:/* skip comments */ break; -case 4:/* skip comments */ +case 6:/* skip comments */{ console.log('Crap after close'); } break; -case 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; +case 7:return 5; break; -case 6:return 15; +case 8:/* skip all whitespace */ break; -case 7:this.popState(); +case 9:/* skip same-line whitespace */ break; -case 8: this.pushState('STATE'); +case 10:/* skip comments */ break; -case 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22; +case 11:/* skip comments */ break; -case 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23; +case 12: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 15; break; -case 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22; +case 13:return 16; break; -case 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23; +case 14:this.popState(); break; -case 13:this.begin("STATE_STRING"); +case 15: this.pushState('STATE'); break; -case 14:this.popState();this.pushState('STATE_ID');return "AS"; +case 16:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 23; break; -case 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return "ID"; +case 17:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24; break; -case 16:this.popState(); +case 18:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 23; break; -case 17: /*console.log('Long description:', yy_.yytext);*/return "STATE_DESCR"; +case 19:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24; break; -case 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16; +case 20:this.begin("STATE_STRING"); break; -case 19:this.popState(); +case 21:this.popState();this.pushState('STATE_ID');return "AS"; break; -case 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17; +case 22:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return "ID"; break; -case 21: /*console.log('Ending struct');*/ this.popState(); return 18; +case 23:this.popState(); break; -case 22:/* nothing */ +case 24: /*console.log('Long description:', yy_.yytext);*/return "STATE_DESCR"; break; -case 23: this.begin('NOTE'); return 25; +case 25:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 17; break; -case 24: this.popState();this.pushState('NOTE_ID');return 29; +case 26:this.popState(); break; -case 25: this.popState();this.pushState('NOTE_ID');return 30; +case 27:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 18; break; -case 26: this.popState();this.pushState('FLOATING_NOTE'); +case 28: /*console.log('Ending struct');*/ this.popState(); return 19; break; -case 27:this.popState();this.pushState('FLOATING_NOTE_ID');return "AS"; +case 29:/* nothing */ break; -case 28:/**/ +case 30: this.begin('NOTE'); return 26; break; -case 29: /*console.log('Floating note text: ', yy_.yytext);*/return "NOTE_TEXT"; +case 31: this.popState();this.pushState('NOTE_ID');return 37; break; -case 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return "ID"; +case 32: this.popState();this.pushState('NOTE_ID');return 38; break; -case 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21; +case 33: this.popState();this.pushState('FLOATING_NOTE'); break; -case 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27; +case 34:this.popState();this.pushState('FLOATING_NOTE_ID');return "AS"; break; -case 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27; +case 35:/**/ break; -case 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; +case 36: /*console.log('Floating note text: ', yy_.yytext);*/return "NOTE_TEXT"; break; -case 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; +case 37:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return "ID"; break; -case 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; +case 38: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 22; break; -case 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28; +case 39: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 28; break; -case 38: /*console.log('=>ID=',yy_.yytext);*/ return 21; +case 40: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 28; break; -case 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; +case 41: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; break; -case 40:return 12; +case 42: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; break; -case 41:return 24; +case 43: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 14; break; -case 42:return 5; +case 44: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 36; break; -case 43:return 'INVALID'; +case 45: /*console.log('=>ID=',yy_.yytext);*/ return 22; +break; +case 46: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 12; +break; +case 47:return 13; +break; +case 48:return 25; +break; +case 49:return 5; +break; +case 50:return 'INVALID'; break; } }, -rules: [/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i], -conditions: {"LINE":{"rules":[2,3],"inclusive":false},"struct":{"rules":[2,3,8,21,22,23,37,38,39,40,41],"inclusive":false},"FLOATING_NOTE_ID":{"rules":[30],"inclusive":false},"FLOATING_NOTE":{"rules":[27,28,29],"inclusive":false},"NOTE_TEXT":{"rules":[32,33],"inclusive":false},"NOTE_ID":{"rules":[31],"inclusive":false},"NOTE":{"rules":[24,25,26],"inclusive":false},"SCALE":{"rules":[6,7],"inclusive":false},"ALIAS":{"rules":[],"inclusive":false},"STATE_ID":{"rules":[15],"inclusive":false},"STATE_STRING":{"rules":[16,17],"inclusive":false},"FORK_STATE":{"rules":[],"inclusive":false},"STATE":{"rules":[2,3,9,10,11,12,13,14,18,19,20],"inclusive":false},"ID":{"rules":[2,3],"inclusive":false},"INITIAL":{"rules":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],"inclusive":true}} +rules: [/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i], +conditions: {"LINE":{"rules":[9,10],"inclusive":false},"close_directive":{"rules":[9,10],"inclusive":false},"arg_directive":{"rules":[3,4,9,10],"inclusive":false},"type_directive":{"rules":[2,3,9,10],"inclusive":false},"open_directive":{"rules":[1,9,10],"inclusive":false},"struct":{"rules":[9,10,15,28,29,30,44,45,46,47,48],"inclusive":false},"FLOATING_NOTE_ID":{"rules":[37],"inclusive":false},"FLOATING_NOTE":{"rules":[34,35,36],"inclusive":false},"NOTE_TEXT":{"rules":[39,40],"inclusive":false},"NOTE_ID":{"rules":[38],"inclusive":false},"NOTE":{"rules":[31,32,33],"inclusive":false},"SCALE":{"rules":[13,14],"inclusive":false},"ALIAS":{"rules":[],"inclusive":false},"STATE_ID":{"rules":[22],"inclusive":false},"STATE_STRING":{"rules":[23,24],"inclusive":false},"FORK_STATE":{"rules":[],"inclusive":false},"STATE":{"rules":[9,10,16,17,18,19,20,21,25,26,27],"inclusive":false},"ID":{"rules":[9,10],"inclusive":false},"INITIAL":{"rules":[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],"inclusive":true}} }); return lexer; })(); @@ -68055,11 +68199,12 @@ var drawEdge = function drawEdge(elem, path, relation) { /*!***************************************!*\ !*** ./src/diagrams/state/stateDb.js ***! \***************************************/ -/*! exports provided: addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */ +/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDirective", function() { return parseDirective; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addState", function() { return addState; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clear", function() { return clear; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getState", function() { return getState; }); @@ -68072,16 +68217,23 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "relationType", function() { return relationType; }); /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../logger */ "./src/logger.js"); /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils */ "./src/utils.js"); +/* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../config */ "./src/config.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + + var clone = function clone(o) { return JSON.parse(JSON.stringify(o)); }; var rootDoc = []; +var parseDirective = function parseDirective(statement, context, type) { + _mermaidAPI__WEBPACK_IMPORTED_MODULE_2__["default"].parseDirective(this, statement, context, type); +}; var setRootDoc = function setRootDoc(o) { _logger__WEBPACK_IMPORTED_MODULE_0__["logger"].info('Setting root doc', o); // rootDoc = { id: 'root', doc: o }; @@ -68340,6 +68492,10 @@ var trimColon = function trimColon(str) { }; /* harmony default export */ __webpack_exports__["default"] = ({ + parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"]().state; + }, addState: addState, clear: clear, getState: getState, @@ -68602,13 +68758,12 @@ var draw = function draw(text, id) { nodeDb = {}; var parser = _parser_stateDiagram__WEBPACK_IMPORTED_MODULE_3___default.a.parser; parser.yy = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"]; // Parse the graph definition + // try { - try { - parser.parse(text); - } catch (err) { - _logger__WEBPACK_IMPORTED_MODULE_6__["logger"].debug('Parsing failed'); - } // Fetch the default direction, use TD if none was found - + parser.parse(text); // } catch (err) { + // logger.error('Parsing failed', err); + // } + // Fetch the default direction, use TD if none was found var dir = _stateDb__WEBPACK_IMPORTED_MODULE_2__["default"].getDirection(); @@ -68701,7 +68856,6 @@ var draw = function draw(text, id) { rect.setAttribute('ry', 0); rect.setAttribute('width', dim.width); rect.setAttribute('height', dim.height); - rect.setAttribute('style', 'fill:#e8e8e8;'); label.insertBefore(rect, label.firstChild); } } @@ -69004,7 +69158,7 @@ var renderDoc = function renderDoc(doc, diagram, parentId, altBkg) { "use strict"; __webpack_require__.r(__webpack_exports__); var getStyles = function getStyles(options) { - return "g.stateGroup text {\n fill: ".concat(options.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ").concat(options.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(options.labelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(options.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ").concat(options.labelColor, ";\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(options.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(options.textColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(options.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(options.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(options.altBackground ? options.altBackground : '#efefef', ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(options.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(options.lineColor, ";\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n"); + return "g.stateGroup text {\n fill: ".concat(options.nodeBorder, ";\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ").concat(options.textColor, ";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(options.labelColor, ";\n}\n\ng.stateGroup rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n}\n\ng.stateGroup line {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(options.background, ";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(options.noteBorderColor, ";\n fill: ").concat(options.noteBkgColor, ";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(options.nodeBkg, ";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(options.tertiaryColor, ";\n opacity: 0.2;\n}\n.edgeLabel .label text {\n fill: ").concat(options.tertiaryTextColor, ";\n}\n\n.stateLabel text {\n fill: ").concat(options.labelColor, ";\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: ").concat(options.primaryBorderColor, ";\n stroke: black;\n}\n.node circle.state-end {\n fill: ").concat(options.primaryBorderColor, ";\n stroke: ").concat(options.background, ";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(options.mainBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(options.lineColor, ";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(options.nodeBkg, ";\n stroke: ").concat(options.nodeBorder, ";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(options.textColor, ";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(options.nodeBorder, ";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(options.background, ";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(options.altBackground ? options.altBackground : '#efefef', ";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(options.noteBkgColor, ";\n stroke: ").concat(options.noteBorderColor, ";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(options.noteTextColor, ";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(options.noteTextColor, ";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(options.lineColor, ";\n stroke: ").concat(options.lineColor, ";\n stroke-width: 1;\n}\n"); }; /* harmony default export */ __webpack_exports__["default"] = (getStyles); @@ -69030,6 +69184,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTask", function() { return addTask; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addTaskOrg", function() { return addTaskOrg; }); /* harmony import */ var _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../mermaidAPI */ "./src/mermaidAPI.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config */ "./src/config.js"); function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } @@ -69039,13 +69194,14 @@ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object. function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + var title = ''; var currentSection = ''; var sections = []; var tasks = []; var rawTasks = []; var parseDirective = function parseDirective(statement, context, type) { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(statement, context, type); + _mermaidAPI__WEBPACK_IMPORTED_MODULE_0__["default"].parseDirective(this, statement, context, type); }; var clear = function clear() { sections.length = 0; @@ -69149,6 +69305,9 @@ var getActors = function getActors() { /* harmony default export */ __webpack_exports__["default"] = ({ parseDirective: parseDirective, + getConfig: function getConfig() { + return _config__WEBPACK_IMPORTED_MODULE_1__["getConfig"]().journey; + }, clear: clear, setTitle: setTitle, getTitle: getTitle, @@ -69570,7 +69729,7 @@ case 17: $$[$0] = $$[$0].trim().replace(/'/g, '"'); yy.parseDirective($$[$0], 'arg_directive'); break; case 18: - yy.parseDirective('}%%', 'close_directive', 'sequence'); + yy.parseDirective('}%%', 'close_directive', 'journey'); break; } }, @@ -70628,8 +70787,8 @@ __webpack_require__.r(__webpack_exports__); var init = function init() { var _this = this; - var conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init'); - + var conf = _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].getConfig(); + console.log('Starting rendering diagrams (init) - mermaid.init', conf); var nodes; if (arguments.length >= 2) { @@ -70666,13 +70825,13 @@ var init = function init() { if (typeof mermaid.startOnLoad !== 'undefined') { _logger__WEBPACK_IMPORTED_MODULE_2__["logger"].debug('Start On Load inner: ' + mermaid.startOnLoad); - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({ + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].updateSiteConfig({ startOnLoad: mermaid.startOnLoad }); } if (typeof mermaid.ganttConfig !== 'undefined') { - _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].initialize({ + _mermaidAPI__WEBPACK_IMPORTED_MODULE_1__["default"].updateSiteConfig({ gantt: mermaid.ganttConfig }); } @@ -70810,53 +70969,53 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3 */ "./node_modules/d3/index.js"); /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../package.json */ "./package.json"); var _package_json__WEBPACK_IMPORTED_MODULE_2___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../package.json */ "./package.json", 1); -/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ "./src/config.js"); -/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); -/* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js"); -/* harmony import */ var _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer-v2 */ "./src/diagrams/flowchart/flowRenderer-v2.js"); -/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison"); -/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js"); -/* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js"); -/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison"); -/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js"); -/* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js"); -/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison"); -/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js"); -/* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js"); -/* harmony import */ var _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/classRenderer-v2 */ "./src/diagrams/class/classRenderer-v2.js"); -/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison"); -/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js"); -/* harmony import */ var _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/state/stateRenderer */ "./src/diagrams/state/stateRenderer.js"); -/* harmony import */ var _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/state/stateRenderer-v2 */ "./src/diagrams/state/stateRenderer-v2.js"); -/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/state/parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison"); -/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22__); -/* harmony import */ var _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/state/stateDb */ "./src/diagrams/state/stateDb.js"); -/* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js"); -/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison"); -/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js"); -/* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js"); -/* harmony import */ var _errorRenderer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./errorRenderer */ "./src/errorRenderer.js"); -/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison"); -/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js"); -/* harmony import */ var _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./diagrams/pie/pieRenderer */ "./src/diagrams/pie/pieRenderer.js"); -/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./diagrams/pie/parser/pie */ "./src/diagrams/pie/parser/pie.jison"); -/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./diagrams/pie/pieDb */ "./src/diagrams/pie/pieDb.js"); -/* harmony import */ var _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./diagrams/er/erDb */ "./src/diagrams/er/erDb.js"); -/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./diagrams/er/parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison"); -/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(_diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35__); -/* harmony import */ var _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./diagrams/er/erRenderer */ "./src/diagrams/er/erRenderer.js"); -/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./diagrams/user-journey/parser/journey */ "./src/diagrams/user-journey/parser/journey.jison"); -/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(_diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37__); -/* harmony import */ var _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./diagrams/user-journey/journeyDb */ "./src/diagrams/user-journey/journeyDb.js"); -/* harmony import */ var _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./diagrams/user-journey/journeyRenderer */ "./src/diagrams/user-journey/journeyRenderer.js"); +/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./logger */ "./src/logger.js"); +/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils.js"); +/* harmony import */ var _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer */ "./src/diagrams/flowchart/flowRenderer.js"); +/* harmony import */ var _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./diagrams/flowchart/flowRenderer-v2 */ "./src/diagrams/flowchart/flowRenderer-v2.js"); +/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./diagrams/flowchart/parser/flow */ "./src/diagrams/flowchart/parser/flow.jison"); +/* harmony import */ var _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./diagrams/flowchart/flowDb */ "./src/diagrams/flowchart/flowDb.js"); +/* harmony import */ var _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./diagrams/sequence/sequenceRenderer */ "./src/diagrams/sequence/sequenceRenderer.js"); +/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./diagrams/sequence/parser/sequenceDiagram */ "./src/diagrams/sequence/parser/sequenceDiagram.jison"); +/* harmony import */ var _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./diagrams/sequence/sequenceDb */ "./src/diagrams/sequence/sequenceDb.js"); +/* harmony import */ var _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./diagrams/gantt/ganttRenderer */ "./src/diagrams/gantt/ganttRenderer.js"); +/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./diagrams/gantt/parser/gantt */ "./src/diagrams/gantt/parser/gantt.jison"); +/* harmony import */ var _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13__); +/* harmony import */ var _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagrams/gantt/ganttDb */ "./src/diagrams/gantt/ganttDb.js"); +/* harmony import */ var _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagrams/class/classRenderer */ "./src/diagrams/class/classRenderer.js"); +/* harmony import */ var _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./diagrams/class/classRenderer-v2 */ "./src/diagrams/class/classRenderer-v2.js"); +/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./diagrams/class/parser/classDiagram */ "./src/diagrams/class/parser/classDiagram.jison"); +/* harmony import */ var _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17__); +/* harmony import */ var _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./diagrams/class/classDb */ "./src/diagrams/class/classDb.js"); +/* harmony import */ var _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./diagrams/state/stateRenderer */ "./src/diagrams/state/stateRenderer.js"); +/* harmony import */ var _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./diagrams/state/stateRenderer-v2 */ "./src/diagrams/state/stateRenderer-v2.js"); +/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./diagrams/state/parser/stateDiagram */ "./src/diagrams/state/parser/stateDiagram.jison"); +/* harmony import */ var _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21__); +/* harmony import */ var _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./diagrams/state/stateDb */ "./src/diagrams/state/stateDb.js"); +/* harmony import */ var _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./diagrams/git/gitGraphRenderer */ "./src/diagrams/git/gitGraphRenderer.js"); +/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./diagrams/git/parser/gitGraph */ "./src/diagrams/git/parser/gitGraph.jison"); +/* harmony import */ var _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24__); +/* harmony import */ var _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./diagrams/git/gitGraphAst */ "./src/diagrams/git/gitGraphAst.js"); +/* harmony import */ var _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./diagrams/info/infoRenderer */ "./src/diagrams/info/infoRenderer.js"); +/* harmony import */ var _errorRenderer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./errorRenderer */ "./src/errorRenderer.js"); +/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./diagrams/info/parser/info */ "./src/diagrams/info/parser/info.jison"); +/* harmony import */ var _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28__); +/* harmony import */ var _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./diagrams/info/infoDb */ "./src/diagrams/info/infoDb.js"); +/* harmony import */ var _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./diagrams/pie/pieRenderer */ "./src/diagrams/pie/pieRenderer.js"); +/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./diagrams/pie/parser/pie */ "./src/diagrams/pie/parser/pie.jison"); +/* harmony import */ var _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31__); +/* harmony import */ var _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./diagrams/pie/pieDb */ "./src/diagrams/pie/pieDb.js"); +/* harmony import */ var _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./diagrams/er/erDb */ "./src/diagrams/er/erDb.js"); +/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./diagrams/er/parser/erDiagram */ "./src/diagrams/er/parser/erDiagram.jison"); +/* harmony import */ var _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(_diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34__); +/* harmony import */ var _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./diagrams/er/erRenderer */ "./src/diagrams/er/erRenderer.js"); +/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./diagrams/user-journey/parser/journey */ "./src/diagrams/user-journey/parser/journey.jison"); +/* harmony import */ var _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36__); +/* harmony import */ var _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./diagrams/user-journey/journeyDb */ "./src/diagrams/user-journey/journeyDb.js"); +/* harmony import */ var _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./diagrams/user-journey/journeyRenderer */ "./src/diagrams/user-journey/journeyRenderer.js"); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./config */ "./src/config.js"); /* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./styles */ "./src/styles.js"); /* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./themes */ "./src/themes/index.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } @@ -70875,7 +71034,15 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi */ - + // import * as configApi from './config'; +// // , { +// // setConfig, +// // configApi.getConfig, +// // configApi.updateSiteConfig, +// // configApi.setSiteConfig, +// // configApi.getSiteConfig, +// // configApi.defaultConfig +// // } @@ -70918,87 +71085,87 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi function parse(text) { - var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(text); + var graphInit = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectInit(text); if (graphInit) { reinitialize(graphInit); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('reinit ', graphInit); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('reinit ', graphInit); } - var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(text); + var graphType = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectType(text); var parser; - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Type ' + graphType); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Type ' + graphType); switch (graphType) { case 'git': - parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_25___default.a; - parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_26__["default"]; + parser = _diagrams_git_parser_gitGraph__WEBPACK_IMPORTED_MODULE_24___default.a; + parser.parser.yy = _diagrams_git_gitGraphAst__WEBPACK_IMPORTED_MODULE_25__["default"]; break; case 'flowchart': - _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear(); - parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a; - parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"]; + _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].clear(); + parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default.a; + parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"]; break; case 'flowchart-v2': - _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].clear(); - parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_8___default.a; - parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"]; + _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].clear(); + parser = _diagrams_flowchart_parser_flow__WEBPACK_IMPORTED_MODULE_7___default.a; + parser.parser.yy = _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"]; break; case 'sequence': - parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_11___default.a; - parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_12__["default"]; + parser = _diagrams_sequence_parser_sequenceDiagram__WEBPACK_IMPORTED_MODULE_10___default.a; + parser.parser.yy = _diagrams_sequence_sequenceDb__WEBPACK_IMPORTED_MODULE_11__["default"]; break; case 'gantt': - parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_14___default.a; - parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"]; + parser = _diagrams_gantt_parser_gantt__WEBPACK_IMPORTED_MODULE_13___default.a; + parser.parser.yy = _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"]; break; case 'class': - parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a; - parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"]; + parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default.a; + parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"]; break; case 'classDiagram': - parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_18___default.a; - parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"]; + parser = _diagrams_class_parser_classDiagram__WEBPACK_IMPORTED_MODULE_17___default.a; + parser.parser.yy = _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"]; break; case 'state': - parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a; - parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"]; + parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default.a; + parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__["default"]; break; case 'stateDiagram': - parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_22___default.a; - parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_23__["default"]; + parser = _diagrams_state_parser_stateDiagram__WEBPACK_IMPORTED_MODULE_21___default.a; + parser.parser.yy = _diagrams_state_stateDb__WEBPACK_IMPORTED_MODULE_22__["default"]; break; case 'info': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('info info info'); - parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_29___default.a; - parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_30__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('info info info'); + parser = _diagrams_info_parser_info__WEBPACK_IMPORTED_MODULE_28___default.a; + parser.parser.yy = _diagrams_info_infoDb__WEBPACK_IMPORTED_MODULE_29__["default"]; break; case 'pie': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('pie'); - parser = _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_32___default.a; - parser.parser.yy = _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_33__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('pie'); + parser = _diagrams_pie_parser_pie__WEBPACK_IMPORTED_MODULE_31___default.a; + parser.parser.yy = _diagrams_pie_pieDb__WEBPACK_IMPORTED_MODULE_32__["default"]; break; case 'er': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('er'); - parser = _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_35___default.a; - parser.parser.yy = _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_34__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('er'); + parser = _diagrams_er_parser_erDiagram__WEBPACK_IMPORTED_MODULE_34___default.a; + parser.parser.yy = _diagrams_er_erDb__WEBPACK_IMPORTED_MODULE_33__["default"]; break; case 'journey': - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('Journey'); - parser = _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_37___default.a; - parser.parser.yy = _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_38__["default"]; + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('Journey'); + parser = _diagrams_user_journey_parser_journey__WEBPACK_IMPORTED_MODULE_36___default.a; + parser.parser.yy = _diagrams_user_journey_journeyDb__WEBPACK_IMPORTED_MODULE_37__["default"]; break; } @@ -71075,18 +71242,20 @@ var decodeEntities = function decodeEntities(text) { */ var render = function render(id, _txt, cb, container) { + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); var txt = _txt; - var graphInit = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectInit(txt); + var graphInit = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectInit(txt); if (graphInit) { - reinitialize(graphInit); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](graphInit); } else { - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(); - var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); - updateRendererConfigs(siteConfig); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); + var siteConfig = _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](siteConfig); } - var cnf = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])(); // Check the maximum allowed text size + var cnf = _config__WEBPACK_IMPORTED_MODULE_39__["getConfig"](); + console.log('Render', cnf); // Check the maximum allowed text size if (_txt.length > cnf.maxTextSize) { txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'; @@ -71114,7 +71283,7 @@ var render = function render(id, _txt, cb, container) { window.txt = txt; txt = encodeEntities(txt); var element = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node(); - var graphType = _utils__WEBPACK_IMPORTED_MODULE_5__["default"].detectType(txt); // insert inline style into svg + var graphType = _utils__WEBPACK_IMPORTED_MODULE_4__["default"].detectType(txt); // insert inline style into svg var svg = element.firstChild; var firstChild = svg.firstChild; @@ -71136,7 +71305,7 @@ var render = function render(id, _txt, cb, container) { if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') { - var classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].getClasses(txt); + var classes = _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].getClasses(txt); for (var className in classes) { userStyles += "\n.".concat(className, " > * { ").concat(classes[className].styles.join(' !important; '), " !important; }"); @@ -71166,20 +71335,20 @@ var render = function render(id, _txt, cb, container) { switch (graphType) { case 'git': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(cnf.git); - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].draw(txt, id, false); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].setConf(cnf.git); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].draw(txt, id, false); break; case 'flowchart': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(cnf.flowchart); - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].setConf(cnf.flowchart); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].draw(txt, id, false); break; case 'flowchart-v2': cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(cnf.flowchart); - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].draw(txt, id, false); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(cnf.flowchart); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].draw(txt, id, false); break; case 'sequence': @@ -71187,70 +71356,70 @@ var render = function render(id, _txt, cb, container) { if (cnf.sequenceDiagram) { // backwards compatibility - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram)); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram)); console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'); } else { - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(cnf.sequence); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(cnf.sequence); } - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].draw(txt, id); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].draw(txt, id); break; case 'gantt': cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(cnf.gantt); - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].draw(txt, id); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].setConf(cnf.gantt); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].draw(txt, id); break; case 'class': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(cnf.class); - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].draw(txt, id); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].setConf(cnf.class); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].draw(txt, id); break; case 'classDiagram': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].setConf(cnf.class); - _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_17__["default"].draw(txt, id); + _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(cnf.class); + _diagrams_class_classRenderer_v2__WEBPACK_IMPORTED_MODULE_16__["default"].draw(txt, id); break; case 'state': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(cnf.state); - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].draw(txt, id); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].setConf(cnf.state); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].draw(txt, id); break; case 'stateDiagram': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(cnf.state); - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].draw(txt, id); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(cnf.state); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].draw(txt, id); break; case 'info': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(cnf.class); - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].setConf(cnf.class); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'pie': cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute; - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(cnf.class); - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].setConf(cnf.class); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'er': - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(cnf.er); - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].setConf(cnf.er); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; case 'journey': - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(cnf.journey); - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].setConf(cnf.journey); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].draw(txt, id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); break; } } catch (e) { // errorRenderer.setConf(cnf.class); - _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].draw(id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); + _errorRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].draw(id, _package_json__WEBPACK_IMPORTED_MODULE_2__.version); throw e; } @@ -71267,7 +71436,7 @@ var render = function render(id, _txt, cb, container) { // Fix for when the base tag is used var svgCode = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node().innerHTML; - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute); if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') { svgCode = svgCode.replace(/marker-end="url\(.*?#/g, 'marker-end="url(#', 'g'); @@ -71279,22 +71448,22 @@ var render = function render(id, _txt, cb, container) { switch (graphType) { case 'flowchart': case 'flowchart-v2': - cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_9__["default"].bindFunctions); + cb(svgCode, _diagrams_flowchart_flowDb__WEBPACK_IMPORTED_MODULE_8__["default"].bindFunctions); break; case 'gantt': - cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_15__["default"].bindFunctions); + cb(svgCode, _diagrams_gantt_ganttDb__WEBPACK_IMPORTED_MODULE_14__["default"].bindFunctions); break; case 'class': - cb(svgCode, _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_19__["default"].bindFunctions); + cb(svgCode, _diagrams_class_classDb__WEBPACK_IMPORTED_MODULE_18__["default"].bindFunctions); break; default: cb(svgCode); } } else { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('CB = undefined!'); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('CB = undefined!'); } var node = Object(d3__WEBPACK_IMPORTED_MODULE_1__["select"])('#d' + id).node(); @@ -71308,7 +71477,7 @@ var render = function render(id, _txt, cb, container) { var currentDirective = {}; -var parseDirective = function parseDirective(statement, context, type) { +var parseDirective = function parseDirective(p, statement, context, type) { try { if (statement !== undefined) { statement = statement.trim(); @@ -71327,19 +71496,19 @@ var parseDirective = function parseDirective(statement, context, type) { break; case 'close_directive': - handleDirective(currentDirective, type); + handleDirective(p, currentDirective, type); currentDirective = null; break; } } } catch (error) { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error("Error while rendering sequenceDiagram directive: ".concat(statement, " jison context: ").concat(context)); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].error(error.message); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error("Error while rendering sequenceDiagram directive: ".concat(statement, " jison context: ").concat(context)); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].error(error.message); } }; -var handleDirective = function handleDirective(directive, type) { - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug("Directive type=".concat(directive.type, " with args:"), directive.args); +var handleDirective = function handleDirective(p, directive, type) { + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug("Directive type=".concat(directive.type, " with args:"), directive.args); switch (directive.type) { case 'init': @@ -71356,73 +71525,60 @@ var handleDirective = function handleDirective(directive, type) { } }); reinitialize(directive.args); + _config__WEBPACK_IMPORTED_MODULE_39__["addDirective"](directive.args); break; } case 'wrap': case 'nowrap': - directive.args = { - config: { - wrap: directive.type === 'wrap' - } - }; - ['config'].forEach(function (prop) { - if (typeof directive.args[prop] !== 'undefined') { - if (type === 'flowchart-v2') { - type = 'flowchart'; - } + if (p && p['setWrap']) { + p.setWrap(directive.type === 'wrap'); + } - directive.args[type] = directive.args[prop]; - delete directive.args[prop]; - } - }); - reinitialize(directive.args); break; default: - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].warn("Unhandled directive: source: '%%{".concat(directive.type, ": ").concat(JSON.stringify(directive.args ? directive.args : {}), "}%%"), directive); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].warn("Unhandled directive: source: '%%{".concat(directive.type, ": ").concat(JSON.stringify(directive.args ? directive.args : {}), "}%%"), directive); break; } }; function updateRendererConfigs(conf) { - _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_24__["default"].setConf(conf.git); - _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(conf.flowchart); - _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_7__["default"].setConf(conf.flowchart); + _diagrams_git_gitGraphRenderer__WEBPACK_IMPORTED_MODULE_23__["default"].setConf(conf.git); + _diagrams_flowchart_flowRenderer__WEBPACK_IMPORTED_MODULE_5__["default"].setConf(conf.flowchart); + _diagrams_flowchart_flowRenderer_v2__WEBPACK_IMPORTED_MODULE_6__["default"].setConf(conf.flowchart); if (typeof conf['sequenceDiagram'] !== 'undefined') { - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(Object(_utils__WEBPACK_IMPORTED_MODULE_5__["assignWithDepth"])(conf.sequence, conf['sequenceDiagram'])); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(Object(_utils__WEBPACK_IMPORTED_MODULE_4__["assignWithDepth"])(conf.sequence, conf['sequenceDiagram'])); } - _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_10__["default"].setConf(conf.sequence); - _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_13__["default"].setConf(conf.gantt); - _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_16__["default"].setConf(conf.class); - _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(conf.state); - _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_21__["default"].setConf(conf.state); - _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(conf.class); - _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_31__["default"].setConf(conf.class); - _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_36__["default"].setConf(conf.er); - _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_39__["default"].setConf(conf.journey); - _errorRenderer__WEBPACK_IMPORTED_MODULE_28__["default"].setConf(conf.class); + _diagrams_sequence_sequenceRenderer__WEBPACK_IMPORTED_MODULE_9__["default"].setConf(conf.sequence); + _diagrams_gantt_ganttRenderer__WEBPACK_IMPORTED_MODULE_12__["default"].setConf(conf.gantt); + _diagrams_class_classRenderer__WEBPACK_IMPORTED_MODULE_15__["default"].setConf(conf.class); + _diagrams_state_stateRenderer__WEBPACK_IMPORTED_MODULE_19__["default"].setConf(conf.state); + _diagrams_state_stateRenderer_v2__WEBPACK_IMPORTED_MODULE_20__["default"].setConf(conf.state); + _diagrams_info_infoRenderer__WEBPACK_IMPORTED_MODULE_26__["default"].setConf(conf.class); + _diagrams_pie_pieRenderer__WEBPACK_IMPORTED_MODULE_30__["default"].setConf(conf.class); + _diagrams_er_erRenderer__WEBPACK_IMPORTED_MODULE_35__["default"].setConf(conf.er); + _diagrams_user_journey_journeyRenderer__WEBPACK_IMPORTED_MODULE_38__["default"].setConf(conf.journey); + _errorRenderer__WEBPACK_IMPORTED_MODULE_27__["default"].setConf(conf.class); } function reinitialize(options) { - // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options); - if (options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) { - // Todo merge with user options - options.themeVariables = options.theme; - } // Set default options - - - var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); - updateRendererConfigs(config); - Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.reinitialize: ', config); + "mermaidAPI.reinitialize: v".concat(_package_json__WEBPACK_IMPORTED_MODULE_2__.version), JSON.stringify(options), options.themeVariables.primaryColor; // // if (options.theme && theme[options.theme]) { + // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables); + // // } + // // Set default options + // const config = + // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig(); + // updateRendererConfigs(config); + // setLogLevel(config.logLevel); + // logger.debug('mermaidAPI.reinitialize: ', config); } function initialize(options) { - // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`); - // Set default options + console.trace("mermaidAPI.initialize: v".concat(_package_json__WEBPACK_IMPORTED_MODULE_2__.version, " ").concat(options)); // Set default options + if (options && options.theme && _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme]) { // Todo merge with user options options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"][options.theme].getThemeVariables(options.themeVariables); @@ -71430,15 +71586,11 @@ function initialize(options) { if (options) options.themeVariables = _themes__WEBPACK_IMPORTED_MODULE_41__["default"].default.getThemeVariables(); } - var config = _typeof(options) === 'object' ? Object(_config__WEBPACK_IMPORTED_MODULE_3__["setSiteConfig"])(options) : Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); + var config = _typeof(options) === 'object' ? _config__WEBPACK_IMPORTED_MODULE_39__["setSiteConfig"](options) : _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); updateRendererConfigs(config); - Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(config.logLevel); - _logger__WEBPACK_IMPORTED_MODULE_4__["logger"].debug('mermaidAPI.initialize: ', config); -} // function getConfig () { -// console.warn('get config') -// return config -// } - + Object(_logger__WEBPACK_IMPORTED_MODULE_3__["setLogLevel"])(config.logLevel); + _logger__WEBPACK_IMPORTED_MODULE_3__["logger"].debug('mermaidAPI.initialize: ', config); +} var mermaidAPI = Object.freeze({ render: render, @@ -71446,22 +71598,23 @@ var mermaidAPI = Object.freeze({ parseDirective: parseDirective, initialize: initialize, reinitialize: reinitialize, - getConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getConfig"], - getSiteConfig: _config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"], + getConfig: _config__WEBPACK_IMPORTED_MODULE_39__["getConfig"], + getSiteConfig: _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"], + updateSiteConfig: _config__WEBPACK_IMPORTED_MODULE_39__["updateSiteConfig"], reset: function reset() { - // console.warn('reset'); - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(); - var siteConfig = Object(_config__WEBPACK_IMPORTED_MODULE_3__["getSiteConfig"])(); + console.warn('reset'); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](); + var siteConfig = _config__WEBPACK_IMPORTED_MODULE_39__["getSiteConfig"](); updateRendererConfigs(siteConfig); }, globalReset: function globalReset() { - _config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(_config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig); - updateRendererConfigs(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])()); + _config__WEBPACK_IMPORTED_MODULE_39__["reset"](_config__WEBPACK_IMPORTED_MODULE_39__["defaultConfig"]); + updateRendererConfigs(_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]()); }, - defaultConfig: _config__WEBPACK_IMPORTED_MODULE_3__["default"].defaultConfig + defaultConfig: _config__WEBPACK_IMPORTED_MODULE_39__["defaultConfig"] }); -Object(_logger__WEBPACK_IMPORTED_MODULE_4__["setLogLevel"])(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])().logLevel); -_config__WEBPACK_IMPORTED_MODULE_3__["default"].reset(Object(_config__WEBPACK_IMPORTED_MODULE_3__["getConfig"])()); +Object(_logger__WEBPACK_IMPORTED_MODULE_3__["setLogLevel"])(_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]().logLevel); +_config__WEBPACK_IMPORTED_MODULE_39__["reset"](_config__WEBPACK_IMPORTED_MODULE_39__["getConfig"]()); /* harmony default export */ __webpack_exports__["default"] = (mermaidAPI); /** * ## mermaidAPI configuration defaults @@ -71647,86 +71800,110 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d +var mkBorder = function mkBorder(col, darkMode) { + return darkMode ? Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(col, { + s: -40, + l: 10 + }) : Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(col, { + s: -40, + l: -10 + }); +}; + var Theme = /*#__PURE__*/ function () { function Theme() { _classCallCheck(this, Theme); - /* Base variables */ - this.primaryColor = '#9f33be'; - this.secondaryColor = '#b20238'; - this.tertiaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 30); - this.relationColor = '#000'; // this.primaryColor = '#fa255e'; + /** # Base variables */ + + /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */ + this.background = '#f4f4f4'; // this.background = '#0c0c0c'; + + /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */ + + this.darkMode = false; // this.darkMode = true; + // this.primaryColor = '#1f1f00'; + + this.noteBkgColor = '#fff5ad'; + this.noteTextColor = '#333'; // this.primaryColor = '#9f33be'; + + this.primaryColor = '#f0fff0'; // this.primaryColor = '#fa255e'; + // this.primaryColor = '#ECECFF'; // this.secondaryColor = '#c39ea0'; // this.tertiaryColor = '#f8e5e5'; - // this.primaryColor = '#ECECFF'; - // this.secondaryColor = '#ffffde'; - // this.tertiaryColor = '#ffffde'; - this.background = 'white'; - this.lineColor = '#333333'; + this.secondaryColor = '#dfdfde'; + this.tertiaryColor = '#CCCCFF'; this.border1 = '#9370DB'; this.arrowheadColor = '#333333'; this.fontFamily = '"trebuchet ms", verdana, arial'; this.fontSize = '16px'; - this.labelBackground = '#e8e8e8'; this.textColor = '#333'; - this.noteBkgColor = '#fff5ad'; - this.noteBorderColor = '#aaaa33'; this.updateColors(); + this.relationColor = '#000'; } _createClass(Theme, [{ key: "updateColors", value: function updateColors() { this.secondBkg = this.tertiaryColor; + /* Main */ + + this.secondaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, { + h: 120 + }); + this.tertiaryColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["adjust"])(this.primaryColor, { + h: -160 + }); + console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode); + this.primaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.primaryColor); + this.secondaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.secondaryColor); + this.tertiaryTextColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.tertiaryColor); + this.lineColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.background); + this.textColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["invert"])(this.background); /* Flowchart variables */ this.nodeBkg = this.primaryColor; this.mainBkg = this.primaryColor; - this.nodeBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.primaryColor, 23); // border 1 - + this.nodeBorder = this.primaryBorderColor; this.clusterBkg = this.tertiaryColor; - this.clusterBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.tertiaryColor, 30); + this.clusterBorder = this.tertiaryBorderColor; this.defaultLinkColor = this.lineColor; - this.titleColor = this.textColor; + this.titleColor = this.tertiaryTextColor; this.edgeLabelBackground = this.labelBackground; /* Sequence Diagram variables */ // this.actorBorder = lighten(this.border1, 0.5); - this.actorBorder = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.border1, 23); + this.actorBorder = this.primaryBorderColor; this.actorBkg = this.mainBkg; - this.actorTextColor = 'black'; + this.actorTextColor = this.primaryTextColor; this.actorLineColor = 'grey'; this.labelBoxBkgColor = this.actorBkg; this.signalColor = this.textColor; this.signalTextColor = this.textColor; this.labelBoxBorderColor = this.actorBorder; this.labelTextColor = this.actorTextColor; - this.loopTextColor = this.actorTextColor; - this.noteBorderColor = this.border2; - this.noteTextColor = this.actorTextColor; + this.loopTextColor = this.actorTextColor; // this.noteTextColor = this.actorTextColor; + this.activationBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["darken"])(this.secondaryColor, 10); this.activationBkgColor = this.secondaryColor; this.sequenceNumberColor = 'white'; /* Gantt chart variables */ - this.taskTextColor = this.taskTextLightColor; - this.taskTextOutsideColor = this.taskTextDarkColor; this.sectionBkgColor = this.tertiaryColor; this.altSectionBkgColor = 'white'; this.sectionBkgColor = this.secondaryColor; this.sectionBkgColor2 = this.tertiaryColor; this.altSectionBkgColor = 'white'; this.sectionBkgColor2 = this.primaryColor; - this.taskBorderColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23); + this.taskBorderColor = this.primaryBorderColor; this.taskBkgColor = this.primaryColor; - this.taskTextLightColor = 'white'; - this.taskTextColor = 'calculated'; - this.taskTextDarkColor = 'black'; - this.taskTextOutsideColor = 'calculated'; - this.taskTextClickableColor = '#003163'; this.activeTaskBorderColor = this.primaryColor; this.activeTaskBkgColor = Object(khroma__WEBPACK_IMPORTED_MODULE_0__["lighten"])(this.primaryColor, 23); this.gridColor = 'lightgrey'; @@ -71735,9 +71912,17 @@ function () { this.critBorderColor = '#ff8888'; this.critBkgColor = 'red'; this.todayLineColor = 'red'; + this.taskTextColor = this.textColor; + this.taskTextOutsideColor = this.textColor; + this.taskTextLightColor = this.textColor; + this.taskTextColor = this.primaryTextColor; + this.taskTextDarkColor = this.textColor; + this.taskTextOutsideColor = 'calculated'; + this.taskTextClickableColor = '#003163'; /* state colors */ - this.labelColor = 'black'; + this.labelColor = this.primaryTextColor; + this.altBackground = this.tertiaryColor; this.errorBkgColor = '#552222'; this.errorTextColor = '#552222'; /* state colors */ diff --git a/dist/mermaid.js.map b/dist/mermaid.js.map index 49a83bca10..625556287e 100644 --- a/dist/mermaid.js.map +++ b/dist/mermaid.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://mermaid/webpack/universalModuleDefinition","webpack://mermaid/webpack/bootstrap","webpack://mermaid/./node_modules/@braintree/sanitize-url/index.js","webpack://mermaid/./node_modules/d3-array/src/array.js","webpack://mermaid/./node_modules/d3-array/src/ascending.js","webpack://mermaid/./node_modules/d3-array/src/bisect.js","webpack://mermaid/./node_modules/d3-array/src/bisector.js","webpack://mermaid/./node_modules/d3-array/src/constant.js","webpack://mermaid/./node_modules/d3-array/src/cross.js","webpack://mermaid/./node_modules/d3-array/src/descending.js","webpack://mermaid/./node_modules/d3-array/src/deviation.js","webpack://mermaid/./node_modules/d3-array/src/extent.js","webpack://mermaid/./node_modules/d3-array/src/histogram.js","webpack://mermaid/./node_modules/d3-array/src/identity.js","webpack://mermaid/./node_modules/d3-array/src/index.js","webpack://mermaid/./node_modules/d3-array/src/max.js","webpack://mermaid/./node_modules/d3-array/src/mean.js","webpack://mermaid/./node_modules/d3-array/src/median.js","webpack://mermaid/./node_modules/d3-array/src/merge.js","webpack://mermaid/./node_modules/d3-array/src/min.js","webpack://mermaid/./node_modules/d3-array/src/number.js","webpack://mermaid/./node_modules/d3-array/src/pairs.js","webpack://mermaid/./node_modules/d3-array/src/permute.js","webpack://mermaid/./node_modules/d3-array/src/quantile.js","webpack://mermaid/./node_modules/d3-array/src/range.js","webpack://mermaid/./node_modules/d3-array/src/scan.js","webpack://mermaid/./node_modules/d3-array/src/shuffle.js","webpack://mermaid/./node_modules/d3-array/src/sum.js","webpack://mermaid/./node_modules/d3-array/src/threshold/freedmanDiaconis.js","webpack://mermaid/./node_modules/d3-array/src/threshold/scott.js","webpack://mermaid/./node_modules/d3-array/src/threshold/sturges.js","webpack://mermaid/./node_modules/d3-array/src/ticks.js","webpack://mermaid/./node_modules/d3-array/src/transpose.js","webpack://mermaid/./node_modules/d3-array/src/variance.js","webpack://mermaid/./node_modules/d3-array/src/zip.js","webpack://mermaid/./node_modules/d3-axis/src/array.js","webpack://mermaid/./node_modules/d3-axis/src/axis.js","webpack://mermaid/./node_modules/d3-axis/src/identity.js","webpack://mermaid/./node_modules/d3-axis/src/index.js","webpack://mermaid/./node_modules/d3-brush/src/brush.js","webpack://mermaid/./node_modules/d3-brush/src/constant.js","webpack://mermaid/./node_modules/d3-brush/src/event.js","webpack://mermaid/./node_modules/d3-brush/src/index.js","webpack://mermaid/./node_modules/d3-brush/src/noevent.js","webpack://mermaid/./node_modules/d3-chord/src/array.js","webpack://mermaid/./node_modules/d3-chord/src/chord.js","webpack://mermaid/./node_modules/d3-chord/src/constant.js","webpack://mermaid/./node_modules/d3-chord/src/index.js","webpack://mermaid/./node_modules/d3-chord/src/math.js","webpack://mermaid/./node_modules/d3-chord/src/ribbon.js","webpack://mermaid/./node_modules/d3-collection/src/entries.js","webpack://mermaid/./node_modules/d3-collection/src/index.js","webpack://mermaid/./node_modules/d3-collection/src/keys.js","webpack://mermaid/./node_modules/d3-collection/src/map.js","webpack://mermaid/./node_modules/d3-collection/src/nest.js","webpack://mermaid/./node_modules/d3-collection/src/set.js","webpack://mermaid/./node_modules/d3-collection/src/values.js","webpack://mermaid/./node_modules/d3-color/src/color.js","webpack://mermaid/./node_modules/d3-color/src/cubehelix.js","webpack://mermaid/./node_modules/d3-color/src/define.js","webpack://mermaid/./node_modules/d3-color/src/index.js","webpack://mermaid/./node_modules/d3-color/src/lab.js","webpack://mermaid/./node_modules/d3-color/src/math.js","webpack://mermaid/./node_modules/d3-contour/src/area.js","webpack://mermaid/./node_modules/d3-contour/src/array.js","webpack://mermaid/./node_modules/d3-contour/src/ascending.js","webpack://mermaid/./node_modules/d3-contour/src/blur.js","webpack://mermaid/./node_modules/d3-contour/src/constant.js","webpack://mermaid/./node_modules/d3-contour/src/contains.js","webpack://mermaid/./node_modules/d3-contour/src/contours.js","webpack://mermaid/./node_modules/d3-contour/src/density.js","webpack://mermaid/./node_modules/d3-contour/src/index.js","webpack://mermaid/./node_modules/d3-contour/src/noop.js","webpack://mermaid/./node_modules/d3-dispatch/src/dispatch.js","webpack://mermaid/./node_modules/d3-dispatch/src/index.js","webpack://mermaid/./node_modules/d3-drag/src/constant.js","webpack://mermaid/./node_modules/d3-drag/src/drag.js","webpack://mermaid/./node_modules/d3-drag/src/event.js","webpack://mermaid/./node_modules/d3-drag/src/index.js","webpack://mermaid/./node_modules/d3-drag/src/nodrag.js","webpack://mermaid/./node_modules/d3-drag/src/noevent.js","webpack://mermaid/./node_modules/d3-dsv/src/autoType.js","webpack://mermaid/./node_modules/d3-dsv/src/csv.js","webpack://mermaid/./node_modules/d3-dsv/src/dsv.js","webpack://mermaid/./node_modules/d3-dsv/src/index.js","webpack://mermaid/./node_modules/d3-dsv/src/tsv.js","webpack://mermaid/./node_modules/d3-ease/src/back.js","webpack://mermaid/./node_modules/d3-ease/src/bounce.js","webpack://mermaid/./node_modules/d3-ease/src/circle.js","webpack://mermaid/./node_modules/d3-ease/src/cubic.js","webpack://mermaid/./node_modules/d3-ease/src/elastic.js","webpack://mermaid/./node_modules/d3-ease/src/exp.js","webpack://mermaid/./node_modules/d3-ease/src/index.js","webpack://mermaid/./node_modules/d3-ease/src/linear.js","webpack://mermaid/./node_modules/d3-ease/src/poly.js","webpack://mermaid/./node_modules/d3-ease/src/quad.js","webpack://mermaid/./node_modules/d3-ease/src/sin.js","webpack://mermaid/./node_modules/d3-fetch/src/blob.js","webpack://mermaid/./node_modules/d3-fetch/src/buffer.js","webpack://mermaid/./node_modules/d3-fetch/src/dsv.js","webpack://mermaid/./node_modules/d3-fetch/src/image.js","webpack://mermaid/./node_modules/d3-fetch/src/index.js","webpack://mermaid/./node_modules/d3-fetch/src/json.js","webpack://mermaid/./node_modules/d3-fetch/src/text.js","webpack://mermaid/./node_modules/d3-fetch/src/xml.js","webpack://mermaid/./node_modules/d3-force/src/center.js","webpack://mermaid/./node_modules/d3-force/src/collide.js","webpack://mermaid/./node_modules/d3-force/src/constant.js","webpack://mermaid/./node_modules/d3-force/src/index.js","webpack://mermaid/./node_modules/d3-force/src/jiggle.js","webpack://mermaid/./node_modules/d3-force/src/link.js","webpack://mermaid/./node_modules/d3-force/src/manyBody.js","webpack://mermaid/./node_modules/d3-force/src/radial.js","webpack://mermaid/./node_modules/d3-force/src/simulation.js","webpack://mermaid/./node_modules/d3-force/src/x.js","webpack://mermaid/./node_modules/d3-force/src/y.js","webpack://mermaid/./node_modules/d3-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-format/src/exponent.js","webpack://mermaid/./node_modules/d3-format/src/formatDecimal.js","webpack://mermaid/./node_modules/d3-format/src/formatGroup.js","webpack://mermaid/./node_modules/d3-format/src/formatNumerals.js","webpack://mermaid/./node_modules/d3-format/src/formatPrefixAuto.js","webpack://mermaid/./node_modules/d3-format/src/formatRounded.js","webpack://mermaid/./node_modules/d3-format/src/formatSpecifier.js","webpack://mermaid/./node_modules/d3-format/src/formatTrim.js","webpack://mermaid/./node_modules/d3-format/src/formatTypes.js","webpack://mermaid/./node_modules/d3-format/src/identity.js","webpack://mermaid/./node_modules/d3-format/src/index.js","webpack://mermaid/./node_modules/d3-format/src/locale.js","webpack://mermaid/./node_modules/d3-format/src/precisionFixed.js","webpack://mermaid/./node_modules/d3-format/src/precisionPrefix.js","webpack://mermaid/./node_modules/d3-format/src/precisionRound.js","webpack://mermaid/./node_modules/d3-geo/src/adder.js","webpack://mermaid/./node_modules/d3-geo/src/area.js","webpack://mermaid/./node_modules/d3-geo/src/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/cartesian.js","webpack://mermaid/./node_modules/d3-geo/src/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/antimeridian.js","webpack://mermaid/./node_modules/d3-geo/src/clip/buffer.js","webpack://mermaid/./node_modules/d3-geo/src/clip/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/extent.js","webpack://mermaid/./node_modules/d3-geo/src/clip/index.js","webpack://mermaid/./node_modules/d3-geo/src/clip/line.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rectangle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rejoin.js","webpack://mermaid/./node_modules/d3-geo/src/compose.js","webpack://mermaid/./node_modules/d3-geo/src/constant.js","webpack://mermaid/./node_modules/d3-geo/src/contains.js","webpack://mermaid/./node_modules/d3-geo/src/distance.js","webpack://mermaid/./node_modules/d3-geo/src/graticule.js","webpack://mermaid/./node_modules/d3-geo/src/identity.js","webpack://mermaid/./node_modules/d3-geo/src/index.js","webpack://mermaid/./node_modules/d3-geo/src/interpolate.js","webpack://mermaid/./node_modules/d3-geo/src/length.js","webpack://mermaid/./node_modules/d3-geo/src/math.js","webpack://mermaid/./node_modules/d3-geo/src/noop.js","webpack://mermaid/./node_modules/d3-geo/src/path/area.js","webpack://mermaid/./node_modules/d3-geo/src/path/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/path/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/path/context.js","webpack://mermaid/./node_modules/d3-geo/src/path/index.js","webpack://mermaid/./node_modules/d3-geo/src/path/measure.js","webpack://mermaid/./node_modules/d3-geo/src/path/string.js","webpack://mermaid/./node_modules/d3-geo/src/pointEqual.js","webpack://mermaid/./node_modules/d3-geo/src/polygonContains.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albers.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albersUsa.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicConformal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/cylindricalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equalEarth.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equirectangular.js","webpack://mermaid/./node_modules/d3-geo/src/projection/fit.js","webpack://mermaid/./node_modules/d3-geo/src/projection/gnomonic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/identity.js","webpack://mermaid/./node_modules/d3-geo/src/projection/index.js","webpack://mermaid/./node_modules/d3-geo/src/projection/mercator.js","webpack://mermaid/./node_modules/d3-geo/src/projection/naturalEarth1.js","webpack://mermaid/./node_modules/d3-geo/src/projection/orthographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/resample.js","webpack://mermaid/./node_modules/d3-geo/src/projection/stereographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/transverseMercator.js","webpack://mermaid/./node_modules/d3-geo/src/rotation.js","webpack://mermaid/./node_modules/d3-geo/src/stream.js","webpack://mermaid/./node_modules/d3-geo/src/transform.js","webpack://mermaid/./node_modules/d3-hierarchy/src/accessors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/array.js","webpack://mermaid/./node_modules/d3-hierarchy/src/cluster.js","webpack://mermaid/./node_modules/d3-hierarchy/src/constant.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/ancestors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/count.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/descendants.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/each.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/leaves.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/links.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/path.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sort.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sum.js","webpack://mermaid/./node_modules/d3-hierarchy/src/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/enclose.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/siblings.js","webpack://mermaid/./node_modules/d3-hierarchy/src/partition.js","webpack://mermaid/./node_modules/d3-hierarchy/src/stratify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/tree.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/binary.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/dice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/resquarify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/round.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/slice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/sliceDice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/squarify.js","webpack://mermaid/./node_modules/d3-interpolate/src/array.js","webpack://mermaid/./node_modules/d3-interpolate/src/basis.js","webpack://mermaid/./node_modules/d3-interpolate/src/basisClosed.js","webpack://mermaid/./node_modules/d3-interpolate/src/color.js","webpack://mermaid/./node_modules/d3-interpolate/src/constant.js","webpack://mermaid/./node_modules/d3-interpolate/src/cubehelix.js","webpack://mermaid/./node_modules/d3-interpolate/src/date.js","webpack://mermaid/./node_modules/d3-interpolate/src/discrete.js","webpack://mermaid/./node_modules/d3-interpolate/src/hcl.js","webpack://mermaid/./node_modules/d3-interpolate/src/hsl.js","webpack://mermaid/./node_modules/d3-interpolate/src/hue.js","webpack://mermaid/./node_modules/d3-interpolate/src/index.js","webpack://mermaid/./node_modules/d3-interpolate/src/lab.js","webpack://mermaid/./node_modules/d3-interpolate/src/number.js","webpack://mermaid/./node_modules/d3-interpolate/src/numberArray.js","webpack://mermaid/./node_modules/d3-interpolate/src/object.js","webpack://mermaid/./node_modules/d3-interpolate/src/piecewise.js","webpack://mermaid/./node_modules/d3-interpolate/src/quantize.js","webpack://mermaid/./node_modules/d3-interpolate/src/rgb.js","webpack://mermaid/./node_modules/d3-interpolate/src/round.js","webpack://mermaid/./node_modules/d3-interpolate/src/string.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/decompose.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/index.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/parse.js","webpack://mermaid/./node_modules/d3-interpolate/src/value.js","webpack://mermaid/./node_modules/d3-interpolate/src/zoom.js","webpack://mermaid/./node_modules/d3-path/src/index.js","webpack://mermaid/./node_modules/d3-path/src/path.js","webpack://mermaid/./node_modules/d3-polygon/src/area.js","webpack://mermaid/./node_modules/d3-polygon/src/centroid.js","webpack://mermaid/./node_modules/d3-polygon/src/contains.js","webpack://mermaid/./node_modules/d3-polygon/src/cross.js","webpack://mermaid/./node_modules/d3-polygon/src/hull.js","webpack://mermaid/./node_modules/d3-polygon/src/index.js","webpack://mermaid/./node_modules/d3-polygon/src/length.js","webpack://mermaid/./node_modules/d3-quadtree/src/add.js","webpack://mermaid/./node_modules/d3-quadtree/src/cover.js","webpack://mermaid/./node_modules/d3-quadtree/src/data.js","webpack://mermaid/./node_modules/d3-quadtree/src/extent.js","webpack://mermaid/./node_modules/d3-quadtree/src/find.js","webpack://mermaid/./node_modules/d3-quadtree/src/index.js","webpack://mermaid/./node_modules/d3-quadtree/src/quad.js","webpack://mermaid/./node_modules/d3-quadtree/src/quadtree.js","webpack://mermaid/./node_modules/d3-quadtree/src/remove.js","webpack://mermaid/./node_modules/d3-quadtree/src/root.js","webpack://mermaid/./node_modules/d3-quadtree/src/size.js","webpack://mermaid/./node_modules/d3-quadtree/src/visit.js","webpack://mermaid/./node_modules/d3-quadtree/src/visitAfter.js","webpack://mermaid/./node_modules/d3-quadtree/src/x.js","webpack://mermaid/./node_modules/d3-quadtree/src/y.js","webpack://mermaid/./node_modules/d3-random/src/bates.js","webpack://mermaid/./node_modules/d3-random/src/defaultSource.js","webpack://mermaid/./node_modules/d3-random/src/exponential.js","webpack://mermaid/./node_modules/d3-random/src/index.js","webpack://mermaid/./node_modules/d3-random/src/irwinHall.js","webpack://mermaid/./node_modules/d3-random/src/logNormal.js","webpack://mermaid/./node_modules/d3-random/src/normal.js","webpack://mermaid/./node_modules/d3-random/src/uniform.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Accent.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Dark2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Paired.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set3.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/category10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/colors.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/BrBG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PRGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PiYG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PuOr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdGy.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/Spectral.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/index.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/ramp.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js","webpack://mermaid/./node_modules/d3-scale/src/array.js","webpack://mermaid/./node_modules/d3-scale/src/band.js","webpack://mermaid/./node_modules/d3-scale/src/constant.js","webpack://mermaid/./node_modules/d3-scale/src/continuous.js","webpack://mermaid/./node_modules/d3-scale/src/diverging.js","webpack://mermaid/./node_modules/d3-scale/src/identity.js","webpack://mermaid/./node_modules/d3-scale/src/index.js","webpack://mermaid/./node_modules/d3-scale/src/init.js","webpack://mermaid/./node_modules/d3-scale/src/linear.js","webpack://mermaid/./node_modules/d3-scale/src/log.js","webpack://mermaid/./node_modules/d3-scale/src/nice.js","webpack://mermaid/./node_modules/d3-scale/src/number.js","webpack://mermaid/./node_modules/d3-scale/src/ordinal.js","webpack://mermaid/./node_modules/d3-scale/src/pow.js","webpack://mermaid/./node_modules/d3-scale/src/quantile.js","webpack://mermaid/./node_modules/d3-scale/src/quantize.js","webpack://mermaid/./node_modules/d3-scale/src/sequential.js","webpack://mermaid/./node_modules/d3-scale/src/sequentialQuantile.js","webpack://mermaid/./node_modules/d3-scale/src/symlog.js","webpack://mermaid/./node_modules/d3-scale/src/threshold.js","webpack://mermaid/./node_modules/d3-scale/src/tickFormat.js","webpack://mermaid/./node_modules/d3-scale/src/time.js","webpack://mermaid/./node_modules/d3-scale/src/utcTime.js","webpack://mermaid/./node_modules/d3-selection/src/constant.js","webpack://mermaid/./node_modules/d3-selection/src/create.js","webpack://mermaid/./node_modules/d3-selection/src/creator.js","webpack://mermaid/./node_modules/d3-selection/src/index.js","webpack://mermaid/./node_modules/d3-selection/src/local.js","webpack://mermaid/./node_modules/d3-selection/src/matcher.js","webpack://mermaid/./node_modules/d3-selection/src/mouse.js","webpack://mermaid/./node_modules/d3-selection/src/namespace.js","webpack://mermaid/./node_modules/d3-selection/src/namespaces.js","webpack://mermaid/./node_modules/d3-selection/src/point.js","webpack://mermaid/./node_modules/d3-selection/src/select.js","webpack://mermaid/./node_modules/d3-selection/src/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/selection/append.js","webpack://mermaid/./node_modules/d3-selection/src/selection/attr.js","webpack://mermaid/./node_modules/d3-selection/src/selection/call.js","webpack://mermaid/./node_modules/d3-selection/src/selection/classed.js","webpack://mermaid/./node_modules/d3-selection/src/selection/clone.js","webpack://mermaid/./node_modules/d3-selection/src/selection/data.js","webpack://mermaid/./node_modules/d3-selection/src/selection/datum.js","webpack://mermaid/./node_modules/d3-selection/src/selection/dispatch.js","webpack://mermaid/./node_modules/d3-selection/src/selection/each.js","webpack://mermaid/./node_modules/d3-selection/src/selection/empty.js","webpack://mermaid/./node_modules/d3-selection/src/selection/enter.js","webpack://mermaid/./node_modules/d3-selection/src/selection/exit.js","webpack://mermaid/./node_modules/d3-selection/src/selection/filter.js","webpack://mermaid/./node_modules/d3-selection/src/selection/html.js","webpack://mermaid/./node_modules/d3-selection/src/selection/index.js","webpack://mermaid/./node_modules/d3-selection/src/selection/insert.js","webpack://mermaid/./node_modules/d3-selection/src/selection/join.js","webpack://mermaid/./node_modules/d3-selection/src/selection/lower.js","webpack://mermaid/./node_modules/d3-selection/src/selection/merge.js","webpack://mermaid/./node_modules/d3-selection/src/selection/node.js","webpack://mermaid/./node_modules/d3-selection/src/selection/nodes.js","webpack://mermaid/./node_modules/d3-selection/src/selection/on.js","webpack://mermaid/./node_modules/d3-selection/src/selection/order.js","webpack://mermaid/./node_modules/d3-selection/src/selection/property.js","webpack://mermaid/./node_modules/d3-selection/src/selection/raise.js","webpack://mermaid/./node_modules/d3-selection/src/selection/remove.js","webpack://mermaid/./node_modules/d3-selection/src/selection/select.js","webpack://mermaid/./node_modules/d3-selection/src/selection/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/selection/size.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sort.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sparse.js","webpack://mermaid/./node_modules/d3-selection/src/selection/style.js","webpack://mermaid/./node_modules/d3-selection/src/selection/text.js","webpack://mermaid/./node_modules/d3-selection/src/selector.js","webpack://mermaid/./node_modules/d3-selection/src/selectorAll.js","webpack://mermaid/./node_modules/d3-selection/src/sourceEvent.js","webpack://mermaid/./node_modules/d3-selection/src/touch.js","webpack://mermaid/./node_modules/d3-selection/src/touches.js","webpack://mermaid/./node_modules/d3-selection/src/window.js","webpack://mermaid/./node_modules/d3-shape/src/arc.js","webpack://mermaid/./node_modules/d3-shape/src/area.js","webpack://mermaid/./node_modules/d3-shape/src/areaRadial.js","webpack://mermaid/./node_modules/d3-shape/src/array.js","webpack://mermaid/./node_modules/d3-shape/src/constant.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basis.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/bundle.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinal.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRom.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linear.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linearClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/monotone.js","webpack://mermaid/./node_modules/d3-shape/src/curve/natural.js","webpack://mermaid/./node_modules/d3-shape/src/curve/radial.js","webpack://mermaid/./node_modules/d3-shape/src/curve/step.js","webpack://mermaid/./node_modules/d3-shape/src/descending.js","webpack://mermaid/./node_modules/d3-shape/src/identity.js","webpack://mermaid/./node_modules/d3-shape/src/index.js","webpack://mermaid/./node_modules/d3-shape/src/line.js","webpack://mermaid/./node_modules/d3-shape/src/lineRadial.js","webpack://mermaid/./node_modules/d3-shape/src/link/index.js","webpack://mermaid/./node_modules/d3-shape/src/math.js","webpack://mermaid/./node_modules/d3-shape/src/noop.js","webpack://mermaid/./node_modules/d3-shape/src/offset/diverging.js","webpack://mermaid/./node_modules/d3-shape/src/offset/expand.js","webpack://mermaid/./node_modules/d3-shape/src/offset/none.js","webpack://mermaid/./node_modules/d3-shape/src/offset/silhouette.js","webpack://mermaid/./node_modules/d3-shape/src/offset/wiggle.js","webpack://mermaid/./node_modules/d3-shape/src/order/appearance.js","webpack://mermaid/./node_modules/d3-shape/src/order/ascending.js","webpack://mermaid/./node_modules/d3-shape/src/order/descending.js","webpack://mermaid/./node_modules/d3-shape/src/order/insideOut.js","webpack://mermaid/./node_modules/d3-shape/src/order/none.js","webpack://mermaid/./node_modules/d3-shape/src/order/reverse.js","webpack://mermaid/./node_modules/d3-shape/src/pie.js","webpack://mermaid/./node_modules/d3-shape/src/point.js","webpack://mermaid/./node_modules/d3-shape/src/pointRadial.js","webpack://mermaid/./node_modules/d3-shape/src/stack.js","webpack://mermaid/./node_modules/d3-shape/src/symbol.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/circle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/cross.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/diamond.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/square.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/star.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/triangle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/wye.js","webpack://mermaid/./node_modules/d3-time-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-time-format/src/index.js","webpack://mermaid/./node_modules/d3-time-format/src/isoFormat.js","webpack://mermaid/./node_modules/d3-time-format/src/isoParse.js","webpack://mermaid/./node_modules/d3-time-format/src/locale.js","webpack://mermaid/./node_modules/d3-time/src/day.js","webpack://mermaid/./node_modules/d3-time/src/duration.js","webpack://mermaid/./node_modules/d3-time/src/hour.js","webpack://mermaid/./node_modules/d3-time/src/index.js","webpack://mermaid/./node_modules/d3-time/src/interval.js","webpack://mermaid/./node_modules/d3-time/src/millisecond.js","webpack://mermaid/./node_modules/d3-time/src/minute.js","webpack://mermaid/./node_modules/d3-time/src/month.js","webpack://mermaid/./node_modules/d3-time/src/second.js","webpack://mermaid/./node_modules/d3-time/src/utcDay.js","webpack://mermaid/./node_modules/d3-time/src/utcHour.js","webpack://mermaid/./node_modules/d3-time/src/utcMinute.js","webpack://mermaid/./node_modules/d3-time/src/utcMonth.js","webpack://mermaid/./node_modules/d3-time/src/utcWeek.js","webpack://mermaid/./node_modules/d3-time/src/utcYear.js","webpack://mermaid/./node_modules/d3-time/src/week.js","webpack://mermaid/./node_modules/d3-time/src/year.js","webpack://mermaid/./node_modules/d3-timer/src/index.js","webpack://mermaid/./node_modules/d3-timer/src/interval.js","webpack://mermaid/./node_modules/d3-timer/src/timeout.js","webpack://mermaid/./node_modules/d3-timer/src/timer.js","webpack://mermaid/./node_modules/d3-transition/src/active.js","webpack://mermaid/./node_modules/d3-transition/src/index.js","webpack://mermaid/./node_modules/d3-transition/src/interrupt.js","webpack://mermaid/./node_modules/d3-transition/src/selection/index.js","webpack://mermaid/./node_modules/d3-transition/src/selection/interrupt.js","webpack://mermaid/./node_modules/d3-transition/src/selection/transition.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attr.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attrTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/delay.js","webpack://mermaid/./node_modules/d3-transition/src/transition/duration.js","webpack://mermaid/./node_modules/d3-transition/src/transition/ease.js","webpack://mermaid/./node_modules/d3-transition/src/transition/end.js","webpack://mermaid/./node_modules/d3-transition/src/transition/filter.js","webpack://mermaid/./node_modules/d3-transition/src/transition/index.js","webpack://mermaid/./node_modules/d3-transition/src/transition/interpolate.js","webpack://mermaid/./node_modules/d3-transition/src/transition/merge.js","webpack://mermaid/./node_modules/d3-transition/src/transition/on.js","webpack://mermaid/./node_modules/d3-transition/src/transition/remove.js","webpack://mermaid/./node_modules/d3-transition/src/transition/schedule.js","webpack://mermaid/./node_modules/d3-transition/src/transition/select.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selectAll.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selection.js","webpack://mermaid/./node_modules/d3-transition/src/transition/style.js","webpack://mermaid/./node_modules/d3-transition/src/transition/styleTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/text.js","webpack://mermaid/./node_modules/d3-transition/src/transition/textTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/transition.js","webpack://mermaid/./node_modules/d3-transition/src/transition/tween.js","webpack://mermaid/./node_modules/d3-voronoi/src/Beach.js","webpack://mermaid/./node_modules/d3-voronoi/src/Cell.js","webpack://mermaid/./node_modules/d3-voronoi/src/Circle.js","webpack://mermaid/./node_modules/d3-voronoi/src/Diagram.js","webpack://mermaid/./node_modules/d3-voronoi/src/Edge.js","webpack://mermaid/./node_modules/d3-voronoi/src/RedBlackTree.js","webpack://mermaid/./node_modules/d3-voronoi/src/constant.js","webpack://mermaid/./node_modules/d3-voronoi/src/index.js","webpack://mermaid/./node_modules/d3-voronoi/src/point.js","webpack://mermaid/./node_modules/d3-voronoi/src/voronoi.js","webpack://mermaid/./node_modules/d3-zoom/src/constant.js","webpack://mermaid/./node_modules/d3-zoom/src/event.js","webpack://mermaid/./node_modules/d3-zoom/src/index.js","webpack://mermaid/./node_modules/d3-zoom/src/noevent.js","webpack://mermaid/./node_modules/d3-zoom/src/transform.js","webpack://mermaid/./node_modules/d3-zoom/src/zoom.js","webpack://mermaid/./node_modules/d3/dist/package.js","webpack://mermaid/./node_modules/d3/index.js","webpack://mermaid/./node_modules/dagre-d3/index.js","webpack://mermaid/./node_modules/dagre-d3/lib/arrows.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-paths.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/d3.js","webpack://mermaid/./node_modules/dagre-d3/lib/dagre.js","webpack://mermaid/./node_modules/dagre-d3/lib/graphlib.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/index.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-circle.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-line.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-node.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-polygon.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-rect.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-html-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-svg-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-text-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/lodash.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/render.js","webpack://mermaid/./node_modules/dagre-d3/lib/shapes.js","webpack://mermaid/./node_modules/dagre-d3/lib/util.js","webpack://mermaid/./node_modules/dagre-d3/lib/version.js","webpack://mermaid/./node_modules/dagre/index.js","webpack://mermaid/./node_modules/dagre/lib/acyclic.js","webpack://mermaid/./node_modules/dagre/lib/add-border-segments.js","webpack://mermaid/./node_modules/dagre/lib/coordinate-system.js","webpack://mermaid/./node_modules/dagre/lib/data/list.js","webpack://mermaid/./node_modules/dagre/lib/debug.js","webpack://mermaid/./node_modules/dagre/lib/graphlib.js","webpack://mermaid/./node_modules/dagre/lib/greedy-fas.js","webpack://mermaid/./node_modules/dagre/lib/layout.js","webpack://mermaid/./node_modules/dagre/lib/lodash.js","webpack://mermaid/./node_modules/dagre/lib/nesting-graph.js","webpack://mermaid/./node_modules/dagre/lib/normalize.js","webpack://mermaid/./node_modules/dagre/lib/order/add-subgraph-constraints.js","webpack://mermaid/./node_modules/dagre/lib/order/barycenter.js","webpack://mermaid/./node_modules/dagre/lib/order/build-layer-graph.js","webpack://mermaid/./node_modules/dagre/lib/order/cross-count.js","webpack://mermaid/./node_modules/dagre/lib/order/index.js","webpack://mermaid/./node_modules/dagre/lib/order/init-order.js","webpack://mermaid/./node_modules/dagre/lib/order/resolve-conflicts.js","webpack://mermaid/./node_modules/dagre/lib/order/sort-subgraph.js","webpack://mermaid/./node_modules/dagre/lib/order/sort.js","webpack://mermaid/./node_modules/dagre/lib/parent-dummy-chains.js","webpack://mermaid/./node_modules/dagre/lib/position/bk.js","webpack://mermaid/./node_modules/dagre/lib/position/index.js","webpack://mermaid/./node_modules/dagre/lib/rank/feasible-tree.js","webpack://mermaid/./node_modules/dagre/lib/rank/index.js","webpack://mermaid/./node_modules/dagre/lib/rank/network-simplex.js","webpack://mermaid/./node_modules/dagre/lib/rank/util.js","webpack://mermaid/./node_modules/dagre/lib/util.js","webpack://mermaid/./node_modules/dagre/lib/version.js","webpack://mermaid/./node_modules/entity-decode/browser.js","webpack://mermaid/./node_modules/graphlib/index.js","webpack://mermaid/./node_modules/graphlib/lib/alg/components.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dfs.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra-all.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra.js","webpack://mermaid/./node_modules/graphlib/lib/alg/find-cycles.js","webpack://mermaid/./node_modules/graphlib/lib/alg/floyd-warshall.js","webpack://mermaid/./node_modules/graphlib/lib/alg/index.js","webpack://mermaid/./node_modules/graphlib/lib/alg/is-acyclic.js","webpack://mermaid/./node_modules/graphlib/lib/alg/postorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/preorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/prim.js","webpack://mermaid/./node_modules/graphlib/lib/alg/tarjan.js","webpack://mermaid/./node_modules/graphlib/lib/alg/topsort.js","webpack://mermaid/./node_modules/graphlib/lib/data/priority-queue.js","webpack://mermaid/./node_modules/graphlib/lib/graph.js","webpack://mermaid/./node_modules/graphlib/lib/index.js","webpack://mermaid/./node_modules/graphlib/lib/json.js","webpack://mermaid/./node_modules/graphlib/lib/lodash.js","webpack://mermaid/./node_modules/graphlib/lib/version.js","webpack://mermaid/./node_modules/khroma/dist/channels/index.js","webpack://mermaid/./node_modules/khroma/dist/channels/reusable.js","webpack://mermaid/./node_modules/khroma/dist/channels/type.js","webpack://mermaid/./node_modules/khroma/dist/color/hex.js","webpack://mermaid/./node_modules/khroma/dist/color/hsl.js","webpack://mermaid/./node_modules/khroma/dist/color/index.js","webpack://mermaid/./node_modules/khroma/dist/color/keyword.js","webpack://mermaid/./node_modules/khroma/dist/color/rgb.js","webpack://mermaid/./node_modules/khroma/dist/consts.js","webpack://mermaid/./node_modules/khroma/dist/index.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust_channel.js","webpack://mermaid/./node_modules/khroma/dist/methods/alpha.js","webpack://mermaid/./node_modules/khroma/dist/methods/blue.js","webpack://mermaid/./node_modules/khroma/dist/methods/change.js","webpack://mermaid/./node_modules/khroma/dist/methods/channel.js","webpack://mermaid/./node_modules/khroma/dist/methods/complement.js","webpack://mermaid/./node_modules/khroma/dist/methods/darken.js","webpack://mermaid/./node_modules/khroma/dist/methods/desaturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/grayscale.js","webpack://mermaid/./node_modules/khroma/dist/methods/green.js","webpack://mermaid/./node_modules/khroma/dist/methods/hsla.js","webpack://mermaid/./node_modules/khroma/dist/methods/hue.js","webpack://mermaid/./node_modules/khroma/dist/methods/index.js","webpack://mermaid/./node_modules/khroma/dist/methods/invert.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_dark.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_light.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_valid.js","webpack://mermaid/./node_modules/khroma/dist/methods/lighten.js","webpack://mermaid/./node_modules/khroma/dist/methods/lightness.js","webpack://mermaid/./node_modules/khroma/dist/methods/luminance.js","webpack://mermaid/./node_modules/khroma/dist/methods/mix.js","webpack://mermaid/./node_modules/khroma/dist/methods/opacify.js","webpack://mermaid/./node_modules/khroma/dist/methods/red.js","webpack://mermaid/./node_modules/khroma/dist/methods/rgba.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturation.js","webpack://mermaid/./node_modules/khroma/dist/methods/scale.js","webpack://mermaid/./node_modules/khroma/dist/methods/transparentize.js","webpack://mermaid/./node_modules/khroma/dist/types.js","webpack://mermaid/./node_modules/khroma/dist/utils/channel.js","webpack://mermaid/./node_modules/khroma/dist/utils/index.js","webpack://mermaid/./node_modules/khroma/dist/utils/lang.js","webpack://mermaid/./node_modules/khroma/dist/utils/unit.js","webpack://mermaid/./node_modules/lodash/_DataView.js","webpack://mermaid/./node_modules/lodash/_Hash.js","webpack://mermaid/./node_modules/lodash/_ListCache.js","webpack://mermaid/./node_modules/lodash/_Map.js","webpack://mermaid/./node_modules/lodash/_MapCache.js","webpack://mermaid/./node_modules/lodash/_Promise.js","webpack://mermaid/./node_modules/lodash/_Set.js","webpack://mermaid/./node_modules/lodash/_SetCache.js","webpack://mermaid/./node_modules/lodash/_Stack.js","webpack://mermaid/./node_modules/lodash/_Symbol.js","webpack://mermaid/./node_modules/lodash/_Uint8Array.js","webpack://mermaid/./node_modules/lodash/_WeakMap.js","webpack://mermaid/./node_modules/lodash/_apply.js","webpack://mermaid/./node_modules/lodash/_arrayEach.js","webpack://mermaid/./node_modules/lodash/_arrayFilter.js","webpack://mermaid/./node_modules/lodash/_arrayIncludes.js","webpack://mermaid/./node_modules/lodash/_arrayIncludesWith.js","webpack://mermaid/./node_modules/lodash/_arrayLikeKeys.js","webpack://mermaid/./node_modules/lodash/_arrayMap.js","webpack://mermaid/./node_modules/lodash/_arrayPush.js","webpack://mermaid/./node_modules/lodash/_arrayReduce.js","webpack://mermaid/./node_modules/lodash/_arraySome.js","webpack://mermaid/./node_modules/lodash/_asciiSize.js","webpack://mermaid/./node_modules/lodash/_assignMergeValue.js","webpack://mermaid/./node_modules/lodash/_assignValue.js","webpack://mermaid/./node_modules/lodash/_assocIndexOf.js","webpack://mermaid/./node_modules/lodash/_baseAssign.js","webpack://mermaid/./node_modules/lodash/_baseAssignIn.js","webpack://mermaid/./node_modules/lodash/_baseAssignValue.js","webpack://mermaid/./node_modules/lodash/_baseClone.js","webpack://mermaid/./node_modules/lodash/_baseCreate.js","webpack://mermaid/./node_modules/lodash/_baseEach.js","webpack://mermaid/./node_modules/lodash/_baseExtremum.js","webpack://mermaid/./node_modules/lodash/_baseFilter.js","webpack://mermaid/./node_modules/lodash/_baseFindIndex.js","webpack://mermaid/./node_modules/lodash/_baseFlatten.js","webpack://mermaid/./node_modules/lodash/_baseFor.js","webpack://mermaid/./node_modules/lodash/_baseForOwn.js","webpack://mermaid/./node_modules/lodash/_baseGet.js","webpack://mermaid/./node_modules/lodash/_baseGetAllKeys.js","webpack://mermaid/./node_modules/lodash/_baseGetTag.js","webpack://mermaid/./node_modules/lodash/_baseGt.js","webpack://mermaid/./node_modules/lodash/_baseHas.js","webpack://mermaid/./node_modules/lodash/_baseHasIn.js","webpack://mermaid/./node_modules/lodash/_baseIndexOf.js","webpack://mermaid/./node_modules/lodash/_baseIsArguments.js","webpack://mermaid/./node_modules/lodash/_baseIsEqual.js","webpack://mermaid/./node_modules/lodash/_baseIsEqualDeep.js","webpack://mermaid/./node_modules/lodash/_baseIsMap.js","webpack://mermaid/./node_modules/lodash/_baseIsMatch.js","webpack://mermaid/./node_modules/lodash/_baseIsNaN.js","webpack://mermaid/./node_modules/lodash/_baseIsNative.js","webpack://mermaid/./node_modules/lodash/_baseIsSet.js","webpack://mermaid/./node_modules/lodash/_baseIsTypedArray.js","webpack://mermaid/./node_modules/lodash/_baseIteratee.js","webpack://mermaid/./node_modules/lodash/_baseKeys.js","webpack://mermaid/./node_modules/lodash/_baseKeysIn.js","webpack://mermaid/./node_modules/lodash/_baseLt.js","webpack://mermaid/./node_modules/lodash/_baseMap.js","webpack://mermaid/./node_modules/lodash/_baseMatches.js","webpack://mermaid/./node_modules/lodash/_baseMatchesProperty.js","webpack://mermaid/./node_modules/lodash/_baseMerge.js","webpack://mermaid/./node_modules/lodash/_baseMergeDeep.js","webpack://mermaid/./node_modules/lodash/_baseOrderBy.js","webpack://mermaid/./node_modules/lodash/_basePick.js","webpack://mermaid/./node_modules/lodash/_basePickBy.js","webpack://mermaid/./node_modules/lodash/_baseProperty.js","webpack://mermaid/./node_modules/lodash/_basePropertyDeep.js","webpack://mermaid/./node_modules/lodash/_baseRange.js","webpack://mermaid/./node_modules/lodash/_baseReduce.js","webpack://mermaid/./node_modules/lodash/_baseRest.js","webpack://mermaid/./node_modules/lodash/_baseSet.js","webpack://mermaid/./node_modules/lodash/_baseSetToString.js","webpack://mermaid/./node_modules/lodash/_baseSortBy.js","webpack://mermaid/./node_modules/lodash/_baseTimes.js","webpack://mermaid/./node_modules/lodash/_baseToString.js","webpack://mermaid/./node_modules/lodash/_baseUnary.js","webpack://mermaid/./node_modules/lodash/_baseUniq.js","webpack://mermaid/./node_modules/lodash/_baseValues.js","webpack://mermaid/./node_modules/lodash/_baseZipObject.js","webpack://mermaid/./node_modules/lodash/_cacheHas.js","webpack://mermaid/./node_modules/lodash/_castFunction.js","webpack://mermaid/./node_modules/lodash/_castPath.js","webpack://mermaid/./node_modules/lodash/_cloneArrayBuffer.js","webpack://mermaid/./node_modules/lodash/_cloneBuffer.js","webpack://mermaid/./node_modules/lodash/_cloneDataView.js","webpack://mermaid/./node_modules/lodash/_cloneRegExp.js","webpack://mermaid/./node_modules/lodash/_cloneSymbol.js","webpack://mermaid/./node_modules/lodash/_cloneTypedArray.js","webpack://mermaid/./node_modules/lodash/_compareAscending.js","webpack://mermaid/./node_modules/lodash/_compareMultiple.js","webpack://mermaid/./node_modules/lodash/_copyArray.js","webpack://mermaid/./node_modules/lodash/_copyObject.js","webpack://mermaid/./node_modules/lodash/_copySymbols.js","webpack://mermaid/./node_modules/lodash/_copySymbolsIn.js","webpack://mermaid/./node_modules/lodash/_coreJsData.js","webpack://mermaid/./node_modules/lodash/_createAssigner.js","webpack://mermaid/./node_modules/lodash/_createBaseEach.js","webpack://mermaid/./node_modules/lodash/_createBaseFor.js","webpack://mermaid/./node_modules/lodash/_createFind.js","webpack://mermaid/./node_modules/lodash/_createRange.js","webpack://mermaid/./node_modules/lodash/_createSet.js","webpack://mermaid/./node_modules/lodash/_defineProperty.js","webpack://mermaid/./node_modules/lodash/_equalArrays.js","webpack://mermaid/./node_modules/lodash/_equalByTag.js","webpack://mermaid/./node_modules/lodash/_equalObjects.js","webpack://mermaid/./node_modules/lodash/_flatRest.js","webpack://mermaid/./node_modules/lodash/_freeGlobal.js","webpack://mermaid/./node_modules/lodash/_getAllKeys.js","webpack://mermaid/./node_modules/lodash/_getAllKeysIn.js","webpack://mermaid/./node_modules/lodash/_getMapData.js","webpack://mermaid/./node_modules/lodash/_getMatchData.js","webpack://mermaid/./node_modules/lodash/_getNative.js","webpack://mermaid/./node_modules/lodash/_getPrototype.js","webpack://mermaid/./node_modules/lodash/_getRawTag.js","webpack://mermaid/./node_modules/lodash/_getSymbols.js","webpack://mermaid/./node_modules/lodash/_getSymbolsIn.js","webpack://mermaid/./node_modules/lodash/_getTag.js","webpack://mermaid/./node_modules/lodash/_getValue.js","webpack://mermaid/./node_modules/lodash/_hasPath.js","webpack://mermaid/./node_modules/lodash/_hasUnicode.js","webpack://mermaid/./node_modules/lodash/_hashClear.js","webpack://mermaid/./node_modules/lodash/_hashDelete.js","webpack://mermaid/./node_modules/lodash/_hashGet.js","webpack://mermaid/./node_modules/lodash/_hashHas.js","webpack://mermaid/./node_modules/lodash/_hashSet.js","webpack://mermaid/./node_modules/lodash/_initCloneArray.js","webpack://mermaid/./node_modules/lodash/_initCloneByTag.js","webpack://mermaid/./node_modules/lodash/_initCloneObject.js","webpack://mermaid/./node_modules/lodash/_isFlattenable.js","webpack://mermaid/./node_modules/lodash/_isIndex.js","webpack://mermaid/./node_modules/lodash/_isIterateeCall.js","webpack://mermaid/./node_modules/lodash/_isKey.js","webpack://mermaid/./node_modules/lodash/_isKeyable.js","webpack://mermaid/./node_modules/lodash/_isMasked.js","webpack://mermaid/./node_modules/lodash/_isPrototype.js","webpack://mermaid/./node_modules/lodash/_isStrictComparable.js","webpack://mermaid/./node_modules/lodash/_listCacheClear.js","webpack://mermaid/./node_modules/lodash/_listCacheDelete.js","webpack://mermaid/./node_modules/lodash/_listCacheGet.js","webpack://mermaid/./node_modules/lodash/_listCacheHas.js","webpack://mermaid/./node_modules/lodash/_listCacheSet.js","webpack://mermaid/./node_modules/lodash/_mapCacheClear.js","webpack://mermaid/./node_modules/lodash/_mapCacheDelete.js","webpack://mermaid/./node_modules/lodash/_mapCacheGet.js","webpack://mermaid/./node_modules/lodash/_mapCacheHas.js","webpack://mermaid/./node_modules/lodash/_mapCacheSet.js","webpack://mermaid/./node_modules/lodash/_mapToArray.js","webpack://mermaid/./node_modules/lodash/_matchesStrictComparable.js","webpack://mermaid/./node_modules/lodash/_memoizeCapped.js","webpack://mermaid/./node_modules/lodash/_nativeCreate.js","webpack://mermaid/./node_modules/lodash/_nativeKeys.js","webpack://mermaid/./node_modules/lodash/_nativeKeysIn.js","webpack://mermaid/./node_modules/lodash/_nodeUtil.js","webpack://mermaid/./node_modules/lodash/_objectToString.js","webpack://mermaid/./node_modules/lodash/_overArg.js","webpack://mermaid/./node_modules/lodash/_overRest.js","webpack://mermaid/./node_modules/lodash/_root.js","webpack://mermaid/./node_modules/lodash/_safeGet.js","webpack://mermaid/./node_modules/lodash/_setCacheAdd.js","webpack://mermaid/./node_modules/lodash/_setCacheHas.js","webpack://mermaid/./node_modules/lodash/_setToArray.js","webpack://mermaid/./node_modules/lodash/_setToString.js","webpack://mermaid/./node_modules/lodash/_shortOut.js","webpack://mermaid/./node_modules/lodash/_stackClear.js","webpack://mermaid/./node_modules/lodash/_stackDelete.js","webpack://mermaid/./node_modules/lodash/_stackGet.js","webpack://mermaid/./node_modules/lodash/_stackHas.js","webpack://mermaid/./node_modules/lodash/_stackSet.js","webpack://mermaid/./node_modules/lodash/_strictIndexOf.js","webpack://mermaid/./node_modules/lodash/_stringSize.js","webpack://mermaid/./node_modules/lodash/_stringToPath.js","webpack://mermaid/./node_modules/lodash/_toKey.js","webpack://mermaid/./node_modules/lodash/_toSource.js","webpack://mermaid/./node_modules/lodash/_unicodeSize.js","webpack://mermaid/./node_modules/lodash/clone.js","webpack://mermaid/./node_modules/lodash/cloneDeep.js","webpack://mermaid/./node_modules/lodash/constant.js","webpack://mermaid/./node_modules/lodash/defaults.js","webpack://mermaid/./node_modules/lodash/each.js","webpack://mermaid/./node_modules/lodash/eq.js","webpack://mermaid/./node_modules/lodash/filter.js","webpack://mermaid/./node_modules/lodash/find.js","webpack://mermaid/./node_modules/lodash/findIndex.js","webpack://mermaid/./node_modules/lodash/flatten.js","webpack://mermaid/./node_modules/lodash/forEach.js","webpack://mermaid/./node_modules/lodash/forIn.js","webpack://mermaid/./node_modules/lodash/get.js","webpack://mermaid/./node_modules/lodash/has.js","webpack://mermaid/./node_modules/lodash/hasIn.js","webpack://mermaid/./node_modules/lodash/identity.js","webpack://mermaid/./node_modules/lodash/isArguments.js","webpack://mermaid/./node_modules/lodash/isArray.js","webpack://mermaid/./node_modules/lodash/isArrayLike.js","webpack://mermaid/./node_modules/lodash/isArrayLikeObject.js","webpack://mermaid/./node_modules/lodash/isBuffer.js","webpack://mermaid/./node_modules/lodash/isEmpty.js","webpack://mermaid/./node_modules/lodash/isFunction.js","webpack://mermaid/./node_modules/lodash/isLength.js","webpack://mermaid/./node_modules/lodash/isMap.js","webpack://mermaid/./node_modules/lodash/isObject.js","webpack://mermaid/./node_modules/lodash/isObjectLike.js","webpack://mermaid/./node_modules/lodash/isPlainObject.js","webpack://mermaid/./node_modules/lodash/isSet.js","webpack://mermaid/./node_modules/lodash/isString.js","webpack://mermaid/./node_modules/lodash/isSymbol.js","webpack://mermaid/./node_modules/lodash/isTypedArray.js","webpack://mermaid/./node_modules/lodash/isUndefined.js","webpack://mermaid/./node_modules/lodash/keys.js","webpack://mermaid/./node_modules/lodash/keysIn.js","webpack://mermaid/./node_modules/lodash/last.js","webpack://mermaid/./node_modules/lodash/map.js","webpack://mermaid/./node_modules/lodash/mapValues.js","webpack://mermaid/./node_modules/lodash/max.js","webpack://mermaid/./node_modules/lodash/memoize.js","webpack://mermaid/./node_modules/lodash/merge.js","webpack://mermaid/./node_modules/lodash/min.js","webpack://mermaid/./node_modules/lodash/minBy.js","webpack://mermaid/./node_modules/lodash/noop.js","webpack://mermaid/./node_modules/lodash/now.js","webpack://mermaid/./node_modules/lodash/pick.js","webpack://mermaid/./node_modules/lodash/property.js","webpack://mermaid/./node_modules/lodash/range.js","webpack://mermaid/./node_modules/lodash/reduce.js","webpack://mermaid/./node_modules/lodash/size.js","webpack://mermaid/./node_modules/lodash/sortBy.js","webpack://mermaid/./node_modules/lodash/stubArray.js","webpack://mermaid/./node_modules/lodash/stubFalse.js","webpack://mermaid/./node_modules/lodash/toFinite.js","webpack://mermaid/./node_modules/lodash/toInteger.js","webpack://mermaid/./node_modules/lodash/toNumber.js","webpack://mermaid/./node_modules/lodash/toPlainObject.js","webpack://mermaid/./node_modules/lodash/toString.js","webpack://mermaid/./node_modules/lodash/transform.js","webpack://mermaid/./node_modules/lodash/union.js","webpack://mermaid/./node_modules/lodash/uniqueId.js","webpack://mermaid/./node_modules/lodash/values.js","webpack://mermaid/./node_modules/lodash/zipObject.js","webpack://mermaid/./node_modules/moment-mini/locale sync ^\\.\\/.*$","webpack://mermaid/./node_modules/moment-mini/moment.min.js","webpack://mermaid/./node_modules/path-browserify/index.js","webpack://mermaid/./node_modules/process/browser.js","webpack://mermaid/./node_modules/stylis/stylis.js","webpack://mermaid/(webpack)/buildin/global.js","webpack://mermaid/(webpack)/buildin/module.js","webpack://mermaid/./src/config.js","webpack://mermaid/./src/dagre-wrapper/clusters.js","webpack://mermaid/./src/dagre-wrapper/createLabel.js","webpack://mermaid/./src/dagre-wrapper/edges.js","webpack://mermaid/./src/dagre-wrapper/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-circle.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-ellipse.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-line.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-node.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-polygon.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-rect.js","webpack://mermaid/./src/dagre-wrapper/markers.js","webpack://mermaid/./src/dagre-wrapper/mermaid-graphlib.js","webpack://mermaid/./src/dagre-wrapper/nodes.js","webpack://mermaid/./src/dagre-wrapper/shapes/note.js","webpack://mermaid/./src/dagre-wrapper/shapes/util.js","webpack://mermaid/./src/diagrams/class/classDb.js","webpack://mermaid/./src/diagrams/class/classRenderer-v2.js","webpack://mermaid/./src/diagrams/class/classRenderer.js","webpack://mermaid/./src/diagrams/class/parser/classDiagram.jison","webpack://mermaid/./src/diagrams/class/styles.js","webpack://mermaid/./src/diagrams/class/svgDraw.js","webpack://mermaid/./src/diagrams/common/common.js","webpack://mermaid/./src/diagrams/er/erDb.js","webpack://mermaid/./src/diagrams/er/erMarkers.js","webpack://mermaid/./src/diagrams/er/erRenderer.js","webpack://mermaid/./src/diagrams/er/parser/erDiagram.jison","webpack://mermaid/./src/diagrams/er/styles.js","webpack://mermaid/./src/diagrams/flowchart/flowChartShapes.js","webpack://mermaid/./src/diagrams/flowchart/flowDb.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer-v2.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer.js","webpack://mermaid/./src/diagrams/flowchart/parser/flow.jison","webpack://mermaid/./src/diagrams/flowchart/styles.js","webpack://mermaid/./src/diagrams/gantt/ganttDb.js","webpack://mermaid/./src/diagrams/gantt/ganttRenderer.js","webpack://mermaid/./src/diagrams/gantt/parser/gantt.jison","webpack://mermaid/./src/diagrams/gantt/styles.js","webpack://mermaid/./src/diagrams/git/gitGraphAst.js","webpack://mermaid/./src/diagrams/git/gitGraphRenderer.js","webpack://mermaid/./src/diagrams/git/parser/gitGraph.jison","webpack://mermaid/./src/diagrams/git/styles.js","webpack://mermaid/./src/diagrams/info/infoDb.js","webpack://mermaid/./src/diagrams/info/infoRenderer.js","webpack://mermaid/./src/diagrams/info/parser/info.jison","webpack://mermaid/./src/diagrams/info/styles.js","webpack://mermaid/./src/diagrams/pie/parser/pie.jison","webpack://mermaid/./src/diagrams/pie/pieDb.js","webpack://mermaid/./src/diagrams/pie/pieRenderer.js","webpack://mermaid/./src/diagrams/pie/styles.js","webpack://mermaid/./src/diagrams/sequence/parser/sequenceDiagram.jison","webpack://mermaid/./src/diagrams/sequence/sequenceDb.js","webpack://mermaid/./src/diagrams/sequence/sequenceRenderer.js","webpack://mermaid/./src/diagrams/sequence/styles.js","webpack://mermaid/./src/diagrams/sequence/svgDraw.js","webpack://mermaid/./src/diagrams/state/id-cache.js","webpack://mermaid/./src/diagrams/state/parser/stateDiagram.jison","webpack://mermaid/./src/diagrams/state/shapes.js","webpack://mermaid/./src/diagrams/state/stateDb.js","webpack://mermaid/./src/diagrams/state/stateRenderer-v2.js","webpack://mermaid/./src/diagrams/state/stateRenderer.js","webpack://mermaid/./src/diagrams/state/styles.js","webpack://mermaid/./src/diagrams/user-journey/journeyDb.js","webpack://mermaid/./src/diagrams/user-journey/journeyRenderer.js","webpack://mermaid/./src/diagrams/user-journey/parser/journey.jison","webpack://mermaid/./src/diagrams/user-journey/styles.js","webpack://mermaid/./src/diagrams/user-journey/svgDraw.js","webpack://mermaid/./src/errorRenderer.js","webpack://mermaid/./src/logger.js","webpack://mermaid/./src/mermaid.js","webpack://mermaid/./src/mermaidAPI.js","webpack://mermaid/./src/styles.js","webpack://mermaid/./src/themes/index.js","webpack://mermaid/./src/themes/theme-base.js","webpack://mermaid/./src/themes/theme-dark.js","webpack://mermaid/./src/themes/theme-default.js","webpack://mermaid/./src/themes/theme-forest.js","webpack://mermaid/./src/themes/theme-neutral.js","webpack://mermaid/./src/utils.js"],"names":["handleThemeVariables","value","theme","getThemeVariables","default","manipulators","themeVariables","config","themeCSS","undefined","maxTextSize","fontFamily","logLevel","securityLevel","startOnLoad","arrowMarkerAbsolute","secure","flowchart","diagramPadding","htmlLabels","nodeSpacing","rankSpacing","curve","padding","sequence","activationWidth","diagramMarginX","diagramMarginY","actorMargin","width","height","boxMargin","boxTextMargin","noteMargin","messageMargin","messageAlign","mirrorActors","bottomMarginAdj","useMaxWidth","rightAngles","showSequenceNumbers","actorFontSize","actorFontFamily","actorFontWeight","noteFontSize","noteFontFamily","noteFontWeight","noteAlign","messageFontSize","messageFontFamily","messageFontWeight","wrap","wrapPadding","labelBoxWidth","labelBoxHeight","messageFont","fontSize","fontWeight","noteFont","actorFont","gantt","titleTopMargin","barHeight","barGap","topPadding","leftPadding","gridLineStartPadding","numberSectionStyles","axisFormat","journey","class","git","state","dividerMargin","sizeUnit","textHeight","titleShift","forkWidth","forkHeight","miniPadding","fontSizeFactor","labelHeight","edgeLengthFactor","compositTitleSize","radius","er","layoutDirection","minEntityWidth","minEntityHeight","entityPadding","stroke","fill","defaultConfig","Object","freeze","siteConfig","assignWithDepth","currentConfig","setSiteConfig","conf","keys","forEach","key","manipulator","clobber","getSiteConfig","setConfig","sanitize","getConfig","options","logger","warn","reset","configApi","rect","parent","node","log","trace","id","shapeSvg","insert","attr","label","text","appendChild","createLabel","labelText","labelStyle","bbox","getBBox","div","children","dv","select","getBoundingClientRect","halfPadding","JSON","stringify","rx","ry","x","y","rectBox","intersect","point","intersectRect","noteGroup","roundedWithTitle","classes","innerRect","append","divider","shapes","clusterElems","insertCluster","elem","shape","getClusterTitleWidth","removeChild","clear","positionCluster","info","el","applyStyle","dom","styleFn","addHtmlLabel","fo","document","createElementNS","labelClass","isNode","html","style","_vertexText","isTitle","vertexText","replace","s","vertexNode","svgLabel","setAttribute","rows","split","Array","isArray","j","length","tspan","setAttributeNS","textContent","trim","edgeLabels","insertEdgeLabel","edge","labelElement","edgeLabel","positionEdgeLabel","points","pos","utils","calcLabelPosition","outsideNode","dx","Math","abs","dy","w","h","intersection","outsidePoint","insidePoint","r","edges","x1","x2","y1","y2","Q","R","q","res","insertEdge","e","clusterDb","diagramType","graph","pointsHasChanged","tail","v","head","slice","unshift","push","toCluster","lastPointOutside","isInside","inter","pointPresent","p","find","fromCluster","updatedPoints","i","insterection","lineData","filter","Number","isNaN","lineFunction","line","d","curveBasis","strokeClasses","thickness","pattern","svgPath","url","window","location","protocol","host","pathname","search","arrowTypeStart","arrowTypeEnd","recursiveRender","_elem","diagramtype","parentCluster","graphlib","json","write","dir","rankdir","nodes","clusters","edgePaths","data","parse","clusterData","setNode","setParent","clusterNode","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","insertNode","name","dagre","layout","positionNode","updatedPath","render","markers","insertMarkers","clearNodes","clearEdges","clearClusters","clearGraphlib","adjustClustersAndEdges","circle","ellipse","polygon","intersectCircle","intersectEllipse","cx","cy","px","py","det","sqrt","intersectLine","p1","p2","q1","q2","a1","a2","b1","b2","c1","c2","r1","r2","r3","r4","denom","offset","num","sameSign","module","exports","intersectNode","console","intersectPolygon","polyPoints","intersections","minX","POSITIVE_INFINITY","minY","entry","min","left","top","sort","pdx","pdy","distp","qdx","qdy","distq","sx","sy","markerArray","type","markerName","extension","composition","aggregation","dependency","cross","barb","decendants","parents","isDecendant","ancenstorId","debug","indexOf","edgeInCluster","clusterId","copy","newGraph","rootId","setEdge","error","removeNode","extractDecendants","concat","validate","_id","getAnchorId","externalConnections","depth","d1","d2","extractor","removeEdge","hasChildren","graphSettings","clusterGraph","Graph","multigraph","compound","setGraph","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","question","labelHelper","questionElem","insertPolygonShape","hexagon","f","m","hex","rect_left_inv_arrow","lean_right","lean_left","trapezoid","inv_trapezoid","rect_right_inv_arrow","cylinder","rectWithTitle","innerLine","text2","flat","textRows","titleBox","descr","join","stadium","subroutine","start","forkJoin","end","innerCircle","class_box","rowPadding","lineHeight","topLine","bottomLine","maxWidth","maxHeight","labelContainer","verticalPos","hasInterface","classData","annotations","interfaceLabel","interfaceBBox","classTitleLabel","classTitleBBox","classAttributes","members","str","lbl","classMethods","methods","diffX","note","fork","nodeElems","_classes","element","map","MERMAID_DOM_ID_PREFIX","relations","classCounter","funs","parseDirective","statement","context","mermaidAPI","splitClassNameAndType","genericType","className","addClass","classId","cssClasses","domId","lookUpDomId","classKeys","setupToolTips","getClass","getClasses","getRelations","addRelation","relation","id1","id2","addAnnotation","annotation","validatedClassName","addMember","member","theClass","memberString","startsWith","endsWith","substring","addMembers","reverse","cleanupLabel","substr","setCssClass","ids","match","setLink","linkStr","tooltip","link","formatUrl","common","sanitizeText","setClickEvent","functionName","setClickFunc","elemId","querySelector","addEventListener","runFunc","bindFunctions","fun","lineType","LINE","DOTTED_LINE","relationType","AGGREGATION","EXTENSION","COMPOSITION","DEPENDENCY","tooltipElem","_groups","svg","selectAll","on","title","transition","duration","scrollX","right","scrollY","body","scrollTop","classed","parser","yy","classDb","idCache","addClasses","g","vertex","classStr","styles","radious","_shape","addRelations","cnt","defaultStyle","defaultLabelStyle","edgeData","arrowhead","getArrowMarker","type1","type2","getStylesFromArray","interpolate","interpolateToCurve","curveLinear","defaultInterpolate","arrowheadStyle","labelpos","labelType","lineBreakRegex","getGraphId","setConf","cnf","drawOld","diagram","isMultiGraph","classDef","svgDraw","drawClass","drawEdge","svgBounds","vBox","draw","_label","labels","querySelectorAll","k","dim","insertBefore","firstChild","marker","getStyles","nodeBorder","classText","mainBkg","nodeBkg","lineColor","edgeCount","path","getRelationType","l","labelPosition","p1_card_x","p1_card_y","p2_card_x","p2_card_y","cardinality_1_point","calcCardinalityPosition","cardinality_2_point","bounds","relationTitle1","relationTitle2","cssClassStr","classInfo","isFirst","titleText2","classTitleString","classTitle","titleHeight","membersLine","addTspan","membersBox","methodsLine","method","classBox","rectWidth","childNodes","parseMember","fieldRegEx","methodRegEx","fieldMatch","methodMatch","buildFieldDisplay","buildMethodDisplay","buildLegacyDisplay","parsedText","displayText","visibility","fieldType","parseGenericTypes","fieldName","err","cssStyle","methodName","parameters","classifier","returnType","parseClassifier","memberText","methodStart","methodEnd","firstChar","textEl","txt","tSpan","cleanedText","getRows","breakToPlaceholder","removeScript","rs","idx","level","placeholderToBreak","hasBreaks","test","splitBreaks","entities","relationships","Cardinality","ZERO_OR_ONE","ZERO_OR_MORE","ONE_OR_MORE","ONLY_ONE","Identification","NON_IDENTIFYING","IDENTIFYING","addEntity","getEntities","addRelationship","entA","rolA","entB","rSpec","rel","entityA","roleA","entityB","relSpec","getRelationships","setTitle","getTitle","ERMarkers","ONLY_ONE_START","ONLY_ONE_END","ZERO_OR_ONE_START","ZERO_OR_ONE_END","ONE_OR_MORE_START","ONE_OR_MORE_END","ZERO_OR_MORE_START","ZERO_OR_MORE_END","drawEntities","svgNode","firstOne","groupNode","textId","textNode","textBBox","entityWidth","max","entityHeight","rectNode","rectBBox","adjustEntities","getEdgeName","addRelationships","relationship","relCnt","drawRelationshipFromLayout","relType","erDb","cardA","erMarkers","cardB","len","getTotalLength","labelPoint","getPointAtLength","labelId","labelNode","labelBBox","erParser","directed","edgesep","firstEntity","edgeLabelBackground","dagreD3","addToRender","addToRenderV2","addShape","vertices","subGraphs","subGraphLookup","tooltips","subCount","firstGraphFlag","direction","addVertex","addSingleLink","_start","_end","linktext","addLink","updateLinkInterpolate","positions","interp","updateLink","isSubstringInArray","textStyles","newStyle1","newStyle2","setDirection","setClass","setTooltip","setClickFun","getTooltip","getDirection","getVertices","getEdges","addSubGraph","list","_title","uniq","a","prims","boolean","number","string","objs","item","hasOwnProperty","nodeList","apply","subGraph","getPosForId","secCount","posCrossRef","indexNodes2","result","count","posCount","childPos","getDepthFirstPos","indexNodes","getSubGraphs","firstGraph","destructStartLink","_str","destructEndLink","destructLink","_startStr","startInfo","lex","addVertices","vert","svgId","parentNode","addEdges","defaultStyles","linkId","linkNameStart","linkNameEnd","flowDb","flow","subG","linkNode","Render","flowChartShapes","arrows","none","normal","util","clusterRects","clusterEl","xPos","baseVal","yPos","cluster","te","classList","add","textColor","arrowheadColor","secondBkg","clusterBorder","titleColor","border2","dateFormat","todayMarker","excludes","sections","tasks","currentSection","tags","inclusiveEndDates","lastOrder","taskCnt","lastTask","lastTaskID","rawTasks","setAxisFormat","getAxisFormat","setTodayMarker","getTodayMarker","setDateFormat","enableInclusiveEndDates","endDatesAreInclusive","getDateFormat","setExcludes","toLowerCase","getExcludes","addSection","getSections","getTasks","allItemsPricessed","compileTasks","maxDepth","iterationCount","isInvalidDate","date","isoWeekday","format","checkTaskDates","task","manualEndTime","startTime","moment","endTime","renderEndTime","fixTaskDates","toDate","invalid","getStartDate","prevTime","re","afterStatement","exec","latestEndingTask","findTaskById","dt","Date","setHours","mDate","isValid","durationToDate","durationStatement","relativeTime","getEndDate","inclusive","parseId","idStr","compileData","prevTask","dataStr","ds","getTaskTags","endTimeData","parseData","prevTaskId","startData","taskDb","addTask","rawTask","section","processed","raw","taskInfo","active","done","crit","milestone","order","addTaskOrg","newTask","description","compileTask","allProcessed","_linkStr","sanitizeUrl","pushFun","open","functionArgs","argList","charAt","callbackFunction","matchFound","t","regex","RegExp","shift","ganttDb","rightPadding","getElementById","parentElement","offsetWidth","useWidth","taskArray","timeScale","scaleTime","domain","rangeRound","categories","catsUnfiltered","checkUnique","taskCompare","b","taskA","taskB","makeGant","pageWidth","pageHeight","gap","colorScale","scaleLinear","range","interpolateHcl","makeGrid","drawRects","vertLabels","drawToday","theArray","theGap","theTopPad","theSidePad","theBarHeight","theColorScale","enter","rectangles","toString","secNum","taskClass","startX","endX","textWidth","taskType","xAxis","axisBottom","tickSize","tickFormat","timeFormat","call","numOccurances","prevGap","getCount","todayG","today","todayLine","arr","hash","getCounts","obj","word","sectionBkgColor","sectionBkgColor2","altSectionBkgColor","gridColor","todayLineColor","taskTextDarkColor","taskTextClickableColor","taskTextColor","taskBkgColor","taskBorderColor","taskTextOutsideColor","activeTaskBkgColor","activeTaskBorderColor","doneTaskBorderColor","doneTaskBkgColor","critBorderColor","critBkgColor","commits","branches","master","curBranch","seq","getId","random","isfastforwardable","currentCommit","otherCommit","isReachableFrom","currentSeq","otherSeq","uniqBy","fn","recordMap","create","reduce","out","setOptions","rawOptString","message","getOptions","commit","msg","branch","merge","otherBranch","checkout","commitRef","ref","parentCount","parseInt","upsert","newval","index","splice","prettyPrintCommitHistory","commitArr","c","newCommit","nextCommit","prettyPrint","getCommitsArray","getBranchesAsObjArray","branchArr","getBranches","getCommits","o","getCurrentBranch","getHead","allCommitsDict","branchNum","nodeFillColor","nodeStrokeWidth","nodeStrokeColor","lineStrokeWidth","branchOffset","leftMargin","branchColors","nodeRadius","nodeLabel","apiConfig","svgCreateDefs","svgDrawLine","colorIdx","color","lineGen","round","getElementCoords","coords","ctm","getCTM","xn","yn","svgDrawLineForCommits","fromId","toId","fromBbox","toBbox","lineStart","lineEnd","cloneNode","selector","renderCommitHistory","commitid","numCommits","size","branchName","renderLines","branchColor","lineDrawn","ver","gitGraphParser","db","assign","setMessage","getMessage","setInfo","inf","getInfo","infoParser","cleanupValue","pieParser","pieData","margin","legendRectSize","legendSpacing","sum","scaleOrdinal","schemeSet2","pie","d3pie","dataReady","entries","arcGenerator","arc","innerRadius","outerRadius","toFixed","centroid","legend","horz","prevActor","actors","messages","notes","titleWrapped","sequenceNumbersEnabled","wrapEnabled","addActor","old","autoWrap","nextActor","activationCount","part","LINETYPE","ACTIVE_START","from","actor","ACTIVE_END","addMessage","idFrom","idTo","answer","to","addSignal","messageType","Error","token","loc","first_line","last_line","first_column","last_column","expected","getMessages","getActors","getActor","getActorKeys","getTitleWrapped","enableSequenceNumbers","setWrap","wrapSetting","parseMessage","SOLID","DOTTED","NOTE","SOLID_CROSS","DOTTED_CROSS","SOLID_OPEN","DOTTED_OPEN","LOOP_START","LOOP_END","ALT_START","ALT_ELSE","ALT_END","OPT_START","OPT_END","PAR_START","PAR_AND","PAR_END","RECT_START","RECT_END","ARROWTYPE","FILLED","OPEN","PLACEMENT","LEFTOF","RIGHTOF","OVER","addNote","placement","titleWrap","param","signalType","loopText","optText","altText","parText","sequenceDb","startx","stopx","starty","stopy","sequenceItems","activations","models","getHeight","loops","it","acc","actorModel","addLoop","loopModel","msgModel","noteModel","lastActor","lastLoop","lastMessage","lastNote","init","updateVal","val","updateBounds","_self","updateFn","updateItemBounds","n","_startx","_stopx","_starty","_stopy","newActivation","actorRect","stackedSize","actorActivations","anchored","anchorElement","endActivation","lastActorActivationIdx","activation","lastIndexOf","createLoop","newLoop","endLoop","pop","addSectionToLoop","loop","sectionTitles","getVerticalPos","bumpVerticalPos","bump","getBounds","drawNote","getNoteRect","rectElem","drawRect","textObj","getTextObj","anchor","textMargin","valign","textElem","drawText","curr","drawMessage","sequenceIndex","lines","textDims","calculateTextDimensions","totalOffset","lineStarty","fromBounds","toBounds","drawActors","actorKeys","prevWidth","prevMargin","drawActor","activationBounds","actorObj","adjustLoopHeightForWrap","loopWidths","preMargin","postMargin","addLoopFn","heightAdjust","loopWidth","textConf","wrapLabel","maxMessageWidthPerActor","getMaxMessageWidthPerActor","calculateActorMargins","calculateLoopBounds","insertArrowHead","insertArrowCrossHead","insertSequenceNumber","activeEnd","activationData","drawActivation","drawLoop","drawBackgroundRect","includes","box","actorLines","extraVertForTitle","isNote","isMessage","textFont","wrappedMessage","messageDimensions","messageWidth","actorToMessageWidth","prop","actDims","actorKey","actorWidth","buildNoteModel","shouldWrap","textDimensions","buildMessageModel","process","fromIdx","toIdx","allBounds","boundedWidth","msgDims","stack","current","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","toAdd","enabled","stk","actorBorder","actorBkg","actorTextColor","actorLineColor","signalColor","sequenceNumberColor","signalTextColor","labelBoxBorderColor","labelBoxBkgColor","labelTextColor","loopTextColor","noteBorderColor","noteBkgColor","noteTextColor","activationBkgColor","activationBorderColor","rectData","textData","prevTextHeight","textElems","yfunc","dominantBaseline","alignmentBaseline","span","drawLabel","txtObject","genPoints","cut","actorCnt","center","_drawTextCandidateFunc","drawLoopLine","sectionHeight","lower","defs","byText","content","textAttrs","_setTextAttrs","byTspan","byFo","toText","fromTextAttrsDict","textPlacement","set","get","drawStartState","drawDivider","drawSimpleState","stateDef","drawDescrState","descriptions","isSecond","descrLine","descrBox","addTitleAndBox","altBkg","pad","dblPad","orgBox","orgWidth","orgX","titleWidth","graphBox","doc","lineY","drawEndState","drawForkJoinState","parentId","tmp","nText","_drawLongText","_text","tHeight","textBounds","drawState","stateInfo","stateBox","stateDb","titleRows","boundstmp","boxHeight","heightAdj","clone","rootDoc","setRootDoc","getRootDoc","docTranslator","first","stmt","state1","state2","currentDoc","newNode","generateId","docNode","getRootDocV2","extract","_doc","addState","newDoc","states","documents","root","currentDocument","startCnt","endCnt","addDescription","des","getState","getStates","logDocuments","_id1","_id2","_descr","theState","dividerCnt","getDividerId","trimColon","nodeDb","setupNode","altFlag","nodeData","noteData","groupData","position","arrowType","setupDoc","startId","endId","transformationLog","renderDoc","getLabelWidth","edgeFreeDoc","ranker","nodeSep","sub","boxBounds","noteDef","nodeCount","svgElem","dividers","pWidth","pShift","getAttribute","labelColor","background","altBackground","allItemsProcessed","updateActors","tempActors","people","unique","Set","taskData","pieces","score","peeps","peopleList","journeyDb","taskMargin","taskFontSize","taskFontFamily","actorColours","sectionFills","sectionColours","drawActorLegend","person","colour","circleData","drawCircle","labelData","LEFT_MARGIN","initGraphics","actorNames","actorPos","actorName","drawTasks","fills","textColours","lastSection","sectionVHeight","taskPos","sectionNumber","drawSection","taskActors","drawTask","fillType0","fillType1","fillType2","fillType3","fillType4","fillType5","fillType6","fillType7","drawFace","faceData","circleElement","face","smile","d3arc","startAngle","PI","endAngle","sad","ambivalent","labelMargin","taskCount","graphics","LEVELS","fatal","setLogLevel","bind","time","arguments","mermaid","sequenceConfig","callback","Node","initialize","ganttConfig","now","innerHTML","decode","detectInit","svgCode","parseError","contentLoaded","graphInit","reinitialize","graphType","detectType","gitGraphAst","flowParser","sequenceParser","ganttParser","classParser","stateParser","infoDb","pieDb","journeyParser","encodeEntities","innerTxt","isInt","decodeEntities","_txt","cb","container","updateRendererConfigs","existingSvg","remove","userStyles","altFontFamily","flowRenderer","stylis","Stylis","rules","style1","createElement","gitGraphRenderer","flowRendererV2","sequenceDiagram","sequenceRenderer","ganttRenderer","classRenderer","classRendererV2","stateRenderer","stateRendererV2","infoRenderer","pkg","version","pieRenderer","erRenderer","journeyRenderer","errorRenderer","currentDirective","args","handleDirective","directive","globalReset","themes","classDiagram","stateDiagram","calcThemeVariables","userOverRides","calcColors","errorBkgColor","errorTextColor","base","baseThemeVariables","dark","darkThemeVariables","defaultThemeVariables","forest","forestThemeVariables","neutral","neutralThemeVariables","Theme","primaryColor","secondaryColor","tertiaryColor","lighten","relationColor","border1","labelBackground","updateColors","darken","clusterBkg","defaultLinkColor","taskTextLightColor","adjust","overrides","userOverrides","calculate","mainContrastColor","darkTextColor","invert","rgba","contrast","critical","d3CurveTypes","curveBasisClosed","curveBasisOpen","curveLinearClosed","curveMonotoneX","curveMonotoneY","curveNatural","curveStep","curveStepAfter","curveStepBefore","directiveWithoutOpen","anyComment","inits","detectDirective","results","commentWithoutDirectives","source","lastIndex","memoize","resolver","cache","defaultCurve","curveName","toUpperCase","arrPaths","fnName","params","distance","pow","traverseEdge","prevPoint","totalDistance","remainingDistance","vectorDistance","distanceRatio","isRelationTypePresent","initialPosition","distanceToCardinalityPoint","angle","atan2","cardinalityPosition","sin","cos","makeid","characters","charactersLength","floor","dst","src","drawSimpleText","joinWith","words","completedLines","nextLine","wordLength","calculateTextWidth","nextLineLength","breakString","hyphenatedStrings","remainingWord","Boolean","currentWord","isLastWord","hyphenCharacter","currentLine","character","lineWidth","currentCharacter","isLastLine","hyphenatedNextLine","calculateTextHeight","fontFamilies","dims","cheight","bBox"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;ACxCA;AAAA;AAAA;AAAA;;AAEO;AACA;;;;;;;;;;;;;ACHP;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AAAA;AAAoC;AACF;;AAElC,sBAAsB,yDAAQ,CAAC,kDAAS;AACjC;AACA;AACQ,0EAAW,EAAC;;;;;;;;;;;;;ACN3B;AAAA;AAAoC;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,WAAW,0DAAS;AACpB;AACA;;;;;;;;;;;;;AChCA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA6B;;AAEd;AACf;AACA;AACA;AACA;AACA;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AQ,cAAc,kDAAS;AACxC,CAAC;;;;;;;;;;;;;AC3BD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACpBD;AAAe;AACf;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACjCD;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAe;AACf;AACA;AACA;AACA;AACA,CAAC;;AAEM;AACP;AACA;;;;;;;;;;;;;ACTA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA8B;;AAEf;AACf,iCAAiC,+CAAM;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACbD;AAAe;AACf;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AAAoC;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kDAAS;;AAE1C;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACbD;AAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AAAA;AAAA;AAAA;AAA6B;AACQ;AACN;AACI;;AAEpB;AACf,WAAW,0CAAG,cAAc,+CAAM,OAAO,kDAAS;AAClD,uCAAuC,yDAAQ,iBAAiB,yDAAQ;AACxE,CAAC;;;;;;;;;;;;;ACRD;AAAA;AAAqC;;AAEtB;AACf,wCAAwC,0DAAS;AACjD,CAAC;;;;;;;;;;;;;ACJD;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClDA;AAAA;AAAwB;;AAET;AACf;AACA,uBAAuB,oDAAG,2CAA2C,SAAS;AAC9E,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;;;;;;;;;;;;ACdA;AAAA;AAA8B;;AAEf;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,uDAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,uDAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AChCD;AAAA;AAAoC;;AAErB;AACf,SAAS,0DAAS;AAClB,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAO;;;;;;;;;;;;;ACAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AACI;;AAElC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yGAAyG,iDAAQ;AACjH;AACA;AACA;AAC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AAwB,mCAAmC;AAC3D;;AAEA;AACA;AACA;AACA,uBAAuB,wCAAwC,EAAE;AACjE,wBAAwB,WAAW;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA,UAAU,kDAAK,aAAa,kDAAK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEe;AACf;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,kBAAkB,4DAAQ;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,2DAAM;AAChB;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAsC,eAAe,EAAE;;AAEvD;;AAEA;AACA,oCAAoC,mCAAmC,EAAE;AACzE,qCAAqC,wBAAwB,EAAE;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC,gDAAgD,EAAE;AAC3F,uDAAuD,gCAAgC,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kEAAW;;AAE/B;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY,+DAAS;AACrB;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,2DAAM;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,gHAAgH,EAAE;AACpJ,kCAAkC,gGAAgG,EAAE;AACpI,sCAAsC,uGAAuG,EAAE;AAC/I,uCAAuC,uGAAuG,EAAE;AAChJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,gEAAW,KAAK,iDAAU;AAChC;AACA;;AAEA;AACA,wBAAwB,kDAAK;AAC7B;;AAEA;AACA,eAAe,kDAAK;AACpB,wBAAwB,kDAAK,2EAA2E,kDAAK;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,kDAAK;AAClD;AACA;AACA,kBAAkB,kDAAK,mBAAmB,kDAAK,iCAAiC,kDAAK;AACrF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,2DAAM;AACtB;;AAEA;AACA;;AAEA,QAAQ,kDAAK;AACb;AACA;AACA,KAAK;AACL,iBAAiB,2DAAM,CAAC,kDAAK;AAC7B;AACA;AACA;AACA;AACA;;AAEA,MAAM,2DAAW,CAAC,kDAAK;AACvB;;AAEA,IAAI,iEAAa;AACjB,IAAI,+DAAS;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAuD;AACvD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,iEAAa;AACnB,UAAU,kDAAK;AACf,YAAY,kDAAK;AACjB;AACA,6CAA6C,oBAAoB,EAAE,OAAO;AAC1E,OAAO;AACP,QAAQ,0DAAU,CAAC,kDAAK;AACxB;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;;AAEA;AACA,cAAc,kDAAK;AACnB,kBAAkB;AAClB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA,wCAAwC;AACxC,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;;AAEA;AACA,cAAc,kDAAK;AACnB,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,gBAAgB,kDAAK;AACrB;AACA;AACA;AACA,aAAa;AACb,qCAAqC;AACrC,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA;AACA,sEAAsE,4DAAQ;AAC9E;;AAEA;AACA,sEAAsE,4DAAQ;AAC9E;;AAEA;AACA,yEAAyE,4DAAQ;AACjF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;AC5kBA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;;AAEpC;;AAEA;AACA;;AAEP;AACA;AACA;AACA,yBAAyB,IAAI;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAM;AACN;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClXA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACyB;AACzB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,6CAAG,OAAO,4DAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,gDAAO;AACzC;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,uBAAuB,yDAAM,CAAC,+CAAK;AACzC;AACA,oBAAoB,kDAAQ,YAAY,kDAAQ;AAChD;AACA,GAAG;AACH;AACA,oBAAoB,gDAAM,YAAY,gDAAM;AAC5C;AACA,GAAG;AACH;AACA,iDAAiD,gDAAO;AACxD;AACA;AACA;AACA;AACA,eAAe,6CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC5DD;AAAA;AAAe;AACf;AACA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;;;;;;;;;;;;;ACTA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsD;AACE;AACJ;;;;;;;;;;;;;ACFpD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACO;AACP;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,6CAAG,OAAO,4DAAU;AACzC;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM,CAAC,+CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,6CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC,gDAAO;AACxC;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,gDAAO;AACvB;AACA;;AAEA,0DAAM,WAAW,yDAAM,CAAC,+CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1HD;AAAA;AAAA;AAAO;AACA;;;;;;;;;;;;;ACDP;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;;AAEO;;;;;;;;;;;;;ACFP;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1CA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAe;AACf;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmE;AACrC;AACM;AACV;AACQ;AACA;AACR;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA,kBAAkB,yDAAgB;AAClC;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,uDAAM;AACzB,WAAW,yDAAQ;AACnB,WAAW,sDAAK;AAChB,KAAK;AACL,2BAA2B,kDAAS;AACpC;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,qDAAI;AACd;AACA,KAAK;;AAEL;AACA,mDAAmD,OAAO;AAC1D,YAAY,yDAAQ;AACpB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,+DAA+D;AAC/D;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,+DAA+D;AAC/D;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP,iEAAiE;AACjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAA4F,yDAAQ,CAAC,4CAAK,YAAY,yDAAQ;AAC9H;;AAEA;AACA,2DAA2D,6CAAI;AAC/D;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC1MD;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AAChB;AACM;AACF;AACA;;AAElC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,yDAAQ;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;;AAEpF;;AAEA;AACA;AACA,iBAAiB,oDAAG;AACpB,WAAW,yD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AAAA;AAAA;AAAA;AAAA;AAAA;AAA2B;;AAE3B,UAAU,uDAAG;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVP;AAAA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA,GAAG,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,YAAY,yCAAyC;AACrF;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,YAAY,yCAAyC;AACrF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACnKD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AACyE;AACA;AAC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AEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACxDD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqC;AACH;AACH;;AAExB;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,yDAAG;AAClB,gBAAgB,sDAAK;AACrB,cAAc,4DAAQ;;AAEtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA,OAAO;;AAEP,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACtJD;AAAA;AAAkC;;AAEnB;AACf,iBAAiB,yDAAQ;AACzB;AACA;AACA;;AAEA,mCAAmC,yDAAQ;;AAE3C;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wEAAwE,yDAAQ;AAChF;;AAEA;AACA,iEAAiE,yDAAQ;AACzE;;AAEA;A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DAAO;AACzC;AACA,uBAAuB,oDAAG;AAC1B;AACA,6BAA6B,gDAAO;AACpC;AACA,KAAK;AACL,8BAA8B,gDAAO;AACrC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,oDAAG;AACpB,GAAG;AACH;AACA;AACA,EAAE,mDAAU;AACZ;AACA;;AAEA;AACA,EAAE,mDAAU;AACZ;;AAEA;AACA;AACA,EAAE,mDAAU;AACZ,MAAM,oDAAG,aAAa,gDAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA,EAAE,0DAAM;;AAER;AACA;AACA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA,2EAA2E,QAAQ;AACnF;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AClLD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsD;;AAE/C;AACP,UAAU,sDAAK,8BAA8B,qDAAI;AACjD;;AAEO;AACP,0DAA0D,oDAAG;AAC7D,mBAAmB,oDAAG,mBAAmB,oDAAG,UAAU,oDAAG;AACzD;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACO;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACO;AACP,UAAU,qDAAI;AACd;AACA;;;;;;;;;;;;;AChCA;AAAA;AAAA;AAAA;AAA2F;AAC9D;AACI;;AAEjC;AACA;AACA;AACA;AACA;AACA,eAAe;;AAEf;AACA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,WAAW,oDAAG;AAC5B;;AAEA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,2CAAE,IAAI,2CAAE;AACxD;AACA;AACA;AACA;AACA;AACA,yBAAyB,8DAAU,oBAAoB,8DAAU;AACjE,yBAAyB,gDAAO;AAChC,yBAAyB,gDAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,8DAAU;AACxC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,+DAAS;AACtB,aAAa,+DAAS;;AAEtB;AACA;AACA;AACA,aAAa,oEAAc;AAC3B,eAAe,kEAAY;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB,oEAAc;AAC9B,YAAY,oEAAc;AAC1B,YAAY,oEAAc;AAC1B,IAAI,yEAAmB;;AAEvB;AACA;AACA,YAAY,kEAAY;AACxB,aAAa,kEAAY;AACzB,2BAA2B,kEAAY;;AAEvC;;AAEA,YAAY,qDAAI;AAChB,YAAY,oEAAc;AAC1B,IAAI,yEAAmB;AACvB,QAAQ,+DAAS;;AAEjB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,oDAAG,SAAS,2CAAE,IAAI,gDAAO;AACzC,oCAAoC,gDAAO;;AAE3C;;AAEA;AACA;AACA;AACA,sCAAsC,oDAAG,mBAAmB,gDAAO;AACnE;AACA,kBAAkB,2CAAE;AACpB,eAAe,oEAAc;AAC7B,MAAM,yEAAmB;AACzB,iBAAiB,+DAAS;AAC1B;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,2CAAE;AACrC;AACA,+BAA+B;AAC/B,mCAAmC;AACnC,4BAA4B;AAC5B,gCAAgC;AAChC;AACA;;AAEA,SAAS,yDAAI,gEAAgE,2CAAE,WAAW,2CAAE;AAC5F,CAAC;;;;;;;;;;;;;ACrLD;AAAA;AAA2C;;AAE5B;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D,6DAAa;AAC5E,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqC;AACA;AACM;AACS;AACrB;;AAEhB;AACf;AACA;AACA,qBAAqB,0DAAU;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,mBAAmB,sDAAK;AACxB,0BAA0B,mEAAe;AACzC;AACA;AACA,UAAU,0DAAU;AACpB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC,+CAAM,GAAG,gDAAO,GAAG,+CAAM;AAC7D,oCAAoC,+CAAM,GAAG,gDAAO,GAAG,+CAAM;AAC7D;;;;;;;;;;;;;AClIA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1DD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AACH;AACJ;AACI;AACN;;AAE/B;;AAEA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,WAAW,oDAAG,cAAc,gDAAO;AACnC,UAAU,oDAAG,cAAc,gDAAO;AAClC,UAAU,oDAAG,cAAc,gDAAO;AAClC,gCAAgC;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,0DAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,OAAO;AAChD,kHAAkH,OAAO;AACzH;AACA,yBAAyB,yEAAyE;AAClG,gBAAgB,0EAA0E;AAC1F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,sDAAK;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,0DAAU;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,cAAc,wDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;ACvKA;AAAA;AAA0C;;AAE1C;AACA;AACA;AACA,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,yBAAyB;AACzB;;AAEA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,8DAAU;AAClB;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA,8BAA8B,OAAO;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,qCAAqC,QAAQ;AAC7C,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACpGA;AAAe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAAgE;AACd;AACN;;AAE5C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,mCAAmC;AACxE;AACA;;AAEA;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;;;;;;;;;;;;AClCA;AAAA;AAAe;;;;;;;;;;;;;ACAf;AAAA;AAAA;AAAA;AAAgC;AACD;AACD;;AAE9B,cAAc,yDAAK;AACnB,kBAAkB,yDAAK;AACvB;AACA;AACA;AACA;;AAEA;AACA,SAAS,gDAAI;AACb,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA,GAAG;AACH;AACA,mEAAmE,gDAAI;AACvE,gBAAgB,oDAAG;AACnB;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe,yEAAU,EAAC;;;;;;;;;;;;;ACjD1B;AAAA;AAA8B;;AAE9B;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf,gBAAgB,gDAAI;AACpB,cAAc,gDAAI;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC3B5B;AAAA;AAAgC;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAC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AE9B,gBAAgB,yDAAK;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS,gDAAI;AACb;AACA;AACA,GAAG;AACH;AACA;AACA,yBAAyB,gDAAI;AAC7B,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,qDAAI;AACpB;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC5C5B;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1DA;AAAA;AAAuC;;AAExB;AACf,SAAS,oDAAG,gBAAgB,gDAAO,IAAI,oDAAG,gBAAgB,gDAAO;AACjE,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAA+B;AACqD;AACY;;AAEhG,UAAU,yDAAK;;AAEf;AACA,MAAM,oDAAG,cAAc,2CAAE;AACzB;AACA;AACA,WAAW,qDAAI,eAAe,oDAAG,aAAa,2CAAE,IAAI,4CAAG,GAAG,2CAAE;AAC5D;;AAEe;AACf;AACA;AACA,eAAe,oDAAG;AAClB,gBAAgB,oDAAG,WAAW,oDAAG;AACjC;AACA;;AAEA;;AAEA,0BAA0B,+CAAM,GAAG,gDAAO;AAC1C,iCAAiC,+CAAM,GAAG,gDAAO;;AAEjD,qCAAqC,OAAO;AAC5C;AACA;AACA;AACA;AACA;AACA,+BAA+B,kDAAS;AACxC,kBAAkB,oDAAG;AACrB,kBAAkB,o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;;;;;;;ACzBA;AAAA;AAAA;AAAO;AACP;AACA;;AAEO;AACP;AACA;AACA;;;;;;;;;;;;;ACPA;AAAA;AAAA;AAAO;;AAEA;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;ACfA;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnFD;AAAA;AAAO;AACP;AACA;;AAEe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAe;AACf;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO;AAC3D;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAe;AACf;AACA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAe;AACf;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACTD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoC;AACF;AACY;AACF;AACZ;AACE;AACA;AACU;AACI;AACV;AACF;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAU;AACnB,QAAQ,gDAAS;AACjB,aAAa,qDAAc;AAC3B,cAAc,sDAAe;AAC7B,OAAO,+CAAQ;AACf,QAAQ,gDAAS;AACjB,QAAQ,gDAAS;AACjB,aAAa,qDAAc;AAC3B,eAAe,uDAAgB;AAC/B,UAAU,kDAAW;AACrB,SAAS,kDAAU;AACnB;AACA;;;;;;;;;;;;;AC9EA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA,wBAAwB;AACxB,kBAAkB,kCAAkC;AACpD;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7BA;AAAe;AACf;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACRD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgD;AACU;AACV;AACW;AACF;AACL;AACF;AACR;AACY;AACO;AACJ;AACE;AACQ;AACF;AACI;;;;;;;;;;;;;ACdrE;AAAA;AAA2C;;AAE5B;AACf,4BAA4B,yDAAO,CAAC,+CAAK;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;;AAEA;;AAEA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa,kBAAkB;AAC/B,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrHA;AAAA;AAAA;AAAA;AAA0C;AACD;AACa;;AAEtD;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA,gBAAgB,yDAAY;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,kCAAkC,yDAAY;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,8DAAQ;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,uEAAuE,4DAAQ;AAC/E;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,OAAO;AAC/B,UAAU,gEAAW;AACrB,wBAAwB,OAAO;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9EA;AAAA;AAAA;AAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO;AACP;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wCAAwC,KAAK,2DAAO;;AAEvE;AACA,aAAa,OAAO;;AAEpB;AACA;;AAEe;AACf;AACA;AACA,CAAC;;;;;;;;;;;;;ACrHD;AAAA;AAAA;AAA2C;AACC;;AAE7B;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,yDAAS;AACxC;AACA;;AAEA;AACA;AACA;AACA,QAAQ,gEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnDD;AAAA;AAAA;AAAwC;AACiB;;AAEzD;AACA,eAAe,UAAU;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB,yCAAyC,wDAAI;AAC7C;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,oCAAoC,KAAK,EAAE,aAAa,iEAAa;AACzG;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC,8DAAQ;AAC5C;;AAEA;AACA,0CAA0C,8DAAQ;AAClD;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACxED;AAAA;AAA0C;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,gBAAgB;AAChB,aAAa;AACb,aAAa;AACb,aAAa;AACb,aAAa;AACb,gBAAgB;AAChB,aAAa;AACb;;AAEA,mCAAmC,wDAAI;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACe;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC5OD;AAAe;AACf;AACA;AACA;;AAEA,6BAA6B,OAAO;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC7CD;AAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAA;AAAA;AAAA;AAAA;AAAmC;AACE;AACI;AACa;;AAEvC;AACf,aAAa,oDAAQ;AACrB;AACA;AACA;AACA;AACA,qBAAqB,yDAAY;AACjC,mBAAmB,yDAAY;AAC/B,qBAAqB,yDAAY;AACjC,sBAAsB,yDAAY;AAClC,oBAAoB,yDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iDAAS;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sCAAsC,8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AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA,2BAA2B;AAC3B;AACA;AACA,wCAAwC;AACxC,2BAA2B;AAC3B;AACA,KAAK,OAAO;AACZ;AACA,cAAc,SAAS,0DAAM,SAAS;AACtC;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,OAAO;AACnC;AACA,SAAS;AACT,CAAC;;;;;;;;;;;;;AC/DD;AAAA;AAAA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACzBD;AAAA;AAAA;AAAA;AAAA;AAAkC;AACY;;AAE9C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,aAAa,0DAAM,SAAS,GAAG,aAAa,0DAAM,SAAS;AACzE,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,gCAAgC,gCAAgC;AAChE,cAAc,sDAAsD,0DAAM,OAAO;AACjF,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,cAAc,qDAAqD,0DAAM,OAAO;AAChF,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc,aAAa,0DAAM,SAAS,GAAG,aAAa,0DAAM,SAAS;AACzE,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,mDAAmD,kDAAQ;AAC3D,mDAAmD,kDAAQ;;;;;;;;;;;;;AC9DlE;AAAA;AAAA;AAAA;AAAmD;;AAEnD;AACA;AACA;AACA;;AAEO;AACP,+BAA+B,sDAAQ;AACvC;AACA;AACA;AACA;AACA;AACA,SAAS,6DAAS;AAClB;;AAEO;AACP,4BAA4B,sDAAQ;AACpC;AACA;AACA,iEAAiE,sDAAQ;AACzE;AACA,SAAS,6DAAS;AAClB;;;;;;;;;;;;;ACxBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+B;AACJ;AACa;AACX;AACI;AACA;AACA;AACI;AACuB;;AAE7C;AACf;AACA,wCAAwC,4DAAQ;AAChD,0BAA0B,kDAAM;AAChC,+BAA+B,sDAAK,eAAe,+CAAG,IAAI,kDAAM;AAChE,qBAAqB,8CAAK,GAAG,+CAAG;AAChC,4BAA4B,gDAAI;AAChC,QAAQ,qEAAa,MAAM,uDAAW;AACtC,2BAA2B,sDAAY;AACvC,0FAA0F,kDAAM;AAChG,QAAQ,kDAAM;AACd,CAAC;;;;;;;;;;;;;ACrBD;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC/DD;AAAA;AAAA;AAAA;AAA0C;;;;;;;;;;;;;ACA1C;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe,mEAAI,EAAC;;;;;;;;;;;;;ACjIpB;AAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACdD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACfD;AAAA;AACA;AACA;AACA;AACe;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AAA+B;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,OAAO;AACxB,uBAAuB,yDAAK;AAC5B;AACA;;AAEA,gCAAgC;AAChC;;AAEe;AACf;;AAEA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA,aAAa,OAAO;;AAEpB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,QAAQ;AAC3C,qBAAqB,qCAAqC;;AAE1D;AACA,CAAC;;;;;;;;;;;;;AChDD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiD;AACQ;AACR;AACQ;AACJ;;;;;;;;;;;;;ACJrD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACtBD;AAAA;AAAe;AACf;AACA;AACA;AACA,CAAC;;AAED;AACA,wCAAwC;;AAExC;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mDAAmD;AACnD,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD,oDAAoD;AACpD,GAAG;AACH;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;;;;;;;;;;;;;ACnFA;AAAe;AACf,kDAAkD;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,yCAAyC;AACzC,yCAAyC;AACzC,yCAAyC;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1CD;AAAe;AACf;AACA;AACA,8CAA8C;AAC9C,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA6B;;AAEd;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,gDAAI;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,YAAY,gDAAI;AAChB,YAAY,gDAA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;;;;;;;;;AC7BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmC;AACY;AACd;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO;AACP;;AAEA;AACA;AACA;;AAEA,SAAS,yDAAS;AAClB;;AAEe;AACf,wBAAwB,+DAAW;;AAEnC;AACA,WAAW,wDAAI;AACf;;AAEA,SAAS,+CAAS;AAClB;;;;;;;;;;;;;AClCA;AAAA;AAAA;AAAA;AAAA;AAAgC;AACF;AACG;;AAElB;AACf;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,uDAAM;AAChC;;AAEA;AACA,wCAAwC,4CAAK;AAC7C;;AAEA;AACA,uCAAuC,4CAAK;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,+CAAS;AAClB;;;;;;;;;;;;;ACvCA;AAAA;AAAA;AAAkC;AAC+E;;AAElG;AACf,aAAa,yDAAQ;AACrB;AACA,cAAc,iEAAe;AAC7B;AACA;AACA;AACA,4DAA4D,iEAAe;AAC3E,aAAa,8DAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,gEAAc;AAC1E;AACA;AACA;AACA;AACA,4DAA4D,gEAAc;AAC1E;AACA;AACA;AACA,SAAS,wDAAM;AACf,CAAC;;;;;;;;;;;;;AC5BD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA4C;AACsE;AACxE;AACd;AAC4B;AACvB;AACP;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEO;AACP,cAAc,2DAAU,CAAC,oDAAQ,EAAE,oDAAQ;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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0DAAS,qCAAqC,qDAAI;AAC9D,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAiC;;AAElB;AACf,mDAAmD,wDAAO;AAC1D;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACPD;AAAA;AAAqC;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,0DAAS;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACxDD;AAAe;AACf;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACLD;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1ED;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AAAA;AAAA;AAAkC;AACA;AACC;;AAEnC,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,gBAAgB;AACxB;AACA;AACA;AACA,KAAK;AACL,qBAAqB,gDAAS;AAC9B;AACA;;AAEA;AACA,QAAQ,iBAAiB;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;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ACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0CAA0C,OAAO;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA,6CAA6C,OAAO;AACpD,4BAA4B,OAAO;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;;;;;;AC1GA;AAAe;;AAEf,4DAA4D,SAAS;AACrE,4EAA4E,UAAU;AACtF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC3BD;AAAA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACPD;AAAA;AAAA;AAAkC;AACC;;AAEpB;AACf,6CAA6C,yDAAQ;;AAErD,qFAAqF,OAAO;AAC5F,+GAA+G,OAAO;AACtH;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;;;;;AChBD;AAAA;AAAA;AAAkC;AACO;;AAE1B;AACf,6CAA6C,4DAAW;;AAExD,yFAAyF,OAAO;AAChG,8DAA8D,OAAO;AACrE;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;;;;;AChBD;AAAe;AACf;AACA,wBAAwB,QAAQ,EAAE;AAClC;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAkC;;AAEnB;AACf;;AAEA;AACA;AACA;;AAEA,sF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ACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,8CAA8C;AAC9C,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B,oFAAoF;AAClH,iCAAiC;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AClDD;AAAA;AAAA;AAA8B;AACG;;AAEjC;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,4BAA4B;AAC1D,8BAA8B,4BAA4B,4FAA4F;AACtJ,eAAe,uDAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACnDD;AAAA;AAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,oFAAoF,0EAA0E;AAC5L,8BAA8B;AAC9B,eAAe,uDAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACtCD;AAAA;AAAiC;;AAEjC;AACA,oBAAoB,+CAAK;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,4BAA4B,+CAAK;AACjC;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,OAAO,EAAC;;;;;;;;;;;;;ACvDT;AAAA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,8CAA8C;AAC9C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B,4BAA4B;AAC1D,8BAA8B;AAC9B,iCAAiC;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AC5DN;AAAA;AAAA;AAAA;AAA8B;AACM;;AAE7B;AACP;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,kDAAkD;AAChF,8BAA8B,4BAA4B;AAC1D,eAAe,0DAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AC5DN;AAAA;AAAA;AAAoC;;AAE7B;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,kGAAkG;AAChI,8BAA8B;AAC9B,eAAe,0DAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AChDN;AAAA;AAAA;AAAA;AAAmC;AACI;;AAEhC;AACP;AACA;AACA;AACA;;AAEA,oBAAoB,gDAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,gDAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,6CAA6C;AAC7C;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B;AAC9B,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,wDAAwD,qDAAQ;AAChE;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;ACvFR;AAAA;AAAA;AAAA;AAAmD;AACrB;AACQ;;AAEtC;AACA;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,kDAAkD;AAChF,8BAA8B,4BAA4B;AAC1D,eAAe,4DAAK,aAAa;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,8DAA8D,iEAAc;AAC5E;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;ACzER;AAAA;AAAA;AAA+C;AACT;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,kGAAkG;AAChI,8BAA8B;AAC9B,eAAe,4DAAK,aAAa;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,4DAA4D,6DAAY;AACxE;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;AC7DR;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,0CAA0C;AAC1C;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AC9BD;AAAA;AAA8B;;AAE9B;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACxBD;AAAA;AAAA;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,4DAA4D;AAC5D;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,iDAAiD;AACjD;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B,wDAAwD;AACtF,8DAA8D;AAC9D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0BAA0B,4BAA4B,EAAE;AACxD,yBAAyB,2BAA2B,EAAE;AACtD,0BAA0B,4BAA4B,EAAE;AACxD,iDAAiD,mDAAmD;AACpG;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;;;;;;;;;;;;ACvGA;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB;AACA,aAAa,OAAO;AACpB;AACA,iBAAiB,QAAQ;AACzB;AACA,aAAa,WAAW;AACxB;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AChED;AAAA;AAAA;AAAA;AAAsC;;AAE/B,oCAAoC,kDAAW;;AAEtD;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;;AAEA;AACA;;;;;;;;;;;;;ACnCA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sE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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACjBF;AAAA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACbF;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACNF;AAAA;AAAmC;;AAEnC;AACA,kBAAkB,2CAAE,sBAAsB,2CAAE;AAC5C,kBAAkB,4CAAG;AACrB,mBAAmB,4CAAG;;AAEP;AACf;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,OAAO;AAC1B,cAAc,4CAAG;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACvBF;AAAA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACVF;AAAA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,EAAC;;;;;;;;;;;;;ACzBF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuC;;AAEvC;AACO;AACA;AACA;AACA;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAEc;AACf,WAAW,0DAAY;AACvB;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAC1D;AACJ;AACF;;;;;;;;;;;;;ACHlD;AAAA;AAAA;AAA6C;;AAEtC;;AAEP;AACA;AACA;;AAEA;AACA;AACA,MAAM,mEAAS;;AAEA,wEAAS,EAAC;;;;;;;;;;;;;ACZzB;AAAA;AAAA;AAA4C;AACA;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,kEAAQ,CAAC,0DAAY;;AAEZ,uEAAQ,EAAC;;;;;;;;;;;;;ACZxB;AAAA;AAAA;AAWiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iDAAS,cAAc,yDAAS;AACxE,iBAAiB,8CAAM;AACvB;AACA;AACA;AACA,SAAS;AACT;AACA,wCAAwC,kDAAU,cAAc,0DAAU;AAC1E,iBAAiB,+CAAO;AACxB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;;AAEA,YAAY,4BAA4B;AACxC;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;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;AACP;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP,QAAQ;AACR,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;AACpB;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;;AC7GA;AAAA;AAAA;AAAiD;AACE;;AAEnD;;AAEe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,iEAAS;AACrD,mBAAmB,+DAAU;AAC7B;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACpBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AAC8B;AACd;AACM;;;;;;;;;;;;;ACHpD;AAAA;AAAiE;;AAElD;AACf;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,kDAAkD,eAAe,UAAU;AAC3E,8BAA8B,gEAAQ,qBAAqB,8DAAM;AACjE,qBAAqB,6DAAK;AAC1B;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAA;AAAA;AAAuC;AACU;AACE;;AAEnD,sDAAS,uBAAuB,qDAAmB;AACnD,sDAAS,wBAAwB,sDAAoB;;;;;;;;;;;;;ACLrD;AAAA;AAAwC;;AAEzB;AACf;AACA,IAAI,6DAAS;AACb,GAAG;AACH,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAA;AAAA;AAAA;AAAyD;AACR;AACV;AACV;;AAE7B;AACA;AACA;AACA;AACA,QAAQ,sDAAc;AACtB;;AAEA;AACA;AACA;AACA;AACA,kCAAkC,oDAAG;AACrC;AACA;AACA;AACA;;AAEe;AACf;AACA;;AAEA,sBAAsB,+DAAU;AAChC;AACA,GAAG;AACH,SAAS,kEAAK,oCAAoC,oDAAG;AACrD;;AAEA,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,QAAQ,uEAAQ;AAChB;AACA;AACA;;AAEA,aAAa,+DAAU;AACvB,CAAC;;;;;;;;;;;;;ACzCD;AAAA;AAAA;AAAA;AAAA;AAA+E;AACxC;AACD;AACK;;AAE3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,8DAAS,uCAAuC,sEAAoB,GAAG,uDAAW;AACnG;AACA,sEAAsE,4DAAU;AAChF;AACA;AACA,CAAC;;;;;;;;;;;;;AC7ED;AAAA;AAAuC;;AAEvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA,iBAAiB,8DAAS;AAC1B;AACA,CAAC;;;;;;;;;;;;;AC3CD;AAAA;AAAwC;;AAExC;AACA;AACA,IAAI,yDAAI;AACR;AACA;;AAEA;AACA;AACA,IAAI,yDAAI;AACR;AACA;;AAEe;AACf;;AAEA;AACA;AAC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ACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;AAEM;AACP;AACA,0DAA0D;AAC1D;AACA;;AAEO;AACP;AACA,0DAA0D;AAC1D;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,sDAAK;;AAEpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C,sCAAsC,wDAAO;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;AACxD;AACA,0DAA0D;AAC1D;AACA,IAAI,wDAAO;AACX;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,wCAAwC;AACxC;;AAEA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;;;;;;;;;;;;;ACxJA;AAAA;AAAA;AAAA;AAAsC;AACA;AACM;;AAE7B;AACf;AACA;;AAEA,6CAA6C,6DAAQ;;AAErD,qFAAqF,OAAO;AAC5F,+GAA+G,OAAO;AACtH;AACA;AACA;AACA,QAAQ,4DAAQ,qCAAqC,wDAAG;AACxD;AACA;AACA;;AAEA,aAAa,oDAAU;AACvB,CAAC;;;;;;;;;;;;;ACrBD;AAAA;AAAA;AAAA;AAAyC;AACH;AACM;;AAE7B;AACf;AACA;;AAEA,6CAA6C,gEAAW;;AAExD,yFAAyF,OAAO;AAChG,8DAA8D,OAAO;AACrE;AACA,yFAAyF,wDAAG,uCAAuC,OAAO;AAC1I;AACA,YAAY,4DAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,oDAAU;AACvB,CAAC;;;;;;;;;;;;;ACzBD;AAAA;AAAuC;;AAEvC,gBAAgB,sDAAS;;AAEV;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+E;AAC5C;AACD;AACI;AACK;;AAE3C;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB,oDAAoD,0DAAK;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB;AACA;AACA,6EAA6E,0DAAK;AAClF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,wDAAG;AACtB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf,yCAAyC,sEAAoB,GAAG,uDAAW;AAC3E;AACA;AACA;AACA;AACA,+CAA+C,4DAAU;AACzD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC/ED;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAsC;;AAEtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,qBAAqB,4DAAU;AAC/B;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAA;AAA6C;AACD;;AAE7B;AACf;AACA;AACA,YAAY,uDAAK;;AAEjB,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,sBAAsB,wDAAG;AACzB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AAEA;AACA;AACA,cAAc,wDAAU;;AAExB,EAAE,4DAAY;AACd,EAAE,4DAAY;AACd;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,gDAAO;;AAEpB;AACA;AACA,cAAc,gDAAO,gBAAgB;AACrC;AACA,gBAAgB,gDAAO;AACvB;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,mBAAmB,gDAAO;AAC1B;AACA;AACA,SAAS,iBAAiB,gDAAO;AACjC;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAE,wDAAU;AACZ;AACA,EAAE,gDAAO;;AAET;;AAEA;AACA,IAAI,4DAAY;AAChB;AACA,IAAI,gDAAO;AACX,8BAA8B,wDAAU;AACxC,IAAI,4DAAY;AAChB,IAAI,4DAAY;AAChB;AACA;;AAEA,cAAc;AACd,kBAAkB,wDAAU;AAC5B;AACA;;AAEA;AACA,EAAE,4DAAY;AACd,EAAE,4DAAY;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAE,wDAAU;AACZ,gBAAgB,wDAAU;AAC1B,cAAc,wDAAU;AACxB,EAAE,4DAAY;AACd,EAAE,4DAAY;AACd;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AACQ;;AAEzC;AACP,SAAS,8CAAK;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP,sBAAsB,8CAAK,+BAA+B,OAAO;AACjE,gBAAgB,8CAAK;AACrB;AACA;AACA,iBAAiB,OAAO,uDAAuD,8CAAK;AACpF,iCAAiC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ACA;AACA;;AAEA;AACA,YAAY,iDAAQ;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6DAA6D;;AAE7D;;AAEA;AACA,aAAa,gDAAO;;AAEpB;AACA;AACA;AACA,YAAY,iBAAiB,OAAO;AACpC,KAAK;AACL;AACA,YAAY,eAAe,OAAO;AAClC;AACA;;AAEA,EAAE,gDAAO;AACT;AACA;;AAEO;AACP;AACA;AACA;AACA,IAAI,gDAAO;AACX;AACA,IAAI,kEAAY;AAChB;AACA;AACA;;;;;;;;;;;;;AC7EA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AACyB;AAClC;AACJ;AACS;;AAEnC;AACA;AACA;AACA;AACA;AACA;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,qDAAY;AAC5B,gBAAgB,qDAAY;;AAE5B;AACA,aAAa,mDAAW;AACxB;AACA;AACA,QAAQ,uDAAQ;AAChB;AACA;AACA;AACA,KAAK;AACL,MAAM,0DAAW;AACjB,KAAK;AACL;AACA;AACA;;AAEA,EAAE,+DAAiB;;AAEnB;AACA;AACA;AACA;AACA;AACA,IAAI,uDAAS;AACb,IAAI,uDAAS;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,oDAAoD,QAAQ,+DAAiB,iBAAiB,EAAE;AAChG;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;;AAEA;AACA;AACA;;;;;;;;;;;;;AC7IA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgD;;AAEzC;AACP;AACA,cAAc,8CAAK;AACnB;AACA;AACA;AACA;AACA,EAAE,8CAAK;AACP,EAAE,8CAAK;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,0CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP,UAAU,8CAAK;AACf;;AAEA;AACA,4BAA4B,8CAAK;AACjC;AACA,iDAAiD,gDAAO;AACxD,mDAAmD,gDAAO;AAC1D,aAAa,8CAAK;AAClB;AACA;AACA;;;;;;;;;;;;;ACvKA;AAAA;AAAA;AACA,gBAAgB;AAChB;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,gBAAgB,QAAQ;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC5O5B;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAA6C;;;;;;;;;;;;;ACA7C;AAAA;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AAU,kDAAK,aAAa,kDAAK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,sDAAQ;AAChC;;AAEA;AACA,UAAU,kDAAK,WAAW,kDAAK,0BAA0B,kDAAK;AAC9D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8DAAe;AACnC,kBAAkB,4DAAQ;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sDAAQ;AAC/B;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,+CAA+C,uDAAS;AACxD;;AAEA;AACA;AACA,oEAAoE,uDAAS;AAC7E;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,kCAAkC,EAAE;AAC1E,mDAAmD,gCAAgC,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,kBAAkB,4BAA4B,SAAS,uDAAS,sCAAsC;AACtG;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;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AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;;;;;;;;;;;;ACrEA;;AAEA;AACA;AACA;;;;;;;;;;;;ACJA;;AAEA,oBAAoB,mBAAO,CAAC,iFAAkB;;AAE9C;;AAEA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;AACA;AACA,OAAO,8BAA8B,GAAG,8BAA8B;AACtE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;ACxDA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;;;;;;;;;;;AC/BA,WAAW,mBAAO,CAAC,oDAAS;;AAE5B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc,EAAE;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mC;;AAEA;AACA;;;;;;;;;;;;ACpCA,mBAAmB,mBAAO,CAAC,6EAAkB;AAC7C,mBAAmB,mBAAO,CAAC,6EAAkB;AAC7C,mBAAmB,mBAAO,CAAC,2EAAiB;;AAE5C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;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8BAA8B;AAC7D,gCAAgC,gCAAgC;AAChE,GAAG;;AAEH;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvKa;;AAEb,oBAAoB,mBAAO,CAAC,2FAA4B;AACxD,uBAAuB,mBAAO,CAAC,iGAA+B;AAC9D,sBAAsB,mBAAO,CAAC,+FAA8B;AAC5D,uBAAuB,mBAAO,CAAC,iGAA+B;;AAE9D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,eAAe;AACpB,KAAK,eAAe;AACpB,KAAK,eAAe;AACpB,KAAK;AACL;AACA;AACA,4CAA4C,wBAAwB,EAAE;;AAEtE;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;AChFA,QAAQ,mBAAO,CAAC,uDAAU;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACrDA;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,mBAAO,CAAC,4DAAgB;;AAEpC,UAAU,mBAAO,CAAC,wDAAc;AAChC,SAAS,mBAAO,CAAC,sDAAa;AAC9B;AACA,UAAU,mBAAO,CAAC,oDAAY;AAC9B,YAAY,mBAAO,CAAC,oDAAY;AAChC,GAAG;AACH,WAAW,mBAAO,CAAC,0DAAe;AAClC;;;;;;;;;;;;;AChCa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,gBAAgB,mBAAO,CAAC,4DAAc;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;AClEA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,2BAA2B,YAAY;AACvC;AACA;;;;;;;;;;;;;ACrCa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,+BAA+B,EAAE;AACrE,oCAAoC,+BAA+B,EAAE;AACrE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,wBAAwB,EAAE;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,sBAAsB,EAAE;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvDA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;AAC3B,YAAY,mBAAO,CAAC,wDAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,mCAAmC,aAAa;;AAErE;AACA,kBAAkB,WAAW;AAC7B;AACA,GAAG;;AAEH;AACA,0BAA0B;AAC1B,GAAG;;AAEH;AACA;AACA,uBAAuB,eAAe;AACtC;AACA,uBAAuB,iBAAiB;AACxC;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;;;;;;;;;;;ACjCA;;AAEA;;AAEA,IAAI,IAA6B;AACjC;AACA,eAAe,mBAAO,CAAC,kDAAU;AACjC,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,YAAY,mBAAO,CAAC,wDAAY;AAChC,WAAW,mBAAO,CAAC,0DAAa;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,wCAAwC;AACjF,yCAAyC,wCAAwC;AACjF;AACA,sCAAsC,OAAO;AAC7C;A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EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,wBAAwB,EAAE;AAC9D;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,gBAAgB;AAC3C,2BAA2B,gBAAgB;AAC3C,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D,4DAA4D;AAC5D;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,+BAA+B;AACxC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA,2CAA2C;AAC3C;;AAEA;;AAEA;AACA,oCAAoC,6BAA6B,EAAE;;AAEnE;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA,0BAA0B,wCAAwC;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,uCAAuC,WAAW,EAAE;AACpD;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;ACnIa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,wBAAwB,EAAE;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,2BAA2B;AACpD;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,2BAA2B;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;ACzFA,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA,eAAe;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,4BAA4B;AACtD;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpDA,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,GAAG,oBAAoB;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;AC1BA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;;AAEjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB,YAAY,aAAa;AAClE,wCAAwC,kBAAkB,EAAE;;AAE5D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,oCAAoC;AAClE,OAAO;;AAEP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACxEa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC,UAAU,EAAE;AACnD;AACA;AACA,cAAc;AACd,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,oDAAoD,UAAU,EAAE;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;;AClEa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,gBAAgB,mBAAO,CAAC,kEAAc;AACtC,iBAAiB,mBAAO,CAAC,oEAAe;AACxC,mBAAmB,mBAAO,CAAC,wEAAiB;AAC5C,sBAAsB,mBAAO,CAAC,gFAAqB;AACnD,6BAA6B,mBAAO,CAAC,8FAA4B;AACjE,YAAY,mBAAO,CAAC,yDAAa;AACjC,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,+BAA+B,cAAc;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;;;;;;;;;;;;AC9Ea;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,sDAAsD,uBAAuB,EAAE;AAC/E,uDAAuD,WAAW,EAAE;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qDAAqD,uBAAuB,EAAE;AAC9E;;AAEA;AACA;;;;;;;;;;;;;ACrCa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,sBAAsB;AACxD,8BAA8B,EAAE;AAChC;AACA;AACA;AACA,yCAAyC,0BAA0B;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD,sBAAsB,EAAE;AAC1E;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzHA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,iBAAiB,mBAAO,CAAC,kEAAc;AACvC,uBAAuB,mBAAO,CAAC,gFAAqB;AACpD,WAAW,mBAAO,CAAC,sDAAQ;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;AC3EA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sDAAsD,iBAAiB,EAAE;AACzE;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACxDA,QAAQ,mBAAO,CAAC,oDAAU;;AAE1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;;;;;;;;;;;;ACrFa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;AACjC,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,uCAAuC,eAAe,EAAE;AACxD;AACA,wDAAwD,SAAS;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sDAAsD,kBAAkB,EAAE;AAC1E;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAA0C,WAAW,EAAE;AACvD;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;AAC1C,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AClaa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,WAAW,mBAAO,CAAC,iDAAS;AAC5B,gBAAgB,mBAAO,CAAC,qDAAM;;AAE9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,oDAAoD,yBAAyB,EAAE;AAC/E;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;;;;;;;;;;;;;AC5Ba;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;AACjC,YAAY,mBAAO,CAAC,qDAAQ;;AAE5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,kBAAkB;;AAEvC;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,0BAA0B;AAC1B;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;ACxFa;;AAEb,eAAe,mBAAO,CAAC,qDAAQ;AAC/B;AACA,mBAAmB,mBAAO,CAAC,uEAAiB;AAC5C,qBAAqB,mBAAO,CAAC,2EAAmB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD,wCAAwC;AACxC,4CAA4C;AAC5C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AC/Ca;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,mBAAmB,mBAAO,CAAC,uEAAiB;AAC5C,YAAY,mBAAO,CAAC,qDAAQ;AAC5B,eAAe,mBAAO,CAAC,qDAAQ;AAC/B,eAAe,mBAAO,CAAC,yDAAa;AACpC,gBAAgB,mBAAO,CAAC,yDAAa;AACrC,eAAe,mBAAO,CAAC,iDAAS;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH,6CAA6C,uBAAuB,EAAE;AACtE;;AAEA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,0BAA0B,EAAE;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACzOa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,wBAAwB;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9DA;;AAEa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,YAAY,mBAAO,CAAC,wDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,kCAAkC,EAAE;AACxE;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA,8BAA8B,+BAA+B;AAC7D;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;;AAEA;AACA,0CAA0C,KAAK;AAC/C,KAAK,oBAAoB;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,4DAA4D,WAAW,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAAgD,uBAAuB,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,mDAAmD,uBAAuB,EAAE;;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iCAAiC,yBAAyB,EAAE;AAC5D;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;AC7OA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;;AAEe;AACf;AACA;AACA,iFAAiF;AACjF;AACA;;AAEA;AACA;;;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,+BAA+B;AAC3C;AACA;AACA;AACA;;AAEA,UAAU,mBAAO,CAAC,mDAAO;;AAEzB;AACA;AACA,QAAQ,mBAAO,CAAC,uDAAY;AAC5B,OAAO,mBAAO,CAAC,2DAAW;AAC1B;AACA;;;;;;;;;;;;ACrCA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;AC1BA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,aAAa;AAClC;AACA;AACA,KAAK;AACL,oBAAoB,aAAa;AACjC;AACA;;;;;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,+DAAY;AACnC,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA,GAAG,IAAI;AACP;;;;;;;;;;;;ACTA,QAAQ,mBAAO,CAAC,wDAAW;AAC3B,oBAAoB,mBAAO,CAAC,kFAAwB;;AAEpD;;AAEA;;A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A;;;;;;;;;;;;ACdA,UAAU,mBAAO,CAAC,qDAAO;;AAEzB;;AAEA;AACA;AACA;;;;;;;;;;;;ACNA,UAAU,mBAAO,CAAC,qDAAO;;AAEzB;;AAEA;AACA;AACA;;;;;;;;;;;;ACNA,QAAQ,mBAAO,CAAC,wDAAW;AAC3B,YAAY,mBAAO,CAAC,sDAAU;AAC9B,oBAAoB,mBAAO,CAAC,kFAAwB;;AAEpD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;ACnDA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;AC9CA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC,gD;;;;;;;;;;;AClCvC,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,cAAc,EAAE;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,6BAA6B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvJa;;AAEb,QAAQ,mBAAO,CAAC,uDAAU;;AAE1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oEAAoE,WAAW;AAC/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,oCAAoC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,kBAAkB,eAAe;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACnhBA;AACA;AACA,SAAS,mBAAO,CAAC,qDAAS;AAC1B,WAAW,mBAAO,CAAC,yDAAW;AAC9B;;;;;;;;;;;;ACJA,QAAQ,mBAAO,CAAC,uDAAU;AAC1B,YAAY,mBAAO,CAAC,qDAAS;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AAC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ACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD;AACA;;;;;;;;;;;;;AClJa;AACb;AACA,8CAA8C,cAAc;AAC5D,SAAS,mBAAO,CAAC,uDAAG;AACpB;AACA,+BAA+B,yBAAyB;AACxD;AACA;;;;;;;;;;;;;ACPa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,qDAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;;;;;;;;;;;;;AC1Ba;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C,eAAe,mBAAO,CAAC,uDAAW;AAClC;AACA;AACA;AACA,wBAAwB,EAAE,EAAE,IAAI,UAAU,EAAE;AAC5C;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnCa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjDa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,qDAAU;AAChC,YAAY,mBAAO,CAAC,sDAAO;AAC3B,gBAAgB,mBAAO,CAAC,8DAAW;AACnC,YAAY,mBAAO,CAAC,sDAAO;AAC3B,YAAY,mBAAO,CAAC,sDAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,gJAAgJ;AAChJ;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC5Ca;AACb;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,sDAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7Ka;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnCa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,0DAAS;AAC/B;AACA;AACA;AACA,eAAe,UAAU;AACzB,iDAAiD;;;;;;;;;;;;;ACRpC;AACb;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D,SAAS,mBAAO,CAAC,8DAAW;;;;;;;;;;;;;ACNf;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,eAAe,mBAAO,CAAC,8DAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChBa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CA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;AAChL;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACfa;AACb;AACA,8CAA8C,cAAc;AAC5D,uBAAuB,mBAAO,CAAC,8EAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTa;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA,CAAC,oBAAoB;AACrB;AACA;;;;;;;;;;;;;ACVa;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,gBAAgB,EAAE;AAC3C,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,qCAAqC;AAC9D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACxFa;AACb;AACA,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,8DAAW;AACnC,aAAa,mBAAO,CAAC,wDAAQ;AAC7B,aAAa,mBAAO,CAAC,wDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACba;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTa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A;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;AACnC,cAAc,mBAAO,CAAC,qDAAY;AAClC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;;AAEA;;;;;;;;;;;;ACXA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA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C,qDAAY;AACnC,YAAY,mBAAO,CAAC,+CAAS;AAC7B,eAAe,mBAAO,CAAC,qDAAY;AACnC,YAAY,mBAAO,CAAC,+CAAS;AAC7B,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;ACpKA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,qBAAqB,mBAAO,C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AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClFA,aAAa,mBAAO,CAAC,mDAAW;AAChC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,YAAY,mBAAO,CAAC,iDAAU;AAC9B,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACXA,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,uDAAa;AACpC,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9CA,aAAa,mBAAO,CAAC,mDAAW;AAChC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,eAAe,mBAAO,CAAC,qDAAY;AACnC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3DA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,0BAA0B,mBAAO,CAAC,6EAAwB;AAC1D,eAAe,mBAAO,CAAC,qDAAY;AACnC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9BA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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ClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7FA,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,qDAAY;AAClC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,6BAA6B;AACxC,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,YAAY;AACZ,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACjCA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,YAAY,mBAAO,CAAC,+CAAS;;AAE7B;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;AClBA,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,qDAAY;AAClC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;A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AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9CA,eAAe,mBAAO,CAAC,qDAAY;AACnC,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,mDAAW;AAChC,eAAe,mBAAO,CAAC,uDAAa;AACpC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,eAAe,mBAAO,CAAC,uDAAa;AACpC,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,wBAAwB,mBAAO,CAAC,yEAAsB;AACtD,eAAe,mBAAO,CAAC,uDAAa;AACpC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACvEA,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACZA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,cAAc,mBAAO,CAAC,mDAAW;AACjC,YAAY,mBAAO,CAAC,iDAAU;AAC9B,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxCA,uBAAuB,mBAAO,CAAC,uEAAqB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,mBAAmB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,sBAAsB,mBAAO,CAAC,qEAAoB;;AAElD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO,WAAW;AAC7B,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACvCA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,WAAW,mBAAO,CAAC,+CAAS;;AAE5B;AACA;;AAEA;;;;;;;;;;;;ACLA,eAAe,mBAAO,CAAC,uDAAa;AACpC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACpCA,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,+CAA+C;AAChF;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7BA,UAAU,mBAAO,CAAC,6CAAQ;AAC1B,WAAW,mBAAO,CAAC,6CAAQ;AAC3B,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClBA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;AACA;AACA,WAAW,QAAQ;AACnB;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;;;;ACVA,eAAe,mBAAO,CAAC,uDAAa;AACpC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClFA,aAAa,mBAAO,CAAC,mDAAW;AAChC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,SAAS,mBAAO,CAAC,yCAAM;AACvB,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/GA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxFA,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,uDAAa;AACpC,kBAAkB,mBAAO,CAAC,6DAA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A;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;AC7BA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,eAAe,mBAAO,CAAC,uDAAa;AACpC,UAAU,mBAAO,CAAC,6CAAQ;AAC1B,cAAc,mBAAO,CAAC,qDAAY;AAClC,UAAU,mBAAO,CAAC,6CAAQ;AAC1B,cAAc,mBAAO,CAAC,qDAAY;AAClC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA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AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,uBAAuB,mBAAO,CAAC,uEAAqB;AACpD,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,sBAAsB,mBAAO,CAAC,qEAAoB;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5EA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;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AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACZA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;AClBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,WAAW,mBAAO,CAAC,+CAAS;AAC5B,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,UAAU,mBAAO,CAAC,6CAAQ;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;;AAEA;;;;;;;;;;;;ACLA,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;;AAEA;;;;;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,+DAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;;;;;AC7BA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA,YAAY,mBAAO,CAAC,iDAAU;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;ACjBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,UAAU,mBAAO,CAAC,6CAAQ;AAC1B,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,oBAAoB,mBAAO,CAAC,iEAAkB;;AAE9C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;;;;;;;;;;;;AC1BA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3CA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,eAAe,mBAAO,CAAC,uDAAa;AACpC,SAAS,mBAAO,CAAC,yCAAM;AACvB,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,aAAa,mBAAO,CAAC,iDAAU;;AAE/B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,eAAe,SAAS,GAAG,SAAS,GAAG,SAAS;AAChD,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;;;;;;;;;;;;AC/DA,iBAAiB,mBAAO,CAAC,mDAAW;;;;;;;;;;;;ACApC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,MAAM,8CAA8C;AACpD,MAAM;AACN;AACA;AACA,gCAAgC,kBAAkB,EAAE;AACpD;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/CA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA,MAAM,+CAA+C;AACrD,MAAM,gDAAgD;AACtD,MAAM;AACN;AACA;AACA,8BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA;AACA,kBAAkB,2BAA2B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;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AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtCA,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB,QAAQ,OAAO,SAAS,EAAE;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB,OAAO,SAAS;AACjC,yBAAyB,gBAAgB,SAAS,GAAG;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA,0BAA0B,gBAAgB,SAAS,GAAG;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA,6BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAkB,EAAE;AAClE;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,yDAAW,mBAAO,CAAC,+CAAS;AAC5B,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACrCA,eAAe,mBAAO,CAAC,uDAAa;AACpC,aAAa,mBAAO,CAAC,mDAAW;AAChC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,cAAc,mBAAO,CAAC,mDAAW;AACjC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,eAAe,mBAAO,CAAC,qDAAY;AACnC,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5EA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7DA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,cAAc,mBAAO,CAAC,mDAAW;AACjC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,uBAAuB,mBAAO,CAAC,uEAAqB;AACpD,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,eAAe,mBAAO,CAAC,uDAAa;AACpC,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;AACA;AACA;AACA,MAAM,mBAAmB;AACzB,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpDA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,iBAAiB,+BAA+B;AAChD,iBAAiB;AACjB;AACA;AACA,mCAAmC,cAAc,EAAE;AACnD,UAAU,2BAA2B;AACrC;AACA;AACA;AACA,UAAU,2BAA2B;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;AC1CA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,aAAa,mBAAO,CAAC,mDAAW;AAChC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACxEA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,UAAU,QAAQ,iBAAiB,GAAG,iBAAiB;AACvD;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;ACtCA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC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Y,mBAAO,CAAC,iDAAU;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA,MAAM,OAAO,SAAS,EAAE;AACxB,MAAM,OAAO,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA,IAAI,IAAI;AACR,UAAU,8BAA8B;AACxC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;AClDA,eAAe,mBAAO,CAAC,uDAAa;AACpC,aAAa,mBAAO,CAAC,mDAAW;AAChC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,eAAe,mBAAO,CAAC,qDAAY;AACnC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,yBAAyB;AACpC;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM;AACN;AACA;AACA,iCAAiC,eAAe,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACnCA,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjEA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,aAAa,mBAAO,CAAC,iDAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;AACnC,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,qDAAY;AACnC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,gBAAgB,yBAAyB;AACzC;AACA,IAAI,IAAI;AACR,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;AChEA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,eAAe,mBAAO,CAAC,uDAAa;AACpC,wBAAwB,mBAAO,CAAC,uEAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;ACzBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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C,gBAAgB,oDAAoD,2QAA2Q,IAAI,4BAA4B,oCAAoC,yBAAyB,oBAAoB,mDAAmD,iDAAiD,kBAAkB,gDAAgD,kBAAkB,qCAAqC,4BAA4B,iBAAiB,wBAAwB,wBAAwB,0FAA0F,4BAA4B,wBAAwB,4CAA4C,6DAA6D,6BAA6B,+BAA+B,+BAA+B,gDAAgD,YAAY,aAAa,oFAAoF,gGAAgG,aAAa,sBAAsB,aAAa,iCAAiC,iCAAiC,uDAAuD,qDAAqD,uCAAuC,4EAA4E,gCAAgC,0BAA0B,2GAA2G,6BAA6B,2OAA2O,GAAG,E;;;;;;;;;;;;;;;;;;;;;;;ACA1koD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,MAAM;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,8BAA8B;AAClE;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,oBAAoB;AAC9B;AACA;;AAEA;AACA,UAAU,UAAU;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,sBAAsB;AACrD;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7SA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;;;;;ACvLtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,CAAC,KAA4D;AAC7D,EAAE,SACmC;AACrC,CAAC,aAAa,GAAG,uCAAuC;;AAExD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,GAAG,gCAAgC;AAC7D,qBAAqB,6CAA6C;AAClE,mBAAmB,GAAG,KAAK,KAAK,kCAAkC;AAClE,oBAAoB,GAAG;AACvB;AACA,mCAAmC,EAAE;AACrC;AACA;AACA,+BAA+B;AAC/B,6EAA6E;AAC7E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB,2BAA2B;AAC3B,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA,6BAA6B,cAAc;;AAE3C;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC,YAAY;;AAE5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8DAA8D,YAAY;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,YAAY;AAChD,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE,0CAA0C;AAC1C,4CAA4C;AAC5C;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,sDAAsD;AACtD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,YAAY;AAChE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B;AACA;AACA,sFAAsF,YAAY;AAClG;AACA;AACA;;AAEA,qEAAqE,OAAO;AAC5E;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,cAAc;AAC1B,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,sCAAsC,aAAa;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,yBAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,yBAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,WAAW;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,oDAAoD;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,4CAA4C,YAAY;AACxD;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,EAAE;AACd;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,oCAAoC;AACpC,sCAAsC;AACtC,wCAAwC;AACxC,0CAA0C;AAC1C,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAC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B4iB,SAAS,CAACrb,CAAV,GAAcvH,OAA7C,cAAwDM,KAAxD,cAAiEC,MAAjE,CAAV;AACAgF,gDAAM,CAACmQ,KAAP,mBAAwBmN,IAAxB;AACAP,SAAO,CAACnc,IAAR,CAAa,SAAb,EAAwB0c,IAAxB;AACD,CA9FM;AAgGQ;AACbV,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACtPA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,89BAA89B;AACz+B,aAAa,kjBAAkjB;AAC/jB;AACA;AACA;;AAEA;AACA;AACA;AACA,wB;AACA;AACA;AACA,e;AACA;AACA;AACA,qC;AACA;AACA;AACA,4B;AACA;AACA;AACA,wB;AACA;AACA;AACA,2CAA2C,0B;AAC3C;AACA;AACA;AACA;AACA;AACA,iDAAiD,wBAAwB;AACzE;AACA;AACA,mC;AACA;AACA;AACA,mB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC;AAClC;AACA;AACA,WAAW,8F;AACX;AACA;AACA,WAAW;AACX;AACA;AACA,WAAW,6F;AACX;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,kCAAkC;AAChE;AACA;AACA;AACA;AACA;AACA,wCAAwC,kBAAkB;AAC1D;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,wBAAwB,mBAAmB,4GAA4G,qBAAqB,WAAW,wBAAwB,EAAE,gQAAgQ;AACpiB,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,WAAW,kCAAkC,YAAY,kCAAkC,WAAW,2CAA2C,YAAY;AAC/T,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACzyBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,gDAEfA,OAAO,CAACke,UAFO,wBAGfle,OAAO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b4hB,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACrWA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,kfAAkf;AAC7f,aAAa,+QAA+Q;AAC5R;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,iBAAiB,oCAAoC;AACrD;AACA;;AAEA,kBAAkB;AAClB,kEAAkE;;AAElE;AACA;AACA,qC;AACA;AACA;AACA,sC;AACA;AACA;AACA,qC;AACA;AACA;AACA,kC;AACA;AACA;AACA,4C;AACA;AACA;AACA,wC;AACA;AACA;AACA,mC;AACA;AACA;AACA,iB;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,oC;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,cAAc,IAAI,GAAG,0BAA0B,EAAE,cAAc,EAAE,UAAU,EAAE,qEAAqE,EAAE,QAAQ,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,oCAAoC,0CAA0C,wCAAwC,6BAA6B,UAAU,EAAE,gBAAgB,EAAE,UAAU,eAAe,aAAa,EAAE,0BAA0B,uEAAuE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,kCAAkC,8BAA8B,UAAU,EAAE,0BAA0B,EAAE,UAAU;AAC3uB,iBAAiB,+CAA+C;AAChE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,yBAAyB,oBAAoB,8GAA8G,cAAc,uCAAuC,aAAa;AACpT,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,YAAY;AAC9K,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC9sBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,+CAGbA,OAAO,CAACoe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,SAAO,EAAPA,OADa;AAEbuO,aAAW,EAAXA,WAFa;AAGbI,UAAQ,EAARA,QAHa;AAIbtU,YAAU,EAAVA,UAJa;AAKbsG,MAAI,EAAJA;AALa,CAAf,E;;;;;;;;;;;AC9eA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,gnDAAgnD;AAC3nD,aAAa,+5BAA+5B;AAC56B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C,WAAW,qD;AACrG;AACA;AACA,8CAA8C,gDAAgD,WAAW,yD;AACzG;AACA;AACA,iCAAiC,aAAa;AAC9C;AACA;AACA,gCAAgC,aAAa;AAC7C;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC,qDAAqD;AACvF;AACA;AACA,oBAAoB;AACpB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA,uBAAuB;AACvB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kCAAkC,UAAU;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,8CAA8C;AAChE;AACA;AACA,kBAAkB,4CAA4C;AAC9D;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,oC;AACrB;AACA;AACA,CAAC;AACD,SAAS,8CAA8C,EAAE,MAAM,YAAY,IAAI,GAAG,+CAA+C,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,kRAAkR,EAAE,QAAQ,8BAA8B,sCAAsC,EAAE,wBAAwB,oGAAoG,0DAA0D,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,0BAA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AAE,qRAAqR,6BAA6B,QAAQ,kBAAkB,+FAA+F,gNAAgN,QAAQ,gBAAgB,QAAQ,GAAG,WAAW,eAAe,QAAQ,GAAG,WAAW,+BAA+B,QAAQ,gBAAgB,QAAQ,gBAAgB,+IAA+I,gBAAgB,0JAA0J,gBAAgB,WAAW,GAAG,WAAW,EAAE,WAAW,EAAE,2BAA2B,gBAAgB,sGAAsG,kBAAkB,sJAAsJ,EAAE,sJAAsJ,EAAE,WAAW,EAAE,WAAW,yCAAyC,MAAM,kBAAkB,+FAA+F,gBAAgB,0JAA0J,iBAAiB,0JAA0J,+BAA+B,qRAAqR,EAAE,6GAA6G,EAAE,6GAA6G,6BAA6B,QAAQ,gBAAgB,QAAQ;AAC/ujB,iBAAiB,8BAA8B;AAC/C;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,Y;AACrC;AACA,qCAAqC,Y;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,Y;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mBAAmB;AACnD;AACA,gCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;AACA;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,yBAAyB,wBAAwB,mBAAmB,kbAAkb,45KAA45K,UAAU;AAC59L,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,WAAW,6BAA6B,QAAQ,0DAA0D,WAAW,gCAAgC,YAAY;AACnU,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC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,IAAlB,EAAwBJ,GAAxB,EAA6B;AAC3B,WAAOE,SAAS,CAACF,GAAD,CAAT,CAAeI,IAAf,KAAwB,CAA/B;AACD;AACF,CAzbM;AA2bQ;AACb7a,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;AC9dA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,gWAAgW;AAC3W,aAAa,gPAAgP;AAC7P;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA,6BAA6B;AAC7B;AACA;AACA,oCAAoC;AACpC;AACA;AACA,iCAAiC;AACjC;AACA;AACA,qCAAqC;AACrC;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,gCAAgC;AAChC;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,2CAA2C;AAC7D;AACA;AACA,kBAAkB,+CAA+C;AACjE;AACA;AACA,kBAAkB,yCAAyC;AAC3D;AACA;AACA,kBAAkB,6CAA6C;AAC/D;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,sGAAsG,cAAc,QAAQ,gBAAgB,0EAA0E,0IAA0I,UAAU,EAAE,oBAAoB,0CAA0C,oBAAoB,gBAAgB,UAAU,gBAAgB,UAAU,8BAA8B,UAAU;AAC5kB,kBAAkB;AAClB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iSAAiS,yDAAyD,2BAA2B,6BAA6B,qDAAqD,2BAA2B,kBAAkB,kBAAkB;AACtgB,aAAa,gBAAgB,kCAAkC,iBAAiB,mCAAmC,SAAS,gCAAgC,UAAU,kCAAkC,YAAY;AACpN,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvtBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAje,OAAO;AAAA,0OAabA,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AAwBrL,MAAM,CAAC2iC,YAAtC;AACD,KAHD;AAID,GAhCD,CAgCE,OAAOl1B,CAAP,EAAU;AACVlH,kDAAM,CAAC2Q,KAAP,CAAa,gCAAb;AACA3Q,kDAAM,CAAC2Q,KAAP,CAAazJ,CAAC,CAAC8yB,OAAf;AACD;AACF,CArCM;AAuCQ;AACbpd,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACjVA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,uSAAuS;AAClT,aAAa,0JAA0J;AACvK;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,yBAAyB;AACzB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,cAAc,gBAAgB,gBAAgB,sBAAsB,EAAE,QAAQ,EAAE,gFAAgF,eAAe,SAAS,eAAe,UAAU,gBAAgB,0BAA0B,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,0BAA0B,EAAE,QAAQ,eAAe,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU;AAC1lB,iBAAiB,2GAA2G;AAC5H;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW,kCAAkC,WAAW,kCAAkC,YAAY;AACnH,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvrBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAYeA,wEAAf,E;;;;;;;;;;;;ACZA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAGA;AAEA,IAAIgc,O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B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mHAAmH;AAC9H,aAAa,gDAAgD;AAC7D;AACA;AACA;;AAEA;AACA;AACA;AACA,W;AACA;AACA;;AAEA;AACA;AACA,kB;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,iCAAiC,EAAE,QAAQ;AAC7F,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW;AACxB,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC7mBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAEeA,wEAAf,E;;;;;;;;;;;ACFA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mIAAmI;AAC9I,aAAa,gEAAgE;AAC7E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,kD;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,0CAA0C,EAAE,QAAQ,yCAAyC,UAAU;AACzJ,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,qGAAqG;AACrG,aAAa,UAAU,gCAAgC,YAAY;AACnE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACznBA;AAAA;AAAA;;;AAGA;AAEA,IAAIwP,QAAQ,GAAG,EAAf;AACA,IAA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,W;AAC1B;AACA,wCAAwC,qB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A;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,yCAAyC,a;AACzE;AACA;AACA;AACA;AACA;AACA,gC;AACA;AACA,uBAAuB,yCAAyC,0CAA0C;AAC1G;AACA,wBAAwB,yCAAyC,yCAAyC;AAC1G;AAC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EAAE,UAAU,EAAE,UAAU;AACrhB,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA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AT,CAFL,IAGC+xC,IAAI,CAAC,CAAD,CAAJ,CAAQlrD,MAAR,GAAiBkrD,IAAI,CAAC,CAAD,CAAJ,CAAQlrD,MAAzB,IACCkrD,IAAI,CAAC,CAAD,CAAJ,CAAQnrD,KAAR,GAAgBmrD,IAAI,CAAC,CAAD,CAAJ,CAAQnrD,KADzB,IAECmrD,IAAI,CAAC,CAAD,CAAJ,CAAQ/xC,UAAR,GAAqB+xC,IAAI,CAAC,CAAD,CAAJ,CAAQ/xC,UAL/B,GAMI,CANJ,GAOI,CARN;AASA,SAAO+xC,IAAI,CAACprB,KAAD,CAAX;AACD,CAxD2C,EAyD5C,UAACh6B,IAAD,EAAOrH,MAAP;AAAA,mBAAqBqH,IAArB,cAA6BrH,MAAM,CAACiD,QAApC,cAAgDjD,MAAM,CAACkD,UAAvD,cAAqElD,MAAM,CAACI,UAA5E;AAAA,CAzD4C,CAAvC;AA4DQ;AACbqF,iBAAe,EAAfA,eADa;AAEb2rC,WAAS,EAATA,SAFa;AAGbmb,qBAAmB,EAAnBA,mBAHa;AAIbf,oBAAkB,EAAlBA,kBAJa;AAKbxb,yBAAuB,EAAvBA,uBALa;AAMbiS,YAAU,EAAVA,UANa;AAOb6G,iBAAe,EAAfA,eAPa;AAQbtG,YAAU,EAAVA,UARa;AASb5zB,oBAAkB,EAAlBA,kBATa;AAUbjM,oBAAkB,EAAlBA,kBAVa;AAWbxW,mBAAiB,EAAjBA,iBAXa;AAYboZ,yBAAuB,EAAvBA,uBAZa;AAabpG,WAAS,EAATA,SAba;AAcbsD,oBAAkB,EAAlBA,kBAda;AAebs3B,YAAU,EAAVA,UAfa;AAgBbva,QAAM,EAANA,MAhBa;AAiBb2pB,SAAO,EAAPA,OAjBa;AAkBbvpC,SAAO,EAAPA;AAlBa,CAAf,E","file":"mermaid.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mermaid\"] = factory();\n\telse\n\t\troot[\"mermaid\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/mermaid.js\");\n","'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n","var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n","export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n","import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n","import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n","export default function(x) {\n return x;\n}\n","export {default as bisect, bisectRight, bisectLeft} from \"./bisect\";\nexport {default as ascending} from \"./ascending\";\nexport {default as bisector} from \"./bisector\";\nexport {default as cross} from \"./cross\";\nexport {default as descending} from \"./descending\";\nexport {default as deviation} from \"./deviation\";\nexport {default as extent} from \"./extent\";\nexport {default as histogram} from \"./histogram\";\nexport {default as thresholdFreedmanDiaconis} from \"./threshold/freedmanDiaconis\";\nexport {default as thresholdScott} from \"./threshold/scott\";\nexport {default as thresholdSturges} from \"./threshold/sturges\";\nexport {default as max} from \"./max\";\nexport {default as mean} from \"./mean\";\nexport {default as median} from \"./median\";\nexport {default as merge} from \"./merge\";\nexport {default as min} from \"./min\";\nexport {default as pairs} from \"./pairs\";\nexport {default as permute} from \"./permute\";\nexport {default as quantile} from \"./quantile\";\nexport {default as range} from \"./range\";\nexport {default as scan} from \"./scan\";\nexport {default as shuffle} from \"./shuffle\";\nexport {default as sum} from \"./sum\";\nexport {default as ticks, tickIncrement, tickStep} from \"./ticks\";\nexport {default as transpose} from \"./transpose\";\nexport {default as variance} from \"./variance\";\nexport {default as zip} from \"./zip\";\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n","import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n","export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n","export default function(x) {\n return x === null ? NaN : +x;\n}\n","export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n","export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n","import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n","export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n","import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n","export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n","import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n","import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n","export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n","var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n","import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n","import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n","export var slice = Array.prototype.slice;\n","import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n","export default function(x) {\n return x;\n}\n","export {\n axisTop,\n axisRight,\n axisBottom,\n axisLeft\n} from \"./axis\";\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n","export {\n default as brush,\n brushX,\n brushY,\n brushSelection\n} from \"./brush.js\";\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export var slice = Array.prototype.slice;\n","import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as chord} from \"./chord\";\nexport {default as ribbon} from \"./ribbon\";\n","export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n","import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n","export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n","export {default as nest} from \"./nest\";\nexport {default as set} from \"./set\";\nexport {default as map} from \"./map\";\nexport {default as keys} from \"./keys\";\nexport {default as values} from \"./values\";\nexport {default as entries} from \"./entries\";\n","export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n","export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n","import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n","import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n","export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","export {default as color, rgb, hsl} from \"./color.js\";\nexport {default as lab, hcl, lch, gray} from \"./lab.js\";\nexport {default as cubehelix} from \"./cubehelix.js\";\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n","export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n","var array = Array.prototype;\n\nexport var slice = array.slice;\n","export default function(a, b) {\n return a - b;\n}\n","// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n","import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n","import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n","export {default as contours} from \"./contours\";\nexport {default as contourDensity} from \"./density\";\n","export default function() {}\n","var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n","export {default as dispatch} from \"./dispatch.js\";\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n","export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n","export {default as drag} from \"./drag.js\";\nexport {default as dragDisable, yesdrag as dragEnable} from \"./nodrag.js\";\n","import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();","import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n","var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n","export {default as dsvFormat} from \"./dsv.js\";\nexport {csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue} from \"./csv.js\";\nexport {tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue} from \"./tsv.js\";\nexport {default as autoType} from \"./autoType.js\";\n","import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n","var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n","var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n","export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n","export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n","var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n","export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n","export {\n linear as easeLinear\n} from \"./linear.js\";\n\nexport {\n quadInOut as easeQuad,\n quadIn as easeQuadIn,\n quadOut as easeQuadOut,\n quadInOut as easeQuadInOut\n} from \"./quad.js\";\n\nexport {\n cubicInOut as easeCubic,\n cubicIn as easeCubicIn,\n cubicOut as easeCubicOut,\n cubicInOut as easeCubicInOut\n} from \"./cubic.js\";\n\nexport {\n polyInOut as easePoly,\n polyIn as easePolyIn,\n polyOut as easePolyOut,\n polyInOut as easePolyInOut\n} from \"./poly.js\";\n\nexport {\n sinInOut as easeSin,\n sinIn as easeSinIn,\n sinOut as easeSinOut,\n sinInOut as easeSinInOut\n} from \"./sin.js\";\n\nexport {\n expInOut as easeExp,\n expIn as easeExpIn,\n expOut as easeExpOut,\n expInOut as easeExpInOut\n} from \"./exp.js\";\n\nexport {\n circleInOut as easeCircle,\n circleIn as easeCircleIn,\n circleOut as easeCircleOut,\n circleInOut as easeCircleInOut\n} from \"./circle.js\";\n\nexport {\n bounceOut as easeBounce,\n bounceIn as easeBounceIn,\n bounceOut as easeBounceOut,\n bounceInOut as easeBounceInOut\n} from \"./bounce.js\";\n\nexport {\n backInOut as easeBack,\n backIn as easeBackIn,\n backOut as easeBackOut,\n backInOut as easeBackInOut\n} from \"./back.js\";\n\nexport {\n elasticOut as easeElastic,\n elasticIn as easeElasticIn,\n elasticOut as easeElasticOut,\n elasticInOut as easeElasticInOut\n} from \"./elastic.js\";\n","export function linear(t) {\n return +t;\n}\n","var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n","export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n","var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n","function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n","function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n","import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n","export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n","export {default as blob} from \"./blob\";\nexport {default as buffer} from \"./buffer\";\nexport {default as dsv, csv, tsv} from \"./dsv\";\nexport {default as image} from \"./image\";\nexport {default as json} from \"./json\";\nexport {default as text} from \"./text\";\nexport {default as xml, html, svg} from \"./xml\";\n","function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n","function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n","import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n","export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as forceCenter} from \"./center\";\nexport {default as forceCollide} from \"./collide\";\nexport {default as forceLink} from \"./link\";\nexport {default as forceManyBody} from \"./manyBody\";\nexport {default as forceRadial} from \"./radial\";\nexport {default as forceSimulation} from \"./simulation\";\nexport {default as forceX} from \"./x\";\nexport {default as forceY} from \"./y\";\n","export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n","import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n","// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n","export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n","export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n","// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n","// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n","import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n","export default function(x) {\n return x;\n}\n","export {default as formatDefaultLocale, format, formatPrefix} from \"./defaultLocale.js\";\nexport {default as formatLocale} from \"./locale.js\";\nexport {default as formatSpecifier, FormatSpecifier} from \"./formatSpecifier.js\";\nexport {default as precisionFixed} from \"./precisionFixed.js\";\nexport {default as precisionPrefix} from \"./precisionPrefix.js\";\nexport {default as precisionRound} from \"./precisionRound.js\";\n","import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n","// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n","import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n","import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n","import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n","import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n","import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n","import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n","import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n","import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n","import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n","import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n","export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n","import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n","import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n","export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n","import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n","import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n","export default function(x) {\n return x;\n}\n","export {default as geoArea} from \"./area.js\";\nexport {default as geoBounds} from \"./bounds.js\";\nexport {default as geoCentroid} from \"./centroid.js\";\nexport {default as geoCircle} from \"./circle.js\";\nexport {default as geoClipAntimeridian} from \"./clip/antimeridian.js\";\nexport {default as geoClipCircle} from \"./clip/circle.js\";\nexport {default as geoClipExtent} from \"./clip/extent.js\"; // DEPRECATED! Use d3.geoIdentity().clipExtent(…).\nexport {default as geoClipRectangle} from \"./clip/rectangle.js\";\nexport {default as geoContains} from \"./contains.js\";\nexport {default as geoDistance} from \"./distance.js\";\nexport {default as geoGraticule, graticule10 as geoGraticule10} from \"./graticule.js\";\nexport {default as geoInterpolate} from \"./interpolate.js\";\nexport {default as geoLength} from \"./length.js\";\nexport {default as geoPath} from \"./path/index.js\";\nexport {default as geoAlbers} from \"./projection/albers.js\";\nexport {default as geoAlbersUsa} from \"./projection/albersUsa.js\";\nexport {default as geoAzimuthalEqualArea, azimuthalEqualAreaRaw as geoAzimuthalEqualAreaRaw} from \"./projection/azimuthalEqualArea.js\";\nexport {default as geoAzimuthalEquidistant, azimuthalEquidistantRaw as geoAzimuthalEquidistantRaw} from \"./projection/azimuthalEquidistant.js\";\nexport {default as geoConicConformal, conicConformalRaw as geoConicConformalRaw} from \"./projection/conicConformal.js\";\nexport {default as geoConicEqualArea, conicEqualAreaRaw as geoConicEqualAreaRaw} from \"./projection/conicEqualArea.js\";\nexport {default as geoConicEquidistant, conicEquidistantRaw as geoConicEquidistantRaw} from \"./projection/conicEquidistant.js\";\nexport {default as geoEqualEarth, equalEarthRaw as geoEqualEarthRaw} from \"./projection/equalEarth.js\";\nexport {default as geoEquirectangular, equirectangularRaw as geoEquirectangularRaw} from \"./projection/equirectangular.js\";\nexport {default as geoGnomonic, gnomonicRaw as geoGnomonicRaw} from \"./projection/gnomonic.js\";\nexport {default as geoIdentity} from \"./projection/identity.js\";\nexport {default as geoProjection, projectionMutator as geoProjectionMutator} from \"./projection/index.js\";\nexport {default as geoMercator, mercatorRaw as geoMercatorRaw} from \"./projection/mercator.js\";\nexport {default as geoNaturalEarth1, naturalEarth1Raw as geoNaturalEarth1Raw} from \"./projection/naturalEarth1.js\";\nexport {default as geoOrthographic, orthographicRaw as geoOrthographicRaw} from \"./projection/orthographic.js\";\nexport {default as geoStereographic, stereographicRaw as geoStereographicRaw} from \"./projection/stereographic.js\";\nexport {default as geoTransverseMercator, transverseMercatorRaw as geoTransverseMercatorRaw} from \"./projection/transverseMercator.js\";\nexport {default as geoRotation} from \"./rotation.js\";\nexport {default as geoStream} from \"./stream.js\";\nexport {default as geoTransform} from \"./transform.js\";\n","import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n","import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n","export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n","export default function noop() {}\n","import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n","import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n","import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n","import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n","import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n","import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n","export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n","import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n","import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n","import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n","import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n","import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n","import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n","import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n","import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n","import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n","import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n","import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n","import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n","import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n","import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n","import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n","import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n","import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n","import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n","import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n","import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n","import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n","import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n","import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n","function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n","export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n","export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n","export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n","function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n","export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n","export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n","function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n","export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n","export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n","export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n","export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n","export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n","export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n","export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n","export {default as cluster} from \"./cluster.js\";\nexport {default as hierarchy} from \"./hierarchy/index.js\";\nexport {default as pack} from \"./pack/index.js\";\nexport {default as packSiblings} from \"./pack/siblings.js\";\nexport {default as packEnclose} from \"./pack/enclose.js\";\nexport {default as partition} from \"./partition.js\";\nexport {default as stratify} from \"./stratify.js\";\nexport {default as tree} from \"./tree.js\";\nexport {default as treemap} from \"./treemap/index.js\";\nexport {default as treemapBinary} from \"./treemap/binary.js\";\nexport {default as treemapDice} from \"./treemap/dice.js\";\nexport {default as treemapSlice} from \"./treemap/slice.js\";\nexport {default as treemapSliceDice} from \"./treemap/sliceDice.js\";\nexport {default as treemapSquarify} from \"./treemap/squarify.js\";\nexport {default as treemapResquarify} from \"./treemap/resquarify.js\";\n","import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n","import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n","import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n","import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n","import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n","import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n","export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n","import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n","import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n","import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n","import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n","export {default as interpolate} from \"./value.js\";\nexport {default as interpolateArray} from \"./array.js\";\nexport {default as interpolateBasis} from \"./basis.js\";\nexport {default as interpolateBasisClosed} from \"./basisClosed.js\";\nexport {default as interpolateDate} from \"./date.js\";\nexport {default as interpolateDiscrete} from \"./discrete.js\";\nexport {default as interpolateHue} from \"./hue.js\";\nexport {default as interpolateNumber} from \"./number.js\";\nexport {default as interpolateNumberArray} from \"./numberArray.js\";\nexport {default as interpolateObject} from \"./object.js\";\nexport {default as interpolateRound} from \"./round.js\";\nexport {default as interpolateString} from \"./string.js\";\nexport {interpolateTransformCss, interpolateTransformSvg} from \"./transform/index.js\";\nexport {default as interpolateZoom} from \"./zoom.js\";\nexport {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from \"./rgb.js\";\nexport {default as interpolateHsl, hslLong as interpolateHslLong} from \"./hsl.js\";\nexport {default as interpolateLab} from \"./lab.js\";\nexport {default as interpolateHcl, hclLong as interpolateHclLong} from \"./hcl.js\";\nexport {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from \"./cubehelix.js\";\nexport {default as piecewise} from \"./piecewise.js\";\nexport {default as quantize} from \"./quantize.js\";\n","import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n","import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n","import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n","import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n","export {default as path} from \"./path.js\";\n","var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n","export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n","// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n","import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n","export {default as polygonArea} from \"./area.js\";\nexport {default as polygonCentroid} from \"./centroid.js\";\nexport {default as polygonHull} from \"./hull.js\";\nexport {default as polygonContains} from \"./contains.js\";\nexport {default as polygonLength} from \"./length.js\";\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n","export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n","export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n","export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n","export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n","import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n","export {default as quadtree} from \"./quadtree.js\";\n","export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n","import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n","export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n","export default function() {\n return this._root;\n}\n","export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n","export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n","export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n","import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n","export default function() {\n return Math.random();\n}\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n","export {default as randomUniform} from \"./uniform\";\nexport {default as randomNormal} from \"./normal\";\nexport {default as randomLogNormal} from \"./logNormal\";\nexport {default as randomBates} from \"./bates\";\nexport {default as randomIrwinHall} from \"./irwinHall\";\nexport {default as randomExponential} from \"./exponential\";\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n","import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n","export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n","export {default as schemeCategory10} from \"./categorical/category10.js\";\nexport {default as schemeAccent} from \"./categorical/Accent.js\";\nexport {default as schemeDark2} from \"./categorical/Dark2.js\";\nexport {default as schemePaired} from \"./categorical/Paired.js\";\nexport {default as schemePastel1} from \"./categorical/Pastel1.js\";\nexport {default as schemePastel2} from \"./categorical/Pastel2.js\";\nexport {default as schemeSet1} from \"./categorical/Set1.js\";\nexport {default as schemeSet2} from \"./categorical/Set2.js\";\nexport {default as schemeSet3} from \"./categorical/Set3.js\";\nexport {default as schemeTableau10} from \"./categorical/Tableau10.js\";\nexport {default as interpolateBrBG, scheme as schemeBrBG} from \"./diverging/BrBG.js\";\nexport {default as interpolatePRGn, scheme as schemePRGn} from \"./diverging/PRGn.js\";\nexport {default as interpolatePiYG, scheme as schemePiYG} from \"./diverging/PiYG.js\";\nexport {default as interpolatePuOr, scheme as schemePuOr} from \"./diverging/PuOr.js\";\nexport {default as interpolateRdBu, scheme as schemeRdBu} from \"./diverging/RdBu.js\";\nexport {default as interpolateRdGy, scheme as schemeRdGy} from \"./diverging/RdGy.js\";\nexport {default as interpolateRdYlBu, scheme as schemeRdYlBu} from \"./diverging/RdYlBu.js\";\nexport {default as interpolateRdYlGn, scheme as schemeRdYlGn} from \"./diverging/RdYlGn.js\";\nexport {default as interpolateSpectral, scheme as schemeSpectral} from \"./diverging/Spectral.js\";\nexport {default as interpolateBuGn, scheme as schemeBuGn} from \"./sequential-multi/BuGn.js\";\nexport {default as interpolateBuPu, scheme as schemeBuPu} from \"./sequential-multi/BuPu.js\";\nexport {default as interpolateGnBu, scheme as schemeGnBu} from \"./sequential-multi/GnBu.js\";\nexport {default as interpolateOrRd, scheme as schemeOrRd} from \"./sequential-multi/OrRd.js\";\nexport {default as interpolatePuBuGn, scheme as schemePuBuGn} from \"./sequential-multi/PuBuGn.js\";\nexport {default as interpolatePuBu, scheme as schemePuBu} from \"./sequential-multi/PuBu.js\";\nexport {default as interpolatePuRd, scheme as schemePuRd} from \"./sequential-multi/PuRd.js\";\nexport {default as interpolateRdPu, scheme as schemeRdPu} from \"./sequential-multi/RdPu.js\";\nexport {default as interpolateYlGnBu, scheme as schemeYlGnBu} from \"./sequential-multi/YlGnBu.js\";\nexport {default as interpolateYlGn, scheme as schemeYlGn} from \"./sequential-multi/YlGn.js\";\nexport {default as interpolateYlOrBr, scheme as schemeYlOrBr} from \"./sequential-multi/YlOrBr.js\";\nexport {default as interpolateYlOrRd, scheme as schemeYlOrRd} from \"./sequential-multi/YlOrRd.js\";\nexport {default as interpolateBlues, scheme as schemeBlues} from \"./sequential-single/Blues.js\";\nexport {default as interpolateGreens, scheme as schemeGreens} from \"./sequential-single/Greens.js\";\nexport {default as interpolateGreys, scheme as schemeGreys} from \"./sequential-single/Greys.js\";\nexport {default as interpolatePurples, scheme as schemePurples} from \"./sequential-single/Purples.js\";\nexport {default as interpolateReds, scheme as schemeReds} from \"./sequential-single/Reds.js\";\nexport {default as interpolateOranges, scheme as schemeOranges} from \"./sequential-single/Oranges.js\";\nexport {default as interpolateCividis} from \"./sequential-multi/cividis.js\";\nexport {default as interpolateCubehelixDefault} from \"./sequential-multi/cubehelix.js\";\nexport {default as interpolateRainbow, warm as interpolateWarm, cool as interpolateCool} from \"./sequential-multi/rainbow.js\";\nexport {default as interpolateSinebow} from \"./sequential-multi/sinebow.js\";\nexport {default as interpolateTurbo} from \"./sequential-multi/turbo.js\";\nexport {default as interpolateViridis, magma as interpolateMagma, inferno as interpolateInferno, plasma as interpolatePlasma} from \"./sequential-multi/viridis.js\";\n","import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n","import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n","import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n","var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n","import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n","import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n","export {\n default as scaleBand,\n point as scalePoint\n} from \"./band\";\n\nexport {\n default as scaleIdentity\n} from \"./identity\";\n\nexport {\n default as scaleLinear\n} from \"./linear\";\n\nexport {\n default as scaleLog\n} from \"./log\";\n\nexport {\n default as scaleSymlog\n} from \"./symlog\";\n\nexport {\n default as scaleOrdinal,\n implicit as scaleImplicit\n} from \"./ordinal\";\n\nexport {\n default as scalePow,\n sqrt as scaleSqrt\n} from \"./pow\";\n\nexport {\n default as scaleQuantile\n} from \"./quantile\";\n\nexport {\n default as scaleQuantize\n} from \"./quantize\";\n\nexport {\n default as scaleThreshold\n} from \"./threshold\";\n\nexport {\n default as scaleTime\n} from \"./time\";\n\nexport {\n default as scaleUtc\n} from \"./utcTime\";\n\nexport {\n default as scaleSequential,\n sequentialLog as scaleSequentialLog,\n sequentialPow as scaleSequentialPow,\n sequentialSqrt as scaleSequentialSqrt,\n sequentialSymlog as scaleSequentialSymlog\n} from \"./sequential\";\n\nexport {\n default as scaleSequentialQuantile\n} from \"./sequentialQuantile\";\n\nexport {\n default as scaleDiverging,\n divergingLog as scaleDivergingLog,\n divergingPow as scaleDivergingPow,\n divergingSqrt as scaleDivergingSqrt,\n divergingSymlog as scaleDivergingSymlog\n} from \"./diverging\";\n\nexport {\n default as tickFormat\n} from \"./tickFormat\";\n","export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n","import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n","export default function(x) {\n return +x;\n}\n","import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n","import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n","import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n","import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","export {default as create} from \"./create\";\nexport {default as creator} from \"./creator\";\nexport {default as local} from \"./local\";\nexport {default as matcher} from \"./matcher\";\nexport {default as mouse} from \"./mouse\";\nexport {default as namespace} from \"./namespace\";\nexport {default as namespaces} from \"./namespaces\";\nexport {default as clientPoint} from \"./point\";\nexport {default as select} from \"./select\";\nexport {default as selectAll} from \"./selectAll\";\nexport {default as selection} from \"./selection/index\";\nexport {default as selector} from \"./selector\";\nexport {default as selectorAll} from \"./selectorAll\";\nexport {styleValue as style} from \"./selection/style\";\nexport {default as touch} from \"./touch\";\nexport {default as touches} from \"./touches\";\nexport {default as window} from \"./window\";\nexport {event, customEvent} from \"./selection/on\";\n","var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n","export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","export default function() {\n return !this.node();\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n","import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n","import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n","import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n","function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n","import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","export {default as arc} from \"./arc.js\";\nexport {default as area} from \"./area.js\";\nexport {default as line} from \"./line.js\";\nexport {default as pie} from \"./pie.js\";\nexport {default as areaRadial, default as radialArea} from \"./areaRadial.js\"; // Note: radialArea is deprecated!\nexport {default as lineRadial, default as radialLine} from \"./lineRadial.js\"; // Note: radialLine is deprecated!\nexport {default as pointRadial} from \"./pointRadial.js\";\nexport {linkHorizontal, linkVertical, linkRadial} from \"./link/index.js\";\n\nexport {default as symbol, symbols} from \"./symbol.js\";\nexport {default as symbolCircle} from \"./symbol/circle.js\";\nexport {default as symbolCross} from \"./symbol/cross.js\";\nexport {default as symbolDiamond} from \"./symbol/diamond.js\";\nexport {default as symbolSquare} from \"./symbol/square.js\";\nexport {default as symbolStar} from \"./symbol/star.js\";\nexport {default as symbolTriangle} from \"./symbol/triangle.js\";\nexport {default as symbolWye} from \"./symbol/wye.js\";\n\nexport {default as curveBasisClosed} from \"./curve/basisClosed.js\";\nexport {default as curveBasisOpen} from \"./curve/basisOpen.js\";\nexport {default as curveBasis} from \"./curve/basis.js\";\nexport {default as curveBundle} from \"./curve/bundle.js\";\nexport {default as curveCardinalClosed} from \"./curve/cardinalClosed.js\";\nexport {default as curveCardinalOpen} from \"./curve/cardinalOpen.js\";\nexport {default as curveCardinal} from \"./curve/cardinal.js\";\nexport {default as curveCatmullRomClosed} from \"./curve/catmullRomClosed.js\";\nexport {default as curveCatmullRomOpen} from \"./curve/catmullRomOpen.js\";\nexport {default as curveCatmullRom} from \"./curve/catmullRom.js\";\nexport {default as curveLinearClosed} from \"./curve/linearClosed.js\";\nexport {default as curveLinear} from \"./curve/linear.js\";\nexport {monotoneX as curveMonotoneX, monotoneY as curveMonotoneY} from \"./curve/monotone.js\";\nexport {default as curveNatural} from \"./curve/natural.js\";\nexport {default as curveStep, stepAfter as curveStepAfter, stepBefore as curveStepBefore} from \"./curve/step.js\";\n\nexport {default as stack} from \"./stack.js\";\nexport {default as stackOffsetExpand} from \"./offset/expand.js\";\nexport {default as stackOffsetDiverging} from \"./offset/diverging.js\";\nexport {default as stackOffsetNone} from \"./offset/none.js\";\nexport {default as stackOffsetSilhouette} from \"./offset/silhouette.js\";\nexport {default as stackOffsetWiggle} from \"./offset/wiggle.js\";\nexport {default as stackOrderAppearance} from \"./order/appearance.js\";\nexport {default as stackOrderAscending} from \"./order/ascending.js\";\nexport {default as stackOrderDescending} from \"./order/descending.js\";\nexport {default as stackOrderInsideOut} from \"./order/insideOut.js\";\nexport {default as stackOrderNone} from \"./order/none.js\";\nexport {default as stackOrderReverse} from \"./order/reverse.js\";\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n","export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n","export default function() {}\n","export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n","import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n","import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n","import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n","import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n","export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n","var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n","export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n","import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n","var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n","var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n","export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from \"./defaultLocale.js\";\nexport {default as timeFormatLocale} from \"./locale.js\";\nexport {default as isoFormat} from \"./isoFormat.js\";\nexport {default as isoParse} from \"./isoParse.js\";\n","import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n","import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n","import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n","import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n","export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n","import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n","export {\n default as timeInterval\n} from \"./interval.js\";\n\nexport {\n default as timeMillisecond,\n milliseconds as timeMilliseconds,\n default as utcMillisecond,\n milliseconds as utcMilliseconds\n} from \"./millisecond.js\";\n\nexport {\n default as timeSecond,\n seconds as timeSeconds,\n default as utcSecond,\n seconds as utcSeconds\n} from \"./second.js\";\n\nexport {\n default as timeMinute,\n minutes as timeMinutes\n} from \"./minute.js\";\n\nexport {\n default as timeHour,\n hours as timeHours\n} from \"./hour.js\";\n\nexport {\n default as timeDay,\n days as timeDays\n} from \"./day.js\";\n\nexport {\n sunday as timeWeek,\n sundays as timeWeeks,\n sunday as timeSunday,\n sundays as timeSundays,\n monday as timeMonday,\n mondays as timeMondays,\n tuesday as timeTuesday,\n tuesdays as timeTuesdays,\n wednesday as timeWednesday,\n wednesdays as timeWednesdays,\n thursday as timeThursday,\n thursdays as timeThursdays,\n friday as timeFriday,\n fridays as timeFridays,\n saturday as timeSaturday,\n saturdays as timeSaturdays\n} from \"./week.js\";\n\nexport {\n default as timeMonth,\n months as timeMonths\n} from \"./month.js\";\n\nexport {\n default as timeYear,\n years as timeYears\n} from \"./year.js\";\n\nexport {\n default as utcMinute,\n utcMinutes as utcMinutes\n} from \"./utcMinute.js\";\n\nexport {\n default as utcHour,\n utcHours as utcHours\n} from \"./utcHour.js\";\n\nexport {\n default as utcDay,\n utcDays as utcDays\n} from \"./utcDay.js\";\n\nexport {\n utcSunday as utcWeek,\n utcSundays as utcWeeks,\n utcSunday as utcSunday,\n utcSundays as utcSundays,\n utcMonday as utcMonday,\n utcMondays as utcMondays,\n utcTuesday as utcTuesday,\n utcTuesdays as utcTuesdays,\n utcWednesday as utcWednesday,\n utcWednesdays as utcWednesdays,\n utcThursday as utcThursday,\n utcThursdays as utcThursdays,\n utcFriday as utcFriday,\n utcFridays as utcFridays,\n utcSaturday as utcSaturday,\n utcSaturdays as utcSaturdays\n} from \"./utcWeek.js\";\n\nexport {\n default as utcMonth,\n utcMonths as utcMonths\n} from \"./utcMonth.js\";\n\nexport {\n default as utcYear,\n utcYears as utcYears\n} from \"./utcYear.js\";\n","var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n","import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n","import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n","import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n","import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n","import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n","import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n","import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n","import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n","import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n","export {\n now,\n timer,\n timerFlush\n} from \"./timer.js\";\n\nexport {\n default as timeout\n} from \"./timeout.js\";\n\nexport {\n default as interval\n} from \"./interval.js\";\n","import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n","import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n","var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n","import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n","import \"./selection/index.js\";\nexport {default as transition} from \"./transition/index.js\";\nexport {default as active} from \"./active.js\";\nexport {default as interrupt} from \"./interrupt.js\";\n","import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n","import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n","import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n","import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n","import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n","import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n","import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n","import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n","import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n","import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n","import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n","import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n","import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n","function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n","import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n","import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n","import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n","import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n","function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n","import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n","function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n","import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n","import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n","import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n","import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n","function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as voronoi} from \"./voronoi\";\n","export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n","import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n","export {default as zoom} from \"./zoom.js\";\nexport {default as zoomTransform, identity as zoomIdentity} from \"./transform.js\";\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n","export var name = \"d3\";\nexport var version = \"5.15.0\";\nexport var description = \"Data-Driven Documents\";\nexport var keywords = [\"dom\",\"visualization\",\"svg\",\"animation\",\"canvas\"];\nexport var homepage = \"https://d3js.org\";\nexport var license = \"BSD-3-Clause\";\nexport var author = {\"name\":\"Mike Bostock\",\"url\":\"https://bost.ocks.org/mike\"};\nexport var main = \"dist/d3.node.js\";\nexport var unpkg = \"dist/d3.min.js\";\nexport var jsdelivr = \"dist/d3.min.js\";\nexport var module = \"index.js\";\nexport var repository = {\"type\":\"git\",\"url\":\"https://github.com/d3/d3.git\"};\nexport var files = [\"dist/**/*.js\",\"index.js\"];\nexport var scripts = {\"pretest\":\"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n","export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n","/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n","var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n","var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n","// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n","/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n","var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n","module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n","module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n","module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n","var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n","var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n","\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n","var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","module.exports = \"0.6.4\";\n","/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n","/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n","var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n","var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n","var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n","\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n","/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n","module.exports = \"0.8.5\";\n","/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n","/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n","var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n","var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n","var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n","module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n","var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing","var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n","// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","module.exports = '2.1.8';\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar types_1 = require(\"../types\");\nvar type_1 = require(\"./type\");\n/* CHANNELS */\nvar Channels = /** @class */ (function () {\n /* CONSTRUCTOR */\n function Channels(data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type = new type_1.default();\n }\n /* API */\n Channels.prototype.set = function (data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type.type = types_1.TYPE.ALL;\n return this;\n };\n /* HELPERS */\n Channels.prototype._ensureHSL = function () {\n if (this.data.h === undefined)\n this.data.h = utils_1.default.channel.rgb2hsl(this.data, 'h');\n if (this.data.s === undefined)\n this.data.s = utils_1.default.channel.rgb2hsl(this.data, 's');\n if (this.data.l === undefined)\n this.data.l = utils_1.default.channel.rgb2hsl(this.data, 'l');\n };\n Channels.prototype._ensureRGB = function () {\n if (this.data.r === undefined)\n this.data.r = utils_1.default.channel.hsl2rgb(this.data, 'r');\n if (this.data.g === undefined)\n this.data.g = utils_1.default.channel.hsl2rgb(this.data, 'g');\n if (this.data.b === undefined)\n this.data.b = utils_1.default.channel.hsl2rgb(this.data, 'b');\n };\n Object.defineProperty(Channels.prototype, \"r\", {\n /* GETTERS */\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.r !== undefined)\n return this.data.r;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'r');\n },\n /* SETTERS */\n set: function (r) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.r = r;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"g\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.g !== undefined)\n return this.data.g;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'g');\n },\n set: function (g) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.g = g;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"b\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.b !== undefined)\n return this.data.b;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'b');\n },\n set: function (b) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.b = b;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"h\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.h !== undefined)\n return this.data.h;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'h');\n },\n set: function (h) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.h = h;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"s\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.s !== undefined)\n return this.data.s;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 's');\n },\n set: function (s) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.s = s;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"l\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.l !== undefined)\n return this.data.l;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'l');\n },\n set: function (l) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.l = l;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"a\", {\n get: function () {\n return this.data.a;\n },\n set: function (a) {\n this.changed = true;\n this.data.a = a;\n },\n enumerable: true,\n configurable: true\n });\n return Channels;\n}());\n/* EXPORT */\nexports.default = Channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _1 = require(\".\");\n/* REUSABLE */\nvar channels = new _1.default({ r: 0, g: 0, b: 0, a: 0 }, 'transparent');\n/* EXPORT */\nexports.default = channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\n/* TYPE */\nvar Type = /** @class */ (function () {\n function Type() {\n this.type = types_1.TYPE.ALL;\n }\n Type.prototype.get = function () {\n return this.type;\n };\n Type.prototype.set = function (type) {\n if (this.type && this.type !== type)\n throw new Error('Cannot change both RGB and HSL channels at the same time');\n this.type = type;\n };\n Type.prototype.reset = function () {\n this.type = types_1.TYPE.ALL;\n };\n Type.prototype.is = function (type) {\n return this.type === type;\n };\n return Type;\n}());\n/* EXPORT */\nexports.default = Type;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar consts_1 = require(\"../consts\");\n/* HEX */\nvar Hex = {\n /* VARIABLES */\n re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,\n /* API */\n parse: function (color) {\n if (color.charCodeAt(0) !== 35)\n return; // '#'\n var match = color.match(Hex.re);\n if (!match)\n return;\n var hex = match[1], dec = parseInt(hex, 16), length = hex.length, hasAlpha = length % 4 === 0, isFullLength = length > 4, multiplier = isFullLength ? 1 : 17, bits = isFullLength ? 8 : 4, bitsOffset = hasAlpha ? 0 : -1, mask = isFullLength ? 255 : 15;\n return reusable_1.default.set({\n r: ((dec >> (bits * (bitsOffset + 3))) & mask) * multiplier,\n g: ((dec >> (bits * (bitsOffset + 2))) & mask) * multiplier,\n b: ((dec >> (bits * (bitsOffset + 1))) & mask) * multiplier,\n a: hasAlpha ? (dec & mask) * multiplier / 255 : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // #RRGGBBAA\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)] + utils_1.default.unit.frac2hex(channels.a);\n }\n else { // #RRGGBB\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)];\n }\n }\n};\n/* EXPORT */\nexports.default = Hex;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* HSL */\nvar HSL = {\n /* VARIABLES */\n re: /^hsla?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(?:deg|grad|rad|turn)?)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(%)?))?\\s*?\\)$/i,\n hueRe: /^(.+?)(deg|grad|rad|turn)$/i,\n /* HELPERS */\n _hue2deg: function (hue) {\n var match = hue.match(HSL.hueRe);\n if (match) {\n var number = match[1], unit = match[2];\n switch (unit) {\n case 'grad': return utils_1.default.channel.clamp.h(parseFloat(number) * .9);\n case 'rad': return utils_1.default.channel.clamp.h(parseFloat(number) * 180 / Math.PI);\n case 'turn': return utils_1.default.channel.clamp.h(parseFloat(number) * 360);\n }\n }\n return utils_1.default.channel.clamp.h(parseFloat(hue));\n },\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 104 && charCode !== 72)\n return; // 'h'/'H'\n var match = color.match(HSL.re);\n if (!match)\n return;\n var h = match[1], s = match[2], l = match[3], a = match[4], isAlphaPercentage = match[5];\n return reusable_1.default.set({\n h: HSL._hue2deg(h),\n s: utils_1.default.channel.clamp.s(parseFloat(s)),\n l: utils_1.default.channel.clamp.l(parseFloat(l)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // HSLA\n return \"hsla(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%, \" + channels.a + \")\";\n }\n else { // HSL\n return \"hsl(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%)\";\n }\n }\n};\n/* EXPORT */\nexports.default = HSL;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\nvar hex_1 = require(\"./hex\");\nvar keyword_1 = require(\"./keyword\");\nvar rgb_1 = require(\"./rgb\");\nvar hsl_1 = require(\"./hsl\");\n/* COLOR */\nvar Color = {\n /* VARIABLES */\n format: {\n keyword: keyword_1.default,\n hex: hex_1.default,\n rgb: rgb_1.default,\n rgba: rgb_1.default,\n hsl: hsl_1.default,\n hsla: hsl_1.default\n },\n /* API */\n parse: function (color) {\n if (typeof color !== 'string')\n return color;\n var channels = hex_1.default.parse(color) || rgb_1.default.parse(color) || hsl_1.default.parse(color) || keyword_1.default.parse(color); // Color providers ordered with performance in mind\n if (channels)\n return channels;\n throw new Error(\"Unsupported color format: \\\"\" + color + \"\\\"\");\n },\n stringify: function (channels) {\n // SASS returns a keyword if possible, but we avoid doing that as it's slower and doesn't really add any value\n if (!channels.changed && channels.color)\n return channels.color;\n if (channels.type.is(types_1.TYPE.HSL) || channels.data.r === undefined) {\n return hsl_1.default.stringify(channels);\n }\n else if (channels.a < 1 || !Number.isInteger(channels.r) || !Number.isInteger(channels.g) || !Number.isInteger(channels.b)) {\n return rgb_1.default.stringify(channels);\n }\n else {\n return hex_1.default.stringify(channels);\n }\n }\n};\n/* EXPORT */\nexports.default = Color;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar hex_1 = require(\"./hex\");\n/* KEYWORD */\nvar Keyword = {\n /* VARIABLES */\n colors: {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyanaqua: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n transparent: '#00000000',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n },\n /* API */\n parse: function (color) {\n color = color.toLowerCase();\n var hex = Keyword.colors[color];\n if (!hex)\n return;\n return hex_1.default.parse(hex);\n },\n stringify: function (channels) {\n var hex = hex_1.default.stringify(channels);\n for (var name_1 in Keyword.colors) {\n if (Keyword.colors[name_1] === hex)\n return name_1;\n }\n }\n};\n/* EXPORT */\nexports.default = Keyword;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* RGB */\nvar RGB = {\n /* VARIABLES */\n re: /^rgba?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?)))?\\s*?\\)$/i,\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 114 && charCode !== 82)\n return; // 'r'/'R'\n var match = color.match(RGB.re);\n if (!match)\n return;\n var r = match[1], isRedPercentage = match[2], g = match[3], isGreenPercentage = match[4], b = match[5], isBluePercentage = match[6], a = match[7], isAlphaPercentage = match[8];\n return reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(isRedPercentage ? parseFloat(r) * 2.55 : parseFloat(r)),\n g: utils_1.default.channel.clamp.g(isGreenPercentage ? parseFloat(g) * 2.55 : parseFloat(g)),\n b: utils_1.default.channel.clamp.b(isBluePercentage ? parseFloat(b) * 2.55 : parseFloat(b)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // RGBA\n return \"rgba(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \", \" + utils_1.default.lang.round(channels.a) + \")\";\n }\n else { // RGB\n return \"rgb(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \")\";\n }\n }\n};\n/* EXPORT */\nexports.default = RGB;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"./utils\");\n/* CONSTS */\nvar DEC2HEX = {};\nexports.DEC2HEX = DEC2HEX;\nfor (var i = 0; i <= 255; i++)\n DEC2HEX[i] = utils_1.default.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance\n","\"use strict\";\n/* EXPORT */\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./methods\"));\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\n/* ADJUST */\nfunction adjust(color, channels) {\n var ch = color_1.default.parse(color), changes = {};\n for (var c in channels) {\n if (!channels[c])\n continue;\n changes[c] = ch[c] + channels[c];\n }\n return change_1.default(color, changes);\n}\n/* EXPORT */\nexports.default = adjust;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* ADJUST CHANNEL */\nfunction adjustChannel(color, channel, amount) {\n var channels = color_1.default.parse(color), amountCurrent = channels[channel], amountNext = utils_1.default.channel.clamp[channel](amountCurrent + amount);\n if (amountCurrent !== amountNext)\n channels[channel] = amountNext;\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = adjustChannel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* ALPHA */\nfunction alpha(color) {\n return channel_1.default(color, 'a');\n}\n/* EXPORT */\nexports.default = alpha;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* BLUE */\nfunction blue(color) {\n return channel_1.default(color, 'b');\n}\n/* EXPORT */\nexports.default = blue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANGE */\nfunction change(color, channels) {\n var ch = color_1.default.parse(color);\n for (var c in channels) {\n ch[c] = utils_1.default.channel.clamp[c](channels[c]);\n }\n return color_1.default.stringify(ch);\n}\n/* EXPORT */\nexports.default = change;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANNEL */\nfunction channel(color, channel) {\n return utils_1.default.lang.round(color_1.default.parse(color)[channel]);\n}\n/* EXPORT */\nexports.default = channel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* COMPLEMENT */\nfunction complement(color) {\n return adjust_channel_1.default(color, 'h', 180);\n}\n/* EXPORT */\nexports.default = complement;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DARKEN */\nfunction darken(color, amount) {\n return adjust_channel_1.default(color, 'l', -amount);\n}\n/* EXPORT */\nexports.default = darken;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DESATURATE */\nfunction desaturate(color, amount) {\n return adjust_channel_1.default(color, 's', -amount);\n}\n/* EXPORT */\nexports.default = desaturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar change_1 = require(\"./change\");\n/* GRAYSCALE */\nfunction grayscale(color) {\n return change_1.default(color, { s: 0 });\n}\n/* EXPORT */\nexports.default = grayscale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* GREEN */\nfunction green(color) {\n return channel_1.default(color, 'g');\n}\n/* EXPORT */\nexports.default = green;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\n/* HSLA */\nfunction hsla(h, s, l, a) {\n if (a === void 0) { a = 1; }\n var channels = reusable_1.default.set({\n h: utils_1.default.channel.clamp.h(h),\n s: utils_1.default.channel.clamp.s(s),\n l: utils_1.default.channel.clamp.l(l),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = hsla;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* HUE */\nfunction hue(color) {\n return channel_1.default(color, 'h');\n}\n/* EXPORT */\nexports.default = hue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar rgba_1 = require(\"./rgba\"); // Alias\nexports.hex = rgba_1.default;\nvar rgba_2 = require(\"./rgba\"); // Alias\nexports.rgb = rgba_2.default;\nvar rgba_3 = require(\"./rgba\");\nexports.rgba = rgba_3.default;\nvar hsla_1 = require(\"./hsla\"); // Alias\nexports.hsl = hsla_1.default;\nvar hsla_2 = require(\"./hsla\");\nexports.hsla = hsla_2.default;\nvar channel_1 = require(\"./channel\");\nexports.channel = channel_1.default;\nvar red_1 = require(\"./red\");\nexports.red = red_1.default;\nvar green_1 = require(\"./green\");\nexports.green = green_1.default;\nvar blue_1 = require(\"./blue\");\nexports.blue = blue_1.default;\nvar hue_1 = require(\"./hue\");\nexports.hue = hue_1.default;\nvar saturation_1 = require(\"./saturation\");\nexports.saturation = saturation_1.default;\nvar lightness_1 = require(\"./lightness\");\nexports.lightness = lightness_1.default;\nvar alpha_1 = require(\"./alpha\");\nexports.alpha = alpha_1.default;\nvar alpha_2 = require(\"./alpha\"); // Alias\nexports.opacity = alpha_2.default;\nvar luminance_1 = require(\"./luminance\");\nexports.luminance = luminance_1.default;\nvar is_dark_1 = require(\"./is_dark\");\nexports.isDark = is_dark_1.default;\nvar is_light_1 = require(\"./is_light\");\nexports.isLight = is_light_1.default;\nvar is_valid_1 = require(\"./is_valid\");\nexports.isValid = is_valid_1.default;\nvar saturate_1 = require(\"./saturate\");\nexports.saturate = saturate_1.default;\nvar desaturate_1 = require(\"./desaturate\");\nexports.desaturate = desaturate_1.default;\nvar lighten_1 = require(\"./lighten\");\nexports.lighten = lighten_1.default;\nvar darken_1 = require(\"./darken\");\nexports.darken = darken_1.default;\nvar opacify_1 = require(\"./opacify\");\nexports.opacify = opacify_1.default;\nvar opacify_2 = require(\"./opacify\"); // Alias\nexports.fadeIn = opacify_2.default;\nvar transparentize_1 = require(\"./transparentize\");\nexports.transparentize = transparentize_1.default;\nvar transparentize_2 = require(\"./transparentize\"); // Alias\nexports.fadeOut = transparentize_2.default;\nvar complement_1 = require(\"./complement\");\nexports.complement = complement_1.default;\nvar grayscale_1 = require(\"./grayscale\");\nexports.grayscale = grayscale_1.default;\nvar adjust_1 = require(\"./adjust\");\nexports.adjust = adjust_1.default;\nvar change_1 = require(\"./change\");\nexports.change = change_1.default;\nvar invert_1 = require(\"./invert\");\nexports.invert = invert_1.default;\nvar mix_1 = require(\"./mix\");\nexports.mix = mix_1.default;\nvar scale_1 = require(\"./scale\");\nexports.scale = scale_1.default;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar mix_1 = require(\"./mix\");\n/* INVERT */\nfunction invert(color, weight) {\n if (weight === void 0) { weight = 100; }\n var inverse = color_1.default.parse(color);\n inverse.r = 255 - inverse.r;\n inverse.g = 255 - inverse.g;\n inverse.b = 255 - inverse.b;\n return mix_1.default(inverse, color, weight);\n}\n/* EXPORT */\nexports.default = invert;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar is_light_1 = require(\"./is_light\");\n/* IS DARK */\nfunction isDark(color) {\n return !is_light_1.default(color);\n}\n/* EXPORT */\nexports.default = isDark;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar luminance_1 = require(\"./luminance\");\n/* IS LIGHT */\nfunction isLight(color) {\n return luminance_1.default(color) >= .5;\n}\n/* EXPORT */\nexports.default = isLight;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\n/* IS VALID */\nfunction isValid(color) {\n try {\n color_1.default.parse(color);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\n/* EXPORT */\nexports.default = isValid;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* LIGHTEN */\nfunction lighten(color, amount) {\n return adjust_channel_1.default(color, 'l', amount);\n}\n/* EXPORT */\nexports.default = lighten;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* LIGHTNESS */\nfunction lightness(color) {\n return channel_1.default(color, 'l');\n}\n/* EXPORT */\nexports.default = lightness;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* LUMINANCE */\n//SOURCE: https://planetcalc.com/7779\nfunction luminance(color) {\n var _a = color_1.default.parse(color), r = _a.r, g = _a.g, b = _a.b, luminance = .2126 * utils_1.default.channel.toLinear(r) + .7152 * utils_1.default.channel.toLinear(g) + .0722 * utils_1.default.channel.toLinear(b);\n return utils_1.default.lang.round(luminance);\n}\n/* EXPORT */\nexports.default = luminance;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar rgba_1 = require(\"./rgba\");\n/* MIX */\n//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L756\nfunction mix(color1, color2, weight) {\n if (weight === void 0) { weight = 50; }\n var _a = color_1.default.parse(color1), r1 = _a.r, g1 = _a.g, b1 = _a.b, a1 = _a.a, _b = color_1.default.parse(color2), r2 = _b.r, g2 = _b.g, b2 = _b.b, a2 = _b.a, weightScale = weight / 100, weightNormalized = (weightScale * 2) - 1, alphaDelta = a1 - a2, weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta), weight1 = (weight1combined + 1) / 2, weight2 = 1 - weight1, r = (r1 * weight1) + (r2 * weight2), g = (g1 * weight1) + (g2 * weight2), b = (b1 * weight1) + (b2 * weight2), a = (a1 * weightScale) + (a2 * (1 - weightScale));\n return rgba_1.default(r, g, b, a);\n}\n/* EXPORT */\nexports.default = mix;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* OPACIFY */\nfunction opacify(color, amount) {\n return adjust_channel_1.default(color, 'a', amount);\n}\n/* EXPORT */\nexports.default = opacify;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* RED */\nfunction red(color) {\n return channel_1.default(color, 'r');\n}\n/* EXPORT */\nexports.default = red;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\nfunction rgba(r, g, b, a) {\n if (b === void 0) { b = 0; }\n if (a === void 0) { a = 1; }\n if (typeof r !== 'number')\n return change_1.default(r, { a: g });\n var channels = reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(r),\n g: utils_1.default.channel.clamp.g(g),\n b: utils_1.default.channel.clamp.b(b),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = rgba;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* SATURATE */\nfunction saturate(color, amount) {\n return adjust_channel_1.default(color, 's', amount);\n}\n/* EXPORT */\nexports.default = saturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* SATURATION */\nfunction saturation(color) {\n return channel_1.default(color, 's');\n}\n/* EXPORT */\nexports.default = saturation;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\nvar adjust_1 = require(\"./adjust\");\n/* SCALE */\nfunction scale(color, channels) {\n var ch = color_1.default.parse(color), adjustments = {}, delta = function (amount, weight, max) { return weight > 0 ? (max - amount) * weight / 100 : amount * weight / 100; };\n for (var c in channels) {\n adjustments[c] = delta(ch[c], channels[c], utils_1.default.channel.max[c]);\n }\n return adjust_1.default(color, adjustments);\n}\n/* EXPORT */\nexports.default = scale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* TRANSPARENTIZE */\nfunction transparentize(color, amount) {\n return adjust_channel_1.default(color, 'a', -amount);\n}\n/* EXPORT */\nexports.default = transparentize;\n","\"use strict\";\n/* ENUMS */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"ALL\"] = 0] = \"ALL\";\n TYPE[TYPE[\"RGB\"] = 1] = \"RGB\";\n TYPE[TYPE[\"HSL\"] = 2] = \"HSL\";\n})(TYPE || (TYPE = {}));\nexports.TYPE = TYPE;\n;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* CHANNEL */\nvar Channel = {\n /* CLAMP */\n min: {\n r: 0,\n g: 0,\n b: 0,\n s: 0,\n l: 0,\n a: 0\n },\n max: {\n r: 255,\n g: 255,\n b: 255,\n h: 360,\n s: 100,\n l: 100,\n a: 1\n },\n clamp: {\n r: function (r) { return r >= 255 ? 255 : (r < 0 ? 0 : r); },\n g: function (g) { return g >= 255 ? 255 : (g < 0 ? 0 : g); },\n b: function (b) { return b >= 255 ? 255 : (b < 0 ? 0 : b); },\n h: function (h) { return h % 360; },\n s: function (s) { return s >= 100 ? 100 : (s < 0 ? 0 : s); },\n l: function (l) { return l >= 100 ? 100 : (l < 0 ? 0 : l); },\n a: function (a) { return a >= 1 ? 1 : (a < 0 ? 0 : a); }\n },\n /* CONVERSION */\n //SOURCE: https://planetcalc.com/7779\n toLinear: function (c) {\n var n = c / 255;\n return c > .03928 ? Math.pow(((n + .055) / 1.055), 2.4) : n / 12.92;\n },\n //SOURCE: https://gist.github.com/mjackson/5311256\n hue2rgb: function (p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n },\n hsl2rgb: function (_a, channel) {\n var h = _a.h, s = _a.s, l = _a.l;\n if (s === 100)\n return l * 2.55; // Achromatic\n h /= 360;\n s /= 100;\n l /= 100;\n var q = (l < .5) ? l * (1 + s) : (l + s) - (l * s), p = 2 * l - q;\n switch (channel) {\n case 'r': return Channel.hue2rgb(p, q, h + 1 / 3) * 255;\n case 'g': return Channel.hue2rgb(p, q, h) * 255;\n case 'b': return Channel.hue2rgb(p, q, h - 1 / 3) * 255;\n }\n },\n rgb2hsl: function (_a, channel) {\n var r = _a.r, g = _a.g, b = _a.b;\n r /= 255;\n g /= 255;\n b /= 255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;\n if (channel === 'l')\n return l * 100;\n if (max === min)\n return 0; // Achromatic\n var d = max - min, s = (l > .5) ? d / (2 - max - min) : d / (max + min);\n if (channel === 's')\n return s * 100;\n switch (max) {\n case r: return ((g - b) / d + (g < b ? 6 : 0)) * 60;\n case g: return ((b - r) / d + 2) * 60;\n case b: return ((r - g) / d + 4) * 60;\n default: return -1; //TSC: TypeScript is stupid and complains if there isn't this useless default statement\n }\n }\n};\n/* EXPORT */\nexports.default = Channel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\nvar lang_1 = require(\"./lang\");\nvar unit_1 = require(\"./unit\");\n/* UTILS */\nvar Utils = {\n channel: channel_1.default,\n lang: lang_1.default,\n unit: unit_1.default\n};\n/* EXPORT */\nexports.default = Utils;\n","\"use strict\";\n/* LANG */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Lang = {\n round: function (number) {\n return Math.round(number * 10000000000) / 10000000000;\n }\n};\n/* EXPORT */\nexports.default = Lang;\n","\"use strict\";\n/* UNIT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Unit = {\n frac2hex: function (frac) {\n var hex = Math.round(frac * 255).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n },\n dec2hex: function (dec) {\n var hex = Math.round(dec).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n }\n};\n/* EXPORT */\nexports.default = Unit;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","module.exports = require('./forEach');\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n","var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n","var map = {\n\t\"./locale\": \"./node_modules/moment-mini/locale/locale.js\",\n\t\"./locale.js\": \"./node_modules/moment-mini/locale/locale.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./node_modules/moment-mini/locale sync recursive ^\\\\.\\\\/.*$\";","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,yt=/Z|[+-]\\d\\d(?::?\\d\\d)?/,gt=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],vt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/*\n * __ ___\n * _____/ /___ __/ (_)____\n * / ___/ __/ / / / / / ___/\n * (__ ) /_/ /_/ / / (__ )\n * /____/\\__/\\__, /_/_/____/\n * /____/\n *\n * light - weight css preprocessor @licence MIT\n */\n(function (factory) {/* eslint-disable */\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory(null)) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory(null)) :\n\t\t\t(window['stylis'] = factory(null))\n}(/** @param {*=} options */function factory (options) {/* eslint-disable */\n\n\t'use strict'\n\n\t/**\n\t * Notes\n\t *\n\t * The [''] pattern is used to support closure compiler\n\t * the jsdoc signatures are also used to the same effect\n\t *\n\t * ----\n\t *\n\t * int + int + int === n4 [faster]\n\t *\n\t * vs\n\t *\n\t * int === n1 && int === n2 && int === n3\n\t *\n\t * ----\n\t *\n\t * switch (int) { case ints...} [faster]\n\t *\n\t * vs\n\t *\n\t * if (int == 1 && int === 2 ...)\n\t *\n\t * ----\n\t *\n\t * The (first*n1 + second*n2 + third*n3) format used in the property parser\n\t * is a simple way to hash the sequence of characters\n\t * taking into account the index they occur in\n\t * since any number of 3 character sequences could produce duplicates.\n\t *\n\t * On the other hand sequences that are directly tied to the index of the character\n\t * resolve a far more accurate measure, it's also faster\n\t * to evaluate one condition in a switch statement\n\t * than three in an if statement regardless of the added math.\n\t *\n\t * This allows the vendor prefixer to be both small and fast.\n\t */\n\n\tvar nullptn = /^\\0+/g /* matches leading null characters */\n\tvar formatptn = /[\\0\\r\\f]/g /* matches new line, null and formfeed characters */\n\tvar colonptn = /: */g /* splits animation rules */\n\tvar cursorptn = /zoo|gra/ /* assert cursor varient */\n\tvar transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */\n\tvar animationptn = /,+\\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */\n\tvar propertiesptn = / +\\s*(?![^(]*[)])/g /* animation properties */\n\tvar elementptn = / *[\\0] */g /* selector elements */\n\tvar selectorptn = /,\\r+?/g /* splits selectors */\n\tvar andptn = /([\\t\\r\\n ])*\\f?&/g /* match & */\n\tvar escapeptn = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g /* matches :global(.*) */\n\tvar invalidptn = /\\W+/g /* removes invalid characters from keyframes */\n\tvar keyframeptn = /@(k\\w+)\\s*(\\S*)\\s*/ /* matches @keyframes $1 */\n\tvar plcholdrptn = /::(place)/g /* match ::placeholder varient */\n\tvar readonlyptn = /:(read-only)/g /* match :read-only varient */\n\tvar beforeptn = /\\s+(?=[{\\];=:>])/g /* matches \\s before ] ; = : */\n\tvar afterptn = /([[}=:>])\\s+/g /* matches \\s after characters [ } = : */\n\tvar tailptn = /(\\{[^{]+?);(?=\\})/g /* matches tail semi-colons ;} */\n\tvar whiteptn = /\\s{2,}/g /* matches repeating whitespace */\n\tvar pseudoptn = /([^\\(])(:+) */g /* pseudo element */\n\tvar writingptn = /[svh]\\w+-[tblr]{2}/ /* match writing mode property values */\n\tvar gradientptn = /([\\w-]+t\\()/g /* match *gradient property */\n\tvar supportsptn = /\\(\\s*(.*)\\s*\\)/g /* match supports (groups) */\n\tvar propertyptn = /([\\s\\S]*?);/g /* match properties leading semicolon */\n\tvar selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */\n\tvar pseudofmt = /[^]*?(:[rp][el]a[\\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */\n\tvar trimptn = /[ \\t]+$/ /* match tail whitspace */\n\tvar dimensionptn = /stretch|:\\s*\\w+\\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */\n\tvar imgsrcptn = /([^-])(image-set\\()/\n\n\t/* vendors */\n\tvar webkit = '-webkit-'\n\tvar moz = '-moz-'\n\tvar ms = '-ms-'\n\n\t/* character codes */\n\tvar SEMICOLON = 59 /* ; */\n\tvar CLOSEBRACES = 125 /* } */\n\tvar OPENBRACES = 123 /* { */\n\tvar OPENPARENTHESES = 40 /* ( */\n\tvar CLOSEPARENTHESES = 41 /* ) */\n\tvar OPENBRACKET = 91 /* [ */\n\tvar CLOSEBRACKET = 93 /* ] */\n\tvar NEWLINE = 10 /* \\n */\n\tvar CARRIAGE = 13 /* \\r */\n\tvar TAB = 9 /* \\t */\n\tvar AT = 64 /* @ */\n\tvar SPACE = 32 /* */\n\tvar AND = 38 /* & */\n\tvar DASH = 45 /* - */\n\tvar UNDERSCORE = 95 /* _ */\n\tvar STAR = 42 /* * */\n\tvar COMMA = 44 /* , */\n\tvar COLON = 58 /* : */\n\tvar SINGLEQUOTE = 39 /* ' */\n\tvar DOUBLEQUOTE = 34 /* \" */\n\tvar FOWARDSLASH = 47 /* / */\n\tvar GREATERTHAN = 62 /* > */\n\tvar PLUS = 43 /* + */\n\tvar TILDE = 126 /* ~ */\n\tvar NULL = 0 /* \\0 */\n\tvar FORMFEED = 12 /* \\f */\n\tvar VERTICALTAB = 11 /* \\v */\n\n\t/* special identifiers */\n\tvar KEYFRAME = 107 /* k */\n\tvar MEDIA = 109 /* m */\n\tvar SUPPORTS = 115 /* s */\n\tvar PLACEHOLDER = 112 /* p */\n\tvar READONLY = 111 /* o */\n\tvar IMPORT = 105 /* i */\n\tvar CHARSET = 99 /* c */\n\tvar DOCUMENT = 100 /* d */\n\tvar PAGE = 112 /* p */\n\n\tvar column = 1 /* current column */\n\tvar line = 1 /* current line numebr */\n\tvar pattern = 0 /* :pattern */\n\n\tvar cascade = 1 /* #id h1 h2 vs h1#id h2#id */\n\tvar prefix = 1 /* vendor prefix */\n\tvar escape = 1 /* escape :global() pattern */\n\tvar compress = 0 /* compress output */\n\tvar semicolon = 0 /* no/semicolon option */\n\tvar preserve = 0 /* preserve empty selectors */\n\n\t/* empty reference */\n\tvar array = []\n\n\t/* plugins */\n\tvar plugins = []\n\tvar plugged = 0\n\tvar should = null\n\n\t/* plugin context */\n\tvar POSTS = -2\n\tvar PREPS = -1\n\tvar UNKWN = 0\n\tvar PROPS = 1\n\tvar BLCKS = 2\n\tvar ATRUL = 3\n\n\t/* plugin newline context */\n\tvar unkwn = 0\n\n\t/* keyframe animation */\n\tvar keyed = 1\n\tvar key = ''\n\n\t/* selector namespace */\n\tvar nscopealt = ''\n\tvar nscope = ''\n\n\t/**\n\t * Compile\n\t *\n\t * @param {Array} parent\n\t * @param {Array} current\n\t * @param {string} body\n\t * @param {number} id\n\t * @param {number} depth\n\t * @return {string}\n\t */\n\tfunction compile (parent, current, body, id, depth) {\n\t\tvar bracket = 0 /* brackets [] */\n\t\tvar comment = 0 /* comments /* // or /* */\n\t\tvar parentheses = 0 /* functions () */\n\t\tvar quote = 0 /* quotes '', \"\" */\n\n\t\tvar first = 0 /* first character code */\n\t\tvar second = 0 /* second character code */\n\t\tvar code = 0 /* current character code */\n\t\tvar tail = 0 /* previous character code */\n\t\tvar trail = 0 /* character before previous code */\n\t\tvar peak = 0 /* previous non-whitespace code */\n\n\t\tvar counter = 0 /* count sequence termination */\n\t\tvar context = 0 /* track current context */\n\t\tvar atrule = 0 /* track @at-rule context */\n\t\tvar pseudo = 0 /* track pseudo token index */\n\t\tvar caret = 0 /* current character index */\n\t\tvar format = 0 /* control character formating context */\n\t\tvar insert = 0 /* auto semicolon insertion */\n\t\tvar invert = 0 /* inverted selector pattern */\n\t\tvar length = 0 /* generic length address */\n\t\tvar eof = body.length /* end of file(length) */\n\t\tvar eol = eof - 1 /* end of file(characters) */\n\n\t\tvar char = '' /* current character */\n\t\tvar chars = '' /* current buffer of characters */\n\t\tvar child = '' /* next buffer of characters */\n\t\tvar out = '' /* compiled body */\n\t\tvar children = '' /* compiled children */\n\t\tvar flat = '' /* compiled leafs */\n\t\tvar selector /* generic selector address */\n\t\tvar result /* generic address */\n\n\t\t// ...build body\n\t\twhile (caret < eof) {\n\t\t\tcode = body.charCodeAt(caret)\n\n\t\t\t// eof varient\n\t\t\tif (caret === eol) {\n\t\t\t\t// last character + noop context, add synthetic padding for noop context to terminate\n\t\t\t\tif (comment + quote + parentheses + bracket !== 0) {\n\t\t\t\t\tif (comment !== 0) {\n\t\t\t\t\t\tcode = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH\n\t\t\t\t\t}\n\n\t\t\t\t\tquote = parentheses = bracket = 0\n\t\t\t\t\teof++\n\t\t\t\t\teol++\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t// eof varient\n\t\t\t\tif (caret === eol) {\n\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chars.trim().length > 0) {\n\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchars += body.charAt(caret)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcode = SEMICOLON\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// auto semicolon insertion\n\t\t\t\tif (insert === 1) {\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t// false flags\n\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\tcase OPENPARENTHESES:\n\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// valid\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\tfirst = code\n\t\t\t\t\t\t\tcaret--\n\t\t\t\t\t\t\tcode = SEMICOLON\n\n\t\t\t\t\t\t\twhile (length < eof) {\n\t\t\t\t\t\t\t\tswitch (body.charCodeAt(length++)) {\n\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// token varient\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\tchars = chars.trim()\n\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\tcounter = 1\n\t\t\t\t\t\tlength = ++caret\n\n\t\t\t\t\t\twhile (caret < eof) {\n\t\t\t\t\t\t\tswitch (code = body.charCodeAt(caret)) {\n\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\tcounter++\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\t\tcounter--\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\tswitch (second = body.charCodeAt(caret + 1)) {\n\t\t\t\t\t\t\t\t\t\t// /*, //\n\t\t\t\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\t\t\tcaret = delimited(second, caret, eol, body)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"[\" === 91 & \"]\" === 93 hence forth 91 + 1 + 1 === 93\n\t\t\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"(\" === 40 & \")\" === 41 hence forth 40 + 1 === 41\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// quote tail delimiter is identical to the head delimiter hence noop,\n\t\t\t\t\t\t\t\t// fallthrough clauses have been shifted to the correct tail delimiter\n\t\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\t\t\twhile (caret++ < eol) {\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(caret) === code) {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (counter === 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcaret++\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchild = body.substring(length, caret)\n\n\t\t\t\t\t\tif (first === NULL) {\n\t\t\t\t\t\t\tfirst = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t// @at-rule\n\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\tcase SUPPORTS:\n\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\tselector = current\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tselector = array\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tchild = compile(current, selector, child, second, depth+1)\n\t\t\t\t\t\t\t\tlength = child.length\n\n\t\t\t\t\t\t\t\t// preserve empty @at-rule\n\t\t\t\t\t\t\t\tif (preserve > 0 && length === 0) {\n\t\t\t\t\t\t\t\t\tlength = chars.length\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// execute plugins, @at-rule context\n\t\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\t\tselector = select(array, chars, invert)\n\t\t\t\t\t\t\t\t\tresult = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)\n\t\t\t\t\t\t\t\t\tchars = selector.join('')\n\n\t\t\t\t\t\t\t\t\tif (result !== void 0) {\n\t\t\t\t\t\t\t\t\t\tif ((length = (child = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\t\tsecond = 0\n\t\t\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (length > 0) {\n\t\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\t\tcase SUPPORTS: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(supportsptn, supports)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase KEYFRAME: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\n\t\t\t\t\t\t\t\t\t\t\tif (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + webkit + child + '@' + child\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + child\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + child\n\n\t\t\t\t\t\t\t\t\t\t\tif (id === PAGE) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = (out += child, '')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// selector\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchild = compile(current, select(current, chars, invert), child, id, depth+1)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchildren += child\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tatrule = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\tchars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()\n\n\t\t\t\t\t\tif ((length = chars.length) > 1) {\n\t\t\t\t\t\t\t// monkey-patch missing colon\n\t\t\t\t\t\t\tif (pseudo === 0) {\n\t\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\n\t\t\t\t\t\t\t\t// first character is a letter or dash, buffer has a space character\n\t\t\t\t\t\t\t\tif ((first === DASH || first > 96 && first < 123)) {\n\t\t\t\t\t\t\t\t\tlength = (chars = chars.replace(' ', ':')).length\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// execute plugins, property context\n\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\tif ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {\n\t\t\t\t\t\t\t\t\tif ((length = (chars = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\tchars = '\\0\\0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\t\tif (second === IMPORT || second === CHARSET) {\n\t\t\t\t\t\t\t\t\t\tflat += chars + body.charAt(caret)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tif (chars.charCodeAt(length-1) === COLON) {\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tout += property(chars, first, second, chars.charCodeAt(2))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// parse characters\n\t\t\tswitch (code) {\n\t\t\t\tcase CARRIAGE:\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t// auto insert semicolon\n\t\t\t\t\tif (comment + quote + parentheses + bracket + semicolon === 0) {\n\t\t\t\t\t\t// valid non-whitespace characters that\n\t\t\t\t\t\t// may precede a newline\n\t\t\t\t\t\tswitch (peak) {\n\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\tcase AT:\n\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\tcase FOWARDSLASH:\n\t\t\t\t\t\t\tcase DASH:\n\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t// current buffer has a colon\n\t\t\t\t\t\t\t\tif (pseudo > 0) {\n\t\t\t\t\t\t\t\t\tinsert = 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// terminate line comment\n\t\t\t\t\tif (comment === FOWARDSLASH) {\n\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t} else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {\n\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\tchars += '\\0'\n\t\t\t\t\t}\n\n\t\t\t\t\t// execute plugins, newline context\n\t\t\t\t\tif (plugged * unkwn > 0) {\n\t\t\t\t\t\tproxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)\n\t\t\t\t\t}\n\n\t\t\t\t\t// next line, reset column position\n\t\t\t\t\tcolumn = 1\n\t\t\t\t\tline++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase SEMICOLON:\n\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t\t\tcolumn++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\t// increment column position\n\t\t\t\t\tcolumn++\n\n\t\t\t\t\t// current character\n\t\t\t\t\tchar = body.charAt(caret)\n\n\t\t\t\t\t// remove comments, escape functions, strings, attributes and prepare selectors\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tif (quote + bracket + comment === 0) {\n\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tif (code !== SPACE) {\n\t\t\t\t\t\t\t\t\t\t\tchar = ' '\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// escape breaking control characters\n\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\tchar = '\\\\0'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FORMFEED: {\n\t\t\t\t\t\t\tchar = '\\\\f'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase VERTICALTAB: {\n\t\t\t\t\t\t\tchar = '\\\\v'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// &\n\t\t\t\t\t\tcase AND: {\n\t\t\t\t\t\t\t// inverted selector pattern i.e html &\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0 && cascade > 0) {\n\t\t\t\t\t\t\t\tinvert = 1\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar = '\\f' + char\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ::paceholder, l\n\t\t\t\t\t\t// :read-ony, l\n\t\t\t\t\t\tcase 108: {\n\t\t\t\t\t\t\tif (quote + comment + bracket + pattern === 0 && pseudo > 0) {\n\t\t\t\t\t\t\t\tswitch (caret - pseudo) {\n\t\t\t\t\t\t\t\t\t// ::placeholder\n\t\t\t\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\t\t\t\tif (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = tail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// :read-only\n\t\t\t\t\t\t\t\t\tcase 8: {\n\t\t\t\t\t\t\t\t\t\tif (trail === READONLY) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = trail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tpseudo = caret\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// selectors\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket === 0) {\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar += '\\r'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// quotes\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// attributes\n\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase CLOSEBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// functions\n\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tparentheses--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\tswitch (tail*2 + trail*3) {\n\t\t\t\t\t\t\t\t\t\t// :matches\n\t\t\t\t\t\t\t\t\t\tcase 533: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// :global, :not, :nth-child etc...\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tcounter = 0\n\t\t\t\t\t\t\t\t\t\t\tcontext = 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tparentheses++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket + pseudo + atrule === 0) {\n\t\t\t\t\t\t\t\tatrule = 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// block/line comments\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\tif (quote + bracket + parentheses > 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch (comment) {\n\t\t\t\t\t\t\t\t// initialize line/block comment context\n\t\t\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\t\t\tswitch (code*2 + body.charCodeAt(caret+1)*3) {\n\t\t\t\t\t\t\t\t\t\t// //\n\t\t\t\t\t\t\t\t\t\tcase 235: {\n\t\t\t\t\t\t\t\t\t\t\tcomment = FOWARDSLASH\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// /*\n\t\t\t\t\t\t\t\t\t\tcase 220: {\n\t\t\t\t\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\t\t\t\t\tcomment = STAR\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// end block comment context\n\t\t\t\t\t\t\t\tcase STAR: {\n\t\t\t\t\t\t\t\t\tif (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {\n\t\t\t\t\t\t\t\t\t\t// /* ... */, !\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(length+2) === 33) {\n\t\t\t\t\t\t\t\t\t\t\tout += body.substring(length, caret+1)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// ignore comment blocks\n\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t// aggressive isolation mode, divide each individual selector\n\t\t\t\t\t\t// including selectors in :not function but excluding selectors in :global function\n\t\t\t\t\t\tif (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {\n\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t// outside of an isolated context i.e nth-child(<...>)\n\t\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = char + '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = '\\0' + char + (code === COMMA ? '' : '\\0')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// within an isolated context, sleep untill it's terminated\n\t\t\t\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\t// :globa(\n\t\t\t\t\t\t\t\t\t\t\t\tif (pseudo + 7 === caret && tail === 108) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcontext = ++counter\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\tif ((context = --counter) === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\tcase NULL:\n\t\t\t\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\t\tcase FORMFEED:\n\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t// ignore in isolated contexts\n\t\t\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// concat buffer of characters\n\t\t\t\t\t\tchars += char\n\n\t\t\t\t\t\t// previous non-whitespace character code\n\t\t\t\t\t\tif (code !== SPACE && code !== TAB) {\n\t\t\t\t\t\t\tpeak = code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// tail character codes\n\t\t\ttrail = tail\n\t\t\ttail = code\n\n\t\t\t// visit every character\n\t\t\tcaret++\n\t\t}\n\n\t\tlength = out.length\n\n\t\t// preserve empty selector\n \t\tif (preserve > 0) {\n \t\t\tif (length === 0 && children.length === 0 && (current[0].length === 0) === false) {\n \t\t\t\tif (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {\n\t\t\t\t\tlength = current.join(',').length + 2\n \t\t\t\t}\n \t\t\t}\n\t\t}\n\n\t\tif (length > 0) {\n\t\t\t// cascade isolation mode?\n\t\t\tselector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current\n\n\t\t\t// execute plugins, block context\n\t\t\tif (plugged > 0) {\n\t\t\t\tresult = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)\n\n\t\t\t\tif (result !== void 0 && (out = result).length === 0) {\n\t\t\t\t\treturn flat + out + children\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout = selector.join(',') + '{' + out + '}'\n\n\t\t\tif (prefix*pattern !== 0) {\n\t\t\t\tif (prefix === 2 && !vendor(out, 2))\n\t\t\t\t\tpattern = 0\n\n\t\t\t\tswitch (pattern) {\n\t\t\t\t\t// ::read-only\n\t\t\t\t\tcase READONLY: {\n\t\t\t\t\t\tout = out.replace(readonlyptn, ':'+moz+'$1')+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// ::placeholder\n\t\t\t\t\tcase PLACEHOLDER: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + webkit + 'input-$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + moz + '$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, ':' + ms + 'input-$1') + out\n\t\t\t\t\t\t)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpattern = 0\n\t\t\t}\n\t\t}\n\n\t\treturn flat + out + children\n\t}\n\n\t/**\n\t * Select\n\t *\n\t * @param {Array} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @return {Array}\n\t */\n\tfunction select (parent, current, invert) {\n\t\tvar selectors = current.trim().split(selectorptn)\n\t\tvar out = selectors\n\n\t\tvar length = selectors.length\n\t\tvar l = parent.length\n\n\t\tswitch (l) {\n\t\t\t// 0-1 parent selectors\n\t\t\tcase 0:\n\t\t\tcase 1: {\n\t\t\t\tfor (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {\n\t\t\t\t\tout[i] = scope(selector, out[i], invert, l).trim()\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// >2 parent selectors, nested\n\t\t\tdefault: {\n\t\t\t\tfor (var i = 0, j = 0, out = []; i < length; ++i) {\n\t\t\t\t\tfor (var k = 0; k < l; ++k) {\n\t\t\t\t\t\tout[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Scope\n\t *\n\t * @param {string} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @param {number} level\n\t * @return {string}\n\t */\n\tfunction scope (parent, current, invert, level) {\n\t\tvar selector = current\n\t\tvar code = selector.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (selector = selector.trim()).charCodeAt(0)\n\t\t}\n\n\t\tswitch (code) {\n\t\t\t// &\n\t\t\tcase AND: {\n\t\t\t\tswitch (cascade + level) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1: {\n\t\t\t\t\t\tif (parent.trim().length === 0) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// :\n\t\t\tcase COLON: {\n\t\t\t\tswitch (selector.charCodeAt(1)) {\n\t\t\t\t\t// g in :global\n\t\t\t\t\tcase 103: {\n\t\t\t\t\t\tif (escape > 0 && cascade > 0) {\n\t\t\t\t\t\t\treturn selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\t// :hover\n\t\t\t\t\t\treturn parent.trim() + selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// html &\n\t\t\t\tif (invert*cascade > 0 && selector.indexOf('\\f') > 0) {\n\t\t\t\t\treturn selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent + selector\n\t}\n\n\t/**\n\t * Property\n\t *\n\t * @param {string} input\n\t * @param {number} first\n\t * @param {number} second\n\t * @param {number} third\n\t * @return {string}\n\t */\n\tfunction property (input, first, second, third) {\n\t\tvar index = 0\n\t\tvar out = input + ';'\n\t\tvar hash = (first*2) + (second*3) + (third*4)\n\t\tvar cache\n\n\t\t// animation: a, n, i characters\n\t\tif (hash === 944) {\n\t\t\treturn animation(out)\n\t\t} else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {\n\t\t\treturn out\n\t\t}\n\n\t\t// vendor prefix\n\t\tswitch (hash) {\n\t\t\t// text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x\n\t\t\tcase 1015: {\n\t\t\t\t// text-shadow/text-align/text-transform, a\n\t\t\t\treturn out.charCodeAt(10) === 97 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// filter/fill f, i, l\n\t\t\tcase 951: {\n\t\t\t\t// filter, t\n\t\t\t\treturn out.charCodeAt(3) === 116 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// color/column, c, o, l\n\t\t\tcase 963: {\n\t\t\t\t// column, n\n\t\t\t\treturn out.charCodeAt(5) === 110 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// box-decoration-break, b, o, x\n\t\t\tcase 1009: {\n\t\t\t\tif (out.charCodeAt(4) !== 100) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// mask, m, a, s\n\t\t\t// clip-path, c, l, i\n\t\t\tcase 969:\n\t\t\tcase 942: {\n\t\t\t\treturn webkit + out + out\n\t\t\t}\n\t\t\t// appearance: a, p, p\n\t\t\tcase 978: {\n\t\t\t\treturn webkit + out + moz + out + out\n\t\t\t}\n\t\t\t// hyphens: h, y, p\n\t\t\t// user-select: u, s, e\n\t\t\tcase 1019:\n\t\t\tcase 983: {\n\t\t\t\treturn webkit + out + moz + out + ms + out + out\n\t\t\t}\n\t\t\t// background/backface-visibility, b, a, c\n\t\t\tcase 883: {\n\t\t\t\t// backface-visibility, -\n\t\t\t\tif (out.charCodeAt(8) === DASH) {\n\t\t\t\t\treturn webkit + out + out\n\t\t\t\t}\n\n\t\t\t\t// image-set(...)\n\t\t\t\tif (out.indexOf('image-set(', 11) > 0) {\n\t\t\t\t\treturn out.replace(imgsrcptn, '$1'+webkit+'$2') + out\n\t\t\t\t}\n\n\t\t\t\treturn out\n\t\t\t}\n\t\t\t// flex: f, l, e\n\t\t\tcase 932: {\n\t\t\t\tif (out.charCodeAt(4) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(5)) {\n\t\t\t\t\t\t// flex-grow, g\n\t\t\t\t\t\tcase 103: {\n\t\t\t\t\t\t\treturn webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-shrink, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('shrink', 'negative') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-basis, b\n\t\t\t\t\t\tcase 98: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('basis', 'preferred-size') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + out + out\n\t\t\t}\n\t\t\t// order: o, r, d\n\t\t\tcase 964: {\n\t\t\t\treturn webkit + out + ms + 'flex' + '-' + out + out\n\t\t\t}\n\t\t\t// justify-items/justify-content, j, u, s\n\t\t\tcase 1023: {\n\t\t\t\t// justify-content, c\n\t\t\t\tif (out.charCodeAt(8) !== 99) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tcache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')\n\t\t\t\treturn webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out\n\t\t\t}\n\t\t\t// cursor, c, u, r\n\t\t\tcase 1005: {\n\t\t\t\treturn cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out\n\t\t\t}\n\t\t\t// writing-mode, w, r, i\n\t\t\tcase 1000: {\n\t\t\t\tcache = out.substring(13).trim()\n\t\t\t\tindex = cache.indexOf('-') + 1\n\n\t\t\t\tswitch (cache.charCodeAt(0)+cache.charCodeAt(index)) {\n\t\t\t\t\t// vertical-lr\n\t\t\t\t\tcase 226: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// vertical-rl\n\t\t\t\t\tcase 232: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb-rl')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// horizontal-tb\n\t\t\t\t\tcase 220: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'lr')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn out\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + cache + out\n\t\t\t}\n\t\t\t// position: sticky\n\t\t\tcase 1017: {\n\t\t\t\tif (out.indexOf('sticky', 9) === -1) {\n\t\t\t\t\treturn out\n\t\t\t\t}\n\t\t\t}\n\t\t\t// display(flex/inline-flex/inline-box): d, i, s\n\t\t\tcase 975: {\n\t\t\t\tindex = (out = input).length - 10\n\t\t\t\tcache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()\n\n\t\t\t\tswitch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {\n\t\t\t\t\t// inline-\n\t\t\t\t\tcase 203: {\n\t\t\t\t\t\t// inline-box\n\t\t\t\t\t\tif (cache.charCodeAt(8) < 111) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// inline-box/sticky\n\t\t\t\t\tcase 115: {\n\t\t\t\t\t\tout = out.replace(cache, webkit+cache)+';'+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// inline-flex\n\t\t\t\t\t// flex\n\t\t\t\t\tcase 207:\n\t\t\t\t\tcase 102: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+\n\t\t\t\t\t\t\tout.replace(cache, webkit+cache)+';'+\n\t\t\t\t\t\t\tout.replace(cache, ms+cache+'box')+';'+\n\t\t\t\t\t\t\tout\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn out + ';'\n\t\t\t}\n\t\t\t// align-items, align-center, align-self: a, l, i, -\n\t\t\tcase 938: {\n\t\t\t\tif (out.charCodeAt(5) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(6)) {\n\t\t\t\t\t\t// align-items, i\n\t\t\t\t\t\tcase 105: {\n\t\t\t\t\t\t\tcache = out.replace('-items', '')\n\t\t\t\t\t\t\treturn webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-self, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-content\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// min/max\n\t\t\tcase 973:\n\t\t\tcase 989: {\n\t\t\t\t// min-/max- height/width/block-size/inline-size\n\t\t\t\tif (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// height/width: min-content / width: max-content\n\t\t\tcase 931:\n\t\t\tcase 953: {\n\t\t\t\tif (dimensionptn.test(input) === true) {\n\t\t\t\t\t// stretch\n\t\t\t\t\tif ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)\n\t\t\t\t\t\treturn property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')\n\t\t\t\t\telse\n\t\t\t\t\t\treturn out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// transform, transition: t, r, a\n\t\t\tcase 962: {\n\t\t\t\tout = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out\n\n\t\t\t\t// transitions\n\t\t\t\tif (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {\n\t\t\t\t\treturn out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Vendor\n\t *\n\t * @param {string} content\n\t * @param {number} context\n\t * @return {boolean}\n\t */\n\tfunction vendor (content, context) {\n\t\tvar index = content.indexOf(context === 1 ? ':' : '{')\n\t\tvar key = content.substring(0, context !== 3 ? index : 10)\n\t\tvar value = content.substring(index + 1, content.length - 1)\n\n\t\treturn should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)\n\t}\n\n\t/**\n\t * Supports\n\t *\n\t * @param {string} match\n\t * @param {string} group\n\t * @return {string}\n\t */\n\tfunction supports (match, group) {\n\t\tvar out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))\n\n\t\treturn out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'\n\t}\n\n\t/**\n\t * Animation\n\t *\n\t * @param {string} input\n\t * @return {string}\n\t */\n\tfunction animation (input) {\n\t\tvar length = input.length\n\t\tvar index = input.indexOf(':', 9) + 1\n\t\tvar declare = input.substring(0, index).trim()\n\t\tvar out = input.substring(index, length-1).trim()\n\n\t\tswitch (input.charCodeAt(9)*keyed) {\n\t\t\tcase 0: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// animation-*, -\n\t\t\tcase DASH: {\n\t\t\t\t// animation-name, n\n\t\t\t\tif (input.charCodeAt(10) !== 110) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// animation/animation-name\n\t\t\tdefault: {\n\t\t\t\t// split in case of multiple animations\n\t\t\t\tvar list = out.split((out = '', animationptn))\n\n\t\t\t\tfor (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {\n\t\t\t\t\tvar value = list[i]\n\t\t\t\t\tvar items = value.split(propertiesptn)\n\n\t\t\t\t\twhile (value = items[index]) {\n\t\t\t\t\t\tvar peak = value.charCodeAt(0)\n\n\t\t\t\t\t\tif (keyed === 1 && (\n\t\t\t\t\t\t\t// letters\n\t\t\t\t\t\t\t(peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||\n\t\t\t\t\t\t\t// dash but not in sequence i.e --\n\t\t\t\t\t\t\t(peak === DASH && value.charCodeAt(1) !== DASH)\n\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t// not a number/function\n\t\t\t\t\t\t\tswitch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {\n\t\t\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\t\t\tswitch (value) {\n\t\t\t\t\t\t\t\t\t\t// not a valid reserved keyword\n\t\t\t\t\t\t\t\t\t\tcase 'infinite': case 'alternate': case 'backwards': case 'running':\n\t\t\t\t\t\t\t\t\t\tcase 'normal': case 'forwards': case 'both': case 'none': case 'linear':\n\t\t\t\t\t\t\t\t\t\tcase 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':\n\t\t\t\t\t\t\t\t\t\tcase 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':\n\t\t\t\t\t\t\t\t\t\tcase 'initial': case 'unset': case 'step-start': case 'step-end': {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tvalue += key\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titems[index++] = value\n\t\t\t\t\t}\n\n\t\t\t\t\tout += (i === 0 ? '' : ',') + items.join(' ')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tout = declare + out + ';'\n\n\t\tif (prefix === 1 || (prefix === 2 && vendor(out, 1)))\n\t\t\treturn webkit + out + out\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Isolate\n\t *\n\t * @param {Array} current\n\t */\n\tfunction isolate (current) {\n\t\tfor (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {\n\t\t\t// split individual elements in a selector i.e h1 h2 === [h1, h2]\n\t\t\tvar elements = current[i].split(elementptn)\n\t\t\tvar out = ''\n\n\t\t\tfor (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {\n\t\t\t\t// empty element\n\t\t\t\tif ((size = (element = elements[j]).length) === 0 && l > 1) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\ttail = out.charCodeAt(out.length-1)\n\t\t\t\tcode = element.charCodeAt(0)\n\t\t\t\tpadding = ''\n\n\t\t\t\tif (j !== 0) {\n\t\t\t\t\t// determine if we need padding\n\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tpadding = ' '\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase AND: {\n\t\t\t\t\t\telement = padding + nscopealt\n\t\t\t\t\t}\n\t\t\t\t\tcase TILDE:\n\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\tcase SPACE:\n\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\tswitch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {\n\t\t\t\t\t\t\t// :global\n\t\t\t\t\t\t\tcase 530: {\n\t\t\t\t\t\t\t\tif (escape > 0) {\n\t\t\t\t\t\t\t\t\telement = padding + element.substring(8, size - 1)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// :hover, :nth-child(), ...\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tif (j < 1 || elements[j-1].length < 1) {\n\t\t\t\t\t\t\t\t\telement = padding + nscopealt + element\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\tpadding = ''\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\tif (size > 1 && element.indexOf(':') > 0) {\n\t\t\t\t\t\t\telement = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout += element\n\t\t\t}\n\n\t\t\tselector[i] = out.replace(formatptn, '').trim()\n\t\t}\n\n\t\treturn selector\n\t}\n\n\t/**\n\t * Proxy\n\t *\n\t * @param {number} context\n\t * @param {string} content\n\t * @param {Array} selectors\n\t * @param {Array} parents\n\t * @param {number} line\n\t * @param {number} column\n\t * @param {number} length\n\t * @param {number} id\n\t * @param {number} depth\n\t * @param {number} at\n\t * @return {(string|void|*)}\n\t */\n\tfunction proxy (context, content, selectors, parents, line, column, length, id, depth, at) {\n\t\tfor (var i = 0, out = content, next; i < plugged; ++i) {\n\t\t\tswitch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {\n\t\t\t\tcase void 0:\n\t\t\t\tcase false:\n\t\t\t\tcase true:\n\t\t\t\tcase null: {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tout = next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (out !== content) {\n\t\t return out\n\t\t}\n\t}\n\n\t/**\n\t * @param {number} code\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction delimited (code, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\t// /*\n\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\tif (code === STAR) {\n\t\t\t\t\t\tif (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {\n\t\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// //\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\tif (code === FOWARDSLASH) {\n\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * @param {number} type\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {number} find\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction match (type, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\tcase type: {\n\t\t\t\t\treturn i\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * Minify\n\t *\n\t * @param {(string|*)} output\n\t * @return {string}\n\t */\n\tfunction minify (output) {\n\t\treturn output\n\t\t\t.replace(formatptn, '')\n\t\t\t.replace(beforeptn, '')\n\t\t\t.replace(afterptn, '$1')\n\t\t\t.replace(tailptn, '$1')\n\t\t\t.replace(whiteptn, ' ')\n\t}\n\n\t/**\n\t * Use\n\t *\n\t * @param {(Array|function(...?)|number|void)?} plugin\n\t */\n\tfunction use (plugin) {\n\t\tswitch (plugin) {\n\t\t\tcase void 0:\n\t\t\tcase null: {\n\t\t\t\tplugged = plugins.length = 0\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tif (typeof plugin === 'function') {\n\t\t\t\t\tplugins[plugged++] = plugin\n\t\t\t\t}\telse if (typeof plugin === 'object') {\n\t\t\t\t\tfor (var i = 0, length = plugin.length; i < length; ++i) {\n\t\t\t\t\t\tuse(plugin[i])\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tunkwn = !!plugin|0\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\n \t\treturn use\n\t}\n\n\t/**\n\t * Set\n\t *\n\t * @param {*} options\n\t */\n\tfunction set (options) {\n\t\tfor (var name in options) {\n\t\t\tvar value = options[name]\n\t\t\tswitch (name) {\n\t\t\t\tcase 'keyframe': keyed = value|0; break\n\t\t\t\tcase 'global': escape = value|0; break\n\t\t\t\tcase 'cascade': cascade = value|0; break\n\t\t\t\tcase 'compress': compress = value|0; break\n\t\t\t\tcase 'semicolon': semicolon = value|0; break\n\t\t\t\tcase 'preserve': preserve = value|0; break\n\t\t\t\tcase 'prefix':\n\t\t\t\t\tshould = null\n\n\t\t\t\t\tif (!value) {\n\t\t\t\t\t\tprefix = 0\n\t\t\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\t\t\tprefix = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprefix = 2\n\t\t\t\t\t\tshould = value\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn set\n\t}\n\n\t/**\n\t * Stylis\n\t *\n\t * @param {string} selector\n\t * @param {string} input\n\t * @return {*}\n\t */\n\tfunction stylis (selector, input) {\n\t\tif (this !== void 0 && this.constructor === stylis) {\n\t\t\treturn factory(selector)\n\t\t}\n\n\t\t// setup\n\t\tvar ns = selector\n\t\tvar code = ns.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (ns = ns.trim()).charCodeAt(0)\n\t\t}\n\n\t\t// keyframe/animation namespace\n\t\tif (keyed > 0) {\n\t\t\tkey = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')\n\t\t}\n\n\t\t// reset, used to assert if a plugin is moneky-patching the return value\n\t\tcode = 1\n\n\t\t// cascade/isolate\n\t\tif (cascade === 1) {\n\t\t\tnscope = ns\n\t\t} else {\n\t\t\tnscopealt = ns\n\t\t}\n\n\t\tvar selectors = [nscope]\n\t\tvar result\n\n\t\t// execute plugins, pre-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)\n\n\t\t\tif (result !== void 0 && typeof result === 'string') {\n\t\t\t\tinput = result\n\t\t\t}\n\t\t}\n\n\t\t// build\n\t\tvar output = compile(array, selectors, input, 0, 0)\n\n\t\t// execute plugins, post-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)\n\n\t\t\t// bypass minification\n\t\t\tif (result !== void 0 && typeof(output = result) !== 'string') {\n\t\t\t\tcode = 0\n\t\t\t}\n\t\t}\n\n\t\t// reset\n\t\tkey = ''\n\t\tnscope = ''\n\t\tnscopealt = ''\n\t\tpattern = 0\n\t\tline = 1\n\t\tcolumn = 1\n\n\t\treturn compress*code === 0 ? output : minify(output)\n\t}\n\n\tstylis['use'] = use\n\tstylis['set'] = set\n\n\tif (options !== void 0) {\n\t\tset(options)\n\t}\n\n\treturn stylis\n}));\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\n\n// import { unflatten } from 'flat';\n// import flatten from 'flat';\n\n// import themeVariables from './theme-default';\n// import themeForestVariables from './theme-forest';\n// import themeNeutralVariables from './theme-neutral';\n\nconst handleThemeVariables = value => {\n return theme[value] ? theme[value].getThemeVariables() : theme.default.getThemeVariables();\n};\n\nconst manipulators = {\n themeVariables: handleThemeVariables\n};\n\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\n// debugger;\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport const defaultConfig = Object.freeze(config);\n\nconst siteConfig = assignWithDepth({}, defaultConfig);\nconst currentConfig = assignWithDepth({}, defaultConfig);\n\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf, { clobber: true });\n // Set theme variables if user has set the theme option\n assignWithDepth(siteConfig, conf);\n\n return getSiteConfig();\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n sanitize(conf);\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n assignWithDepth(siteConfig, conf, { clobber: true });\n assignWithDepth(currentConfig, conf, { clobber: true });\n};\n\nconst configApi = Object.freeze({\n sanitize,\n setSiteConfig,\n getSiteConfig,\n setConfig,\n getConfig,\n reset,\n defaultConfig\n});\nexport default configApi;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 0)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,6],$V2=[1,20],$V3=[1,23],$V4=[1,21],$V5=[1,22],$V6=[1,24],$V7=[1,25],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,32],$Vc=[7,9],$Vd=[1,41],$Ve=[1,42],$Vf=[1,43],$Vg=[1,44],$Vh=[1,45],$Vi=[1,46],$Vj=[7,9,20,26,34,37,38,39,40,41,42],$Vk=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],$Vl=[34,58,59,60],$Vm=[34,41,42,58,59,60],$Vn=[34,37,38,39,40,58,59,60],$Vo=[6,7,9,61],$Vp=[7,9,20],$Vq=[1,73];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"directive\":5,\"CLASS_DIAGRAM\":6,\"NEWLINE\":7,\"statements\":8,\"EOF\":9,\"statement\":10,\"className\":11,\"alphaNumToken\":12,\"GENERICTYPE\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"relationStatement\":19,\"LABEL\":20,\"classStatement\":21,\"methodStatement\":22,\"annotationStatement\":23,\"clickStatement\":24,\"CLASS\":25,\"STRUCT_START\":26,\"members\":27,\"STRUCT_STOP\":28,\"ANNOTATION_START\":29,\"ANNOTATION_END\":30,\"MEMBER\":31,\"SEPARATOR\":32,\"relation\":33,\"STR\":34,\"relationType\":35,\"lineType\":36,\"AGGREGATION\":37,\"EXTENSION\":38,\"COMPOSITION\":39,\"DEPENDENCY\":40,\"LINE\":41,\"DOTTED_LINE\":42,\"CALLBACK\":43,\"LINK\":44,\"commentToken\":45,\"textToken\":46,\"graphCodeTokens\":47,\"textNoTagsToken\":48,\"TAGSTART\":49,\"TAGEND\":50,\"==\":51,\"--\":52,\"PCT\":53,\"DEFAULT\":54,\"SPACE\":55,\"MINUS\":56,\"keywords\":57,\"UNICODE_TEXT\":58,\"NUM\":59,\"ALPHA\":60,\"open_directive\":61,\"type_directive\":62,\"arg_directive\":63,\"close_directive\":64,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"CLASS_DIAGRAM\",7:\"NEWLINE\",9:\"EOF\",13:\"GENERICTYPE\",17:\":\",20:\"LABEL\",25:\"CLASS\",26:\"STRUCT_START\",28:\"STRUCT_STOP\",29:\"ANNOTATION_START\",30:\"ANNOTATION_END\",31:\"MEMBER\",32:\"SEPARATOR\",34:\"STR\",37:\"AGGREGATION\",38:\"EXTENSION\",39:\"COMPOSITION\",40:\"DEPENDENCY\",41:\"LINE\",42:\"DOTTED_LINE\",43:\"CALLBACK\",44:\"LINK\",47:\"graphCodeTokens\",49:\"TAGSTART\",50:\"TAGEND\",51:\"==\",52:\"--\",53:\"PCT\",54:\"DEFAULT\",55:\"SPACE\",56:\"MINUS\",57:\"keywords\",58:\"UNICODE_TEXT\",59:\"NUM\",60:\"ALPHA\",61:\"open_directive\",62:\"type_directive\",63:\"arg_directive\",64:\"close_directive\"},\nproductions_: [0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 7:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 10:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 13:\n yy.addRelation($$[$0]); \nbreak;\ncase 14:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 20:\nyy.addClass($$[$0]);\nbreak;\ncase 21:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 22:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 23:\n this.$ = [$$[$0]]; \nbreak;\ncase 24:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 25:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 26:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 27:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 28:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 29:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 30:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 31:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 32:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 33:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 34:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 35:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 36:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 37:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 38:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 39:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 40:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 41:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 42:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 43:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 44:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 45:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 46:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 63:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 64:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 65:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 66:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:5,61:$V1},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:$V0,14:5,61:$V1},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},{16:30,17:[1,31],64:$Vb},o([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},o($Vc,[2,13],{20:[1,35]}),o($Vc,[2,15]),o($Vc,[2,16]),o($Vc,[2,17]),o($Vc,[2,18]),o($Vc,[2,19]),o($Vc,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi}),{11:47,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,27]),o($Vc,[2,28]),{12:48,58:$V8,59:$V9,60:$Va},{11:49,12:26,58:$V8,59:$V9,60:$Va},{11:50,12:26,58:$V8,59:$V9,60:$Va},o($Vj,[2,8],{12:26,11:51,13:[1,52],58:$V8,59:$V9,60:$Va}),o($Vk,[2,60]),o($Vk,[2,61]),o($Vk,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},o($Vc,[2,14]),{11:57,12:26,34:[1,58],58:$V8,59:$V9,60:$Va},{33:59,35:39,36:40,37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi},o($Vc,[2,26]),{36:60,41:$Vh,42:$Vi},o($Vl,[2,36],{35:61,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vn,[2,41]),o($Vn,[2,42]),o($Vc,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},o($Vj,[2,7]),o($Vj,[2,10],{12:26,11:66,58:$V8,59:$V9,60:$Va}),o($Vo,[2,11]),{16:67,64:$Vb},{64:[2,65]},{9:[2,6]},o($Vp,[2,29]),{11:68,12:26,58:$V8,59:$V9,60:$Va},{11:69,12:26,34:[1,70],58:$V8,59:$V9,60:$Va},o($Vl,[2,35],{35:71,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vl,[2,34]),{27:72,31:$Vq},{11:74,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,43],{34:[1,75]}),o($Vc,[2,45],{34:[1,76]}),o($Vj,[2,9]),{7:[1,77]},o($Vp,[2,31]),o($Vp,[2,30]),{11:78,12:26,58:$V8,59:$V9,60:$Va},o($Vl,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:$Vq},o($Vc,[2,22]),o($Vc,[2,44]),o($Vc,[2,46]),o($Vo,[2,12]),o($Vp,[2,32]),o($Vc,[2,21]),{28:[2,24]}],\ndefaultActions: {2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 61; \nbreak;\ncase 1: this.begin('type_directive'); return 62; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 64; \nbreak;\ncase 4:return 63;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 7;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 6;\nbreak;\ncase 12: this.begin(\"struct\"); /*console.log('Starting struct');*/return 26;\nbreak;\ncase 13:return \"EOF_IN_STRUCT\";\nbreak;\ncase 14:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 15: /*console.log('Ending struct');*/this.popState(); return 28;\nbreak;\ncase 16:/* nothing */\nbreak;\ncase 17: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 43;\nbreak;\ncase 20:return 44;\nbreak;\ncase 21:return 29;\nbreak;\ncase 22:return 30;\nbreak;\ncase 23:this.begin(\"generic\");\nbreak;\ncase 24:this.popState();\nbreak;\ncase 25:return \"GENERICTYPE\";\nbreak;\ncase 26:this.begin(\"string\");\nbreak;\ncase 27:this.popState();\nbreak;\ncase 28:return \"STR\";\nbreak;\ncase 29:return 38;\nbreak;\ncase 30:return 38;\nbreak;\ncase 31:return 40;\nbreak;\ncase 32:return 40;\nbreak;\ncase 33:return 39;\nbreak;\ncase 34:return 37;\nbreak;\ncase 35:return 41;\nbreak;\ncase 36:return 42;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 56;\nbreak;\ncase 39:return 'DOT';\nbreak;\ncase 40:return 'PLUS';\nbreak;\ncase 41:return 53;\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 'EQUALS';\nbreak;\ncase 44:return 60;\nbreak;\ncase 45:return 'PUNCTUATION';\nbreak;\ncase 46:return 59;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 55;\nbreak;\ncase 49:return 9;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u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124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"string\":{\"rules\":[27,28],\"inclusive\":false},\"generic\":{\"rules\":[24,25],\"inclusive\":false},\"struct\":{\"rules\":[13,14,15,16,17],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.edgeLabelBackground};\n fillopactity: 0;\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = getConfig();\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = getConfig();\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,5],$V1=[1,4],$V2=[1,6],$V3=[1,8],$V4=[1,9,10,11,12,32,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$V5=[2,3],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,28],$Vb=[1,53],$Vc=[1,31],$Vd=[1,32],$Ve=[1,33],$Vf=[1,34],$Vg=[1,35],$Vh=[1,47],$Vi=[1,42],$Vj=[1,44],$Vk=[1,39],$Vl=[1,43],$Vm=[1,46],$Vn=[1,50],$Vo=[1,51],$Vp=[1,52],$Vq=[1,41],$Vr=[1,45],$Vs=[1,48],$Vt=[1,49],$Vu=[1,40],$Vv=[1,58],$Vw=[1,61],$Vx=[1,9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Vy=[1,65],$Vz=[1,64],$VA=[1,66],$VB=[9,10,12,63,64],$VC=[9,10,11,12,63,64],$VD=[9,10,11,12,41,63,64],$VE=[9,10,11,12,34,40,41,43,45,47,49,51,53,55,56,58,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VF=[9,10,12,40,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VG=[9,10,12],$VH=[1,9,10,11,12,19,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$VI=[40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VJ=[1,114],$VK=[1,135],$VL=[1,136],$VM=[1,137],$VN=[1,138],$VO=[1,118],$VP=[1,109],$VQ=[1,107],$VR=[1,110],$VS=[1,130],$VT=[1,131],$VU=[1,132],$VV=[1,133],$VW=[1,134],$VX=[1,139],$VY=[1,140],$VZ=[1,112],$V_=[1,120],$V$=[1,123],$V01=[1,121],$V11=[1,122],$V21=[1,115],$V31=[1,128],$V41=[1,127],$V51=[1,111],$V61=[1,108],$V71=[1,117],$V81=[1,119],$V91=[1,124],$Va1=[1,125],$Vb1=[1,126],$Vc1=[1,129],$Vd1=[9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Ve1=[1,143],$Vf1=[1,147],$Vg1=[1,149],$Vh1=[1,150],$Vi1=[9,10,11,12,19,20,32,34,35,36,40,44,46,48,50,52,54,55,57,59,62,63,64,65,68,69,70,71,72,73,74,77,83,84,87,88,89,91,92,93,94,98,99,100,101,102,103],$Vj1=[9,10,11,12,20,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$Vk1=[11,84],$Vl1=[1,219],$Vm1=[1,223],$Vn1=[1,220],$Vo1=[1,217],$Vp1=[1,214],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,218],$Vt1=[1,221],$Vu1=[1,222],$Vv1=[1,224],$Vw1=[1,240],$Vx1=[9,10,12,84],$Vy1=[9,10,11,12,68,80,83,84,87,88,89,90,91,92,93];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"directive\":6,\"line\":7,\"statement\":8,\"SEMI\":9,\"NEWLINE\":10,\"SPACE\":11,\"EOF\":12,\"openDirective\":13,\"typeDirective\":14,\"closeDirective\":15,\"separator\":16,\":\":17,\"argDirective\":18,\"GRAPH\":19,\"DIR\":20,\"FirstStmtSeperator\":21,\"ending\":22,\"endToken\":23,\"spaceList\":24,\"spaceListNewline\":25,\"verticeStatement\":26,\"styleStatement\":27,\"linkStyleStatement\":28,\"classDefStatement\":29,\"classStatement\":30,\"clickStatement\":31,\"subgraph\":32,\"text\":33,\"SQS\":34,\"SQE\":35,\"end\":36,\"link\":37,\"node\":38,\"vertex\":39,\"AMP\":40,\"STYLE_SEPARATOR\":41,\"idString\":42,\"PS\":43,\"PE\":44,\"(-\":45,\"-)\":46,\"STADIUMSTART\":47,\"STADIUMEND\":48,\"SUBROUTINESTART\":49,\"SUBROUTINEEND\":50,\"CYLINDERSTART\":51,\"CYLINDEREND\":52,\"DIAMOND_START\":53,\"DIAMOND_STOP\":54,\"TAGEND\":55,\"TRAPSTART\":56,\"TRAPEND\":57,\"INVTRAPSTART\":58,\"INVTRAPEND\":59,\"linkStatement\":60,\"arrowText\":61,\"STR\":62,\"START_LINK\":63,\"LINK\":64,\"PIPE\":65,\"textToken\":66,\"keywords\":67,\"STYLE\":68,\"LINKSTYLE\":69,\"CLASSDEF\":70,\"CLASS\":71,\"CLICK\":72,\"DOWN\":73,\"UP\":74,\"textNoTags\":75,\"textNoTagsToken\":76,\"DEFAULT\":77,\"stylesOpt\":78,\"alphaNum\":79,\"HEX\":80,\"numList\":81,\"INTERPOLATE\":82,\"NUM\":83,\"COMMA\":84,\"style\":85,\"styleComponent\":86,\"ALPHA\":87,\"COLON\":88,\"MINUS\":89,\"UNIT\":90,\"BRKT\":91,\"DOT\":92,\"PCT\":93,\"TAGSTART\":94,\"alphaNumToken\":95,\"idStringToken\":96,\"alphaNumStatement\":97,\"PUNCTUATION\":98,\"UNICODE_TEXT\":99,\"PLUS\":100,\"EQUALS\":101,\"MULT\":102,\"UNDERSCORE\":103,\"graphCodeTokens\":104,\"ARROW_CROSS\":105,\"ARROW_POINT\":106,\"ARROW_CIRCLE\":107,\"ARROW_OPEN\":108,\"QUOTE\":109,\"open_directive\":110,\"type_directive\":111,\"arg_directive\":112,\"close_directive\":113,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",9:\"SEMI\",10:\"NEWLINE\",11:\"SPACE\",12:\"EOF\",17:\":\",19:\"GRAPH\",20:\"DIR\",32:\"subgraph\",34:\"SQS\",35:\"SQE\",36:\"end\",40:\"AMP\",41:\"STYLE_SEPARATOR\",43:\"PS\",44:\"PE\",45:\"(-\",46:\"-)\",47:\"STADIUMSTART\",48:\"STADIUMEND\",49:\"SUBROUTINESTART\",50:\"SUBROUTINEEND\",51:\"CYLINDERSTART\",52:\"CYLINDEREND\",53:\"DIAMOND_START\",54:\"DIAMOND_STOP\",55:\"TAGEND\",56:\"TRAPSTART\",57:\"TRAPEND\",58:\"INVTRAPSTART\",59:\"INVTRAPEND\",62:\"STR\",63:\"START_LINK\",64:\"LINK\",65:\"PIPE\",68:\"STYLE\",69:\"LINKSTYLE\",70:\"CLASSDEF\",71:\"CLASS\",72:\"CLICK\",73:\"DOWN\",74:\"UP\",77:\"DEFAULT\",80:\"HEX\",82:\"INTERPOLATE\",83:\"NUM\",84:\"COMMA\",87:\"ALPHA\",88:\"COLON\",89:\"MINUS\",90:\"UNIT\",91:\"BRKT\",92:\"DOT\",93:\"PCT\",94:\"TAGSTART\",98:\"PUNCTUATION\",99:\"UNICODE_TEXT\",100:\"PLUS\",101:\"EQUALS\",102:\"MULT\",103:\"UNDERSCORE\",105:\"ARROW_CROSS\",106:\"ARROW_POINT\",107:\"ARROW_CIRCLE\",108:\"ARROW_OPEN\",109:\"QUOTE\",110:\"open_directive\",111:\"type_directive\",112:\"arg_directive\",113:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[5,0],[5,2],[7,1],[7,1],[7,1],[7,1],[7,1],[6,4],[6,6],[4,2],[4,2],[4,3],[22,2],[22,1],[23,1],[23,1],[23,1],[21,1],[21,1],[21,2],[25,2],[25,2],[25,1],[25,1],[24,2],[24,1],[8,2],[8,2],[8,2],[8,2],[8,2],[8,2],[8,9],[8,6],[8,4],[8,1],[16,1],[16,1],[16,1],[26,3],[26,4],[26,2],[26,1],[38,1],[38,5],[38,3],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,1],[37,2],[37,3],[37,3],[37,1],[37,3],[60,1],[61,3],[33,1],[33,2],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[75,1],[75,2],[29,5],[29,5],[30,5],[31,5],[31,7],[31,5],[31,7],[27,5],[27,5],[28,5],[28,5],[28,9],[28,9],[28,7],[28,7],[81,1],[81,3],[78,1],[78,3],[85,1],[85,2],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[76,1],[76,1],[76,1],[76,1],[42,1],[42,2],[79,1],[79,2],[97,1],[97,1],[97,1],[97,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[13,1],[14,1],[18,1],[15,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n this.$ = [];\nbreak;\ncase 4:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 5: case 71: case 84: case 119: case 131: case 133: case 134:\nthis.$=$$[$0];\nbreak;\ncase 14:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 29:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 30: case 31: case 32: case 33: case 34:\nthis.$=[];\nbreak;\ncase 35:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 36:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 37:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 42:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 43:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 44:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 45:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 46:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 47:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 48:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 50:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 53:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 57:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 62:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 63:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 64:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 65: case 66:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 67:\nthis.$ = $$[$0];\nbreak;\ncase 68:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 69:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 70:\nthis.$ = $$[$0-1];\nbreak;\ncase 72: case 85: case 132:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 86: case 87:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 89:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 90:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 91:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 92:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 93:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 94: case 96:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 98:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 99:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 100:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 101: case 103:\nthis.$ = [$$[$0]]\nbreak;\ncase 102: case 104:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 106:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 129:\nthis.$=$$[$0]\nbreak;\ncase 130:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 135:\nthis.$='v';\nbreak;\ncase 136:\nthis.$='-';\nbreak;\ncase 190:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 191:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 192:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 193:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{1:[3]},o($V4,$V5,{5:9}),{3:10,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{4:11,10:$V0,11:$V1,19:$V2},{4:12,10:$V0,11:$V1,19:$V2},{20:[1,13]},{14:14,111:[1,15]},{111:[2,190]},{1:[2,1],6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{1:[2,2]},o($V4,[2,12]),o($V4,[2,13]),{9:[1,55],10:[1,56],11:$Vv,21:54,24:57},{15:59,17:[1,60],113:$Vw},o([17,113],[2,191]),o($Vx,[2,4]),o($Vx,[2,5]),o($Vx,[2,6]),o($Vx,[2,7]),o($Vx,[2,8]),o($Vx,[2,9]),{9:$Vy,10:$Vz,12:$VA,16:62,37:63,60:67,63:[1,68],64:[1,69]},{9:$Vy,10:$Vz,12:$VA,16:70},{9:$Vy,10:$Vz,12:$VA,16:71},{9:$Vy,10:$Vz,12:$VA,16:72},{9:$Vy,10:$Vz,12:$VA,16:73},{9:$Vy,10:$Vz,12:$VA,16:74},{9:$Vy,10:$Vz,11:[1,75],12:$VA,16:76},o($Vx,[2,38]),o($VB,[2,45],{24:77,11:$Vv}),{11:[1,78]},{11:[1,79]},{11:[1,80]},{11:[1,81]},{11:[1,82]},o($VC,[2,46],{41:[1,83]}),o($VD,[2,63],{96:94,34:[1,84],40:$Vb,43:[1,85],45:[1,86],47:[1,87],49:[1,88],51:[1,89],53:[1,90],55:[1,91],56:[1,92],58:[1,93],73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),o($VE,[2,129]),o($VE,[2,150]),o($VE,[2,151]),o($VE,[2,152]),o($VE,[2,153]),o($VE,[2,154]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($V4,[2,14]),o($V4,[2,20]),o($V4,[2,21]),{10:[1,95]},o($VF,[2,28],{24:96,11:$Vv}),{9:$Vy,10:$Vz,12:$VA,16:97},{18:98,112:[1,99]},o($VG,[2,193]),o($Vx,[2,29]),{38:100,39:36,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},o($VH,[2,39]),o($VH,[2,40]),o($VH,[2,41]),o($VI,[2,67],{61:101,62:[1,102],65:[1,103]}),{11:$VJ,19:$VK,20:$VL,32:$VM,33:104,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o([40,62,65,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,69]),o($Vx,[2,30]),o($Vx,[2,31]),o($Vx,[2,32]),o($Vx,[2,33]),o($Vx,[2,34]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:141,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:142}),o($VB,[2,44],{40:$Ve1}),{20:$Vf1,40:$VO,73:$Vg1,79:144,80:[1,145],83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{77:[1,151],81:152,83:[1,153]},{20:$Vf1,40:$VO,73:$Vg1,77:[1,154],79:155,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:156,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:157,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{40:$Vb,42:158,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$VJ,19:$VK,20:$VL,32:$VM,33:159,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:161,36:$VN,40:$VO,43:[1,160],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:162,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:163,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:164,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:165,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:166,36:$VN,40:$VO,53:[1,167],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:168,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:169,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:170,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VE,[2,130]),o($V4,[2,22]),o($VF,[2,27]),o($VH,[2,10]),{15:171,113:$Vw},{113:[2,192]},o($VB,[2,42],{24:172,11:$Vv}),o($VI,[2,64],{11:[1,173]}),{11:[1,174]},{11:$VJ,19:$VK,20:$VL,32:$VM,33:175,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,64:[1,176],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vi1,[2,71]),o($Vi1,[2,118]),o($Vi1,[2,119]),o($Vi1,[2,120]),o($Vi1,[2,121]),o($Vi1,[2,122]),o($Vi1,[2,123]),o($Vi1,[2,124]),o($Vi1,[2,125]),o($Vi1,[2,126]),o($Vi1,[2,127]),o($Vi1,[2,128]),o($Vi1,[2,137]),o($Vi1,[2,138]),o($Vi1,[2,139]),o($Vi1,[2,140]),o($Vi1,[2,141]),o($Vi1,[2,142]),o($Vi1,[2,143]),o($Vi1,[2,144]),o($Vi1,[2,145]),o($Vi1,[2,146]),o($Vi1,[2,147]),o($Vi1,[2,148]),o($Vi1,[2,149]),o($Vi1,[2,73]),o($Vi1,[2,74]),o($Vi1,[2,75]),o($Vi1,[2,76]),o($Vi1,[2,77]),o($Vi1,[2,78]),o($Vi1,[2,79]),o($Vi1,[2,80]),o($Vi1,[2,81]),o($Vi1,[2,82]),o($Vi1,[2,83]),{9:$Vy,10:$Vz,11:$VJ,12:$VA,16:179,19:$VK,20:$VL,32:$VM,34:[1,178],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,180],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vv,24:181},{11:[1,182],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,184]},o($Vj1,[2,131]),o($Vj1,[2,133]),o($Vj1,[2,134]),o($Vj1,[2,135]),o($Vj1,[2,136]),{11:[1,185]},{11:[1,186],84:[1,187]},o($Vk1,[2,101]),{11:[1,188]},{11:[1,189],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,190],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,191],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VC,[2,48],{96:94,40:$Vb,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,192],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:193,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,194],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,46:[1,195],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,48:[1,196],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,50:[1,197],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,52:[1,198],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,199],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:200,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,201],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,202],59:[1,203],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,205],59:[1,204],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{9:$Vy,10:$Vz,12:$VA,16:206},o($VB,[2,43],{40:$Ve1}),o($VI,[2,66]),o($VI,[2,65]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,65:[1,207],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VI,[2,68]),o($Vi1,[2,72]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:208,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:209}),o($Vx,[2,37]),{39:210,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$Vl1,68:$Vm1,78:211,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vj1,[2,132]),{11:$Vl1,68:$Vm1,78:225,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:226,80:$Vn1,82:[1,227],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:228,80:$Vn1,82:[1,229],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{83:[1,230]},{11:$Vl1,68:$Vm1,78:231,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:232,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{20:$Vf1,40:$VO,73:$Vg1,79:233,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,62:[1,235],73:$Vg1,79:234,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,49]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,236],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,55]),o($VD,[2,51]),o($VD,[2,52]),o($VD,[2,53]),o($VD,[2,54]),o($VD,[2,56]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,237],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),o($VD,[2,60]),o($VD,[2,62]),o($VH,[2,11]),o([11,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,70]),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,238],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,239],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},o($VC,[2,47]),o($VG,[2,93],{84:$Vw1}),o($Vx1,[2,103],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($Vy1,[2,105]),o($Vy1,[2,107]),o($Vy1,[2,108]),o($Vy1,[2,109]),o($Vy1,[2,110]),o($Vy1,[2,111]),o($Vy1,[2,112]),o($Vy1,[2,113]),o($Vy1,[2,114]),o($Vy1,[2,115]),o($Vy1,[2,116]),o($Vy1,[2,117]),o($VG,[2,94],{84:$Vw1}),o($VG,[2,95],{84:$Vw1}),{11:[1,242]},o($VG,[2,96],{84:$Vw1}),{11:[1,243]},o($Vk1,[2,102]),o($VG,[2,86],{84:$Vw1}),o($VG,[2,87],{84:$Vw1}),o($VG,[2,88],{95:148,97:183,20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,89],{95:148,97:183,11:[1,244],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,91],{11:[1,245]}),{44:[1,246]},{54:[1,247]},{9:$Vy,10:$Vz,12:$VA,16:248},o($Vx,[2,36]),{11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,85:249,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vy1,[2,106]),{20:$Vf1,40:$VO,73:$Vg1,79:250,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:251,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{62:[1,252]},{62:[1,253]},o($VD,[2,50]),o($VD,[2,57]),o($Vd1,$V5,{5:254}),o($Vx1,[2,104],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($VG,[2,99],{95:148,97:183,11:[1,255],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,100],{95:148,97:183,11:[1,256],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,90]),o($VG,[2,92]),{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,257],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vl1,68:$Vm1,78:258,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:259,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vx,[2,35]),o($VG,[2,97],{84:$Vw1}),o($VG,[2,98],{84:$Vw1})],\ndefaultActions: {8:[2,190],10:[2,2],99:[2,192]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 110; \nbreak;\ncase 1: this.begin('type_directive'); return 111; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 113; \nbreak;\ncase 4:return 112;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 68;\nbreak;\ncase 11:return 77;\nbreak;\ncase 12:return 69;\nbreak;\ncase 13:return 82;\nbreak;\ncase 14:return 70;\nbreak;\ncase 15:return 71;\nbreak;\ncase 16:return 72;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 19:return 32;\nbreak;\ncase 20:return 36;\nbreak;\ncase 21: this.popState(); return 20; \nbreak;\ncase 22: this.popState(); return 20; \nbreak;\ncase 23: this.popState(); return 20; \nbreak;\ncase 24: this.popState(); return 20; \nbreak;\ncase 25: this.popState(); return 20; \nbreak;\ncase 26: this.popState(); return 20; \nbreak;\ncase 27: this.popState(); return 20; \nbreak;\ncase 28: this.popState(); return 20; \nbreak;\ncase 29: this.popState(); return 20; \nbreak;\ncase 30: this.popState(); return 20; \nbreak;\ncase 31: return 83;\nbreak;\ncase 32:return 91;\nbreak;\ncase 33:return 41;\nbreak;\ncase 34:return 88;\nbreak;\ncase 35:return 40;\nbreak;\ncase 36:return 9;\nbreak;\ncase 37:return 84;\nbreak;\ncase 38:return 102;\nbreak;\ncase 39:return 64;\nbreak;\ncase 40:return 64;\nbreak;\ncase 41:return 64;\nbreak;\ncase 42:return 64;\nbreak;\ncase 43:return 64;\nbreak;\ncase 44:return 64;\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 64;\nbreak;\ncase 47:return 64;\nbreak;\ncase 48:return 64;\nbreak;\ncase 49:return 64;\nbreak;\ncase 50:return 64;\nbreak;\ncase 51:return 64;\nbreak;\ncase 52:return 64;\nbreak;\ncase 53:return 64;\nbreak;\ncase 54:return 64;\nbreak;\ncase 55:return 64;\nbreak;\ncase 56:return 64;\nbreak;\ncase 57:return 64;\nbreak;\ncase 58:return 64;\nbreak;\ncase 59:return 64;\nbreak;\ncase 60:return 64;\nbreak;\ncase 61:return 64;\nbreak;\ncase 62:return 64;\nbreak;\ncase 63:return 64;\nbreak;\ncase 64:return 64;\nbreak;\ncase 65:return 64;\nbreak;\ncase 66:return 64;\nbreak;\ncase 67:return 63;\nbreak;\ncase 68:return 63;\nbreak;\ncase 69:return 63;\nbreak;\ncase 70:return 63;\nbreak;\ncase 71:return 63;\nbreak;\ncase 72:return 63;\nbreak;\ncase 73:return 63;\nbreak;\ncase 74:return 63;\nbreak;\ncase 75:return 63;\nbreak;\ncase 76:return 63;\nbreak;\ncase 77:return 63;\nbreak;\ncase 78:return 63;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 47;\nbreak;\ncase 82:return 48;\nbreak;\ncase 83:return 49;\nbreak;\ncase 84:return 50;\nbreak;\ncase 85:return 51;\nbreak;\ncase 86:return 52;\nbreak;\ncase 87:return 89;\nbreak;\ncase 88:return 92;\nbreak;\ncase 89:return 103;\nbreak;\ncase 90:return 100;\nbreak;\ncase 91:return 93;\nbreak;\ncase 92:return 101;\nbreak;\ncase 93:return 101;\nbreak;\ncase 94:return 94;\nbreak;\ncase 95:return 55;\nbreak;\ncase 96:return 74;\nbreak;\ncase 97:return 'SEP';\nbreak;\ncase 98:return 73;\nbreak;\ncase 99:return 87;\nbreak;\ncase 100:return 57;\nbreak;\ncase 101:return 56;\nbreak;\ncase 102:return 59;\nbreak;\ncase 103:return 58;\nbreak;\ncase 104:return 98;\nbreak;\ncase 105:return 99;\nbreak;\ncase 106:return 65;\nbreak;\ncase 107:return 43;\nbreak;\ncase 108:return 44;\nbreak;\ncase 109:return 34;\nbreak;\ncase 110:return 35;\nbreak;\ncase 111:return 53\nbreak;\ncase 112:return 54\nbreak;\ncase 113:return 109;\nbreak;\ncase 114:return 10;\nbreak;\ncase 115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\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.taskTextDarkColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () => ``;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n *\n */\nimport { logger } from '../../logger';\n\nlet sections = {};\nlet title = '';\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,10],\"inclusive\":false},\"ID\":{\"rules\":[9,10,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[9,10,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[9,10,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || autoWrap()\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import mermaidAPI from '../../mermaidAPI';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n // console.log('Starting rendering diagrams (init) - mermaid.init');\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n reinitialize(graphInit);\n } else {\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n }\n\n const cnf = getConfig();\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n directive.args = { config: { wrap: directive.type === 'wrap' } };\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options);\n if (options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = options.theme;\n }\n\n // Set default options\n const config = typeof options === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\n// function getConfig () {\n// console.warn('get config')\n// return config\n// }\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig,\n getSiteConfig,\n reset: () => {\n // console.warn('reset');\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import { darken, lighten, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#9f33be';\n this.secondaryColor = '#b20238';\n this.tertiaryColor = lighten(this.primaryColor, 30);\n this.relationColor = '#000';\n\n // this.primaryColor = '#fa255e';\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n // this.primaryColor = '#ECECFF';\n // this.secondaryColor = '#ffffde';\n // this.tertiaryColor = '#ffffde';\n\n this.background = 'white';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n this.noteBkgColor = '#fff5ad';\n this.noteBorderColor = '#aaaa33';\n this.updateColors();\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = darken(this.primaryColor, 23); // border 1\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = darken(this.tertiaryColor, 30);\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = lighten(this.primaryColor, 23);\n this.taskBkgColor = this.primaryColor;\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://mermaid/webpack/universalModuleDefinition","webpack://mermaid/webpack/bootstrap","webpack://mermaid/./node_modules/@braintree/sanitize-url/index.js","webpack://mermaid/./node_modules/d3-array/src/array.js","webpack://mermaid/./node_modules/d3-array/src/ascending.js","webpack://mermaid/./node_modules/d3-array/src/bisect.js","webpack://mermaid/./node_modules/d3-array/src/bisector.js","webpack://mermaid/./node_modules/d3-array/src/constant.js","webpack://mermaid/./node_modules/d3-array/src/cross.js","webpack://mermaid/./node_modules/d3-array/src/descending.js","webpack://mermaid/./node_modules/d3-array/src/deviation.js","webpack://mermaid/./node_modules/d3-array/src/extent.js","webpack://mermaid/./node_modules/d3-array/src/histogram.js","webpack://mermaid/./node_modules/d3-array/src/identity.js","webpack://mermaid/./node_modules/d3-array/src/index.js","webpack://mermaid/./node_modules/d3-array/src/max.js","webpack://mermaid/./node_modules/d3-array/src/mean.js","webpack://mermaid/./node_modules/d3-array/src/median.js","webpack://mermaid/./node_modules/d3-array/src/merge.js","webpack://mermaid/./node_modules/d3-array/src/min.js","webpack://mermaid/./node_modules/d3-array/src/number.js","webpack://mermaid/./node_modules/d3-array/src/pairs.js","webpack://mermaid/./node_modules/d3-array/src/permute.js","webpack://mermaid/./node_modules/d3-array/src/quantile.js","webpack://mermaid/./node_modules/d3-array/src/range.js","webpack://mermaid/./node_modules/d3-array/src/scan.js","webpack://mermaid/./node_modules/d3-array/src/shuffle.js","webpack://mermaid/./node_modules/d3-array/src/sum.js","webpack://mermaid/./node_modules/d3-array/src/threshold/freedmanDiaconis.js","webpack://mermaid/./node_modules/d3-array/src/threshold/scott.js","webpack://mermaid/./node_modules/d3-array/src/threshold/sturges.js","webpack://mermaid/./node_modules/d3-array/src/ticks.js","webpack://mermaid/./node_modules/d3-array/src/transpose.js","webpack://mermaid/./node_modules/d3-array/src/variance.js","webpack://mermaid/./node_modules/d3-array/src/zip.js","webpack://mermaid/./node_modules/d3-axis/src/array.js","webpack://mermaid/./node_modules/d3-axis/src/axis.js","webpack://mermaid/./node_modules/d3-axis/src/identity.js","webpack://mermaid/./node_modules/d3-axis/src/index.js","webpack://mermaid/./node_modules/d3-brush/src/brush.js","webpack://mermaid/./node_modules/d3-brush/src/constant.js","webpack://mermaid/./node_modules/d3-brush/src/event.js","webpack://mermaid/./node_modules/d3-brush/src/index.js","webpack://mermaid/./node_modules/d3-brush/src/noevent.js","webpack://mermaid/./node_modules/d3-chord/src/array.js","webpack://mermaid/./node_modules/d3-chord/src/chord.js","webpack://mermaid/./node_modules/d3-chord/src/constant.js","webpack://mermaid/./node_modules/d3-chord/src/index.js","webpack://mermaid/./node_modules/d3-chord/src/math.js","webpack://mermaid/./node_modules/d3-chord/src/ribbon.js","webpack://mermaid/./node_modules/d3-collection/src/entries.js","webpack://mermaid/./node_modules/d3-collection/src/index.js","webpack://mermaid/./node_modules/d3-collection/src/keys.js","webpack://mermaid/./node_modules/d3-collection/src/map.js","webpack://mermaid/./node_modules/d3-collection/src/nest.js","webpack://mermaid/./node_modules/d3-collection/src/set.js","webpack://mermaid/./node_modules/d3-collection/src/values.js","webpack://mermaid/./node_modules/d3-color/src/color.js","webpack://mermaid/./node_modules/d3-color/src/cubehelix.js","webpack://mermaid/./node_modules/d3-color/src/define.js","webpack://mermaid/./node_modules/d3-color/src/index.js","webpack://mermaid/./node_modules/d3-color/src/lab.js","webpack://mermaid/./node_modules/d3-color/src/math.js","webpack://mermaid/./node_modules/d3-contour/src/area.js","webpack://mermaid/./node_modules/d3-contour/src/array.js","webpack://mermaid/./node_modules/d3-contour/src/ascending.js","webpack://mermaid/./node_modules/d3-contour/src/blur.js","webpack://mermaid/./node_modules/d3-contour/src/constant.js","webpack://mermaid/./node_modules/d3-contour/src/contains.js","webpack://mermaid/./node_modules/d3-contour/src/contours.js","webpack://mermaid/./node_modules/d3-contour/src/density.js","webpack://mermaid/./node_modules/d3-contour/src/index.js","webpack://mermaid/./node_modules/d3-contour/src/noop.js","webpack://mermaid/./node_modules/d3-dispatch/src/dispatch.js","webpack://mermaid/./node_modules/d3-dispatch/src/index.js","webpack://mermaid/./node_modules/d3-drag/src/constant.js","webpack://mermaid/./node_modules/d3-drag/src/drag.js","webpack://mermaid/./node_modules/d3-drag/src/event.js","webpack://mermaid/./node_modules/d3-drag/src/index.js","webpack://mermaid/./node_modules/d3-drag/src/nodrag.js","webpack://mermaid/./node_modules/d3-drag/src/noevent.js","webpack://mermaid/./node_modules/d3-dsv/src/autoType.js","webpack://mermaid/./node_modules/d3-dsv/src/csv.js","webpack://mermaid/./node_modules/d3-dsv/src/dsv.js","webpack://mermaid/./node_modules/d3-dsv/src/index.js","webpack://mermaid/./node_modules/d3-dsv/src/tsv.js","webpack://mermaid/./node_modules/d3-ease/src/back.js","webpack://mermaid/./node_modules/d3-ease/src/bounce.js","webpack://mermaid/./node_modules/d3-ease/src/circle.js","webpack://mermaid/./node_modules/d3-ease/src/cubic.js","webpack://mermaid/./node_modules/d3-ease/src/elastic.js","webpack://mermaid/./node_modules/d3-ease/src/exp.js","webpack://mermaid/./node_modules/d3-ease/src/index.js","webpack://mermaid/./node_modules/d3-ease/src/linear.js","webpack://mermaid/./node_modules/d3-ease/src/poly.js","webpack://mermaid/./node_modules/d3-ease/src/quad.js","webpack://mermaid/./node_modules/d3-ease/src/sin.js","webpack://mermaid/./node_modules/d3-fetch/src/blob.js","webpack://mermaid/./node_modules/d3-fetch/src/buffer.js","webpack://mermaid/./node_modules/d3-fetch/src/dsv.js","webpack://mermaid/./node_modules/d3-fetch/src/image.js","webpack://mermaid/./node_modules/d3-fetch/src/index.js","webpack://mermaid/./node_modules/d3-fetch/src/json.js","webpack://mermaid/./node_modules/d3-fetch/src/text.js","webpack://mermaid/./node_modules/d3-fetch/src/xml.js","webpack://mermaid/./node_modules/d3-force/src/center.js","webpack://mermaid/./node_modules/d3-force/src/collide.js","webpack://mermaid/./node_modules/d3-force/src/constant.js","webpack://mermaid/./node_modules/d3-force/src/index.js","webpack://mermaid/./node_modules/d3-force/src/jiggle.js","webpack://mermaid/./node_modules/d3-force/src/link.js","webpack://mermaid/./node_modules/d3-force/src/manyBody.js","webpack://mermaid/./node_modules/d3-force/src/radial.js","webpack://mermaid/./node_modules/d3-force/src/simulation.js","webpack://mermaid/./node_modules/d3-force/src/x.js","webpack://mermaid/./node_modules/d3-force/src/y.js","webpack://mermaid/./node_modules/d3-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-format/src/exponent.js","webpack://mermaid/./node_modules/d3-format/src/formatDecimal.js","webpack://mermaid/./node_modules/d3-format/src/formatGroup.js","webpack://mermaid/./node_modules/d3-format/src/formatNumerals.js","webpack://mermaid/./node_modules/d3-format/src/formatPrefixAuto.js","webpack://mermaid/./node_modules/d3-format/src/formatRounded.js","webpack://mermaid/./node_modules/d3-format/src/formatSpecifier.js","webpack://mermaid/./node_modules/d3-format/src/formatTrim.js","webpack://mermaid/./node_modules/d3-format/src/formatTypes.js","webpack://mermaid/./node_modules/d3-format/src/identity.js","webpack://mermaid/./node_modules/d3-format/src/index.js","webpack://mermaid/./node_modules/d3-format/src/locale.js","webpack://mermaid/./node_modules/d3-format/src/precisionFixed.js","webpack://mermaid/./node_modules/d3-format/src/precisionPrefix.js","webpack://mermaid/./node_modules/d3-format/src/precisionRound.js","webpack://mermaid/./node_modules/d3-geo/src/adder.js","webpack://mermaid/./node_modules/d3-geo/src/area.js","webpack://mermaid/./node_modules/d3-geo/src/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/cartesian.js","webpack://mermaid/./node_modules/d3-geo/src/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/antimeridian.js","webpack://mermaid/./node_modules/d3-geo/src/clip/buffer.js","webpack://mermaid/./node_modules/d3-geo/src/clip/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/extent.js","webpack://mermaid/./node_modules/d3-geo/src/clip/index.js","webpack://mermaid/./node_modules/d3-geo/src/clip/line.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rectangle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rejoin.js","webpack://mermaid/./node_modules/d3-geo/src/compose.js","webpack://mermaid/./node_modules/d3-geo/src/constant.js","webpack://mermaid/./node_modules/d3-geo/src/contains.js","webpack://mermaid/./node_modules/d3-geo/src/distance.js","webpack://mermaid/./node_modules/d3-geo/src/graticule.js","webpack://mermaid/./node_modules/d3-geo/src/identity.js","webpack://mermaid/./node_modules/d3-geo/src/index.js","webpack://mermaid/./node_modules/d3-geo/src/interpolate.js","webpack://mermaid/./node_modules/d3-geo/src/length.js","webpack://mermaid/./node_modules/d3-geo/src/math.js","webpack://mermaid/./node_modules/d3-geo/src/noop.js","webpack://mermaid/./node_modules/d3-geo/src/path/area.js","webpack://mermaid/./node_modules/d3-geo/src/path/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/path/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/path/context.js","webpack://mermaid/./node_modules/d3-geo/src/path/index.js","webpack://mermaid/./node_modules/d3-geo/src/path/measure.js","webpack://mermaid/./node_modules/d3-geo/src/path/string.js","webpack://mermaid/./node_modules/d3-geo/src/pointEqual.js","webpack://mermaid/./node_modules/d3-geo/src/polygonContains.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albers.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albersUsa.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicConformal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/cylindricalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equalEarth.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equirectangular.js","webpack://mermaid/./node_modules/d3-geo/src/projection/fit.js","webpack://mermaid/./node_modules/d3-geo/src/projection/gnomonic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/identity.js","webpack://mermaid/./node_modules/d3-geo/src/projection/index.js","webpack://mermaid/./node_modules/d3-geo/src/projection/mercator.js","webpack://mermaid/./node_modules/d3-geo/src/projection/naturalEarth1.js","webpack://mermaid/./node_modules/d3-geo/src/projection/orthographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/resample.js","webpack://mermaid/./node_modules/d3-geo/src/projection/stereographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/transverseMercator.js","webpack://mermaid/./node_modules/d3-geo/src/rotation.js","webpack://mermaid/./node_modules/d3-geo/src/stream.js","webpack://mermaid/./node_modules/d3-geo/src/transform.js","webpack://mermaid/./node_modules/d3-hierarchy/src/accessors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/array.js","webpack://mermaid/./node_modules/d3-hierarchy/src/cluster.js","webpack://mermaid/./node_modules/d3-hierarchy/src/constant.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/ancestors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/count.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/descendants.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/each.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/leaves.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/links.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/path.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sort.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sum.js","webpack://mermaid/./node_modules/d3-hierarchy/src/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/enclose.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/siblings.js","webpack://mermaid/./node_modules/d3-hierarchy/src/partition.js","webpack://mermaid/./node_modules/d3-hierarchy/src/stratify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/tree.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/binary.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/dice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/resquarify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/round.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/slice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/sliceDice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/squarify.js","webpack://mermaid/./node_modules/d3-interpolate/src/array.js","webpack://mermaid/./node_modules/d3-interpolate/src/basis.js","webpack://mermaid/./node_modules/d3-interpolate/src/basisClosed.js","webpack://mermaid/./node_modules/d3-interpolate/src/color.js","webpack://mermaid/./node_modules/d3-interpolate/src/constant.js","webpack://mermaid/./node_modules/d3-interpolate/src/cubehelix.js","webpack://mermaid/./node_modules/d3-interpolate/src/date.js","webpack://mermaid/./node_modules/d3-interpolate/src/discrete.js","webpack://mermaid/./node_modules/d3-interpolate/src/hcl.js","webpack://mermaid/./node_modules/d3-interpolate/src/hsl.js","webpack://mermaid/./node_modules/d3-interpolate/src/hue.js","webpack://mermaid/./node_modules/d3-interpolate/src/index.js","webpack://mermaid/./node_modules/d3-interpolate/src/lab.js","webpack://mermaid/./node_modules/d3-interpolate/src/number.js","webpack://mermaid/./node_modules/d3-interpolate/src/numberArray.js","webpack://mermaid/./node_modules/d3-interpolate/src/object.js","webpack://mermaid/./node_modules/d3-interpolate/src/piecewise.js","webpack://mermaid/./node_modules/d3-interpolate/src/quantize.js","webpack://mermaid/./node_modules/d3-interpolate/src/rgb.js","webpack://mermaid/./node_modules/d3-interpolate/src/round.js","webpack://mermaid/./node_modules/d3-interpolate/src/string.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/decompose.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/index.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/parse.js","webpack://mermaid/./node_modules/d3-interpolate/src/value.js","webpack://mermaid/./node_modules/d3-interpolate/src/zoom.js","webpack://mermaid/./node_modules/d3-path/src/index.js","webpack://mermaid/./node_modules/d3-path/src/path.js","webpack://mermaid/./node_modules/d3-polygon/src/area.js","webpack://mermaid/./node_modules/d3-polygon/src/centroid.js","webpack://mermaid/./node_modules/d3-polygon/src/contains.js","webpack://mermaid/./node_modules/d3-polygon/src/cross.js","webpack://mermaid/./node_modules/d3-polygon/src/hull.js","webpack://mermaid/./node_modules/d3-polygon/src/index.js","webpack://mermaid/./node_modules/d3-polygon/src/length.js","webpack://mermaid/./node_modules/d3-quadtree/src/add.js","webpack://mermaid/./node_modules/d3-quadtree/src/cover.js","webpack://mermaid/./node_modules/d3-quadtree/src/data.js","webpack://mermaid/./node_modules/d3-quadtree/src/extent.js","webpack://mermaid/./node_modules/d3-quadtree/src/find.js","webpack://mermaid/./node_modules/d3-quadtree/src/index.js","webpack://mermaid/./node_modules/d3-quadtree/src/quad.js","webpack://mermaid/./node_modules/d3-quadtree/src/quadtree.js","webpack://mermaid/./node_modules/d3-quadtree/src/remove.js","webpack://mermaid/./node_modules/d3-quadtree/src/root.js","webpack://mermaid/./node_modules/d3-quadtree/src/size.js","webpack://mermaid/./node_modules/d3-quadtree/src/visit.js","webpack://mermaid/./node_modules/d3-quadtree/src/visitAfter.js","webpack://mermaid/./node_modules/d3-quadtree/src/x.js","webpack://mermaid/./node_modules/d3-quadtree/src/y.js","webpack://mermaid/./node_modules/d3-random/src/bates.js","webpack://mermaid/./node_modules/d3-random/src/defaultSource.js","webpack://mermaid/./node_modules/d3-random/src/exponential.js","webpack://mermaid/./node_modules/d3-random/src/index.js","webpack://mermaid/./node_modules/d3-random/src/irwinHall.js","webpack://mermaid/./node_modules/d3-random/src/logNormal.js","webpack://mermaid/./node_modules/d3-random/src/normal.js","webpack://mermaid/./node_modules/d3-random/src/uniform.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Accent.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Dark2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Paired.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set3.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/category10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/colors.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/BrBG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PRGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PiYG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PuOr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdGy.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/Spectral.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/index.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/ramp.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js","webpack://mermaid/./node_modules/d3-scale/src/array.js","webpack://mermaid/./node_modules/d3-scale/src/band.js","webpack://mermaid/./node_modules/d3-scale/src/constant.js","webpack://mermaid/./node_modules/d3-scale/src/continuous.js","webpack://mermaid/./node_modules/d3-scale/src/diverging.js","webpack://mermaid/./node_modules/d3-scale/src/identity.js","webpack://mermaid/./node_modules/d3-scale/src/index.js","webpack://mermaid/./node_modules/d3-scale/src/init.js","webpack://mermaid/./node_modules/d3-scale/src/linear.js","webpack://mermaid/./node_modules/d3-scale/src/log.js","webpack://mermaid/./node_modules/d3-scale/src/nice.js","webpack://mermaid/./node_modules/d3-scale/src/number.js","webpack://mermaid/./node_modules/d3-scale/src/ordinal.js","webpack://mermaid/./node_modules/d3-scale/src/pow.js","webpack://mermaid/./node_modules/d3-scale/src/quantile.js","webpack://mermaid/./node_modules/d3-scale/src/quantize.js","webpack://mermaid/./node_modules/d3-scale/src/sequential.js","webpack://mermaid/./node_modules/d3-scale/src/sequentialQuantile.js","webpack://mermaid/./node_modules/d3-scale/src/symlog.js","webpack://mermaid/./node_modules/d3-scale/src/threshold.js","webpack://mermaid/./node_modules/d3-scale/src/tickFormat.js","webpack://mermaid/./node_modules/d3-scale/src/time.js","webpack://mermaid/./node_modules/d3-scale/src/utcTime.js","webpack://mermaid/./node_modules/d3-selection/src/constant.js","webpack://mermaid/./node_modules/d3-selection/src/create.js","webpack://mermaid/./node_modules/d3-selection/src/creator.js","webpack://mermaid/./node_modules/d3-selection/src/index.js","webpack://mermaid/./node_modules/d3-selection/src/local.js","webpack://mermaid/./node_modules/d3-selection/src/matcher.js","webpack://mermaid/./node_modules/d3-selection/src/mouse.js","webpack://mermaid/./node_modules/d3-selection/src/namespace.js","webpack://mermaid/./node_modules/d3-selection/src/namespaces.js","webpack://mermaid/./node_modules/d3-selection/src/point.js","webpack://mermaid/./node_modules/d3-selection/src/select.js","webpack://mermaid/./node_modules/d3-selection/src/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/selection/append.js","webpack://mermaid/./node_modules/d3-selection/src/selection/attr.js","webpack://mermaid/./node_modules/d3-selection/src/selection/call.js","webpack://mermaid/./node_modules/d3-selection/src/selection/classed.js","webpack://mermaid/./node_modules/d3-selection/src/selection/clone.js","webpack://mermaid/./node_modules/d3-selection/src/selection/data.js","webpack://mermaid/./node_modules/d3-selection/src/selection/datum.js","webpack://mermaid/./node_modules/d3-selection/src/selection/dispatch.js","webpack://mermaid/./node_modules/d3-selection/src/selection/each.js","webpack://mermaid/./node_modules/d3-selection/src/selection/empty.js","webpack://mermaid/./node_modules/d3-selection/src/selection/enter.js","webpack://mermaid/./node_modules/d3-selection/src/selection/exit.js","webpack://mermaid/./node_modules/d3-selection/src/selection/filter.js","webpack://mermaid/./node_modules/d3-selection/src/selection/html.js","webpack://mermaid/./node_modules/d3-selection/src/selection/index.js","webpack://mermaid/./node_modules/d3-selection/src/selection/insert.js","webpack://mermaid/./node_modules/d3-selection/src/selection/join.js","webpack://mermaid/./node_modules/d3-selection/src/selection/lower.js","webpack://mermaid/./node_modules/d3-selection/src/selection/merge.js","webpack://mermaid/./node_modules/d3-selection/src/selection/node.js","webpack://mermaid/./node_modules/d3-selection/src/selection/nodes.js","webpack://mermaid/./node_modules/d3-selection/src/selection/on.js","webpack://mermaid/./node_modules/d3-selection/src/selection/order.js","webpack://mermaid/./node_modules/d3-selection/src/selection/property.js","webpack://mermaid/./node_modules/d3-selection/src/selection/raise.js","webpack://mermaid/./node_modules/d3-selection/src/selection/remove.js","webpack://mermaid/./node_modules/d3-selection/src/selection/select.js","webpack://mermaid/./node_modules/d3-selection/src/selection/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/selection/size.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sort.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sparse.js","webpack://mermaid/./node_modules/d3-selection/src/selection/style.js","webpack://mermaid/./node_modules/d3-selection/src/selection/text.js","webpack://mermaid/./node_modules/d3-selection/src/selector.js","webpack://mermaid/./node_modules/d3-selection/src/selectorAll.js","webpack://mermaid/./node_modules/d3-selection/src/sourceEvent.js","webpack://mermaid/./node_modules/d3-selection/src/touch.js","webpack://mermaid/./node_modules/d3-selection/src/touches.js","webpack://mermaid/./node_modules/d3-selection/src/window.js","webpack://mermaid/./node_modules/d3-shape/src/arc.js","webpack://mermaid/./node_modules/d3-shape/src/area.js","webpack://mermaid/./node_modules/d3-shape/src/areaRadial.js","webpack://mermaid/./node_modules/d3-shape/src/array.js","webpack://mermaid/./node_modules/d3-shape/src/constant.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basis.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/bundle.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinal.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRom.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linear.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linearClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/monotone.js","webpack://mermaid/./node_modules/d3-shape/src/curve/natural.js","webpack://mermaid/./node_modules/d3-shape/src/curve/radial.js","webpack://mermaid/./node_modules/d3-shape/src/curve/step.js","webpack://mermaid/./node_modules/d3-shape/src/descending.js","webpack://mermaid/./node_modules/d3-shape/src/identity.js","webpack://mermaid/./node_modules/d3-shape/src/index.js","webpack://mermaid/./node_modules/d3-shape/src/line.js","webpack://mermaid/./node_modules/d3-shape/src/lineRadial.js","webpack://mermaid/./node_modules/d3-shape/src/link/index.js","webpack://mermaid/./node_modules/d3-shape/src/math.js","webpack://mermaid/./node_modules/d3-shape/src/noop.js","webpack://mermaid/./node_modules/d3-shape/src/offset/diverging.js","webpack://mermaid/./node_modules/d3-shape/src/offset/expand.js","webpack://mermaid/./node_modules/d3-shape/src/offset/none.js","webpack://mermaid/./node_modules/d3-shape/src/offset/silhouette.js","webpack://mermaid/./node_modules/d3-shape/src/offset/wiggle.js","webpack://mermaid/./node_modules/d3-shape/src/order/appearance.js","webpack://mermaid/./node_modules/d3-shape/src/order/ascending.js","webpack://mermaid/./node_modules/d3-shape/src/order/descending.js","webpack://mermaid/./node_modules/d3-shape/src/order/insideOut.js","webpack://mermaid/./node_modules/d3-shape/src/order/none.js","webpack://mermaid/./node_modules/d3-shape/src/order/reverse.js","webpack://mermaid/./node_modules/d3-shape/src/pie.js","webpack://mermaid/./node_modules/d3-shape/src/point.js","webpack://mermaid/./node_modules/d3-shape/src/pointRadial.js","webpack://mermaid/./node_modules/d3-shape/src/stack.js","webpack://mermaid/./node_modules/d3-shape/src/symbol.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/circle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/cross.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/diamond.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/square.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/star.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/triangle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/wye.js","webpack://mermaid/./node_modules/d3-time-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-time-format/src/index.js","webpack://mermaid/./node_modules/d3-time-format/src/isoFormat.js","webpack://mermaid/./node_modules/d3-time-format/src/isoParse.js","webpack://mermaid/./node_modules/d3-time-format/src/locale.js","webpack://mermaid/./node_modules/d3-time/src/day.js","webpack://mermaid/./node_modules/d3-time/src/duration.js","webpack://mermaid/./node_modules/d3-time/src/hour.js","webpack://mermaid/./node_modules/d3-time/src/index.js","webpack://mermaid/./node_modules/d3-time/src/interval.js","webpack://mermaid/./node_modules/d3-time/src/millisecond.js","webpack://mermaid/./node_modules/d3-time/src/minute.js","webpack://mermaid/./node_modules/d3-time/src/month.js","webpack://mermaid/./node_modules/d3-time/src/second.js","webpack://mermaid/./node_modules/d3-time/src/utcDay.js","webpack://mermaid/./node_modules/d3-time/src/utcHour.js","webpack://mermaid/./node_modules/d3-time/src/utcMinute.js","webpack://mermaid/./node_modules/d3-time/src/utcMonth.js","webpack://mermaid/./node_modules/d3-time/src/utcWeek.js","webpack://mermaid/./node_modules/d3-time/src/utcYear.js","webpack://mermaid/./node_modules/d3-time/src/week.js","webpack://mermaid/./node_modules/d3-time/src/year.js","webpack://mermaid/./node_modules/d3-timer/src/index.js","webpack://mermaid/./node_modules/d3-timer/src/interval.js","webpack://mermaid/./node_modules/d3-timer/src/timeout.js","webpack://mermaid/./node_modules/d3-timer/src/timer.js","webpack://mermaid/./node_modules/d3-transition/src/active.js","webpack://mermaid/./node_modules/d3-transition/src/index.js","webpack://mermaid/./node_modules/d3-transition/src/interrupt.js","webpack://mermaid/./node_modules/d3-transition/src/selection/index.js","webpack://mermaid/./node_modules/d3-transition/src/selection/interrupt.js","webpack://mermaid/./node_modules/d3-transition/src/selection/transition.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attr.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attrTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/delay.js","webpack://mermaid/./node_modules/d3-transition/src/transition/duration.js","webpack://mermaid/./node_modules/d3-transition/src/transition/ease.js","webpack://mermaid/./node_modules/d3-transition/src/transition/end.js","webpack://mermaid/./node_modules/d3-transition/src/transition/filter.js","webpack://mermaid/./node_modules/d3-transition/src/transition/index.js","webpack://mermaid/./node_modules/d3-transition/src/transition/interpolate.js","webpack://mermaid/./node_modules/d3-transition/src/transition/merge.js","webpack://mermaid/./node_modules/d3-transition/src/transition/on.js","webpack://mermaid/./node_modules/d3-transition/src/transition/remove.js","webpack://mermaid/./node_modules/d3-transition/src/transition/schedule.js","webpack://mermaid/./node_modules/d3-transition/src/transition/select.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selectAll.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selection.js","webpack://mermaid/./node_modules/d3-transition/src/transition/style.js","webpack://mermaid/./node_modules/d3-transition/src/transition/styleTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/text.js","webpack://mermaid/./node_modules/d3-transition/src/transition/textTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/transition.js","webpack://mermaid/./node_modules/d3-transition/src/transition/tween.js","webpack://mermaid/./node_modules/d3-voronoi/src/Beach.js","webpack://mermaid/./node_modules/d3-voronoi/src/Cell.js","webpack://mermaid/./node_modules/d3-voronoi/src/Circle.js","webpack://mermaid/./node_modules/d3-voronoi/src/Diagram.js","webpack://mermaid/./node_modules/d3-voronoi/src/Edge.js","webpack://mermaid/./node_modules/d3-voronoi/src/RedBlackTree.js","webpack://mermaid/./node_modules/d3-voronoi/src/constant.js","webpack://mermaid/./node_modules/d3-voronoi/src/index.js","webpack://mermaid/./node_modules/d3-voronoi/src/point.js","webpack://mermaid/./node_modules/d3-voronoi/src/voronoi.js","webpack://mermaid/./node_modules/d3-zoom/src/constant.js","webpack://mermaid/./node_modules/d3-zoom/src/event.js","webpack://mermaid/./node_modules/d3-zoom/src/index.js","webpack://mermaid/./node_modules/d3-zoom/src/noevent.js","webpack://mermaid/./node_modules/d3-zoom/src/transform.js","webpack://mermaid/./node_modules/d3-zoom/src/zoom.js","webpack://mermaid/./node_modules/d3/dist/package.js","webpack://mermaid/./node_modules/d3/index.js","webpack://mermaid/./node_modules/dagre-d3/index.js","webpack://mermaid/./node_modules/dagre-d3/lib/arrows.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-paths.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/d3.js","webpack://mermaid/./node_modules/dagre-d3/lib/dagre.js","webpack://mermaid/./node_modules/dagre-d3/lib/graphlib.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/index.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-circle.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-line.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-node.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-polygon.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-rect.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-html-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-svg-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-text-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/lodash.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/render.js","webpack://mermaid/./node_modules/dagre-d3/lib/shapes.js","webpack://mermaid/./node_modules/dagre-d3/lib/util.js","webpack://mermaid/./node_modules/dagre-d3/lib/version.js","webpack://mermaid/./node_modules/dagre/index.js","webpack://mermaid/./node_modules/dagre/lib/acyclic.js","webpack://mermaid/./node_modules/dagre/lib/add-border-segments.js","webpack://mermaid/./node_modules/dagre/lib/coordinate-system.js","webpack://mermaid/./node_modules/dagre/lib/data/list.js","webpack://mermaid/./node_modules/dagre/lib/debug.js","webpack://mermaid/./node_modules/dagre/lib/graphlib.js","webpack://mermaid/./node_modules/dagre/lib/greedy-fas.js","webpack://mermaid/./node_modules/dagre/lib/layout.js","webpack://mermaid/./node_modules/dagre/lib/lodash.js","webpack://mermaid/./node_modules/dagre/lib/nesting-graph.js","webpack://mermaid/./node_modules/dagre/lib/normalize.js","webpack://mermaid/./node_modules/dagre/lib/order/add-subgraph-constraints.js","webpack://mermaid/./node_modules/dagre/lib/order/barycenter.js","webpack://mermaid/./node_modules/dagre/lib/order/build-layer-graph.js","webpack://mermaid/./node_modules/dagre/lib/order/cross-count.js","webpack://mermaid/./node_modules/dagre/lib/order/index.js","webpack://mermaid/./node_modules/dagre/lib/order/init-order.js","webpack://mermaid/./node_modules/dagre/lib/order/resolve-conflicts.js","webpack://mermaid/./node_modules/dagre/lib/order/sort-subgraph.js","webpack://mermaid/./node_modules/dagre/lib/order/sort.js","webpack://mermaid/./node_modules/dagre/lib/parent-dummy-chains.js","webpack://mermaid/./node_modules/dagre/lib/position/bk.js","webpack://mermaid/./node_modules/dagre/lib/position/index.js","webpack://mermaid/./node_modules/dagre/lib/rank/feasible-tree.js","webpack://mermaid/./node_modules/dagre/lib/rank/index.js","webpack://mermaid/./node_modules/dagre/lib/rank/network-simplex.js","webpack://mermaid/./node_modules/dagre/lib/rank/util.js","webpack://mermaid/./node_modules/dagre/lib/util.js","webpack://mermaid/./node_modules/dagre/lib/version.js","webpack://mermaid/./node_modules/entity-decode/browser.js","webpack://mermaid/./node_modules/graphlib/index.js","webpack://mermaid/./node_modules/graphlib/lib/alg/components.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dfs.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra-all.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra.js","webpack://mermaid/./node_modules/graphlib/lib/alg/find-cycles.js","webpack://mermaid/./node_modules/graphlib/lib/alg/floyd-warshall.js","webpack://mermaid/./node_modules/graphlib/lib/alg/index.js","webpack://mermaid/./node_modules/graphlib/lib/alg/is-acyclic.js","webpack://mermaid/./node_modules/graphlib/lib/alg/postorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/preorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/prim.js","webpack://mermaid/./node_modules/graphlib/lib/alg/tarjan.js","webpack://mermaid/./node_modules/graphlib/lib/alg/topsort.js","webpack://mermaid/./node_modules/graphlib/lib/data/priority-queue.js","webpack://mermaid/./node_modules/graphlib/lib/graph.js","webpack://mermaid/./node_modules/graphlib/lib/index.js","webpack://mermaid/./node_modules/graphlib/lib/json.js","webpack://mermaid/./node_modules/graphlib/lib/lodash.js","webpack://mermaid/./node_modules/graphlib/lib/version.js","webpack://mermaid/./node_modules/khroma/dist/channels/index.js","webpack://mermaid/./node_modules/khroma/dist/channels/reusable.js","webpack://mermaid/./node_modules/khroma/dist/channels/type.js","webpack://mermaid/./node_modules/khroma/dist/color/hex.js","webpack://mermaid/./node_modules/khroma/dist/color/hsl.js","webpack://mermaid/./node_modules/khroma/dist/color/index.js","webpack://mermaid/./node_modules/khroma/dist/color/keyword.js","webpack://mermaid/./node_modules/khroma/dist/color/rgb.js","webpack://mermaid/./node_modules/khroma/dist/consts.js","webpack://mermaid/./node_modules/khroma/dist/index.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust_channel.js","webpack://mermaid/./node_modules/khroma/dist/methods/alpha.js","webpack://mermaid/./node_modules/khroma/dist/methods/blue.js","webpack://mermaid/./node_modules/khroma/dist/methods/change.js","webpack://mermaid/./node_modules/khroma/dist/methods/channel.js","webpack://mermaid/./node_modules/khroma/dist/methods/complement.js","webpack://mermaid/./node_modules/khroma/dist/methods/darken.js","webpack://mermaid/./node_modules/khroma/dist/methods/desaturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/grayscale.js","webpack://mermaid/./node_modules/khroma/dist/methods/green.js","webpack://mermaid/./node_modules/khroma/dist/methods/hsla.js","webpack://mermaid/./node_modules/khroma/dist/methods/hue.js","webpack://mermaid/./node_modules/khroma/dist/methods/index.js","webpack://mermaid/./node_modules/khroma/dist/methods/invert.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_dark.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_light.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_valid.js","webpack://mermaid/./node_modules/khroma/dist/methods/lighten.js","webpack://mermaid/./node_modules/khroma/dist/methods/lightness.js","webpack://mermaid/./node_modules/khroma/dist/methods/luminance.js","webpack://mermaid/./node_modules/khroma/dist/methods/mix.js","webpack://mermaid/./node_modules/khroma/dist/methods/opacify.js","webpack://mermaid/./node_modules/khroma/dist/methods/red.js","webpack://mermaid/./node_modules/khroma/dist/methods/rgba.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturation.js","webpack://mermaid/./node_modules/khroma/dist/methods/scale.js","webpack://mermaid/./node_modules/khroma/dist/methods/transparentize.js","webpack://mermaid/./node_modules/khroma/dist/types.js","webpack://mermaid/./node_modules/khroma/dist/utils/channel.js","webpack://mermaid/./node_modules/khroma/dist/utils/index.js","webpack://mermaid/./node_modules/khroma/dist/utils/lang.js","webpack://mermaid/./node_modules/khroma/dist/utils/unit.js","webpack://mermaid/./node_modules/lodash/_DataView.js","webpack://mermaid/./node_modules/lodash/_Hash.js","webpack://mermaid/./node_modules/lodash/_ListCache.js","webpack://mermaid/./node_modules/lodash/_Map.js","webpack://mermaid/./node_modules/lodash/_MapCache.js","webpack://mermaid/./node_modules/lodash/_Promise.js","webpack://mermaid/./node_modules/lodash/_Set.js","webpack://mermaid/./node_modules/lodash/_SetCache.js","webpack://mermaid/./node_modules/lodash/_Stack.js","webpack://mermaid/./node_modules/lodash/_Symbol.js","webpack://mermaid/./node_modules/lodash/_Uint8Array.js","webpack://mermaid/./node_modules/lodash/_WeakMap.js","webpack://mermaid/./node_modules/lodash/_apply.js","webpack://mermaid/./node_modules/lodash/_arrayEach.js","webpack://mermaid/./node_modules/lodash/_arrayFilter.js","webpack://mermaid/./node_modules/lodash/_arrayIncludes.js","webpack://mermaid/./node_modules/lodash/_arrayIncludesWith.js","webpack://mermaid/./node_modules/lodash/_arrayLikeKeys.js","webpack://mermaid/./node_modules/lodash/_arrayMap.js","webpack://mermaid/./node_modules/lodash/_arrayPush.js","webpack://mermaid/./node_modules/lodash/_arrayReduce.js","webpack://mermaid/./node_modules/lodash/_arraySome.js","webpack://mermaid/./node_modules/lodash/_asciiSize.js","webpack://mermaid/./node_modules/lodash/_assignMergeValue.js","webpack://mermaid/./node_modules/lodash/_assignValue.js","webpack://mermaid/./node_modules/lodash/_assocIndexOf.js","webpack://mermaid/./node_modules/lodash/_baseAssign.js","webpack://mermaid/./node_modules/lodash/_baseAssignIn.js","webpack://mermaid/./node_modules/lodash/_baseAssignValue.js","webpack://mermaid/./node_modules/lodash/_baseClone.js","webpack://mermaid/./node_modules/lodash/_baseCreate.js","webpack://mermaid/./node_modules/lodash/_baseEach.js","webpack://mermaid/./node_modules/lodash/_baseExtremum.js","webpack://mermaid/./node_modules/lodash/_baseFilter.js","webpack://mermaid/./node_modules/lodash/_baseFindIndex.js","webpack://mermaid/./node_modules/lodash/_baseFlatten.js","webpack://mermaid/./node_modules/lodash/_baseFor.js","webpack://mermaid/./node_modules/lodash/_baseForOwn.js","webpack://mermaid/./node_modules/lodash/_baseGet.js","webpack://mermaid/./node_modules/lodash/_baseGetAllKeys.js","webpack://mermaid/./node_modules/lodash/_baseGetTag.js","webpack://mermaid/./node_modules/lodash/_baseGt.js","webpack://mermaid/./node_modules/lodash/_baseHas.js","webpack://mermaid/./node_modules/lodash/_baseHasIn.js","webpack://mermaid/./node_modules/lodash/_baseIndexOf.js","webpack://mermaid/./node_modules/lodash/_baseIsArguments.js","webpack://mermaid/./node_modules/lodash/_baseIsEqual.js","webpack://mermaid/./node_modules/lodash/_baseIsEqualDeep.js","webpack://mermaid/./node_modules/lodash/_baseIsMap.js","webpack://mermaid/./node_modules/lodash/_baseIsMatch.js","webpack://mermaid/./node_modules/lodash/_baseIsNaN.js","webpack://mermaid/./node_modules/lodash/_baseIsNative.js","webpack://mermaid/./node_modules/lodash/_baseIsSet.js","webpack://mermaid/./node_modules/lodash/_baseIsTypedArray.js","webpack://mermaid/./node_modules/lodash/_baseIteratee.js","webpack://mermaid/./node_modules/lodash/_baseKeys.js","webpack://mermaid/./node_modules/lodash/_baseKeysIn.js","webpack://mermaid/./node_modules/lodash/_baseLt.js","webpack://mermaid/./node_modules/lodash/_baseMap.js","webpack://mermaid/./node_modules/lodash/_baseMatches.js","webpack://mermaid/./node_modules/lodash/_baseMatchesProperty.js","webpack://mermaid/./node_modules/lodash/_baseMerge.js","webpack://mermaid/./node_modules/lodash/_baseMergeDeep.js","webpack://mermaid/./node_modules/lodash/_baseOrderBy.js","webpack://mermaid/./node_modules/lodash/_basePick.js","webpack://mermaid/./node_modules/lodash/_basePickBy.js","webpack://mermaid/./node_modules/lodash/_baseProperty.js","webpack://mermaid/./node_modules/lodash/_basePropertyDeep.js","webpack://mermaid/./node_modules/lodash/_baseRange.js","webpack://mermaid/./node_modules/lodash/_baseReduce.js","webpack://mermaid/./node_modules/lodash/_baseRest.js","webpack://mermaid/./node_modules/lodash/_baseSet.js","webpack://mermaid/./node_modules/lodash/_baseSetToString.js","webpack://mermaid/./node_modules/lodash/_baseSortBy.js","webpack://mermaid/./node_modules/lodash/_baseTimes.js","webpack://mermaid/./node_modules/lodash/_baseToString.js","webpack://mermaid/./node_modules/lodash/_baseUnary.js","webpack://mermaid/./node_modules/lodash/_baseUniq.js","webpack://mermaid/./node_modules/lodash/_baseValues.js","webpack://mermaid/./node_modules/lodash/_baseZipObject.js","webpack://mermaid/./node_modules/lodash/_cacheHas.js","webpack://mermaid/./node_modules/lodash/_castFunction.js","webpack://mermaid/./node_modules/lodash/_castPath.js","webpack://mermaid/./node_modules/lodash/_cloneArrayBuffer.js","webpack://mermaid/./node_modules/lodash/_cloneBuffer.js","webpack://mermaid/./node_modules/lodash/_cloneDataView.js","webpack://mermaid/./node_modules/lodash/_cloneRegExp.js","webpack://mermaid/./node_modules/lodash/_cloneSymbol.js","webpack://mermaid/./node_modules/lodash/_cloneTypedArray.js","webpack://mermaid/./node_modules/lodash/_compareAscending.js","webpack://mermaid/./node_modules/lodash/_compareMultiple.js","webpack://mermaid/./node_modules/lodash/_copyArray.js","webpack://mermaid/./node_modules/lodash/_copyObject.js","webpack://mermaid/./node_modules/lodash/_copySymbols.js","webpack://mermaid/./node_modules/lodash/_copySymbolsIn.js","webpack://mermaid/./node_modules/lodash/_coreJsData.js","webpack://mermaid/./node_modules/lodash/_createAssigner.js","webpack://mermaid/./node_modules/lodash/_createBaseEach.js","webpack://mermaid/./node_modules/lodash/_createBaseFor.js","webpack://mermaid/./node_modules/lodash/_createFind.js","webpack://mermaid/./node_modules/lodash/_createRange.js","webpack://mermaid/./node_modules/lodash/_createSet.js","webpack://mermaid/./node_modules/lodash/_defineProperty.js","webpack://mermaid/./node_modules/lodash/_equalArrays.js","webpack://mermaid/./node_modules/lodash/_equalByTag.js","webpack://mermaid/./node_modules/lodash/_equalObjects.js","webpack://mermaid/./node_modules/lodash/_flatRest.js","webpack://mermaid/./node_modules/lodash/_freeGlobal.js","webpack://mermaid/./node_modules/lodash/_getAllKeys.js","webpack://mermaid/./node_modules/lodash/_getAllKeysIn.js","webpack://mermaid/./node_modules/lodash/_getMapData.js","webpack://mermaid/./node_modules/lodash/_getMatchData.js","webpack://mermaid/./node_modules/lodash/_getNative.js","webpack://mermaid/./node_modules/lodash/_getPrototype.js","webpack://mermaid/./node_modules/lodash/_getRawTag.js","webpack://mermaid/./node_modules/lodash/_getSymbols.js","webpack://mermaid/./node_modules/lodash/_getSymbolsIn.js","webpack://mermaid/./node_modules/lodash/_getTag.js","webpack://mermaid/./node_modules/lodash/_getValue.js","webpack://mermaid/./node_modules/lodash/_hasPath.js","webpack://mermaid/./node_modules/lodash/_hasUnicode.js","webpack://mermaid/./node_modules/lodash/_hashClear.js","webpack://mermaid/./node_modules/lodash/_hashDelete.js","webpack://mermaid/./node_modules/lodash/_hashGet.js","webpack://mermaid/./node_modules/lodash/_hashHas.js","webpack://mermaid/./node_modules/lodash/_hashSet.js","webpack://mermaid/./node_modules/lodash/_initCloneArray.js","webpack://mermaid/./node_modules/lodash/_initCloneByTag.js","webpack://mermaid/./node_modules/lodash/_initCloneObject.js","webpack://mermaid/./node_modules/lodash/_isFlattenable.js","webpack://mermaid/./node_modules/lodash/_isIndex.js","webpack://mermaid/./node_modules/lodash/_isIterateeCall.js","webpack://mermaid/./node_modules/lodash/_isKey.js","webpack://mermaid/./node_modules/lodash/_isKeyable.js","webpack://mermaid/./node_modules/lodash/_isMasked.js","webpack://mermaid/./node_modules/lodash/_isPrototype.js","webpack://mermaid/./node_modules/lodash/_isStrictComparable.js","webpack://mermaid/./node_modules/lodash/_listCacheClear.js","webpack://mermaid/./node_modules/lodash/_listCacheDelete.js","webpack://mermaid/./node_modules/lodash/_listCacheGet.js","webpack://mermaid/./node_modules/lodash/_listCacheHas.js","webpack://mermaid/./node_modules/lodash/_listCacheSet.js","webpack://mermaid/./node_modules/lodash/_mapCacheClear.js","webpack://mermaid/./node_modules/lodash/_mapCacheDelete.js","webpack://mermaid/./node_modules/lodash/_mapCacheGet.js","webpack://mermaid/./node_modules/lodash/_mapCacheHas.js","webpack://mermaid/./node_modules/lodash/_mapCacheSet.js","webpack://mermaid/./node_modules/lodash/_mapToArray.js","webpack://mermaid/./node_modules/lodash/_matchesStrictComparable.js","webpack://mermaid/./node_modules/lodash/_memoizeCapped.js","webpack://mermaid/./node_modules/lodash/_nativeCreate.js","webpack://mermaid/./node_modules/lodash/_nativeKeys.js","webpack://mermaid/./node_modules/lodash/_nativeKeysIn.js","webpack://mermaid/./node_modules/lodash/_nodeUtil.js","webpack://mermaid/./node_modules/lodash/_objectToString.js","webpack://mermaid/./node_modules/lodash/_overArg.js","webpack://mermaid/./node_modules/lodash/_overRest.js","webpack://mermaid/./node_modules/lodash/_root.js","webpack://mermaid/./node_modules/lodash/_safeGet.js","webpack://mermaid/./node_modules/lodash/_setCacheAdd.js","webpack://mermaid/./node_modules/lodash/_setCacheHas.js","webpack://mermaid/./node_modules/lodash/_setToArray.js","webpack://mermaid/./node_modules/lodash/_setToString.js","webpack://mermaid/./node_modules/lodash/_shortOut.js","webpack://mermaid/./node_modules/lodash/_stackClear.js","webpack://mermaid/./node_modules/lodash/_stackDelete.js","webpack://mermaid/./node_modules/lodash/_stackGet.js","webpack://mermaid/./node_modules/lodash/_stackHas.js","webpack://mermaid/./node_modules/lodash/_stackSet.js","webpack://mermaid/./node_modules/lodash/_strictIndexOf.js","webpack://mermaid/./node_modules/lodash/_stringSize.js","webpack://mermaid/./node_modules/lodash/_stringToPath.js","webpack://mermaid/./node_modules/lodash/_toKey.js","webpack://mermaid/./node_modules/lodash/_toSource.js","webpack://mermaid/./node_modules/lodash/_unicodeSize.js","webpack://mermaid/./node_modules/lodash/clone.js","webpack://mermaid/./node_modules/lodash/cloneDeep.js","webpack://mermaid/./node_modules/lodash/constant.js","webpack://mermaid/./node_modules/lodash/defaults.js","webpack://mermaid/./node_modules/lodash/each.js","webpack://mermaid/./node_modules/lodash/eq.js","webpack://mermaid/./node_modules/lodash/filter.js","webpack://mermaid/./node_modules/lodash/find.js","webpack://mermaid/./node_modules/lodash/findIndex.js","webpack://mermaid/./node_modules/lodash/flatten.js","webpack://mermaid/./node_modules/lodash/forEach.js","webpack://mermaid/./node_modules/lodash/forIn.js","webpack://mermaid/./node_modules/lodash/get.js","webpack://mermaid/./node_modules/lodash/has.js","webpack://mermaid/./node_modules/lodash/hasIn.js","webpack://mermaid/./node_modules/lodash/identity.js","webpack://mermaid/./node_modules/lodash/isArguments.js","webpack://mermaid/./node_modules/lodash/isArray.js","webpack://mermaid/./node_modules/lodash/isArrayLike.js","webpack://mermaid/./node_modules/lodash/isArrayLikeObject.js","webpack://mermaid/./node_modules/lodash/isBuffer.js","webpack://mermaid/./node_modules/lodash/isEmpty.js","webpack://mermaid/./node_modules/lodash/isFunction.js","webpack://mermaid/./node_modules/lodash/isLength.js","webpack://mermaid/./node_modules/lodash/isMap.js","webpack://mermaid/./node_modules/lodash/isObject.js","webpack://mermaid/./node_modules/lodash/isObjectLike.js","webpack://mermaid/./node_modules/lodash/isPlainObject.js","webpack://mermaid/./node_modules/lodash/isSet.js","webpack://mermaid/./node_modules/lodash/isString.js","webpack://mermaid/./node_modules/lodash/isSymbol.js","webpack://mermaid/./node_modules/lodash/isTypedArray.js","webpack://mermaid/./node_modules/lodash/isUndefined.js","webpack://mermaid/./node_modules/lodash/keys.js","webpack://mermaid/./node_modules/lodash/keysIn.js","webpack://mermaid/./node_modules/lodash/last.js","webpack://mermaid/./node_modules/lodash/map.js","webpack://mermaid/./node_modules/lodash/mapValues.js","webpack://mermaid/./node_modules/lodash/max.js","webpack://mermaid/./node_modules/lodash/memoize.js","webpack://mermaid/./node_modules/lodash/merge.js","webpack://mermaid/./node_modules/lodash/min.js","webpack://mermaid/./node_modules/lodash/minBy.js","webpack://mermaid/./node_modules/lodash/noop.js","webpack://mermaid/./node_modules/lodash/now.js","webpack://mermaid/./node_modules/lodash/pick.js","webpack://mermaid/./node_modules/lodash/property.js","webpack://mermaid/./node_modules/lodash/range.js","webpack://mermaid/./node_modules/lodash/reduce.js","webpack://mermaid/./node_modules/lodash/size.js","webpack://mermaid/./node_modules/lodash/sortBy.js","webpack://mermaid/./node_modules/lodash/stubArray.js","webpack://mermaid/./node_modules/lodash/stubFalse.js","webpack://mermaid/./node_modules/lodash/toFinite.js","webpack://mermaid/./node_modules/lodash/toInteger.js","webpack://mermaid/./node_modules/lodash/toNumber.js","webpack://mermaid/./node_modules/lodash/toPlainObject.js","webpack://mermaid/./node_modules/lodash/toString.js","webpack://mermaid/./node_modules/lodash/transform.js","webpack://mermaid/./node_modules/lodash/union.js","webpack://mermaid/./node_modules/lodash/uniqueId.js","webpack://mermaid/./node_modules/lodash/values.js","webpack://mermaid/./node_modules/lodash/zipObject.js","webpack://mermaid/./node_modules/moment-mini/locale sync ^\\.\\/.*$","webpack://mermaid/./node_modules/moment-mini/moment.min.js","webpack://mermaid/./node_modules/path-browserify/index.js","webpack://mermaid/./node_modules/process/browser.js","webpack://mermaid/./node_modules/stylis/stylis.js","webpack://mermaid/(webpack)/buildin/global.js","webpack://mermaid/(webpack)/buildin/module.js","webpack://mermaid/./src/config.js","webpack://mermaid/./src/dagre-wrapper/clusters.js","webpack://mermaid/./src/dagre-wrapper/createLabel.js","webpack://mermaid/./src/dagre-wrapper/edges.js","webpack://mermaid/./src/dagre-wrapper/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/index.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-circle.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-ellipse.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-line.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-node.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-polygon.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-rect.js","webpack://mermaid/./src/dagre-wrapper/markers.js","webpack://mermaid/./src/dagre-wrapper/mermaid-graphlib.js","webpack://mermaid/./src/dagre-wrapper/nodes.js","webpack://mermaid/./src/dagre-wrapper/shapes/note.js","webpack://mermaid/./src/dagre-wrapper/shapes/util.js","webpack://mermaid/./src/defaultConfig.js","webpack://mermaid/./src/diagrams/class/classDb.js","webpack://mermaid/./src/diagrams/class/classRenderer-v2.js","webpack://mermaid/./src/diagrams/class/classRenderer.js","webpack://mermaid/./src/diagrams/class/parser/classDiagram.jison","webpack://mermaid/./src/diagrams/class/styles.js","webpack://mermaid/./src/diagrams/class/svgDraw.js","webpack://mermaid/./src/diagrams/common/common.js","webpack://mermaid/./src/diagrams/er/erDb.js","webpack://mermaid/./src/diagrams/er/erMarkers.js","webpack://mermaid/./src/diagrams/er/erRenderer.js","webpack://mermaid/./src/diagrams/er/parser/erDiagram.jison","webpack://mermaid/./src/diagrams/er/styles.js","webpack://mermaid/./src/diagrams/flowchart/flowChartShapes.js","webpack://mermaid/./src/diagrams/flowchart/flowDb.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer-v2.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer.js","webpack://mermaid/./src/diagrams/flowchart/parser/flow.jison","webpack://mermaid/./src/diagrams/flowchart/styles.js","webpack://mermaid/./src/diagrams/gantt/ganttDb.js","webpack://mermaid/./src/diagrams/gantt/ganttRenderer.js","webpack://mermaid/./src/diagrams/gantt/parser/gantt.jison","webpack://mermaid/./src/diagrams/gantt/styles.js","webpack://mermaid/./src/diagrams/git/gitGraphAst.js","webpack://mermaid/./src/diagrams/git/gitGraphRenderer.js","webpack://mermaid/./src/diagrams/git/parser/gitGraph.jison","webpack://mermaid/./src/diagrams/git/styles.js","webpack://mermaid/./src/diagrams/info/infoDb.js","webpack://mermaid/./src/diagrams/info/infoRenderer.js","webpack://mermaid/./src/diagrams/info/parser/info.jison","webpack://mermaid/./src/diagrams/info/styles.js","webpack://mermaid/./src/diagrams/pie/parser/pie.jison","webpack://mermaid/./src/diagrams/pie/pieDb.js","webpack://mermaid/./src/diagrams/pie/pieRenderer.js","webpack://mermaid/./src/diagrams/pie/styles.js","webpack://mermaid/./src/diagrams/sequence/parser/sequenceDiagram.jison","webpack://mermaid/./src/diagrams/sequence/sequenceDb.js","webpack://mermaid/./src/diagrams/sequence/sequenceRenderer.js","webpack://mermaid/./src/diagrams/sequence/styles.js","webpack://mermaid/./src/diagrams/sequence/svgDraw.js","webpack://mermaid/./src/diagrams/state/id-cache.js","webpack://mermaid/./src/diagrams/state/parser/stateDiagram.jison","webpack://mermaid/./src/diagrams/state/shapes.js","webpack://mermaid/./src/diagrams/state/stateDb.js","webpack://mermaid/./src/diagrams/state/stateRenderer-v2.js","webpack://mermaid/./src/diagrams/state/stateRenderer.js","webpack://mermaid/./src/diagrams/state/styles.js","webpack://mermaid/./src/diagrams/user-journey/journeyDb.js","webpack://mermaid/./src/diagrams/user-journey/journeyRenderer.js","webpack://mermaid/./src/diagrams/user-journey/parser/journey.jison","webpack://mermaid/./src/diagrams/user-journey/styles.js","webpack://mermaid/./src/diagrams/user-journey/svgDraw.js","webpack://mermaid/./src/errorRenderer.js","webpack://mermaid/./src/logger.js","webpack://mermaid/./src/mermaid.js","webpack://mermaid/./src/mermaidAPI.js","webpack://mermaid/./src/styles.js","webpack://mermaid/./src/themes/index.js","webpack://mermaid/./src/themes/theme-base.js","webpack://mermaid/./src/themes/theme-dark.js","webpack://mermaid/./src/themes/theme-default.js","webpack://mermaid/./src/themes/theme-forest.js","webpack://mermaid/./src/themes/theme-neutral.js","webpack://mermaid/./src/utils.js"],"names":["defaultConfig","Object","freeze","config","siteConfig","assignWithDepth","directives","currentConfig","updateCurrentConfig","conf","themeVariables","forEach","d","variables","theme","getThemeVariables","setSiteConfig","updateSiteConfig","console","log","getSiteConfig","setConfig","getConfig","sanitize","options","keys","secure","key","logger","trace","addDirective","directive","push","reset","rect","parent","node","id","shapeSvg","insert","attr","label","text","appendChild","createLabel","labelText","labelStyle","undefined","bbox","getBBox","flowchart","htmlLabels","div","children","dv","select","getBoundingClientRect","width","height","padding","halfPadding","JSON","stringify","rx","ry","x","y","rectBox","intersect","point","intersectRect","noteGroup","roundedWithTitle","classes","innerRect","append","divider","shapes","clusterElems","insertCluster","elem","shape","getClusterTitleWidth","removeChild","clear","positionCluster","info","el","applyStyle","dom","styleFn","addHtmlLabel","fo","document","createElementNS","labelClass","isNode","html","style","_vertexText","isTitle","vertexText","replace","s","vertexNode","svgLabel","setAttribute","rows","split","Array","isArray","j","length","tspan","setAttributeNS","textContent","trim","edgeLabels","insertEdgeLabel","edge","labelElement","edgeLabel","positionEdgeLabel","points","pos","utils","calcLabelPosition","outsideNode","dx","Math","abs","dy","w","h","intersection","outsidePoint","insidePoint","warn","r","edges","x1","x2","y1","y2","Q","R","q","res","insertEdge","e","clusterDb","diagramType","graph","pointsHasChanged","tail","v","head","slice","unshift","toCluster","lastPointOutside","isInside","inter","pointPresent","p","find","fromCluster","updatedPoints","i","insterection","lineData","filter","Number","isNaN","lineFunction","line","curve","curveBasis","strokeClasses","thickness","pattern","svgPath","url","state","arrowMarkerAbsolute","window","location","protocol","host","pathname","search","arrowTypeStart","arrowTypeEnd","recursiveRender","_elem","diagramtype","parentCluster","graphlib","json","write","dir","rankdir","nodes","clusters","edgePaths","data","parse","clusterData","setNode","setParent","clusterNode","newEl","updateNodeBounds","setNodeElem","findNonClusterChild","insertNode","name","dagre","layout","positionNode","updatedPath","render","markers","insertMarkers","clearNodes","clearEdges","clearClusters","clearGraphlib","adjustClustersAndEdges","circle","ellipse","polygon","intersectCircle","intersectEllipse","cx","cy","px","py","det","sqrt","intersectLine","p1","p2","q1","q2","a1","a2","b1","b2","c1","c2","r1","r2","r3","r4","denom","offset","num","sameSign","module","exports","intersectNode","intersectPolygon","polyPoints","intersections","minX","POSITIVE_INFINITY","minY","entry","min","left","top","sort","pdx","pdy","distp","qdx","qdy","distq","sx","sy","markerArray","type","markerName","extension","composition","aggregation","dependency","cross","barb","decendants","parents","isDecendant","ancenstorId","debug","indexOf","edgeInCluster","clusterId","copy","newGraph","rootId","setEdge","error","removeNode","extractDecendants","concat","validate","_id","getAnchorId","externalConnections","depth","d1","d2","extractor","removeEdge","hasChildren","graphSettings","clusterGraph","Graph","multigraph","compound","setGraph","nodesep","ranksep","marginx","marginy","setDefaultEdgeLabel","question","labelHelper","questionElem","insertPolygonShape","hexagon","f","m","hex","rect_left_inv_arrow","lean_right","lean_left","trapezoid","inv_trapezoid","rect_right_inv_arrow","cylinder","rectWithTitle","innerLine","text2","flat","textRows","titleBox","descr","join","stadium","subroutine","start","forkJoin","end","innerCircle","class_box","rowPadding","lineHeight","topLine","bottomLine","maxWidth","maxHeight","labelContainer","verticalPos","hasInterface","classData","annotations","interfaceLabel","interfaceBBox","classTitleLabel","classTitleBBox","classAttributes","members","str","lbl","classMethods","methods","diffX","note","fork","nodeElems","_classes","element","map","themeCSS","maxTextSize","fontFamily","logLevel","securityLevel","startOnLoad","diagramPadding","nodeSpacing","rankSpacing","sequence","activationWidth","diagramMarginX","diagramMarginY","actorMargin","boxMargin","boxTextMargin","noteMargin","messageMargin","messageAlign","mirrorActors","bottomMarginAdj","useMaxWidth","rightAngles","showSequenceNumbers","actorFontSize","actorFontFamily","actorFontWeight","noteFontSize","noteFontFamily","noteFontWeight","noteAlign","messageFontSize","messageFontFamily","messageFontWeight","wrap","wrapPadding","labelBoxWidth","labelBoxHeight","messageFont","fontSize","fontWeight","noteFont","actorFont","gantt","titleTopMargin","barHeight","barGap","topPadding","leftPadding","gridLineStartPadding","numberSectionStyles","axisFormat","journey","class","git","dividerMargin","sizeUnit","textHeight","titleShift","forkWidth","forkHeight","miniPadding","fontSizeFactor","labelHeight","edgeLengthFactor","compositTitleSize","radius","er","layoutDirection","minEntityWidth","minEntityHeight","entityPadding","stroke","fill","MERMAID_DOM_ID_PREFIX","configApi","relations","classCounter","funs","parseDirective","statement","context","mermaidAPI","splitClassNameAndType","genericType","className","addClass","classId","cssClasses","domId","lookUpDomId","classKeys","setupToolTips","getClass","getClasses","getRelations","addRelation","relation","id1","id2","addAnnotation","annotation","validatedClassName","addMember","member","theClass","memberString","startsWith","endsWith","substring","addMembers","reverse","cleanupLabel","substr","setCssClass","ids","match","setLink","linkStr","tooltip","link","formatUrl","common","sanitizeText","setClickEvent","functionName","setClickFunc","elemId","querySelector","addEventListener","runFunc","bindFunctions","fun","lineType","LINE","DOTTED_LINE","relationType","AGGREGATION","EXTENSION","COMPOSITION","DEPENDENCY","tooltipElem","_groups","svg","selectAll","on","title","transition","duration","scrollX","right","scrollY","body","scrollTop","classed","parser","yy","classDb","idCache","addClasses","g","vertex","classStr","styles","radious","_shape","addRelations","cnt","defaultStyle","defaultLabelStyle","edgeData","arrowhead","getArrowMarker","type1","type2","getStylesFromArray","interpolate","interpolateToCurve","curveLinear","defaultInterpolate","arrowheadStyle","labelpos","labelType","lineBreakRegex","getGraphId","setConf","cnf","drawOld","diagram","isMultiGraph","classDef","svgDraw","drawClass","drawEdge","svgBounds","vBox","draw","_label","labels","querySelectorAll","k","dim","insertBefore","firstChild","marker","getStyles","nodeBorder","classText","mainBkg","nodeBkg","lineColor","edgeCount","path","getRelationType","l","labelPosition","p1_card_x","p1_card_y","p2_card_x","p2_card_y","cardinality_1_point","calcCardinalityPosition","cardinality_2_point","bounds","relationTitle1","relationTitle2","cssClassStr","classInfo","isFirst","titleText2","classTitleString","classTitle","titleHeight","membersLine","addTspan","membersBox","methodsLine","method","classBox","rectWidth","childNodes","parseMember","fieldRegEx","methodRegEx","fieldMatch","methodMatch","buildFieldDisplay","buildMethodDisplay","buildLegacyDisplay","parsedText","displayText","visibility","fieldType","parseGenericTypes","fieldName","err","cssStyle","methodName","parameters","classifier","returnType","parseClassifier","memberText","methodStart","methodEnd","firstChar","textEl","txt","tSpan","cleanedText","getRows","breakToPlaceholder","removeScript","rs","idx","level","placeholderToBreak","hasBreaks","test","splitBreaks","entities","relationships","Cardinality","ZERO_OR_ONE","ZERO_OR_MORE","ONE_OR_MORE","ONLY_ONE","Identification","NON_IDENTIFYING","IDENTIFYING","addEntity","getEntities","addRelationship","entA","rolA","entB","rSpec","rel","entityA","roleA","entityB","relSpec","getRelationships","setTitle","getTitle","ERMarkers","ONLY_ONE_START","ONLY_ONE_END","ZERO_OR_ONE_START","ZERO_OR_ONE_END","ONE_OR_MORE_START","ONE_OR_MORE_END","ZERO_OR_MORE_START","ZERO_OR_MORE_END","drawEntities","svgNode","firstOne","groupNode","textId","textNode","textBBox","entityWidth","max","entityHeight","rectNode","rectBBox","adjustEntities","getEdgeName","addRelationships","relationship","relCnt","drawRelationshipFromLayout","relType","erDb","cardA","erMarkers","cardB","len","getTotalLength","labelPoint","getPointAtLength","labelId","labelNode","labelBBox","erParser","directed","edgesep","firstEntity","tertiaryColor","dagreD3","addToRender","addToRenderV2","addShape","vertices","subGraphs","subGraphLookup","tooltips","subCount","firstGraphFlag","direction","addVertex","addSingleLink","_start","_end","linktext","addLink","updateLinkInterpolate","positions","interp","updateLink","isSubstringInArray","textStyles","newStyle1","newStyle2","setDirection","setClass","setTooltip","setClickFun","getTooltip","getDirection","getVertices","getEdges","addSubGraph","list","_title","uniq","a","prims","boolean","number","string","objs","item","hasOwnProperty","nodeList","apply","subGraph","getPosForId","secCount","posCrossRef","indexNodes2","result","count","posCount","childPos","getDepthFirstPos","indexNodes","getSubGraphs","firstGraph","destructStartLink","_str","destructEndLink","destructLink","_startStr","startInfo","lex","addVertices","vert","svgId","parentNode","addEdges","defaultStyles","linkId","linkNameStart","linkNameEnd","flowDb","flow","subG","linkNode","Render","flowChartShapes","arrows","none","normal","util","clusterRects","clusterEl","xPos","baseVal","value","yPos","cluster","te","classList","add","textColor","arrowheadColor","edgeLabelBackground","clusterBkg","clusterBorder","titleColor","secondBkg","border2","dateFormat","todayMarker","excludes","sections","tasks","currentSection","tags","inclusiveEndDates","lastOrder","taskCnt","lastTask","lastTaskID","rawTasks","setAxisFormat","getAxisFormat","setTodayMarker","getTodayMarker","setDateFormat","enableInclusiveEndDates","endDatesAreInclusive","getDateFormat","setExcludes","toLowerCase","getExcludes","addSection","getSections","getTasks","allItemsPricessed","compileTasks","maxDepth","iterationCount","isInvalidDate","date","isoWeekday","format","checkTaskDates","task","manualEndTime","startTime","moment","endTime","renderEndTime","fixTaskDates","toDate","invalid","getStartDate","prevTime","re","afterStatement","exec","latestEndingTask","findTaskById","dt","Date","setHours","mDate","isValid","durationToDate","durationStatement","relativeTime","getEndDate","inclusive","parseId","idStr","compileData","prevTask","dataStr","ds","getTaskTags","endTimeData","parseData","prevTaskId","startData","taskDb","addTask","rawTask","section","processed","raw","taskInfo","active","done","crit","milestone","order","addTaskOrg","newTask","description","compileTask","allProcessed","_linkStr","sanitizeUrl","pushFun","open","functionArgs","argList","charAt","callbackFunction","matchFound","t","regex","RegExp","shift","ganttDb","rightPadding","getElementById","parentElement","offsetWidth","useWidth","taskArray","timeScale","scaleTime","domain","rangeRound","categories","catsUnfiltered","checkUnique","taskCompare","b","taskA","taskB","makeGant","pageWidth","pageHeight","gap","colorScale","scaleLinear","range","interpolateHcl","makeGrid","drawRects","vertLabels","drawToday","theArray","theGap","theTopPad","theSidePad","theBarHeight","theColorScale","enter","rectangles","toString","secNum","taskClass","startX","endX","textWidth","taskType","xAxis","axisBottom","tickSize","tickFormat","timeFormat","call","numOccurances","prevGap","getCount","todayG","today","todayLine","arr","hash","getCounts","obj","word","sectionBkgColor","sectionBkgColor2","altSectionBkgColor","gridColor","todayLineColor","taskTextDarkColor","taskTextClickableColor","taskTextColor","taskBkgColor","taskBorderColor","taskTextOutsideColor","activeTaskBkgColor","activeTaskBorderColor","doneTaskBorderColor","doneTaskBkgColor","critBorderColor","critBkgColor","commits","branches","master","curBranch","seq","getId","random","isfastforwardable","currentCommit","otherCommit","isReachableFrom","currentSeq","otherSeq","uniqBy","fn","recordMap","create","reduce","out","setOptions","rawOptString","message","getOptions","commit","msg","branch","merge","otherBranch","checkout","commitRef","ref","parentCount","parseInt","upsert","newval","index","splice","prettyPrintCommitHistory","commitArr","c","newCommit","nextCommit","prettyPrint","getCommitsArray","getBranchesAsObjArray","branchArr","getBranches","getCommits","o","getCurrentBranch","getHead","allCommitsDict","branchNum","nodeFillColor","nodeStrokeWidth","nodeStrokeColor","lineStrokeWidth","branchOffset","leftMargin","branchColors","nodeRadius","nodeLabel","apiConfig","svgCreateDefs","svgDrawLine","colorIdx","color","lineGen","round","getElementCoords","coords","ctm","getCTM","xn","yn","svgDrawLineForCommits","fromId","toId","fromBbox","toBbox","lineStart","lineEnd","cloneNode","selector","renderCommitHistory","commitid","numCommits","size","branchName","renderLines","branchColor","lineDrawn","ver","gitGraphParser","db","assign","setMessage","getMessage","setInfo","inf","getInfo","infoParser","cleanupValue","pie","pieParser","pieData","margin","legendRectSize","legendSpacing","sum","scaleOrdinal","schemeSet2","d3pie","dataReady","entries","arcGenerator","arc","innerRadius","outerRadius","toFixed","centroid","legend","horz","prevActor","actors","messages","notes","titleWrapped","sequenceNumbersEnabled","wrapEnabled","addActor","old","autoWrap","nextActor","activationCount","part","LINETYPE","ACTIVE_START","from","actor","ACTIVE_END","addMessage","idFrom","idTo","answer","to","addSignal","messageType","Error","token","loc","first_line","last_line","first_column","last_column","expected","getMessages","getActors","getActor","getActorKeys","getTitleWrapped","enableSequenceNumbers","setWrap","wrapSetting","parseMessage","SOLID","DOTTED","NOTE","SOLID_CROSS","DOTTED_CROSS","SOLID_OPEN","DOTTED_OPEN","LOOP_START","LOOP_END","ALT_START","ALT_ELSE","ALT_END","OPT_START","OPT_END","PAR_START","PAR_AND","PAR_END","RECT_START","RECT_END","ARROWTYPE","FILLED","OPEN","PLACEMENT","LEFTOF","RIGHTOF","OVER","addNote","placement","titleWrap","param","signalType","loopText","optText","altText","parText","sequenceDb","startx","stopx","starty","stopy","sequenceItems","activations","models","getHeight","loops","it","acc","actorModel","addLoop","loopModel","msgModel","noteModel","lastActor","lastLoop","lastMessage","lastNote","init","updateVal","val","updateBounds","_self","updateFn","updateItemBounds","n","_startx","_stopx","_starty","_stopy","newActivation","actorRect","stackedSize","actorActivations","anchored","anchorElement","endActivation","lastActorActivationIdx","activation","lastIndexOf","createLoop","newLoop","endLoop","pop","addSectionToLoop","loop","sectionTitles","getVerticalPos","bumpVerticalPos","bump","getBounds","drawNote","getNoteRect","rectElem","drawRect","textObj","getTextObj","anchor","textMargin","valign","textElem","drawText","curr","drawMessage","sequenceIndex","lines","textDims","calculateTextDimensions","totalOffset","lineStarty","fromBounds","toBounds","drawActors","actorKeys","prevWidth","prevMargin","drawActor","activationBounds","actorObj","adjustLoopHeightForWrap","loopWidths","preMargin","postMargin","addLoopFn","heightAdjust","loopWidth","textConf","wrapLabel","maxMessageWidthPerActor","getMaxMessageWidthPerActor","calculateActorMargins","calculateLoopBounds","insertArrowHead","insertArrowCrossHead","insertSequenceNumber","activeEnd","activationData","drawActivation","drawLoop","drawBackgroundRect","includes","box","actorLines","extraVertForTitle","isNote","isMessage","textFont","wrappedMessage","messageDimensions","messageWidth","actorToMessageWidth","prop","actDims","actorKey","actorWidth","buildNoteModel","shouldWrap","textDimensions","buildMessageModel","process","fromIdx","toIdx","allBounds","boundedWidth","msgDims","stack","current","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","toAdd","enabled","stk","actorBorder","actorBkg","actorTextColor","actorLineColor","signalColor","sequenceNumberColor","signalTextColor","labelBoxBorderColor","labelBoxBkgColor","labelTextColor","loopTextColor","noteBorderColor","noteBkgColor","noteTextColor","activationBkgColor","activationBorderColor","rectData","textData","prevTextHeight","textElems","yfunc","dominantBaseline","alignmentBaseline","span","drawLabel","txtObject","genPoints","cut","actorCnt","center","_drawTextCandidateFunc","drawLoopLine","sectionHeight","lower","defs","byText","content","textAttrs","_setTextAttrs","byTspan","byFo","toText","fromTextAttrsDict","textPlacement","set","get","drawStartState","drawDivider","drawSimpleState","stateDef","drawDescrState","descriptions","isSecond","descrLine","descrBox","addTitleAndBox","altBkg","pad","dblPad","orgBox","orgWidth","orgX","titleWidth","graphBox","doc","lineY","drawEndState","drawForkJoinState","parentId","tmp","nText","_drawLongText","_text","tHeight","textBounds","drawState","stateInfo","stateBox","stateDb","titleRows","boundstmp","boxHeight","heightAdj","clone","rootDoc","setRootDoc","getRootDoc","docTranslator","first","stmt","state1","state2","currentDoc","newNode","generateId","docNode","getRootDocV2","extract","_doc","addState","newDoc","states","documents","root","currentDocument","startCnt","endCnt","addDescription","des","getState","getStates","logDocuments","_id1","_id2","_descr","theState","dividerCnt","getDividerId","trimColon","nodeDb","setupNode","altFlag","nodeData","noteData","groupData","position","arrowType","setupDoc","startId","endId","transformationLog","renderDoc","getLabelWidth","edgeFreeDoc","ranker","nodeSep","sub","boxBounds","noteDef","nodeCount","svgElem","dividers","pWidth","pShift","getAttribute","labelColor","background","tertiaryTextColor","primaryBorderColor","altBackground","allItemsProcessed","updateActors","tempActors","people","unique","Set","taskData","pieces","score","peeps","peopleList","journeyDb","taskMargin","taskFontSize","taskFontFamily","actorColours","sectionFills","sectionColours","drawActorLegend","person","colour","circleData","drawCircle","labelData","LEFT_MARGIN","initGraphics","actorNames","actorPos","actorName","drawTasks","fills","textColours","lastSection","sectionVHeight","taskPos","sectionNumber","drawSection","taskActors","drawTask","fillType0","fillType1","fillType2","fillType3","fillType4","fillType5","fillType6","fillType7","drawFace","faceData","circleElement","face","smile","d3arc","startAngle","PI","endAngle","sad","ambivalent","labelMargin","taskCount","graphics","LEVELS","fatal","setLogLevel","bind","time","arguments","mermaid","sequenceConfig","callback","Node","ganttConfig","now","innerHTML","decode","detectInit","svgCode","parseError","initialize","contentLoaded","graphInit","reinitialize","graphType","detectType","gitGraphAst","flowParser","sequenceParser","ganttParser","classParser","stateParser","infoDb","pieDb","journeyParser","encodeEntities","innerTxt","isInt","decodeEntities","_txt","cb","container","existingSvg","remove","userStyles","altFontFamily","flowRenderer","stylis","Stylis","rules","style1","createElement","gitGraphRenderer","flowRendererV2","sequenceDiagram","sequenceRenderer","ganttRenderer","classRenderer","classRendererV2","stateRenderer","stateRendererV2","infoRenderer","pkg","version","pieRenderer","erRenderer","journeyRenderer","errorRenderer","currentDirective","args","handleDirective","updateRendererConfigs","primaryColor","default","globalReset","themes","classDiagram","stateDiagram","calcThemeVariables","userOverRides","calcColors","errorBkgColor","errorTextColor","base","baseThemeVariables","dark","darkThemeVariables","defaultThemeVariables","forest","forestThemeVariables","neutral","neutralThemeVariables","mkBorder","col","darkMode","adjust","Theme","secondaryColor","border1","updateColors","relationColor","secondaryBorderColor","tertiaryBorderColor","primaryTextColor","invert","secondaryTextColor","defaultLinkColor","labelBackground","darken","lighten","taskTextLightColor","overrides","userOverrides","calculate","mainContrastColor","darkTextColor","rgba","contrast","critical","d3CurveTypes","curveBasisClosed","curveBasisOpen","curveLinearClosed","curveMonotoneX","curveMonotoneY","curveNatural","curveStep","curveStepAfter","curveStepBefore","directiveWithoutOpen","anyComment","inits","detectDirective","results","commentWithoutDirectives","source","lastIndex","memoize","resolver","cache","defaultCurve","curveName","toUpperCase","arrPaths","fnName","params","distance","pow","traverseEdge","prevPoint","totalDistance","remainingDistance","vectorDistance","distanceRatio","isRelationTypePresent","initialPosition","distanceToCardinalityPoint","angle","atan2","cardinalityPosition","sin","cos","makeid","characters","charactersLength","floor","dst","src","clobber","drawSimpleText","joinWith","words","completedLines","nextLine","wordLength","calculateTextWidth","nextLineLength","breakString","hyphenatedStrings","remainingWord","Boolean","currentWord","isLastWord","hyphenCharacter","currentLine","character","lineWidth","currentCharacter","isLastLine","hyphenatedNextLine","calculateTextHeight","fontFamilies","dims","cheight","bBox"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;;AAEb;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;ACxCA;AAAA;AAAA;AAAA;;AAEO;AACA;;;;;;;;;;;;;ACHP;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AAAA;AAAoC;AACF;;AAElC,sBAAsB,yDAAQ,CAAC,kDAAS;AACjC;AACA;AACQ,0EAAW,EAAC;;;;;;;;;;;;;ACN3B;AAAA;AAAoC;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,WAAW,0DAAS;AACpB;AACA;;;;;;;;;;;;;AChCA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA6B;;AAEd;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,+BAA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C,CAAC;;;;;;;;;;;;;AC3BD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACpBD;AAAe;AACf;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB;AACrB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACjCD;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAe;AACf;AACA;AACA;AACA;AACA,CAAC;;AAEM;AACP;AACA;;;;;;;;;;;;;ACTA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA8B;;AAEf;AACf,iCAAiC,+CAAM;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACbD;AAAe;AACf;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AAAoC;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAiC,kDAAS;;AAE1C;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACbD;AAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AAAA;AAAA;AAAA;AAA6B;AACQ;AACN;AACI;;AAEpB;AACf,WAAW,0CAAG,cAAc,+CAAM,OAAO,kDAAS;AAClD,uCAAuC,yDAAQ,iBAAiB,yDAAQ;AACxE,CAAC;;;;;;;;;;;;;ACRD;AAAA;AAAqC;;AAEtB;AACf,wCAAwC,0DAAS;AACjD,CAAC;;;;;;;;;;;;;ACJD;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClDA;AAAA;AAAwB;;AAET;AACf;AACA,uBAAuB,oDAAG,2CAA2C,SAAS;AAC9E,0DAA0D,SAAS;AACnE;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;;;;;;;;;;;;ACdA;AAAA;AAA8B;;AAEf;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,uDAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,uDAAM;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AChCD;AAAA;AAAoC;;AAErB;AACf,SAAS,0DAAS;AAClB,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAO;;;;;;;;;;;;;ACAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AACI;;AAElC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAsD;AACtD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yGAAyG,iDAAQ;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AAEA;AACA;AACA;AACA,uBAAuB,wCAAwC,EAAE;AACjE,wBAAwB,WAAW;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEA;AACA;AACA,UAAU,kDAAK,aAAa,kDAAK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEe;AACf;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,kBAAkB,4DAAQ;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,2DAAM;AAChB;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAsC,eAAe,EAAE;;AAEvD;;AAEA;AACA,oCAAoC,mCAAmC,EAAE;AACzE,qCAAqC,wBAAwB,EAAE;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC,gDAAgD,EAAE;AAC3F,uDAAuD,gCAAgC,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kEAAW;;AAE/B;AACA;AACA;AACA;AACA;;AAEA;AACA,WAAW;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,YAAY,+DAAS;AACrB;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,2DAAM;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC,gHAAgH,EAAE;AACpJ,kCAAkC,gGAAgG,EAAE;AACpI,sCAAsC,uGAAuG,EAAE;AAC/I,uCAAuC,uGAAuG,EAAE;AAChJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,gEAAW,KAAK,iDAAU;AAChC;AACA;;AAEA;AACA,wBAAwB,kDAAK;AAC7B;;AAEA;AACA,eAAe,kDAAK;AACpB,wBAAwB,kDAAK,2EAA2E,kDAAK;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,kDAAK;AAClD;AACA;AACA,kBAAkB,kDAAK,mBAAmB,kDAAK,iCAAiC,kDAAK;AACrF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,2DAAM;AACtB;;AAEA;AACA;;AAEA,QAAQ,kDAAK;AACb;AACA;AACA,KAAK;AACL,iBAAiB,2DAAM,CAAC,kDAAK;AAC7B;AACA;AACA;AACA;AACA;;AAEA,MAAM,2DAAW,CAAC,kDAAK;AACvB;;AAEA,IAAI,iEAAa;AACjB,IAAI,+DAAS;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,uDAAuD;AACvD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM,iEAAa;AACnB,UAAU,kDAAK;AACf,YAAY,kDAAK;AACjB;AACA,6CAA6C,oBAAoB,EAAE,OAAO;AAC1E,OAAO;AACP,QAAQ,0DAAU,CAAC,kDAAK;AACxB;AACA;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;;AAEA;AACA,cAAc,kDAAK;AACnB,kBAAkB;AAClB;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,UAAU;AAC5B;AACA,wCAAwC;AACxC,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;;AAEA;AACA,cAAc,kDAAK;AACnB,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,mCAAmC;AACnC,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA,gBAAgB,kDAAK;AACrB;AACA;AACA;AACA,aAAa;AACb,qCAAqC;AACrC,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2DAAO;AACb;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;;AAEA;AACA,sEAAsE,4DAAQ;AAC9E;;AAEA;AACA,sEAAsE,4DAAQ;AAC9E;;AAEA;AACA,yEAAyE,4DAAQ;AACjF;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;AC5kBA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAe;AACf;AACA;AACA;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AA;AAAA;AAAA;AAAA;AAAA;AAA2C;;AAEpC;;AAEA;AACA;;AAEP;AACA;AACA;AACA,yBAAyB,IAAI;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAM;AACN;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM;AACvB;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClXA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACyB;AACzB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,6CAAG,OAAO,4DAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,gDAAO;AACzC;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,uBAAuB,yDAAM,CAAC,+CAAK;AACzC;AACA,oBAAoB,kDAAQ,YAAY,kDAAQ;AAChD;AACA,GAAG;AACH;AACA,oBAAoB,gDAAM,YAAY,gDAAM;AAC5C;AACA,GAAG;AACH;AACA,iDAAiD,gDAAO;AACxD;AACA;AACA;AACA;AACA,eAAe,6CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC5DD;AAAA;AAAe;AACf;AACA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;;;;;;;;;;;;;ACTA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsD;AACE;AACJ;;;;;;;;;;;;;ACFpD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACO;AACP;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,6CAAG,OAAO,4DAAU;AACzC;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;;AAEe;AACf;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA,0DAAM,WAAW,yDAAM,CAAC,+CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,6CAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,iCAAiC,gDAAO;AACxC;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,gDAAO;AACvB;AACA;;AAEA,0DAAM,WAAW,yDAAM,CAAC,+CAAK;AAC7B;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1HD;AAAA;AAAA;AAAO;AACA;;;;;;;;;;;;;ACDP;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;;AAEO;;;;;;;;;;;;;ACFP;AAAe;AACf;AACA,CAAC;;;;;;;;;;;;;ACFD;AAAA;AAAA;AAAA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,iBAAiB,OAAO;AACxB,2BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1CA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAe;AACf;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,6CAA6C,OAAO;AACpD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,QAAQ;AACR;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AC1BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmE;AACrC;AACM;AACV;AACQ;AACA;AACR;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA,kBAAkB,yDAAgB;AAClC;;AAEA;AACA;;AAEA;AACA;AACA,mBAAmB,uDAAM;AACzB,WAAW,yDAAQ;AACnB,WAAW,sDAAK;AAChB,KAAK;AACL,2BAA2B,kDAAS;AACpC;;AAEA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,qDAAI;AACd;AACA,KAAK;;AAEL;AACA,mDAAmD,OAAO;AAC1D,YAAY,yDAAQ;AACpB;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,+DAA+D;AAC/D;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,+DAA+D;AAC/D;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,OAAO;AACP,iEAAiE;AACjE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAA4F,yDAAQ,CAAC,4CAAK,YAAY,yDAAQ;AAC9H;;AAEA;AACA,2DAA2D,6CAAI;AAC/D;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC1MD;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AAChB;AACM;AACF;AACA;;AAElC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,yDAAQ;;AAE1B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;AACpF,IAAI,mDAAK,EAAE,mCAAmC,GAAG,mCAAmC;;AAEpF;;AAEA;AACA;AACA,iBAAiB,oDAAG;AACpB,WAAW,yDAAQ;AACnB,WAAW,sDA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A;AAAA;AAA2B;;AAE3B,UAAU,uDAAG;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACVP;AAAA,YAAY;AACZ,YAAY;AACZ;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;AACA,GAAG,gBAAgB;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,YAAY,yCAAyC;AACrF;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,YAAY,yCAAyC;AACrF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACnKD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AACyE;AACA;AACrE;;;;;;;;;;;;;ACH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AACA,CAAC;;;;;;;;;;;;;ACxDD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqC;AACH;AACH;;AAExB;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,yDAAG;AAClB,gBAAgB,sDAAK;AACrB,cAAc,4DAAQ;;AAEtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA,OAAO;;AAEP,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACtJD;AAAA;AAAkC;;AAEnB;AACf,iBAAiB,yDAAQ;AACzB;AACA;AACA;;AAEA,mCAAmC,yDAAQ;;AAE3C;AACA,2CAA2C,OAAO;AAClD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wEAAwE,yDAAQ;AAChF;;AAEA;AACA,iEAAiE,yDAAQ;AACzE;;AAEA;AACA,CAAC;;;;;;;;;;;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uB,oDAAG;AAC1B;AACA,6BAA6B,gDAAO;AACpC;AACA,KAAK;AACL,8BAA8B,gDAAO;AACrC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB,oDAAG;AACpB,GAAG;AACH;AACA;AACA,EAAE,mDAAU;AACZ;AACA;;AAEA;AACA,EAAE,mDAAU;AACZ;;AAEA;AACA;AACA,EAAE,mDAAU;AACZ,MAAM,oDAAG,aAAa,gDAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA,EAAE,0DAAM;;AAER;AACA;AACA;;AAEA;AACA,4CAA4C,OAAO;AACnD;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA,2EAA2E,QAAQ;AACnF;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AClLD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsD;;AAE/C;AACP,UAAU,sDAAK,8BAA8B,qDAAI;AACjD;;AAEO;AACP,0DAA0D,oDAAG;AAC7D,mBAAmB,oDAAG,mBAAmB,oDAAG,UAAU,oDAAG;AACzD;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACO;AACP;AACA;;AAEO;AACP;AACA;;AAEA;AACO;AACP,UAAU,qDAAI;AACd;AACA;;;;;;;;;;;;;AChCA;AAAA;AAAA;AAAA;AAA2F;AAC9D;AACI;;AAEjC;AACA;AACA;AACA;AACA;AACA,eAAe;;AAEf;AACA,UAAU,gDAAI;AACd;AAC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;AAEA;AACA,kEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,2CAAE,IAAI,2CAAE;AACxD;AACA;AACA;AACA;AACA;AACA,yBAAyB,8DAAU,oBAAoB,8DAAU;AACjE,yBAAyB,gDAAO;AAChC,yBAAyB,gDAAO;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,8DAAU;AACxC;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,+DAAS;AACtB,aAAa,+DAAS;;AAEtB;AACA;AACA;AACA,aAAa,oEAAc;AAC3B,eAAe,kEAAY;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAgB,oEAAc;AAC9B,YAAY,oEAAc;AAC1B,YAAY,oEAAc;AAC1B,IAAI,yEAAmB;;AAEvB;AACA;AACA,YAAY,kEAAY;AACxB,aAAa,kEAAY;AACzB,2BAA2B,kEAAY;;AAEvC;;AAEA,YAAY,qDAAI;AAChB,YAAY,oEAAc;AAC1B,IAAI,yEAAmB;AACvB,QAAQ,+DAAS;;AAEjB;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gBAAgB,oDAAG,SAAS,2CAAE,IAAI,gDAAO;AACzC,oCAAoC,gDAAO;;AAE3C;;AAEA;AACA;AACA;AACA,sCAAsC,oDAAG,mBAAmB,gDAAO;AACnE;AACA,kBAAkB,2CAAE;AACpB,eAAe,oEAAc;AAC7B,MAAM,yEAAmB;AACzB,iBAAiB,+DAAS;AAC1B;AACA;;AAEA;AACA;AACA;AACA,mCAAmC,2CAAE;AACrC;AACA,+BAA+B;AAC/B,mCAAmC;AACnC,4BAA4B;AAC5B,gCAAgC;AAChC;AACA;;AAEA,SAAS,yDAAI,gEAAgE,2CAAE,WAAW,2CAAE;AAC5F,CAAC;;;;;;;;;;;;;ACrLD;AAAA;AAA2C;;AAE5B;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA+D,6DAAa;AAC5E,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqC;AACA;AACM;AACS;AACrB;;AAEhB;AACf;AACA;AACA,qBAAqB,0DAAU;AAC/B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,mBAAmB,sDAAK;AACxB,0BAA0B,mEAAe;AACzC;AACA;AACA,UAAU,0DAAU;AACpB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,OAAO;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,oCAAoC,+CAAM,GAAG,gDAAO,GAAG,+CAAM;AAC7D,oCAAoC,+CAAM,GAAG,gDAAO,GAAG,+CAAM;AAC7D;;;;;;;;;;;;;AClIA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1DD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwC;AACH;AACJ;AACI;AACN;;AAE/B;;AAEA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA,WAAW,oDAAG,cAAc,gDAAO;AACnC,UAAU,oDAAG,cAAc,gDAAO;AAClC,UAAU,oDAAG,cAAc,gDAAO;AAClC,gCAAgC;AAChC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAuB,0DAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,yCAAyC,OAAO;AAChD,kHAAkH,OAAO;AACzH;AACA,yBAAyB,yEAAyE;AAClG,gBAAgB,0EAA0E;AAC1F;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gCAAgC,sDAAK;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,0DAAU;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,cAAc,wDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;ACvKA;AAAA;AAA0C;;AAE1C;AACA;AACA;AACA,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,yBAAyB;AACzB;;AAEA;AACA;AACA;AACe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,8DAAU;AAClB;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;;AAEA,8BAA8B,OAAO;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C,SAAS;AACT;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,qCAAqC,QAAQ;AAC7C,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACpGA;AAAe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAAgE;AACd;AACN;;AAE5C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,mCAAmC;AACxE;AACA;;AAEA;AACP;AACA;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;;;;;;;;;;;;AClCA;AAAA;AAAe;;;;;;;;;;;;;ACAf;AAAA;AAAA;AAAA;AAAgC;AACD;AACD;;AAE9B,cAAc,yDAAK;AACnB,kBAAkB,yDAAK;AACvB;AACA;AACA;AACA;;AAEA;AACA,SAAS,gDAAI;AACb,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA,GAAG;AACH;AACA,mEAAmE,gDAAI;AACvE,gBAAgB,oDAAG;AACnB;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe,yEAAU,EAAC;;;;;;;;;;;;;ACjD1B;AAAA;AAA8B;;AAE9B;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf,gBAAgB,gDAAI;AACpB,cAAc,gDAAI;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC3B5B;AAAA;AAAgC;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AAC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AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA,SAAS,gDAAI;AACb;AACA;AACA,GAAG;AACH;AACA;AACA,yBAAyB,gDAAI;AAC7B,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,qDAAI;AACpB;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC5C5B;AAAA;AAAe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC1DA;AAAA;AAAuC;;AAExB;AACf,SAAS,oDAAG,gBAAgB,gDAAO,IAAI,oDAAG,gBAAgB,gDAAO;AACjE,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAA+B;AACqD;AACY;;AAEhG,UAAU,yDAAK;;AAEf;AACA,MAAM,oDAAG,cAAc,2CAAE;AACzB;AACA;AACA,WAAW,qDAAI,eAAe,oDAAG,aAAa,2CAAE,IAAI,4CAAG,GAAG,2CAAE;AAC5D;;AAEe;AACf;AACA;AACA,eAAe,oDAAG;AAClB,gBAAgB,oDAAG,WAAW,oDAAG;AACjC;AACA;;AAEA;;AAEA,0BAA0B,+CAAM,GAAG,gDAAO;AAC1C,iCAAiC,+CAAM,GAAG,gDAAO;;AAEjD,qCAAqC,OAAO;AAC5C;AACA;AACA;AACA;AACA;AACA,+BAA+B,kDAAS;AACxC,kBAAkB,oDAAG;AACrB,kBAAkB,oDAAG;;AAErB,mBAAmB,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AAAA;AAAO;AACP;AACA;;AAEO;AACP;AACA;AACA;;;;;;;;;;;;;ACPA;AAAA;AAAA;AAAO;;AAEA;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;ACfA;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnFD;AAAA;AAAO;AACP;AACA;;AAEe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAe;AACf;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO;AAC3D;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAe;AACf;AACA;AACA;AACA,kDAAkD,OAAO;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAe;AACf;AACA;AACA;AACA,+CAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACTD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoC;AACF;AACY;AACF;AACZ;AACE;AACA;AACU;AACI;AACV;AACF;;AAErB;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS,iDAAU;AACnB,QAAQ,gDAAS;AACjB,aAAa,qDAAc;AAC3B,cAAc,sDAAe;AAC7B,OAAO,+CAAQ;AACf,QAAQ,gDAAS;AACjB,QAAQ,gDAAS;AACjB,aAAa,qDAAc;AAC3B,eAAe,uDAAgB;AAC/B,UAAU,kDAAW;AACrB,SAAS,kDAAU;AACnB;AACA;;;;;;;;;;;;;AC9EA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA,wBAAwB;AACxB,kBAAkB,kCAAkC;AACpD;AACA,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACRD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7BA;AAAe;AACf;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACRD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgD;AACU;AACV;AACW;AACF;AACL;AACF;AACR;AACY;AACO;AACJ;AACE;AACQ;AACF;AACI;;;;;;;;;;;;;ACdrE;AAAA;AAA2C;;AAE5B;AACf,4BAA4B,yDAAO,CAAC,+CAAK;;AAEzC;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;;AAEA;;AAEA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa,kBAAkB;AAC/B,mBAAmB,cAAc;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACrHA;AAAA;AAAA;AAAA;AAA0C;AACD;AACa;;AAEtD;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA,gBAAgB,yDAAY;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,kCAAkC,yDAAY;AAC9C;AACA;AACA;AACA;AACA;;AAEA;AACA,wCAAwC,8DAAQ;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,uEAAuE,4DAAQ;AAC/E;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,OAAO;AAC/B,UAAU,gEAAW;AACrB,wBAAwB,OAAO;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9EA;AAAA;AAAA;AAAmC;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO;AACP;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,OAAO;AAC1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB,wCAAwC,KAAK,2DAAO;;AAEvE;AACA,aAAa,OAAO;;AAEpB;AACA;;AAEe;AACf;AACA;AACA,CAAC;;;;;;;;;;;;;ACrHD;AAAA;AAAA;AAA2C;AACC;;AAE7B;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,yDAAS;AACxC;AACA;;AAEA;AACA;AACA;AACA,QAAQ,gEAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnDD;AAAA;AAAA;AAAwC;AACiB;;AAEzD;AACA,eAAe,UAAU;AACzB;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB,yCAAyC,wDAAI;AAC7C;AACA;AACA;AACA;AACA;;AAEA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,oCAAoC,KAAK,EAAE,aAAa,iEAAa;AACzG;AACA;;AAEA;AACA;;AAEA;AACA,oCAAoC,8DAAQ;AAC5C;;AAEA;AACA,0CAA0C,8DAAQ;AAClD;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACxED;AAAA;AAA0C;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,gBAAgB;AAChB,aAAa;AACb,aAAa;AACb,aAAa;AACb,aAAa;AACb,gBAAgB;AAChB,aAAa;AACb;;AAEA,mCAAmC,wDAAI;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACe;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC5OD;AAAe;AACf;AACA;AACA;;AAEA,6BAA6B,OAAO;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC7CD;AAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACXD;AAAA;AAAA;AAAA;AAAA;AAAmC;AACE;AACI;AACa;;AAEvC;AACf,aAAa,oDAAQ;AACrB;AACA;AACA;AACA;AACA,qBAAqB,yDAAY;AACjC,mBAAmB,yDAAY;AAC/B,qBAAqB,yDAAY;AACjC,sBAAsB,yDAAY;AAClC,oBAAoB,yDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,iDAAS;AACxC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sCAAsC,8DAAQ;AAC9C;;AAEA;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mB,oDAAQ;AAC5D,UAAU,yDAAK;AACf,UAAU,yDAAK;AACf,gBAAgB,yDAAK;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACfA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB;AACA;AACA,CAAC;;AAEM;AACP;AACA;;;;;;;;;;;;;ACbA;AAAA;AAA+B;;AAEhB;AACf,YAAY;AACZ,YAAY;AACZ;;AAEA;AACA;;AAEA;AACA;AACA,aAAa,yDAAK;AAClB,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACtBD;AAAA;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACPA;AAAe;AACf;AACA,iBAAiB,OAAO;AACxB;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyC;AACV;AACY;AACD;;AAE3B;AACf,cAAc,uDAAK;;AAEnB;AACA,2BAA2B,oDAAQ,mBAAmB,oDAAQ;AAC9D;AACA;AACA,kBAAkB,yDAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC,IAAI,EAAC;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,cAAc,oDAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,yBAAyB,iDAAK;AAC9B,+BAA+B,uDAAW;;;;;;;;;;;;;ACtDjD;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAiC;;AAEjC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AAC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;AACA;AACA,iEAAiE,sDAAQ;AACzE;AACA,SAAS,6DAAS;AAClB;;;;;;;;;;;;;ACxBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+B;AACJ;AACa;AACX;AACI;AACA;AACA;AACI;AACuB;;AAE7C;AACf;AACA,wCAAwC,4DAAQ;AAChD,0BAA0B,kDAAM;AAChC,+BAA+B,sDAAK,eAAe,+CAAG,IAAI,kDAAM;AAChE,qBAAqB,8CAAK,GAAG,+CAAG;AAChC,4BAA4B,gDAAI;AAChC,QAAQ,qEAAa,MAAM,uDAAW;AACtC,2BAA2B,sDAAY;AACvC,0FAA0F,kDAAM;AAChG,QAAQ,kDAAM;AACd,CAAC;;;;;;;;;;;;;ACrBD;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,CAAC;;;;;;;;;;;;;AC/DD;AAAA;AAAA;AAAA;AAA0C;;;;;;;;;;;;;ACA1C;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA,6BAA6B;AAC7B;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe,mEAAI,EAAC;;;;;;;;;;;;;ACjIpB;AAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACdD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACfD;AAAA;AACA;AACA;AACA;AACe;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AAA+B;;AAE/B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,OAAO;AACxB,uBAAuB,yDAAK;AAC5B;AACA;;AAEA,gCAAgC;AAChC;;AAEe;AACf;;AAEA;AACA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA,aAAa,OAAO;;AAEpB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,mCAAmC,QAAQ;AAC3C,qBAAqB,qCAAqC;;AAE1D;AACA,CAAC;;;;;;;;;;;;;AChDD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiD;AACQ;AACR;AACQ;AACJ;;;;;;;;;;;;;ACJrD;AAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACtBD;AAAA;AAAe;AACf;AACA;AACA;AACA,CAAC;;AAED;AACA,wCAAwC;;AAExC;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,mDAAmD;AACnD,oDAAoD;AACpD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mDAAmD;AACnD,oDAAoD;AACpD,GAAG;AACH;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;;;;;;;;;;;;;ACnFA;AAAe;AACf,kDAAkD;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yCAAyC;AACzC,yCAAyC;AACzC,yCAAyC;AACzC,yCAAyC;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1CD;AAAe;AACf;AACA;AACA,8CAA8C;AAC9C,GAAG;AACH;AACA,CAAC;;;;;;;;;;;;;ACND;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAA6B;;AAEd;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2BAA2B,gDAAI;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,YAAY,gDAAI;AAChB,YAAY,gDAAI;AAChB,YAAY,gDAAI;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;;;;;;;;;;;;;ACb5B;AAAA;AAAA;AAAA;AAAkC;AACJ;;AAEvB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kDAAM;;AAEG,uHAAI,QAAQ,EAAC;;;;;;;;;;;;;ACb5B;AAAA;AAAA;AAAA;;AAEO;AACA;;;;;;;;;;;;;ACHP;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2C;AACV;AACD;;AAEjB;AACf,cAAc,wDAAO;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,sDAAQ,qBAAqB,yBAAyB,EAAE;AACzE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,+CAAS;AAClB;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEO;AACP;AACA;;;;;;;;;;;;;ACnGA;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgC;AACoE;AACjE;AACD;AACJ;;AAE9B;;AAEO;AACP;AACA;;AAEA;AACA;AACA,qBAAqB,oBAAoB;AACzC,QAAQ,yDAAQ;AAChB;;AAEA;AACA;AACA;AACA,sBAAsB,oCAAoC;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,kBAAkB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,YAAY,uDAAM;AAClB;AACA;AACA;;AAEO;AACP;AACA;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A;AAAA;AAAA;AAAA;AAAA;AAAmC;AACY;AACd;;AAEjC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO;AACP;;AAEA;AACA;AACA;;AAEA,SAAS,yDAAS;AAClB;;AAEe;AACf,wBAAwB,+DAAW;;AAEnC;AACA,WAAW,wDAAI;AACf;;AAEA,SAAS,+CAAS;AAClB;;;;;;;;;;;;;AClCA;AAAA;AAAA;AAAA;AAAA;AAAgC;AACF;AACG;;AAElB;AACf;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,uDAAM;AAChC;;AAEA;AACA,wCAAwC,4CAAK;AAC7C;;AAEA;AACA,uCAAuC,4CAAK;AAC5C;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,+CAAS;AAClB;;;;;;;;;;;;;ACvCA;AAAA;AAAA;AAAkC;AAC+E;;AAElG;AACf,aAAa,yDAAQ;AACrB;AACA,cAAc,iEAAe;AAC7B;AACA;AACA;AACA,4DAA4D,iEAAe;AAC3E,aAAa,8DAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,gEAAc;AAC1E;AACA;AACA;AACA;AACA,4DAA4D,gEAAc;AAC1E;AACA;AACA;AACA,SAAS,wDAAM;AACf,CAAC;;;;;;;;;;;;;AC5BD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA4C;AACsE;AACxE;AACd;AAC4B;AACvB;AACP;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEO;AACP,cAAc,2DAAU,CAAC,oDAAQ,EAAE,oDAAQ;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;A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;AAC9D,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAiC;;AAElB;AACf,mDAAmD,wDAAO;AAC1D;AACA;AACA,GAAG;AACH,CAAC;;;;;;;;;;;;;ACPD;AAAA;AAAqC;;AAErC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,0DAAS;;AAE1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACxDD;AAAe;AACf;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACLD;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC1ED;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AAAA;AAAA;AAAkC;AACA;AACC;;AAEnC,oBAAoB;;AAEpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ,gBAAgB;AACxB;AACA;AACA;AACA,KAAK;AACL,qBAAqB,gDAAS;AAC9B;AACA;;AAEA;AACA,QAAQ,iBAAiB;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;;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EA;AACA;AACA;AACA;AACA,0CAA0C,OAAO;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;AAEe;AACf;;AAEA;AACA;AACA,6CAA6C,OAAO;AACpD,4BAA4B,OAAO;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,aAAa,OAAO;AACpB;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;;;;;;AC1GA;AAAe;;AAEf,4DAA4D,SAAS;AACrE,4EAA4E,UAAU;AACtF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACZD;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC3BD;AAAA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACPD;AAAA;AAAA;AAAkC;AACC;;AAEpB;AACf,6CAA6C,yDAAQ;;AAErD,qFAAqF,OAAO;AAC5F,+GAA+G,OAAO;AACtH;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;;;;;AChBD;AAAA;AAAA;AAAkC;AACO;;AAE1B;AACf,6CAA6C,4DAAW;;AAExD,yFAAyF,OAAO;AAChG,8DAA8D,OAAO;AACrE;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,gDAAS;AACtB,CAAC;;;;;;;;;;;;;AChBD;AAAe;AACf;AACA,wBAAwB,QAAQ,EAAE;AAClC;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAkC;;AAEnB;AACf;;AAEA;AACA;AACA;;AAEA,sFAAsF,OAAO;AAC7F,wG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H;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,8CAA8C;AAC9C,uDAAuD;AACvD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B,oFAAoF;AAClH,iCAAiC;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AClDD;AAAA;AAAA;AAA8B;AACG;;AAEjC;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,4BAA4B;AAC1D,8BAA8B,4BAA4B,4FAA4F;AACtJ,eAAe,uDAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACnDD;AAAA;AAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,oFAAoF,0EAA0E;AAC5L,8BAA8B;AAC9B,eAAe,uDAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACtCD;AAAA;AAAiC;;AAEjC;AACA,oBAAoB,+CAAK;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,4BAA4B,+CAAK;AACjC;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,OAAO,EAAC;;;;;;;;;;;;;ACvDT;AAAA;AAAA;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,8CAA8C;AAC9C;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B,4BAA4B;AAC1D,8BAA8B;AAC9B,iCAAiC;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AC5DN;AAAA;AAAA;AAAA;AAA8B;AACM;;AAE7B;AACP;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,kDAAkD;AAChF,8BAA8B,4BAA4B;AAC1D,eAAe,0DAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AC5DN;AAAA;AAAA;AAAoC;;AAE7B;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,kGAAkG;AAChI,8BAA8B;AAC9B,eAAe,0DAAK,aAAa;AACjC;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,IAAI,EAAC;;;;;;;;;;;;;AChDN;AAAA;AAAA;AAAA;AAAmC;AACI;;AAEhC;AACP;AACA;AACA;AACA;;AAEA,oBAAoB,gDAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,gDAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,6CAA6C;AAC7C;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B;AAC9B,iCAAiC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,wDAAwD,qDAAQ;AAChE;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;ACvFR;AAAA;AAAA;AAAA;AAAmD;AACrB;AACQ;;AAEtC;AACA;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B,4BAA4B;AAC1D,8BAA8B,kDAAkD;AAChF,8BAA8B,4BAA4B;AAC1D,eAAe,4DAAK,aAAa;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,8DAA8D,iEAAc;AAC5E;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;ACzER;AAAA;AAAA;AAA+C;AACT;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA8B;AAC9B,8BAA8B;AAC9B,8BAA8B,kGAAkG;AAChI,8BAA8B;AAC9B,eAAe,4DAAK,aAAa;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;;AAEf;AACA,4DAA4D,6DAAY;AACxE;;AAEA;AACA;AACA;;AAEA;AACA,CAAC,MAAM,EAAC;;;;;;;;;;;;;AC7DR;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,0CAA0C;AAC1C;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AC9BD;AAAA;AAA8B;;AAE9B;AACA;AACA;;AAEA;AACA,aAAa,gDAAI;AACjB,WAAW,gDAAI;AACf;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;ACxBD;AAAA;AAAA;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,uDAAuD;AACvD,4DAA4D;AAC5D;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,iDAAiD;AACjD;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;AAC9B,8BAA8B,wDAAwD;AACtF,8DAA8D;AAC9D;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0BAA0B,4BAA4B,EAAE;AACxD,yBAAyB,2BAA2B,EAAE;AACtD,0BAA0B,4BAA4B,EAAE;AACxD,iDAAiD,mDAAmD;AACpG;;AAEO;AACP;AACA;;AAEO;AACP;AACA;;;;;;;;;;;;;ACvGA;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB;AACA,aAAa,OAAO;AACpB;AACA,iBAAiB,QAAQ;AACzB;AACA,aAAa,WAAW;AACxB;AACA;;AAEe;AACf;AACA,CAAC;;;;;;;;;;;;;AChED;AAAA;AAAA;AAAA;AAAsC;;AAE/B,oCAAoC,kDAAW;;AAEtD;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEe;;AAEf;AACA;AACA;;AAEA;;AAEA;AACA;;;;;;;;;;;;;ACnCA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,8BAA8B,sEAAsE;AACpG,8BAA8B;A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;AAA4C;AACA;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM,kEAAQ,CAAC,0DAAY;;AAEZ,uEAAQ,EAAC;;;;;;;;;;;;;ACZxB;AAAA;AAAA;AAWiB;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAU;AACV;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iDAAS,cAAc,yDAAS;AACxE,iBAAiB,8CAAM;AACvB;AACA;AACA;AACA,SAAS;AACT;AACA,wCAAwC,kDAAU,cAAc,0DAAU;AAC1E,iBAAiB,+CAAO;AACxB;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA,KAAK;AACL;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA;AACA;;AAEA,YAAY,4BAA4B;AACxC;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;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;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP,QAAQ;AACR,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB;AACpB;AACA,8BAA8B;AAC9B;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;;AC7GA;AAAA;AAAA;AAAiD;AACE;;AAEnD;;AAEe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA4C,iEAAS;AACrD,mBAAmB,+DAAU;AAC7B;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACpBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8B;AAC8B;AACd;AACM;;;;;;;;;;;;;ACHpD;AAAA;AAAiE;;AAElD;AACf;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,kDAAkD,eAAe,UAAU;AAC3E,8BAA8B,gEAAQ,qBAAqB,8DAAM;AACjE,qBAAqB,6DAAK;AAC1B;AACA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAA;AAAA;AAAuC;AACU;AACE;;AAEnD,sDAAS,uBAAuB,qDAAmB;AACnD,sDAAS,wBAAwB,sDAAoB;;;;;;;;;;;;;ACLrD;AAAA;AAAwC;;AAEzB;AACf;AACA,IAAI,6DAAS;AACb,GAAG;AACH,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAA;AAAA;AAAA;AAAyD;AACR;AACV;AACV;;AAE7B;AACA;AACA;AACA;AACA,QAAQ,sDAAc;AACtB;;AAEA;AACA;AACA;AACA;AACA,kCAAkC,oDAAG;AACrC;AACA;AACA;AACA;;AAEe;AACf;AACA;;AAEA,sBAAsB,+DAAU;AAChC;AACA,GAAG;AACH,SAAS,kEAAK,oCAAoC,oDAAG;AACrD;;AAEA,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,QAAQ,uEAAQ;AAChB;AACA;AACA;;AAEA,aAAa,+DAAU;AACvB,CAAC;;;;;;;;;;;;;ACzCD;AAAA;AAAA;AAAA;AAAA;AAA+E;AACxC;AACD;AACK;;AAE3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf,iBAAiB,8DAAS,uCAAuC,sEAAoB,GAAG,uDAAW;AACnG;AACA,sEAAsE,4DAAU;AAChF;AACA;AACA,CAAC;;;;;;;;;;;;;AC7ED;AAAA;AAAuC;;AAEvC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA,iBAAiB,8DAAS;AAC1B;AACA,CAAC;;;;;;;;;;;;;AC3CD;AAAA;AAAwC;;AAExC;AACA;AACA,IAAI,yDAAI;AACR;AACA;;AAEA;AACA;AACA,IAAI,yDAAI;AACR;AACA;;AAEe;AACf;;AAEA;AACA;AACA;AACA;AACA,QAAQ,wD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G;AACH,CAAC;;AAEM;AACP;AACA,0DAA0D;AAC1D;AACA;;AAEO;AACP;AACA,0DAA0D;AAC1D;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAe,sDAAK;;AAEpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C,sCAAsC,wDAAO;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wDAAwD;AACxD;AACA,0DAA0D;AAC1D;AACA,IAAI,wDAAO;AACX;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,wCAAwC;AACxC;;AAEA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC;AACpC;AACA;AACA;;;;;;;;;;;;;ACxJA;AAAA;AAAA;AAAA;AAAsC;AACA;AACM;;AAE7B;AACf;AACA;;AAEA,6CAA6C,6DAAQ;;AAErD,qFAAqF,OAAO;AAC5F,+GAA+G,OAAO;AACtH;AACA;AACA;AACA,QAAQ,4DAAQ,qCAAqC,wDAAG;AACxD;AACA;AACA;;AAEA,aAAa,oDAAU;AACvB,CAAC;;;;;;;;;;;;;ACrBD;AAAA;AAAA;AAAA;AAAyC;AACH;AACM;;AAE7B;AACf;AACA;;AAEA,6CAA6C,gEAAW;;AAExD,yFAAyF,OAAO;AAChG,8DAA8D,OAAO;AACrE;AACA,yFAAyF,wDAAG,uCAAuC,OAAO;AAC1I;AACA,YAAY,4DAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,aAAa,oDAAU;AACvB,CAAC;;;;;;;;;;;;;ACzBD;AAAA;AAAuC;;AAEvC,gBAAgB,sDAAS;;AAEV;AACf;AACA,CAAC;;;;;;;;;;;;;ACND;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+E;AAC5C;AACD;AACI;AACK;;AAE3C;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB,oDAAoD,0DAAK;AACzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,0DAAK;AACvB;AACA;AACA,6EAA6E,0DAAK;AAClF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,wDAAG;AACtB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf,yCAAyC,sEAAoB,GAAG,uDAAW;AAC3E;AACA;AACA;AACA;AACA,+CAA+C,4DAAU;AACzD;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;AC/ED;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAsC;;AAEtC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA,qBAAqB,4DAAU;AAC/B;AACA,CAAC;;;;;;;;;;;;;ACnBD;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAA;AAA6C;AACD;;AAE7B;AACf;AACA;AACA,YAAY,uDAAK;;AAEjB,2DAA2D,OAAO;AAClE,8DAA8D,OAAO;AACrE;AACA,sBAAsB,wDAAG;AACzB,QAAQ,4DAAQ;AAChB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA,aAAa,oDAAU;AACvB,CAAC;;;;;;;;;;;;;ACvBD;AAAA;AAAA;AAAuC;;AAEvC;AACA;AACA;AACA,mBAAmB,wDAAG;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,wDAAG;AACtB;;AAEA;AACA;AACA;AACA;AACA;AACA,oBAAoB,yBAAyB,2BAA2B,OAAO;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEe;AACf;;AAEA;;AAEA;AACA,gBAAgB,wDAAG;AACnB,wCAAwC,OAAO;AAC/C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAEM;AACP;;AAEA;AACA,mBAAmB,wDAAG;AACtB,2CAA2C;AAC3C,GAAG;;AAEH;AACA,WAAW,wDAAG;AACd;AACA;;;;;;;;;;;;;AChFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA4C;AACV;AACkB;AACN;AACH;;AAE3C;;AAEA;AACA,EAAE,kEAAY;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE,4DAAY;AACd,EAAE,gDAAO;AACT;AACA,EAAE,kEAAY;AACd;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,uCAAuC,gDAAO;AAC9C,wCAAwC,gDAAO;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE,4DAAY;;AAEd;AACA;AACA,uCAAuC,gDAAO;AAC9C,wCAAwC,gDAAO;AAC/C;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE,4DAAY;;AAEd;AACA;AACA,gBAAgB,cAAc;AAC9B;AACA;AACA,IAAI,wDAAU;AACd;;AAEA;AACA;AACA,cAAc,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AAY,iDAAQ;;AAEpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6DAA6D;;AAE7D;;AAEA;AACA,aAAa,gDAAO;;AAEpB;AACA;AACA;AACA,YAAY,iBAAiB,OAAO;AACpC,KAAK;AACL;AACA,YAAY,eAAe,OAAO;AAClC;AACA;;AAEA,EAAE,gDAAO;AACT;AACA;;AAEO;AACP;AACA;AACA;AACA,IAAI,gDAAO;AACX;AACA,IAAI,kEAAY;AAChB;AACA;AACA;;;;;;;;;;;;;AC7EA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8C;AACyB;AAClC;AACJ;AACS;;AAEnC;AACA;AACA;AACA;AACA;AACA;;AAEP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB,qDAAY;AAC5B,gBAAgB,qDAAY;;AAE5B;AACA,aAAa,mDAAW;AACxB;AACA;AACA,QAAQ,uDAAQ;AAChB;AACA;AACA;AACA,KAAK;AACL,MAAM,0DAAW;AACjB,KAAK;AACL;AACA;AACA;;AAEA,EAAE,+DAAiB;;AAEnB;AACA;AACA;AACA;AACA;AACA,IAAI,uDAAS;AACb,IAAI,uDAAS;AACb;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,oDAAoD,QAAQ,+DAAiB,iBAAiB,EAAE;AAChG;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;;AAEH;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;;AAEL;;AAEA;AACA;AACA;;;;;;;;;;;;;AC7IA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgD;;AAEzC;AACP;AACA,cAAc,8CAAK;AACnB;AACA;AACA;AACA;AACA,EAAE,8CAAK;AACP,EAAE,8CAAK;AACP;AACA;;AAEO;AACP;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA,0CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEO;AACP,UAAU,8CAAK;AACf;;AAEA;AACA,4BAA4B,8CAAK;AACjC;AACA,iDAAiD,gDAAO;AACxD,mDAAmD,gDAAO;AAC1D,aAAa,8CAAK;AAClB;AACA;AACA;;;;;;;;;;;;;ACvKA;AAAA;AAAA;AACA,gBAAgB;AAChB;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,yBAAyB,gBAAgB,QAAQ;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEe,2EAAY,EAAC;;;;;;;;;;;;;AC5O5B;AAAe;AACf;AACA;AACA;AACA,CAAC;;;;;;;;;;;;;ACJD;AAAA;AAAA;AAAA;AAA6C;;;;;;;;;;;;;ACA7C;AAAA;AAAA;AAAO;AACP;AACA;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AK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,sDAAQ;AAChC;;AAEA;AACA,UAAU,kDAAK,WAAW,kDAAK,0BAA0B,kDAAK;AAC9D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8DAAe;AACnC,kBAAkB,4DAAQ;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sDAAQ;AAC/B;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA,+CAA+C,uDAAS;AACxD;;AAEA;AACA;AACA,oEAAoE,uDAAS;AAC7E;;AAEA;AACA;AACA;;AAEA;AACA;AACA,sCAAsC,kCAAkC,EAAE;AAC1E,mDAAmD,gCAAgC,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B,kBAAkB,4BAA4B,SAAS,uDAAS,sCAAsC;AACtG;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,MAAM,gEAAW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AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;;;;;;;;;;;;ACrEA;;AAEA;AACA;AACA;;;;;;;;;;;;ACJA;;AAEA,oBAAoB,mBAAO,CAAC,iFAAkB;;AAE9C;;AAEA;AACA,uBAAuB,KAAK;AAC5B;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA,iBAAiB,uBAAuB;AACxC;AACA;AACA;AACA,OAAO,8BAA8B,GAAG,8BAA8B;AACtE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;AACA;AACA;;;;;;;;;;;;ACxDA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;;;;;;;;;;;AC/BA,WAAW,mBAAO,CAAC,oDAAS;;AAE5B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,cAAc,EAAE;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mC;;AAEA;AACA;;;;;;;;;;;;ACpCA,mBAAmB,mBAAO,CAAC,6EAAkB;AAC7C,mBAAmB,mBAAO,CAAC,6EAAkB;AAC7C,mBAAmB,mBAAO,CAAC,2EAAiB;;AAE5C;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACrCA,WAAW,mBAAO,CA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C,gCAAgC;AAChE,GAAG;;AAEH;AACA;AACA,gCAAgC,iBAAiB;AACjD;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvKa;;AAEb,oBAAoB,mBAAO,CAAC,2FAA4B;AACxD,uBAAuB,mBAAO,CAAC,iGAA+B;AAC9D,sBAAsB,mBAAO,CAAC,+FAA8B;AAC5D,uBAAuB,mBAAO,CAAC,iGAA+B;;AAE9D;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,eAAe;AACpB,KAAK,eAAe;AACpB,KAAK,eAAe;AACpB,KAAK;AACL;AACA;AACA,4CAA4C,wBAAwB,EAAE;;AAEtE;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;AChFA,QAAQ,mBAAO,CAAC,uDAAU;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;ACrDA;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,mBAAO,CAAC,4DAAgB;;AAEpC,UAAU,mBAAO,CAAC,wDAAc;AAChC,SAAS,mBAAO,CAAC,sDAAa;AAC9B;AACA,UAAU,mBAAO,CAAC,oDAAY;AAC9B,YAAY,mBAAO,CAAC,oDAAY;AAChC,GAAG;AACH,WAAW,mBAAO,CAAC,0DAAe;AAClC;;;;;;;;;;;;;AChCa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,gBAAgB,mBAAO,CAAC,4DAAc;;AAEtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;AClEA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,2BAA2B,YAAY;AACvC;AACA;;;;;;;;;;;;;ACrCa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;;AAE1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,+BAA+B,EAAE;AACrE,oCAAoC,+BAA+B,EAAE;AACrE;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC,wBAAwB,EAAE;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA,oCAAoC,sBAAsB,EAAE;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvDA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;AAC3B,YAAY,mBAAO,CAAC,wDAAY;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,mCAAmC,aAAa;;AAErE;AACA,kBAAkB,WAAW;AAC7B;AACA,GAAG;;AAEH;AACA,0BAA0B;AAC1B,GAAG;;AAEH;AACA;AACA,uBAAuB,eAAe;AACtC;AACA,uBAAuB,iBAAiB;AACxC;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;;;;;;;;;;;ACjCA;;AAEA;;AAEA,IAAI,IAA6B;AACjC;AACA,eAAe,mBAAO,CAAC,kDAAU;AACjC,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,YAAY,mBAAO,CAAC,wDAAY;AAChC,WAAW,mBAAO,CAAC,0DAAa;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,yCAAyC,wCAAwC;AACjF,yCAAyC,wCAAwC;AACjF;AACA,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,wBAAwB,EAAE;AAC9D;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,2BAA2B,gBAAgB;AAC3C,2BAA2B,gBAAgB;AAC3C,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D;AAC5D,4DAA4D;AAC5D;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yBAAyB;AACpD;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,+BAA+B;AACxC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,+BAA+B;AACxC,SAA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA,2CAA2C;AAC3C;;AAEA;;AAEA;AACA,oCAAoC,6BAA6B,EAAE;;AAEnE;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B,6BAA6B;AACvD;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA,0BAA0B,wCAAwC;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,uCAAuC,WAAW,EAAE;AACpD;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;ACnIa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,WAAW,mBAAO,CAAC,gDAAQ;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,wBAAwB,EAAE;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,sBAAsB,eAAe;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,2BAA2B;AACpD;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,2BAA2B;AAC9C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;ACzFA,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA,eAAe;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,4BAA4B;AACtD;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpDA,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,GAAG,oBAAoB;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;AC1BA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;;AAEjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAiB,YAAY,aAAa;AAClE,wCAAwC,kBAAkB,EAAE;;AAE5D;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,8BAA8B,oCAAoC;AAClE,OAAO;;AAEP;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACxEa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,qBAAqB;AACtC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uCAAuC,UAAU,EAAE;AACnD;AACA;AACA,cAAc;AACd,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,oDAAoD,UAAU,EAAE;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;;AClEa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,gBAAgB,mBAAO,CAAC,kEAAc;AACtC,iBAAiB,mBAAO,CAAC,oEAAe;AACxC,mBAAmB,mBAAO,CAAC,wEAAiB;AAC5C,sBAAsB,mBAAO,CAAC,gFAAqB;AACnD,6BAA6B,mBAAO,CAAC,8FAA4B;AACjE,YAAY,mBAAO,CAAC,yDAAa;AACjC,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,+BAA+B,cAAc;AAC7C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;;;;;;;;;;;;AC9Ea;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,sDAAsD,uBAAuB,EAAE;AAC/E,uDAAuD,WAAW,EAAE;;AAEpE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qDAAqD,uBAAuB,EAAE;AAC9E;;AAEA;AACA;;;;;;;;;;;;;ACrCa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;;AAEA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,sBAAsB;AACxD,8BAA8B,EAAE;AAChC;AACA;AACA;AACA,yCAAyC,0BAA0B;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAkD,sBAAsB,EAAE;AAC1E;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACzHA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,iBAAiB,mBAAO,CAAC,kEAAc;AACvC,uBAAuB,mBAAO,CAAC,gFAAqB;AACpD,WAAW,mBAAO,CAAC,sDAAQ;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;;;;;;;;;;;AC3EA,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA,sDAAsD,iBAAiB,EAAE;AACzE;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACxDA,QAAQ,mBAAO,CAAC,oDAAU;;AAE1B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;;AAEA;AACA;;;;;;;;;;;;;ACrFa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;AACjC,WAAW,mBAAO,CAAC,iDAAS;;AAE5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,SAAS;AACT;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,KAAK;AACL;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,cAAc;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,uCAAuC,eAAe,EAAE;AACxD;AACA,wDAAwD,SAAS;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sDAAsD,kBAAkB,EAAE;AAC1E;AACA,KAAK;AACL,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,0CAA0C,WAAW,EAAE;AACvD;AACA;AACA,KAAK;AACL,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;AAC1C,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC,0CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AClaa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,WAAW,mBAAO,CAAC,iDAAS;AAC5B,gBAAgB,mBAAO,CAAC,qDAAM;;AAE9B;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,oDAAoD,yBAAyB,EAAE;AAC/E;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;;;;;;;;;;;;;;AC5Ba;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,YAAY,mBAAO,CAAC,yDAAa;AACjC,YAAY,mBAAO,CAAC,qDAAQ;;AAE5B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,kBAAkB;;AAEvC;AACA;AACA;AACA,qBAAqB;;AAErB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB,0BAA0B;AAC1B;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;ACxFa;;AAEb,eAAe,mBAAO,CAAC,qDAAQ;AAC/B;AACA,mBAAmB,mBAAO,CAAC,uEAAiB;AAC5C,qBAAqB,mBAAO,CAAC,2EAAmB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD,wCAAwC;AACxC,4CAA4C;AAC5C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;;AC/Ca;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;AAC3B,mBAAmB,mBAAO,CAAC,uEAAiB;AAC5C,YAAY,mBAAO,CAAC,qDAAQ;AAC5B,eAAe,mBAAO,CAAC,qDAAQ;AAC/B,eAAe,mBAAO,CAAC,yDAAa;AACpC,gBAAgB,mBAAO,CAAC,yDAAa;AACrC,eAAe,mBAAO,CAAC,iDAAS;;AAEhC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH,6CAA6C,uBAAuB,EAAE;AACtE;;AAEA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;;AAEA;AACA,4CAA4C,0BAA0B,EAAE;AACxE;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACzOa;;AAEb,QAAQ,mBAAO,CAAC,qDAAW;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA,wBAAwB;AACxB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9DA;;AAEa;;AAEb,QAAQ,mBAAO,CAAC,oDAAU;AAC1B,YAAY,mBAAO,CAAC,wDAAY;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,kCAAkC,EAAE;AACxE;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA,8BAA8B,+BAA+B;AAC7D;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;;AAEA;AACA,0CAA0C,KAAK;AAC/C,KAAK,oBAAoB;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA,4DAA4D,WAAW,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gDAAgD,uBAAuB,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,mDAAmD,uBAAuB,EAAE;;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,iCAAiC,yBAAyB,EAAE;AAC5D;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;AC7OA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;;AAEe;AACf;AACA;AACA,iFAAiF;AACjF;AACA;;AAEA;AACA;;;;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,+BAA+B;AAC3C;AACA;AACA;AACA;;AAEA,UAAU,mBAAO,CAAC,mDAAO;;AAEzB;AACA;AACA,QAAQ,mBAAO,CAAC,uDAAY;AAC5B,OAAO,mBAAO,CAAC,2DAAW;AAC1B;AACA;;;;;;;;;;;;ACrCA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;AC1BA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,aAAa;AAClC;AACA;AACA,KAAK;AACL,oBAAoB,aAAa;AACjC;AACA;;;;;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,+DAAY;AACnC,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA,GAAG,IAAI;AACP;;;;;;;;;;;;ACTA,QAAQ,mBAAO,CAAC,wDAAW;AAC3B,oBAAoB,mBAAO,CAAC,kFAAwB;;AAEpD;;AAEA;;AAEA;AACA;AACA;AACA,2B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UAAU,mBAAO,CAAC,qDAAO;;AAEzB;;AAEA;AACA;AACA;;;;;;;;;;;;ACNA,UAAU,mBAAO,CAAC,qDAAO;;AAEzB;;AAEA;AACA;AACA;;;;;;;;;;;;ACNA,QAAQ,mBAAO,CAAC,wDAAW;AAC3B,YAAY,mBAAO,CAAC,sDAAU;AAC9B,oBAAoB,mBAAO,CAAC,kFAAwB;;AAEpD;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;ACnDA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;;;;;;;;;;;AC9CA,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,uCAAuC,gD;;;;;;;;;;;AClCvC,QAAQ,mBAAO,CAAC,wDAAW;;AAE3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAoC,cAAc,EAAE;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,6BAA6B;AAC3C;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACvJa;;AAEb,QAAQ,mBAAO,CAAC,uDAAU;;AAE1B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oEAAoE,WAAW;AAC/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;AAGA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC,oCAAoC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA,YAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,qBAAqB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA,kBAAkB,eAAe;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACnhBA;AACA;AACA,SAAS,mBAAO,CAAC,qDAAS;AAC1B,WAAW,mBAAO,CAAC,yDAAW;AAC9B;;;;;;;;;;;;ACJA,QAAQ,mBAAO,CAAC,uDAAU;AAC1B,YAAY,mBAAO,CAAC,qDAAS;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AA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S;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA,CAAC;AACD;AACA;;;;;;;;;;;;;AClJa;AACb;AACA,8CAA8C,cAAc;AAC5D,SAAS,mBAAO,CAAC,uDAAG;AACpB;AACA,+BAA+B,yBAAyB;AACxD;AACA;;;;;;;;;;;;;ACPa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,qDAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;;;;;;;;;;;;;AC1Ba;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C,eAAe,mBAAO,CAAC,uDAAW;AAClC;AACA;AACA;AACA,wBAAwB,EAAE,EAAE,IAAI,UAAU,EAAE;AAC5C;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnCa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACjDa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,qDAAU;AAChC,YAAY,mBAAO,CAAC,sDAAO;AAC3B,gBAAgB,mBAAO,CAAC,8DAAW;AACnC,YAAY,mBAAO,CAAC,sDAAO;AAC3B,YAAY,mBAAO,CAAC,sDAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,gJAAgJ;AAChJ;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC5Ca;AACb;AACA,8CAA8C,cAAc;AAC5D,YAAY,mBAAO,CAAC,sDAAO;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7Ka;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,iBAAiB,mBAAO,CAAC,6EAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,6BAA6B;AAC7B;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACnCa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,0DAAS;AAC/B;AACA;AACA;AACA,eAAe,UAAU;AACzB,iDAAiD;;;;;;;;;;;;;ACRpC;AACb;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D,SAAS,mBAAO,CAAC,8DAAW;;;;;;;;;;;;;ACNf;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,eAAe,mBAAO,CAAC,8DAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AChBa;AACb;AACA,8CAA8C,cAAc;AAC5D,cAAc,mBAAO,CAAC,2DAAU;AAChC,cAAc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AACA;AACA;AACA;;;;;;;;;;;;;ACfa;AACb;AACA,8CAA8C,cAAc;AAC5D,uBAAuB,mBAAO,CAAC,8EAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTa;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA,CAAC,oBAAoB;AACrB;AACA;;;;;;;;;;;;;ACVa;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,gBAAgB,EAAE;AAC3C,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,yCAAyC,EAAE;AACpE,yBAAyB,qCAAqC;AAC9D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACxFa;AACb;AACA,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,8DAAW;AACnC,aAAa,mBAAO,CAAC,wDAAQ;AAC7B,aAAa,mBAAO,CAAC,wDAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACba;AACb;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACTa;AACb;AACA,8CAA8C,cA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WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;AACnC,cAAc,mBAAO,CAAC,qDAAY;AAClC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;;AAEA;;;;;;;;;;;;ACXA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,SAAS,mBAAO,CAAC,yCAAM;;AAEvB;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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mBAAO,CAAC,+CAAS;AAC7B,eAAe,mBAAO,CAAC,qDAAY;AACnC,YAAY,mBAAO,CAAC,+CAAS;AAC7B,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,QAAQ;AACnB;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;ACpKA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;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rB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClFA,aAAa,mBAAO,CAAC,mDAAW;AAChC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,YAAY,mBAAO,CAAC,iDAAU;AAC9B,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACXA,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,uDAAa;AACpC,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,oCAAoC;;AAEpC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9CA,aAAa,mBAAO,CAAC,mDAAW;AAChC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,eAAe,mBAAO,CAAC,qDAAY;AACnC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3DA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,0BAA0B,mBAAO,CAAC,6EAAwB;AAC1D,eAAe,mBAAO,CAAC,qDAAY;AACnC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9BA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;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;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7FA,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,qDAAY;AAClC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,6BAA6B;AACxC,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL,YAAY;AACZ,GAAG;;AAEH;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACjCA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,YAAY,mBAAO,CAAC,+CAAS;;AAE7B;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;AClBA,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,qDAAY;AAClC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;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AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9CA,eAAe,mBAAO,CAAC,qDAAY;AACnC,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,aAAa,mBAAO,CAAC,mDAAW;AAChC,eAAe,mBAAO,CAAC,uDAAa;AACpC,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,eAAe,mBAAO,CAAC,uDAAa;AACpC,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,wBAAwB,mBAAO,CAAC,yEAAsB;AACtD,eAAe,mBAAO,CAAC,uDAAa;AACpC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACvEA,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACZA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,cAAc,mBAAO,CAAC,mDAAW;AACjC,YAAY,mBAAO,CAAC,iDAAU;AAC9B,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,yDAAW,mBAAO,CAAC,+CAAS;;AAE5B;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;;AClCA,uBAAuB,mBAAO,CAAC,uEAAqB;;AAEpD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA,aAAa,mBAAO,CAAC,mDAAW;;AAEhC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,uBAAuB,mBAAO,CAAC,uEAAqB;;AAEpD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxCA,uBAAuB,mBAAO,CAAC,uEAAqB;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,mBAAmB;AAC9B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,sBAAsB,mBAAO,CAAC,qEAAoB;;AAElD;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO,WAAW;AAC7B,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA,wBAAwB;;AAExB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACvCA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO,WAAW;AAC7B,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,WAAW,mBAAO,CAAC,+CAAS;;AAE5B;AACA;;AAEA;;;;;;;;;;;;ACLA,eAAe,mBAAO,CAAC,uDAAa;AACpC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;;;;;;;;;;;;ACpCA,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,+CAA+C;AAChF;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/GA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxFA,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,uDAAa;AACpC,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;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A;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACZA,eAAe,mBAAO,CAAC,uDAAa;AACpC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,cAAc,mBAAO,CAAC,mDAAW;AACjC,cAAc,mBAAO,CAAC,qDAAY;AAClC,eAAe,mBAAO,CAAC,qDAAY;AACnC,YAAY,mBAAO,CAAC,iDAAU;;AAE9B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7BA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACZA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;AClBA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACfA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,WAAW,mBAAO,CAAC,+CAAS;AAC5B,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,UAAU,mBAAO,CAAC,6CAAQ;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA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;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,+DAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH,CAAC;;AAED;;;;;;;;;;;;;AC7BA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA,YAAY,mBAAO,CAAC,iDAAU;;AAE9B;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;ACjBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACbA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,UAAU,mBAAO,CAAC,6CAAQ;AAC1B,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,EAAE;AACb,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,oBAAoB,mBAAO,CAAC,iEAAkB;;AAE9C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;;;;;;;;;;;;AC1BA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,EAAE;AACjD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3CA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA,gBAAgB,mBAAO,CAAC,yDAAc;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA,mBAAmB,SAAS,GAAG,SAAS;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,SAAS;AACtB;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,WAAW,SAAS,GAAG,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,eAAe,mBAAO,CAAC,uDAAa;AACpC,SAAS,mBAAO,CAAC,yCAAM;AACvB,qBAAqB,mBAAO,CAAC,mEAAmB;AAChD,aAAa,mBAAO,CAAC,iDAAU;;AAE/B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,eAAe,SAAS,GAAG,SAAS,GAAG,SAAS;AAChD,UAAU;AACV;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;;;;;;;;;;;;AC/DA,iBAAiB,mBAAO,CAAC,mDAAW;;;;;;;;;;;;ACApC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA,MAAM,8CAA8C;AACpD,MAAM;AACN;AACA;AACA,gCAAgC,kBAAkB,EAAE;AACpD;AACA;AACA;AACA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/CA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,EAAE;AACf;AACA;AACA;AACA,MAAM,+CAA+C;AACrD,MAAM,gDAAgD;AACtD,MAAM;AACN;AACA;AACA,8BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA;AACA,kBAAkB,2BAA2B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzCA,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA,MAAM,qCAAqC;AAC3C,MAAM,qCAAqC;AAC3C,MAAM;AACN;AACA;AACA,mCAAmC,2BAA2B,EAAE;AAChE;AACA;AACA;AACA,uBAAuB,kCAAkC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtDA,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACxCA,cAAc,mBAAO,CAAC,qDAAY;AAClC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,aAAa,mBAAO,CAAC,iDAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtCA,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB,QAAQ,OAAO,SAAS,EAAE;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA,iBAAiB,OAAO,SAAS;AACjC,yBAAyB,gBAAgB,SAAS,GAAG;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,cAAc,mBAAO,CAAC,qDAAY;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,aAAa;AACxB,aAAa,QAAQ;AACrB;AACA;AACA,0BAA0B,gBAAgB,SAAS,GAAG;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpBA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA,6BAA6B,kBAAkB,EAAE;AACjD;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAkB,EAAE;AAClE;AACA;AACA;;AAEA;;;;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzBA,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AChCA,yDAAW,mBAAO,CAAC,+CAAS;AAC5B,gBAAgB,mBAAO,CAAC,uDAAa;;AAErC;AACA,kBAAkB,KAA0B;;AAE5C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;;ACrCA,eAAe,mBAAO,CAAC,uDAAa;AACpC,aAAa,mBAAO,CAAC,mDAAW;AAChC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,cAAc,mBAAO,CAAC,mDAAW;AACjC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,eAAe,mBAAO,CAAC,qDAAY;AACnC,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,SAAS;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5EA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AClCA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7DA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,cAAc,mBAAO,CAAC,mDAAW;AACjC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,uBAAuB,mBAAO,CAAC,uEAAqB;AACpD,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACrBA,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,eAAe,mBAAO,CAAC,uDAAa;AACpC,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpCA,oBAAoB,mBAAO,CAAC,iEAAkB;AAC9C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,kBAAkB,mBAAO,CAAC,2DAAe;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnBA,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,qDAAY;AAClC,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,iBAAiB;AAC3B;AACA;AACA;AACA,MAAM,mBAAmB;AACzB,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACpDA,sBAAsB,mBAAO,CAAC,qEAAoB;AAClD,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,iBAAiB,+BAA+B;AAChD,iBAAiB;AACjB;AACA;AACA,mCAAmC,cAAc,EAAE;AACnD,UAAU,2BAA2B;AACrC;AACA;AACA;AACA,UAAU,2BAA2B;AACrC;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;AC1CA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,aAAa,mBAAO,CAAC,mDAAW;AAChC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,MAAM;AACjB,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC5BA,eAAe,mBAAO,CAAC,uDAAa;;AAEpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa,SAAS;AACtB;AACA;AACA,iBAAiB;AACjB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACxEA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB,aAAa,OAAO;AACpB;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,YAAY,SAAS,GAAG,SAAS;AACjC;AACA;AACA;AACA,UAAU,QAAQ,iBAAiB,GAAG,iBAAiB;AACvD;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;ACtCA,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,aAAa,mBAAO,CAAC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;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,aAAa,SAAS;AACtB;AACA;AACA;AACA,MAAM,OAAO,SAAS,EAAE;AACxB,MAAM,OAAO,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA,kBAAkB,mBAAO,CAAC,6DAAgB;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,cAAc,mBAAO,CAAC,mDAAW;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,aAAa,yBAAyB;AACtC;AACA;AACA,IAAI,IAAI;AACR,UAAU,8BAA8B;AACxC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;AClDA,eAAe,mBAAO,CAAC,uDAAa;AACpC,aAAa,mBAAO,CAAC,mDAAW;AAChC,kBAAkB,mBAAO,CAAC,2DAAe;AACzC,eAAe,mBAAO,CAAC,qDAAY;AACnC,iBAAiB,mBAAO,CAAC,2DAAe;;AAExC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,WAAW,iBAAiB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC7CA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,qBAAqB,mBAAO,CAAC,mEAAmB;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,WAAW,yBAAyB;AACpC;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM,8BAA8B;AACpC,MAAM;AACN;AACA;AACA,iCAAiC,eAAe,EAAE;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACzCA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;;ACnCA,eAAe,mBAAO,CAAC,qDAAY;AACnC,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACjEA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,aAAa,mBAAO,CAAC,iDAAU;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA,aAAa,SAAS;AACtB,UAAU;AACV;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC/BA,mBAAmB,mBAAO,CAAC,+DAAiB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,gBAAgB,mBAAO,CAAC,yDAAc;AACtC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,mBAAmB,mBAAO,CAAC,+DAAiB;AAC5C,cAAc,mBAAO,CAAC,mDAAW;AACjC,eAAe,mBAAO,CAAC,qDAAY;AACnC,iBAAiB,mBAAO,CAAC,yDAAc;AACvC,eAAe,mBAAO,CAAC,qDAAY;AACnC,mBAAmB,mBAAO,CAAC,6DAAgB;;AAE3C;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,EAAE;AACb,aAAa,EAAE;AACf;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,gBAAgB,yBAAyB;AACzC;AACA,IAAI,IAAI;AACR,UAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;;;;;;;;;;;;AChEA,kBAAkB,mBAAO,CAAC,6DAAgB;AAC1C,eAAe,mBAAO,CAAC,uDAAa;AACpC,eAAe,mBAAO,CAAC,uDAAa;AACpC,wBAAwB,mBAAO,CAAC,uEAAqB;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,aAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;;;;;;;;;;;ACzBA,eAAe,mBAAO,CAAC,qDAAY;;AAEnC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;AC3BA,iBAAiB,mBAAO,CAAC,2DAAe;AACxC,WAAW,mBAAO,CAAC,6CAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;A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AA2Q,IAAI,4BAA4B,oCAAoC,yBAAyB,oBAAoB,mDAAmD,iDAAiD,kBAAkB,gDAAgD,kBAAkB,qCAAqC,4BAA4B,iBAAiB,wBAAwB,wBAAwB,0FAA0F,4BAA4B,wBAAwB,4CAA4C,6DAA6D,6BAA6B,+BAA+B,+BAA+B,gDAAgD,YAAY,aAAa,oFAAoF,gGAAgG,aAAa,sBAAsB,aAAa,iCAAiC,iCAAiC,uDAAuD,qDAAqD,uCAAuC,4EAA4E,gCAAgC,0BAA0B,2GAA2G,6BAA6B,2OAA2O,GAAG,E;;;;;;;;;;;;;;;;;;;;;;;ACA1koD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,QAAQ;AACxC;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,MAAM;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,oCAAoC,8BAA8B;AAClE;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,oBAAoB;AAC9B;AACA;;AAEA;AACA,UAAU,UAAU;AACpB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;;AAEA;AACA,+BAA+B,sBAAsB;AACrD;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2BAA2B,QAAQ;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,QAAQ;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAmB,eAAe;AAClC;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC7SA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;;;;;ACvLtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,CAAC,KAA4D;AAC7D,EAAE,SACmC;AACrC,CAAC,aAAa,GAAG,uCAAuC;;AAExD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,GAAG,gCAAgC;AAC7D,qBAAqB,6CAA6C;AAClE,mBAAmB,GAAG,KAAK,KAAK,kCAAkC;AAClE,oBAAoB,GAAG;AACvB;AACA,mCAAmC,EAAE;AACrC;AACA;AACA,+BAA+B;AAC/B,6EAA6E;AAC7E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB;AACxB,2BAA2B;AAC3B,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA,6BAA6B,cAAc;;AAE3C;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gCAAgC,YAAY;;AAE5C;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,8DAA8D,YAAY;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,YAAY;AAChD,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE,0CAA0C;AAC1C,4CAA4C;AAC5C;AACA;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C;AAC3C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,sDAAsD;AACtD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;;AAEA,yBAAyB;AACzB;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,YAAY;AAChE;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B;;AAE1B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,cAAc;AAC1B;AACA;AACA,sFAAsF,YAAY;AAClG;AACA;AACA;;AAEA,qEAAqE,OAAO;AAC5E;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,cAAc;AAC1B,YAAY,cAAc;AAC1B,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,sCAAsC,aAAa;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,yBAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA,yBAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,WAAW;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY,oDAAoD;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,4CAA4C,YAAY;AACxD;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,EAAE;AACd;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,oCAAoC;AACpC,sCAAsC;AACtC,wCAAwC;AACxC,0CAA0C;AAC1C,wCAAwC;AACxC;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,CAAC;;;;;;;;;;;;AC/pDD;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;ACnBA;AACA;AACA;AACA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C,cAAwDF,KAAxD,cAAiEC,MAAjE,CAAV;AACA9B,gDAAM,CAAC0Q,KAAP,mBAAwB8R,IAAxB;AACAP,SAAO,CAACrhB,IAAR,CAAa,SAAb,EAAwB4hB,IAAxB;AACD,CA9FM;AAgGQ;AACbV,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACtPA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,y+BAAy+B;AACp/B,aAAa,qjBAAqjB;AAClkB;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,iC;AACrB;AACA;AACA,wB;AACA;AACA;AACA,e;AACA;AACA;AACA,qC;AACA;AACA;AACA,4B;AACA;AACA;AACA,wB;AACA;AACA;AACA,2CAA2C,0B;AAC3C;AACA;AACA;AACA;AACA;AACA,iDAAiD,wBAAwB;AACzE;AACA;AACA,mC;AACA;AACA;AACA,mB;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC;AAClC;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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,kCAAkC;AAChE;AACA;AACA;AACA;AACA;AACA,wCAAwC,kBAAkB;AAC1D;AACA;AACA;AACA,oDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,yBAAyB,4HAA4H,oBAAoB,WAAW,yBAAyB,gQAAgQ;AAChiB,aAAa,UAAU,kCAAkC,YAAY,kCAAkC,WAAW,2CAA2C,mBAAmB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,YAAY;AAC/T,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvyBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAtjB,OAAO;AAAA,gDAEfA,OAAO,CAACujB,UAFO,wBAGfvjB,OAAO,CAACwjB,SAHO,gDAKRxjB,OAAO,CAAC2W,UALA,gL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Lud,OAAG,CAACxe,IAAJ,CAAS,QAAT,EAAmBkB,MAAnB;AACAsd,OAAG,CAACxe,IAAJ,CAAS,OAAT,EAAkBiB,KAAlB;AACD;;AAEDud,KAAG,CAACxe,IAAJ,CAAS,SAAT,YAAuB2hB,SAAS,CAAClgB,CAAV,GAAcN,OAArC,cAAgDwgB,SAAS,CAACjgB,CAAV,GAAcP,OAA9D,cAAyEF,KAAzE,cAAkFC,MAAlF;AACD,CA5FM,C,CA4FJ;;AAEY;AACbggB,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACrWA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,kfAAkf;AAC7f,aAAa,+QAA+Q;AAC5R;AACA;AACA;;AAEA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uEAAuE;;AAEvE;AACA;AACA,iBAAiB,oCAAoC;AACrD;AACA;;AAEA,kBAAkB;AAClB,kEAAkE;;AAElE;AACA;AACA,qC;AACA;AACA;AACA,sC;AACA;AACA;AACA,qC;AACA;AACA;AACA,kC;AACA;AACA;AACA,4C;AACA;AACA;AACA,wC;AACA;AACA;AACA,mC;AACA;AACA;AACA,iB;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,8B;AACrB;AACA;AACA,CAAC;AACD,SAAS,0BAA0B,EAAE,MAAM,cAAc,IAAI,GAAG,0BAA0B,EAAE,cAAc,EAAE,UAAU,EAAE,qEAAqE,EAAE,QAAQ,EAAE,uBAAuB,gCAAgC,QAAQ,gBAAgB,oCAAoC,0CAA0C,wCAAwC,6BAA6B,UAAU,EAAE,gBAAgB,EAAE,UAAU,eAAe,aAAa,EAAE,0BAA0B,uEAAuE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,kCAAkC,8BAA8B,UAAU,EAAE,0BAA0B,EAAE,UAAU;AAC3uB,iBAAiB,+CAA+C;AAChE;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,yBAAyB,oBAAoB,8GAA8G,cAAc,uCAAuC,aAAa;AACpT,aAAa,kBAAkB,8BAA8B,mBAAmB,gCAAgC,kBAAkB,gCAAgC,YAAY;AAC9K,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,C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AK,CAAC7C,IAAN,EAAP;AACD,WAFD;AAGD;;AAED,YAAMK,MAAK,GAAGL,IAAI,CAACmB,MAAL,CAAY,QAAZ,CAAd;;AACA,YAAId,MAAJ,EAAW;AACTowB,kBAAQ,CAACluB,MAAT,CAAgB,YAAW;AACzB,mBAAOlC,MAAK,CAACL,IAAN,EAAP;AACD,WAFD;AAGD;AACF;AACF;AACF,GA9BD;AA+BD,CAxNM;AA0NQ;AACbshB,SAAO,EAAPA,OADa;AAEbuO,aAAW,EAAXA,WAFa;AAGbI,UAAQ,EAARA,QAHa;AAIbtU,YAAU,EAAVA,UAJa;AAKbsG,MAAI,EAAJA;AALa,CAAf,E;;;;;;;;;;;AC9eA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,spDAAspD;AACjqD,aAAa,w7BAAw7B;AACr8B;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,qC;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA,2BAA2B;AAC3B;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,8CAA8C,WAAW,qD;AACrG;AACA;AACA,8CAA8C,gDAAgD,WAAW,yD;AACzG;AACA;AACA,iCAAiC,aAAa;AAC9C;AACA;AACA,gCAAgC,aAAa;AAC7C;AACA;AACA,gCAAgC;AAChC;AACA;AACA,kCAAkC,qDAAqD;AACvF;AACA;AACA,oBAAoB;AACpB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,+BAA+B,kBAAkB;AACjD;AACA;AACA,uBAAuB;AACvB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,4CAA4C,WAAW;AACvD;AACA;AACA,kCAAkC,UAAU;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB,8CAA8C;AAChE;AACA;AACA,kBAAkB,4CAA4C;AAC9D;AACA;AACA,kBAAkB;AAClB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,WAAW;AACX;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,mBAAmB;AACnD;AACA,gCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;AACA;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA,2BAA2B,Y;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,iBAAiB,8BAA8B,mBAAmB,yBAAyB,mBAAmB,ucAAuc,25KAA25K,UAAU;AAC3+L,aAAa,mBAAmB,6BAA6B,kBAAkB,gCAAgC,mBAAmB,gCAAgC,mBAAmB,8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GAAG,UAAU;AAC/1B,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,kBAAkB,gCAAgC,oBAAoB,0BAA0B,qBAAqB,8TAA8T,yDAAyD,2BAA2B,6BAA6B,qDAAqD,2BAA2B,kBAAkB,kBAAkB;AACzqB,aAAa,mBAAmB,6BAA6B,kBAAkB,gCAAgC,mBAAmB,gCAAgC,mBAAmB,8BAA8B,iBAAiB,kCAAkC,iBAAiB,qCAAqC,SAAS,kCAAkC,UAAU,kCAAkC,YAAY;AAC/Z,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACnvBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY,CAAAt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AnD;AACxB,aAAO,CAACqnB,QAAQ,CAAC74B,MAAT,GAAkB,CAAnB,IAAwB7G,MAAM,CAACkjC,YAAtC;AACD,KAHD;AAID,GAhCD,CAgCE,OAAOh6B,CAAP,EAAU;AACVzH,kDAAM,CAACkR,KAAP,CAAa,gCAAb;AACAlR,kDAAM,CAACkR,KAAP,CAAazJ,CAAC,CAAC43B,OAAf;AACD;AACF,CArCM;AAuCQ;AACbvd,SAAO,EAAPA,OADa;AAEbW,MAAI,EAAJA;AAFa,CAAf,E;;;;;;;;;;;ACjVA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,uSAAuS;AAClT,aAAa,0JAA0J;AACvK;AACA;AACA;;AAEA;AACA;AACA;AACA,iB;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA,yBAAyB;AACzB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,QAAQ,cAAc,gBAAgB,gBAAgB,sBAAsB,EAAE,QAAQ,EAAE,gFAAgF,eAAe,SAAS,eAAe,UAAU,gBAAgB,0BAA0B,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,0BAA0B,EAAE,QAAQ,eAAe,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU;AAC1lB,iBAAiB,2GAA2G;AAC5H;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW,kCAAkC,WAAW,kCAAkC,YAAY;AACnH,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;ACvrBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAYeA,wEAAf,E;;;;;;;;;;;;ACZA;AAAA;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;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,mHAAmH;AAC9H,aAAa,gDAAgD;AAC7D;AACA;AACA;;AAEA;AACA;AACA;AACA,W;AACA;AACA;;AAEA;AACA;AACA,kB;AACA;AACA;AACA,CAAC;AACD,SAAS,YAAY,EAAE,MAAM,cAAc,IAAI,GAAG,iCAAiC,EAAE,QAAQ;AAC7F,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,aAAa,WAAW;AACxB,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA,CAAC;;;AAGD,IAAI,IAAgE;AACpE;AACA;AACA,6BAA6B,8CAA8C;AAC3E;AACA;AACA;AACA;AACA;AACA,iBAAiB,mBAAO,CAAC,0DAAI,eAAe,mBAAO,CAAC,qDAAM;AAC1D;AACA;AACA,IAAI,KAA6B,IAAI,4CAAY;AACjD;AACA;AACA,C;;;;;;;;;;;;;AC7mBA;AAAA,IAAMS,SAAS,GAAG,SAAZA,SAAY;AAAA;AAAA,CAAlB;;AAEeA,wEAAf,E;;;;;;;;;;;ACFA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,wOAAwO,mHAAmH;AACtW,aAAa,2FAA2F,2FAA2F;AACnM;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iD;AACA;AACA;AACA,sBAAsB,oB;AACtB;AACA;AACA,uBAAuB,qB;AACvB;AACA;AACA,6C;AACA;AACA;AACA,2CAA2C,4C;AAC3C;AACA;AACA,qBAAqB,+B;AACrB;AACA;AACA,CAAC;AACD,SAAS,mDAAmD,EAAE,MAAM,EAAE,oDAAoD,EAAE,oDAAoD,cAAc,KAAK,6CAA6C,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,cAAc,uDAAuD,GAAG,uBAAuB,iCAAiC,0BAA0B,EAAE,UAAU,EAAE,UAAU,8BAA8B,gBAAgB,uDAAuD,aAAa,EAAE,UAAU;AAChlB,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA,2BAA2B,iCAAiC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,U;AAC7B;AACA,yBAAyB,sB;AACzB;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,CAAAtjB,OAAO;AAAA,8FAIbA,OAAO,CAACw9B,iBAJK,iCAKNx9B,OAAO,CAAC2W,UALF,kDAQN3W,OAAO,CAAC2W,UARF,0BASb3W,OAAO,CAACsyB,SATK,sEAabtyB,OAAO,CAACw9B,iBAbK,iCAcNx9B,OAAO,CAAC2W,UAdF;AAAA,CAAzB;;AAmBe2M,wEAAf,E;;;;;;;;;;;ACnBA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA,eAAe,kCAAkC;AACjD,iBAAiB,kCAAkC;AACnD;AACA;AACA;AACA,qBAAqB,IAAI;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mJAAmJ;AACnJ,SAAS;;AAET;AACA;AACA,qBAAqB,+BAA+B;AACpD;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,WAAW,YAAY,IAAI,WAAW,SAAS;AACvE,cAAc,0BAA0B,EAAE;AAC1C,MAAM;AACN,WAAW,6yBAA6yB;AACxzB,aAAa,sfAAsf;AACngB;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAkB,c;AAClB;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,W;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,SAAS,+BAA+B;AACxC;AACA;;AAEA,oBAAoB,0FAA0F;AAC9G,iBAAiB,qEAAqE;AACtF;AACA;AACA;;AAEA,oBAAoB,wFAAwF;AAC5G,iBAAiB,oFAAoF;AACrG;AACA;AACA;;AAEA,oBAAoB,uFAAuF;AAC3G,iBAAiB,mFAAmF;A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B,SAAS,EAAE,SAAS,gBAAgB,SAAS,EAAE,SAAS,YAAY,KAAK,aAAa,KAAK,aAAa,KAAK,aAAa,WAAW,aAAa,WAAW,GAAG,iCAAiC,sFAAsF,aAAa,EAAE,mBAAmB,EAAE,UAAU,EAAE,UAAU,gBAAgB,aAAa,EAAE,UAAU,EAAE,UAAU,0DAA0D,wJAAwJ,EAAE,wJAAwJ,EAAE,wJAAwJ,EAAE,UAAU,EAAE,kKAAkK,EAAE,UAAU,EAAE,kKAAkK,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,0DAA0D,UAAU,gBAAgB,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,wCAAwC,YAAY,aAAa,YAAY,GAAG,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;AACpsF,iBAAiB,yKAAyK;AAC1L;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qCAAqC,W;AACrC;AACA,qCAAqC,W;AACrC;AACA,wBAAwB,6BAA6B,W;AACrD;AACA,wBAAwB,iBAAiB,W;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,W;AAC1B;AACA,wCAAwC,qBAAqB,W;AAC7D;AACA,yBAAyB,iBAAiB,oBAAoB,W;AAC9D;AACA,yBAAyB,iBAAiB,U;AAC1C;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,4BAA4B,W;AAC5B;AACA,yBAAyB,W;AACzB;AACA;AACA;A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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL,qDAAqD;AACrD;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;AACL,UAAU,wBAAwB;AAClC;AACA;AACA;AACA,qC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UAAU,EAAE,UAAU;AACrhB,iBAAiB,qCAAqC;AACtD;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA+D;AAC/D;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iCAAiC;AACjC,qBAAqB;AACrB;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK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OI,CARN;AASA,SAAOq3C,IAAI,CAAC5rB,KAAD,CAAX;AACD,CAxD2C,EAyD5C,UAACr/B,IAAD,EAAOvC,MAAP;AAAA,mBAAqBuC,IAArB,cAA6BvC,MAAM,CAACqa,QAApC,cAAgDra,MAAM,CAACsa,UAAvD,cAAqEta,MAAM,CAACgY,UAA5E;AAAA,CAzD4C,CAAvC;AA4DQ;AACb9X,iBAAe,EAAfA,eADa;AAEbyxC,WAAS,EAATA,SAFa;AAGb2b,qBAAmB,EAAnBA,mBAHa;AAIbf,oBAAkB,EAAlBA,kBAJa;AAKbhc,yBAAuB,EAAvBA,uBALa;AAMbkS,YAAU,EAAVA,UANa;AAObmH,iBAAe,EAAfA,eAPa;AAQb3G,YAAU,EAAVA,UARa;AASbj0B,oBAAkB,EAAlBA,kBATa;AAUbjM,oBAAkB,EAAlBA,kBAVa;AAWbpb,mBAAiB,EAAjBA,iBAXa;AAYbge,yBAAuB,EAAvBA,uBAZa;AAabpG,WAAS,EAATA,SAba;AAcbsD,oBAAkB,EAAlBA,kBAda;AAeby3B,YAAU,EAAVA,UAfa;AAgBbva,QAAM,EAANA,MAhBa;AAiBbkqB,SAAO,EAAPA,OAjBa;AAkBbjqC,SAAO,EAAPA;AAlBa,CAAf,E","file":"mermaid.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mermaid\"] = factory();\n\telse\n\t\troot[\"mermaid\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/mermaid.js\");\n","'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n","var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n","export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n","import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n","import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n","export default function(x) {\n return x;\n}\n","export {default as bisect, bisectRight, bisectLeft} from \"./bisect\";\nexport {default as ascending} from \"./ascending\";\nexport {default as bisector} from \"./bisector\";\nexport {default as cross} from \"./cross\";\nexport {default as descending} from \"./descending\";\nexport {default as deviation} from \"./deviation\";\nexport {default as extent} from \"./extent\";\nexport {default as histogram} from \"./histogram\";\nexport {default as thresholdFreedmanDiaconis} from \"./threshold/freedmanDiaconis\";\nexport {default as thresholdScott} from \"./threshold/scott\";\nexport {default as thresholdSturges} from \"./threshold/sturges\";\nexport {default as max} from \"./max\";\nexport {default as mean} from \"./mean\";\nexport {default as median} from \"./median\";\nexport {default as merge} from \"./merge\";\nexport {default as min} from \"./min\";\nexport {default as pairs} from \"./pairs\";\nexport {default as permute} from \"./permute\";\nexport {default as quantile} from \"./quantile\";\nexport {default as range} from \"./range\";\nexport {default as scan} from \"./scan\";\nexport {default as shuffle} from \"./shuffle\";\nexport {default as sum} from \"./sum\";\nexport {default as ticks, tickIncrement, tickStep} from \"./ticks\";\nexport {default as transpose} from \"./transpose\";\nexport {default as variance} from \"./variance\";\nexport {default as zip} from \"./zip\";\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n","import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n","export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n","export default function(x) {\n return x === null ? NaN : +x;\n}\n","export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n","export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n","import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n","export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n","import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n","export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n","import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n","import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n","export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n","var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n","import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n","import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n","export var slice = Array.prototype.slice;\n","import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n","export default function(x) {\n return x;\n}\n","export {\n axisTop,\n axisRight,\n axisBottom,\n axisLeft\n} from \"./axis\";\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n","export {\n default as brush,\n brushX,\n brushY,\n brushSelection\n} from \"./brush.js\";\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export var slice = Array.prototype.slice;\n","import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as chord} from \"./chord\";\nexport {default as ribbon} from \"./ribbon\";\n","export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n","import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n","export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n","export {default as nest} from \"./nest\";\nexport {default as set} from \"./set\";\nexport {default as map} from \"./map\";\nexport {default as keys} from \"./keys\";\nexport {default as values} from \"./values\";\nexport {default as entries} from \"./entries\";\n","export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n","export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n","import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n","import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n","export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","export {default as color, rgb, hsl} from \"./color.js\";\nexport {default as lab, hcl, lch, gray} from \"./lab.js\";\nexport {default as cubehelix} from \"./cubehelix.js\";\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n","export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n","var array = Array.prototype;\n\nexport var slice = array.slice;\n","export default function(a, b) {\n return a - b;\n}\n","// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n","import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n","import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n","export {default as contours} from \"./contours\";\nexport {default as contourDensity} from \"./density\";\n","export default function() {}\n","var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n","export {default as dispatch} from \"./dispatch.js\";\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n","export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n","export {default as drag} from \"./drag.js\";\nexport {default as dragDisable, yesdrag as dragEnable} from \"./nodrag.js\";\n","import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();","import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n","var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n","export {default as dsvFormat} from \"./dsv.js\";\nexport {csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue} from \"./csv.js\";\nexport {tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue} from \"./tsv.js\";\nexport {default as autoType} from \"./autoType.js\";\n","import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n","var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n","var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n","export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n","export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n","var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n","export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n","export {\n linear as easeLinear\n} from \"./linear.js\";\n\nexport {\n quadInOut as easeQuad,\n quadIn as easeQuadIn,\n quadOut as easeQuadOut,\n quadInOut as easeQuadInOut\n} from \"./quad.js\";\n\nexport {\n cubicInOut as easeCubic,\n cubicIn as easeCubicIn,\n cubicOut as easeCubicOut,\n cubicInOut as easeCubicInOut\n} from \"./cubic.js\";\n\nexport {\n polyInOut as easePoly,\n polyIn as easePolyIn,\n polyOut as easePolyOut,\n polyInOut as easePolyInOut\n} from \"./poly.js\";\n\nexport {\n sinInOut as easeSin,\n sinIn as easeSinIn,\n sinOut as easeSinOut,\n sinInOut as easeSinInOut\n} from \"./sin.js\";\n\nexport {\n expInOut as easeExp,\n expIn as easeExpIn,\n expOut as easeExpOut,\n expInOut as easeExpInOut\n} from \"./exp.js\";\n\nexport {\n circleInOut as easeCircle,\n circleIn as easeCircleIn,\n circleOut as easeCircleOut,\n circleInOut as easeCircleInOut\n} from \"./circle.js\";\n\nexport {\n bounceOut as easeBounce,\n bounceIn as easeBounceIn,\n bounceOut as easeBounceOut,\n bounceInOut as easeBounceInOut\n} from \"./bounce.js\";\n\nexport {\n backInOut as easeBack,\n backIn as easeBackIn,\n backOut as easeBackOut,\n backInOut as easeBackInOut\n} from \"./back.js\";\n\nexport {\n elasticOut as easeElastic,\n elasticIn as easeElasticIn,\n elasticOut as easeElasticOut,\n elasticInOut as easeElasticInOut\n} from \"./elastic.js\";\n","export function linear(t) {\n return +t;\n}\n","var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n","export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n","var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n","function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n","function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n","import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n","export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n","export {default as blob} from \"./blob\";\nexport {default as buffer} from \"./buffer\";\nexport {default as dsv, csv, tsv} from \"./dsv\";\nexport {default as image} from \"./image\";\nexport {default as json} from \"./json\";\nexport {default as text} from \"./text\";\nexport {default as xml, html, svg} from \"./xml\";\n","function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n","function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n","import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n","export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as forceCenter} from \"./center\";\nexport {default as forceCollide} from \"./collide\";\nexport {default as forceLink} from \"./link\";\nexport {default as forceManyBody} from \"./manyBody\";\nexport {default as forceRadial} from \"./radial\";\nexport {default as forceSimulation} from \"./simulation\";\nexport {default as forceX} from \"./x\";\nexport {default as forceY} from \"./y\";\n","export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n","import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n","// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n","export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n","export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n","// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n","// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n","import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n","export default function(x) {\n return x;\n}\n","export {default as formatDefaultLocale, format, formatPrefix} from \"./defaultLocale.js\";\nexport {default as formatLocale} from \"./locale.js\";\nexport {default as formatSpecifier, FormatSpecifier} from \"./formatSpecifier.js\";\nexport {default as precisionFixed} from \"./precisionFixed.js\";\nexport {default as precisionPrefix} from \"./precisionPrefix.js\";\nexport {default as precisionRound} from \"./precisionRound.js\";\n","import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n","// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n","import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n","import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n","import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n","import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n","import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n","import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n","import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n","import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n","import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n","import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n","export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n","import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n","import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n","export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n","import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n","import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n","export default function(x) {\n return x;\n}\n","export {default as geoArea} from \"./area.js\";\nexport {default as geoBounds} from \"./bounds.js\";\nexport {default as geoCentroid} from \"./centroid.js\";\nexport {default as geoCircle} from \"./circle.js\";\nexport {default as geoClipAntimeridian} from \"./clip/antimeridian.js\";\nexport {default as geoClipCircle} from \"./clip/circle.js\";\nexport {default as geoClipExtent} from \"./clip/extent.js\"; // DEPRECATED! Use d3.geoIdentity().clipExtent(…).\nexport {default as geoClipRectangle} from \"./clip/rectangle.js\";\nexport {default as geoContains} from \"./contains.js\";\nexport {default as geoDistance} from \"./distance.js\";\nexport {default as geoGraticule, graticule10 as geoGraticule10} from \"./graticule.js\";\nexport {default as geoInterpolate} from \"./interpolate.js\";\nexport {default as geoLength} from \"./length.js\";\nexport {default as geoPath} from \"./path/index.js\";\nexport {default as geoAlbers} from \"./projection/albers.js\";\nexport {default as geoAlbersUsa} from \"./projection/albersUsa.js\";\nexport {default as geoAzimuthalEqualArea, azimuthalEqualAreaRaw as geoAzimuthalEqualAreaRaw} from \"./projection/azimuthalEqualArea.js\";\nexport {default as geoAzimuthalEquidistant, azimuthalEquidistantRaw as geoAzimuthalEquidistantRaw} from \"./projection/azimuthalEquidistant.js\";\nexport {default as geoConicConformal, conicConformalRaw as geoConicConformalRaw} from \"./projection/conicConformal.js\";\nexport {default as geoConicEqualArea, conicEqualAreaRaw as geoConicEqualAreaRaw} from \"./projection/conicEqualArea.js\";\nexport {default as geoConicEquidistant, conicEquidistantRaw as geoConicEquidistantRaw} from \"./projection/conicEquidistant.js\";\nexport {default as geoEqualEarth, equalEarthRaw as geoEqualEarthRaw} from \"./projection/equalEarth.js\";\nexport {default as geoEquirectangular, equirectangularRaw as geoEquirectangularRaw} from \"./projection/equirectangular.js\";\nexport {default as geoGnomonic, gnomonicRaw as geoGnomonicRaw} from \"./projection/gnomonic.js\";\nexport {default as geoIdentity} from \"./projection/identity.js\";\nexport {default as geoProjection, projectionMutator as geoProjectionMutator} from \"./projection/index.js\";\nexport {default as geoMercator, mercatorRaw as geoMercatorRaw} from \"./projection/mercator.js\";\nexport {default as geoNaturalEarth1, naturalEarth1Raw as geoNaturalEarth1Raw} from \"./projection/naturalEarth1.js\";\nexport {default as geoOrthographic, orthographicRaw as geoOrthographicRaw} from \"./projection/orthographic.js\";\nexport {default as geoStereographic, stereographicRaw as geoStereographicRaw} from \"./projection/stereographic.js\";\nexport {default as geoTransverseMercator, transverseMercatorRaw as geoTransverseMercatorRaw} from \"./projection/transverseMercator.js\";\nexport {default as geoRotation} from \"./rotation.js\";\nexport {default as geoStream} from \"./stream.js\";\nexport {default as geoTransform} from \"./transform.js\";\n","import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n","import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n","export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n","export default function noop() {}\n","import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n","import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n","import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n","import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n","import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n","import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n","export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n","import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n","import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n","import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n","import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n","import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n","import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n","import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n","import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n","import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n","import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n","import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n","import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n","import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n","import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n","import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n","import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n","import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n","import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n","import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n","import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n","import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n","import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n","import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n","function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n","export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n","export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n","export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n","function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n","export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n","export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n","function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n","export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n","export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n","export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n","export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n","export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n","export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n","export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n","export {default as cluster} from \"./cluster.js\";\nexport {default as hierarchy} from \"./hierarchy/index.js\";\nexport {default as pack} from \"./pack/index.js\";\nexport {default as packSiblings} from \"./pack/siblings.js\";\nexport {default as packEnclose} from \"./pack/enclose.js\";\nexport {default as partition} from \"./partition.js\";\nexport {default as stratify} from \"./stratify.js\";\nexport {default as tree} from \"./tree.js\";\nexport {default as treemap} from \"./treemap/index.js\";\nexport {default as treemapBinary} from \"./treemap/binary.js\";\nexport {default as treemapDice} from \"./treemap/dice.js\";\nexport {default as treemapSlice} from \"./treemap/slice.js\";\nexport {default as treemapSliceDice} from \"./treemap/sliceDice.js\";\nexport {default as treemapSquarify} from \"./treemap/squarify.js\";\nexport {default as treemapResquarify} from \"./treemap/resquarify.js\";\n","import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n","import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n","import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n","import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n","import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n","import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n","export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n","import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n","import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n","import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n","import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n","export {default as interpolate} from \"./value.js\";\nexport {default as interpolateArray} from \"./array.js\";\nexport {default as interpolateBasis} from \"./basis.js\";\nexport {default as interpolateBasisClosed} from \"./basisClosed.js\";\nexport {default as interpolateDate} from \"./date.js\";\nexport {default as interpolateDiscrete} from \"./discrete.js\";\nexport {default as interpolateHue} from \"./hue.js\";\nexport {default as interpolateNumber} from \"./number.js\";\nexport {default as interpolateNumberArray} from \"./numberArray.js\";\nexport {default as interpolateObject} from \"./object.js\";\nexport {default as interpolateRound} from \"./round.js\";\nexport {default as interpolateString} from \"./string.js\";\nexport {interpolateTransformCss, interpolateTransformSvg} from \"./transform/index.js\";\nexport {default as interpolateZoom} from \"./zoom.js\";\nexport {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from \"./rgb.js\";\nexport {default as interpolateHsl, hslLong as interpolateHslLong} from \"./hsl.js\";\nexport {default as interpolateLab} from \"./lab.js\";\nexport {default as interpolateHcl, hclLong as interpolateHclLong} from \"./hcl.js\";\nexport {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from \"./cubehelix.js\";\nexport {default as piecewise} from \"./piecewise.js\";\nexport {default as quantize} from \"./quantize.js\";\n","import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n","import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n","import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n","import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n","export {default as path} from \"./path.js\";\n","var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n","export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n","// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n","import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n","export {default as polygonArea} from \"./area.js\";\nexport {default as polygonCentroid} from \"./centroid.js\";\nexport {default as polygonHull} from \"./hull.js\";\nexport {default as polygonContains} from \"./contains.js\";\nexport {default as polygonLength} from \"./length.js\";\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n","export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n","export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n","export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n","export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n","import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n","export {default as quadtree} from \"./quadtree.js\";\n","export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n","import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n","export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n","export default function() {\n return this._root;\n}\n","export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n","export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n","export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n","import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n","export default function() {\n return Math.random();\n}\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n","export {default as randomUniform} from \"./uniform\";\nexport {default as randomNormal} from \"./normal\";\nexport {default as randomLogNormal} from \"./logNormal\";\nexport {default as randomBates} from \"./bates\";\nexport {default as randomIrwinHall} from \"./irwinHall\";\nexport {default as randomExponential} from \"./exponential\";\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n","import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n","export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n","export {default as schemeCategory10} from \"./categorical/category10.js\";\nexport {default as schemeAccent} from \"./categorical/Accent.js\";\nexport {default as schemeDark2} from \"./categorical/Dark2.js\";\nexport {default as schemePaired} from \"./categorical/Paired.js\";\nexport {default as schemePastel1} from \"./categorical/Pastel1.js\";\nexport {default as schemePastel2} from \"./categorical/Pastel2.js\";\nexport {default as schemeSet1} from \"./categorical/Set1.js\";\nexport {default as schemeSet2} from \"./categorical/Set2.js\";\nexport {default as schemeSet3} from \"./categorical/Set3.js\";\nexport {default as schemeTableau10} from \"./categorical/Tableau10.js\";\nexport {default as interpolateBrBG, scheme as schemeBrBG} from \"./diverging/BrBG.js\";\nexport {default as interpolatePRGn, scheme as schemePRGn} from \"./diverging/PRGn.js\";\nexport {default as interpolatePiYG, scheme as schemePiYG} from \"./diverging/PiYG.js\";\nexport {default as interpolatePuOr, scheme as schemePuOr} from \"./diverging/PuOr.js\";\nexport {default as interpolateRdBu, scheme as schemeRdBu} from \"./diverging/RdBu.js\";\nexport {default as interpolateRdGy, scheme as schemeRdGy} from \"./diverging/RdGy.js\";\nexport {default as interpolateRdYlBu, scheme as schemeRdYlBu} from \"./diverging/RdYlBu.js\";\nexport {default as interpolateRdYlGn, scheme as schemeRdYlGn} from \"./diverging/RdYlGn.js\";\nexport {default as interpolateSpectral, scheme as schemeSpectral} from \"./diverging/Spectral.js\";\nexport {default as interpolateBuGn, scheme as schemeBuGn} from \"./sequential-multi/BuGn.js\";\nexport {default as interpolateBuPu, scheme as schemeBuPu} from \"./sequential-multi/BuPu.js\";\nexport {default as interpolateGnBu, scheme as schemeGnBu} from \"./sequential-multi/GnBu.js\";\nexport {default as interpolateOrRd, scheme as schemeOrRd} from \"./sequential-multi/OrRd.js\";\nexport {default as interpolatePuBuGn, scheme as schemePuBuGn} from \"./sequential-multi/PuBuGn.js\";\nexport {default as interpolatePuBu, scheme as schemePuBu} from \"./sequential-multi/PuBu.js\";\nexport {default as interpolatePuRd, scheme as schemePuRd} from \"./sequential-multi/PuRd.js\";\nexport {default as interpolateRdPu, scheme as schemeRdPu} from \"./sequential-multi/RdPu.js\";\nexport {default as interpolateYlGnBu, scheme as schemeYlGnBu} from \"./sequential-multi/YlGnBu.js\";\nexport {default as interpolateYlGn, scheme as schemeYlGn} from \"./sequential-multi/YlGn.js\";\nexport {default as interpolateYlOrBr, scheme as schemeYlOrBr} from \"./sequential-multi/YlOrBr.js\";\nexport {default as interpolateYlOrRd, scheme as schemeYlOrRd} from \"./sequential-multi/YlOrRd.js\";\nexport {default as interpolateBlues, scheme as schemeBlues} from \"./sequential-single/Blues.js\";\nexport {default as interpolateGreens, scheme as schemeGreens} from \"./sequential-single/Greens.js\";\nexport {default as interpolateGreys, scheme as schemeGreys} from \"./sequential-single/Greys.js\";\nexport {default as interpolatePurples, scheme as schemePurples} from \"./sequential-single/Purples.js\";\nexport {default as interpolateReds, scheme as schemeReds} from \"./sequential-single/Reds.js\";\nexport {default as interpolateOranges, scheme as schemeOranges} from \"./sequential-single/Oranges.js\";\nexport {default as interpolateCividis} from \"./sequential-multi/cividis.js\";\nexport {default as interpolateCubehelixDefault} from \"./sequential-multi/cubehelix.js\";\nexport {default as interpolateRainbow, warm as interpolateWarm, cool as interpolateCool} from \"./sequential-multi/rainbow.js\";\nexport {default as interpolateSinebow} from \"./sequential-multi/sinebow.js\";\nexport {default as interpolateTurbo} from \"./sequential-multi/turbo.js\";\nexport {default as interpolateViridis, magma as interpolateMagma, inferno as interpolateInferno, plasma as interpolatePlasma} from \"./sequential-multi/viridis.js\";\n","import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n","import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n","import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n","var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n","import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n","import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n","export {\n default as scaleBand,\n point as scalePoint\n} from \"./band\";\n\nexport {\n default as scaleIdentity\n} from \"./identity\";\n\nexport {\n default as scaleLinear\n} from \"./linear\";\n\nexport {\n default as scaleLog\n} from \"./log\";\n\nexport {\n default as scaleSymlog\n} from \"./symlog\";\n\nexport {\n default as scaleOrdinal,\n implicit as scaleImplicit\n} from \"./ordinal\";\n\nexport {\n default as scalePow,\n sqrt as scaleSqrt\n} from \"./pow\";\n\nexport {\n default as scaleQuantile\n} from \"./quantile\";\n\nexport {\n default as scaleQuantize\n} from \"./quantize\";\n\nexport {\n default as scaleThreshold\n} from \"./threshold\";\n\nexport {\n default as scaleTime\n} from \"./time\";\n\nexport {\n default as scaleUtc\n} from \"./utcTime\";\n\nexport {\n default as scaleSequential,\n sequentialLog as scaleSequentialLog,\n sequentialPow as scaleSequentialPow,\n sequentialSqrt as scaleSequentialSqrt,\n sequentialSymlog as scaleSequentialSymlog\n} from \"./sequential\";\n\nexport {\n default as scaleSequentialQuantile\n} from \"./sequentialQuantile\";\n\nexport {\n default as scaleDiverging,\n divergingLog as scaleDivergingLog,\n divergingPow as scaleDivergingPow,\n divergingSqrt as scaleDivergingSqrt,\n divergingSymlog as scaleDivergingSymlog\n} from \"./diverging\";\n\nexport {\n default as tickFormat\n} from \"./tickFormat\";\n","export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n","import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n","export default function(x) {\n return +x;\n}\n","import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n","import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n","import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n","import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","export {default as create} from \"./create\";\nexport {default as creator} from \"./creator\";\nexport {default as local} from \"./local\";\nexport {default as matcher} from \"./matcher\";\nexport {default as mouse} from \"./mouse\";\nexport {default as namespace} from \"./namespace\";\nexport {default as namespaces} from \"./namespaces\";\nexport {default as clientPoint} from \"./point\";\nexport {default as select} from \"./select\";\nexport {default as selectAll} from \"./selectAll\";\nexport {default as selection} from \"./selection/index\";\nexport {default as selector} from \"./selector\";\nexport {default as selectorAll} from \"./selectorAll\";\nexport {styleValue as style} from \"./selection/style\";\nexport {default as touch} from \"./touch\";\nexport {default as touches} from \"./touches\";\nexport {default as window} from \"./window\";\nexport {event, customEvent} from \"./selection/on\";\n","var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n","export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","export default function() {\n return !this.node();\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n","import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n","import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n","import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n","function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n","import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","export {default as arc} from \"./arc.js\";\nexport {default as area} from \"./area.js\";\nexport {default as line} from \"./line.js\";\nexport {default as pie} from \"./pie.js\";\nexport {default as areaRadial, default as radialArea} from \"./areaRadial.js\"; // Note: radialArea is deprecated!\nexport {default as lineRadial, default as radialLine} from \"./lineRadial.js\"; // Note: radialLine is deprecated!\nexport {default as pointRadial} from \"./pointRadial.js\";\nexport {linkHorizontal, linkVertical, linkRadial} from \"./link/index.js\";\n\nexport {default as symbol, symbols} from \"./symbol.js\";\nexport {default as symbolCircle} from \"./symbol/circle.js\";\nexport {default as symbolCross} from \"./symbol/cross.js\";\nexport {default as symbolDiamond} from \"./symbol/diamond.js\";\nexport {default as symbolSquare} from \"./symbol/square.js\";\nexport {default as symbolStar} from \"./symbol/star.js\";\nexport {default as symbolTriangle} from \"./symbol/triangle.js\";\nexport {default as symbolWye} from \"./symbol/wye.js\";\n\nexport {default as curveBasisClosed} from \"./curve/basisClosed.js\";\nexport {default as curveBasisOpen} from \"./curve/basisOpen.js\";\nexport {default as curveBasis} from \"./curve/basis.js\";\nexport {default as curveBundle} from \"./curve/bundle.js\";\nexport {default as curveCardinalClosed} from \"./curve/cardinalClosed.js\";\nexport {default as curveCardinalOpen} from \"./curve/cardinalOpen.js\";\nexport {default as curveCardinal} from \"./curve/cardinal.js\";\nexport {default as curveCatmullRomClosed} from \"./curve/catmullRomClosed.js\";\nexport {default as curveCatmullRomOpen} from \"./curve/catmullRomOpen.js\";\nexport {default as curveCatmullRom} from \"./curve/catmullRom.js\";\nexport {default as curveLinearClosed} from \"./curve/linearClosed.js\";\nexport {default as curveLinear} from \"./curve/linear.js\";\nexport {monotoneX as curveMonotoneX, monotoneY as curveMonotoneY} from \"./curve/monotone.js\";\nexport {default as curveNatural} from \"./curve/natural.js\";\nexport {default as curveStep, stepAfter as curveStepAfter, stepBefore as curveStepBefore} from \"./curve/step.js\";\n\nexport {default as stack} from \"./stack.js\";\nexport {default as stackOffsetExpand} from \"./offset/expand.js\";\nexport {default as stackOffsetDiverging} from \"./offset/diverging.js\";\nexport {default as stackOffsetNone} from \"./offset/none.js\";\nexport {default as stackOffsetSilhouette} from \"./offset/silhouette.js\";\nexport {default as stackOffsetWiggle} from \"./offset/wiggle.js\";\nexport {default as stackOrderAppearance} from \"./order/appearance.js\";\nexport {default as stackOrderAscending} from \"./order/ascending.js\";\nexport {default as stackOrderDescending} from \"./order/descending.js\";\nexport {default as stackOrderInsideOut} from \"./order/insideOut.js\";\nexport {default as stackOrderNone} from \"./order/none.js\";\nexport {default as stackOrderReverse} from \"./order/reverse.js\";\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n","export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n","export default function() {}\n","export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n","import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n","import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n","import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n","import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n","export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n","var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n","export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n","import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n","var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n","var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n","export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from \"./defaultLocale.js\";\nexport {default as timeFormatLocale} from \"./locale.js\";\nexport {default as isoFormat} from \"./isoFormat.js\";\nexport {default as isoParse} from \"./isoParse.js\";\n","import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n","import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n","import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n","import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n","export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n","import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n","export {\n default as timeInterval\n} from \"./interval.js\";\n\nexport {\n default as timeMillisecond,\n milliseconds as timeMilliseconds,\n default as utcMillisecond,\n milliseconds as utcMilliseconds\n} from \"./millisecond.js\";\n\nexport {\n default as timeSecond,\n seconds as timeSeconds,\n default as utcSecond,\n seconds as utcSeconds\n} from \"./second.js\";\n\nexport {\n default as timeMinute,\n minutes as timeMinutes\n} from \"./minute.js\";\n\nexport {\n default as timeHour,\n hours as timeHours\n} from \"./hour.js\";\n\nexport {\n default as timeDay,\n days as timeDays\n} from \"./day.js\";\n\nexport {\n sunday as timeWeek,\n sundays as timeWeeks,\n sunday as timeSunday,\n sundays as timeSundays,\n monday as timeMonday,\n mondays as timeMondays,\n tuesday as timeTuesday,\n tuesdays as timeTuesdays,\n wednesday as timeWednesday,\n wednesdays as timeWednesdays,\n thursday as timeThursday,\n thursdays as timeThursdays,\n friday as timeFriday,\n fridays as timeFridays,\n saturday as timeSaturday,\n saturdays as timeSaturdays\n} from \"./week.js\";\n\nexport {\n default as timeMonth,\n months as timeMonths\n} from \"./month.js\";\n\nexport {\n default as timeYear,\n years as timeYears\n} from \"./year.js\";\n\nexport {\n default as utcMinute,\n utcMinutes as utcMinutes\n} from \"./utcMinute.js\";\n\nexport {\n default as utcHour,\n utcHours as utcHours\n} from \"./utcHour.js\";\n\nexport {\n default as utcDay,\n utcDays as utcDays\n} from \"./utcDay.js\";\n\nexport {\n utcSunday as utcWeek,\n utcSundays as utcWeeks,\n utcSunday as utcSunday,\n utcSundays as utcSundays,\n utcMonday as utcMonday,\n utcMondays as utcMondays,\n utcTuesday as utcTuesday,\n utcTuesdays as utcTuesdays,\n utcWednesday as utcWednesday,\n utcWednesdays as utcWednesdays,\n utcThursday as utcThursday,\n utcThursdays as utcThursdays,\n utcFriday as utcFriday,\n utcFridays as utcFridays,\n utcSaturday as utcSaturday,\n utcSaturdays as utcSaturdays\n} from \"./utcWeek.js\";\n\nexport {\n default as utcMonth,\n utcMonths as utcMonths\n} from \"./utcMonth.js\";\n\nexport {\n default as utcYear,\n utcYears as utcYears\n} from \"./utcYear.js\";\n","var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n","import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n","import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n","import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n","import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n","import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n","import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n","import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n","import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n","import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n","export {\n now,\n timer,\n timerFlush\n} from \"./timer.js\";\n\nexport {\n default as timeout\n} from \"./timeout.js\";\n\nexport {\n default as interval\n} from \"./interval.js\";\n","import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n","import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n","var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n","import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n","import \"./selection/index.js\";\nexport {default as transition} from \"./transition/index.js\";\nexport {default as active} from \"./active.js\";\nexport {default as interrupt} from \"./interrupt.js\";\n","import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n","import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n","import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n","import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n","import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n","import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n","import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n","import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n","import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n","import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n","import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n","import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n","import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n","function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n","import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n","import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n","import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n","import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n","function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n","import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n","function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n","import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n","import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n","import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n","import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n","function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export {default as voronoi} from \"./voronoi\";\n","export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n","import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n","export {default as zoom} from \"./zoom.js\";\nexport {default as zoomTransform, identity as zoomIdentity} from \"./transform.js\";\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n","export var name = \"d3\";\nexport var version = \"5.15.0\";\nexport var description = \"Data-Driven Documents\";\nexport var keywords = [\"dom\",\"visualization\",\"svg\",\"animation\",\"canvas\"];\nexport var homepage = \"https://d3js.org\";\nexport var license = \"BSD-3-Clause\";\nexport var author = {\"name\":\"Mike Bostock\",\"url\":\"https://bost.ocks.org/mike\"};\nexport var main = \"dist/d3.node.js\";\nexport var unpkg = \"dist/d3.min.js\";\nexport var jsdelivr = \"dist/d3.min.js\";\nexport var module = \"index.js\";\nexport var repository = {\"type\":\"git\",\"url\":\"https://github.com/d3/d3.git\"};\nexport var files = [\"dist/**/*.js\",\"index.js\"];\nexport var scripts = {\"pretest\":\"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n","export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n","/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n","var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n","var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n","// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n","/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n","var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n","module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n","module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n","module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n","var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n","var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n","\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n","var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","module.exports = \"0.6.4\";\n","/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n","/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n","var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n","var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n","var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n","\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n","/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n","module.exports = \"0.8.5\";\n","/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n","/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n","var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n","var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n","var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n","module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n","var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing","var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n","// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","module.exports = '2.1.8';\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar types_1 = require(\"../types\");\nvar type_1 = require(\"./type\");\n/* CHANNELS */\nvar Channels = /** @class */ (function () {\n /* CONSTRUCTOR */\n function Channels(data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type = new type_1.default();\n }\n /* API */\n Channels.prototype.set = function (data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type.type = types_1.TYPE.ALL;\n return this;\n };\n /* HELPERS */\n Channels.prototype._ensureHSL = function () {\n if (this.data.h === undefined)\n this.data.h = utils_1.default.channel.rgb2hsl(this.data, 'h');\n if (this.data.s === undefined)\n this.data.s = utils_1.default.channel.rgb2hsl(this.data, 's');\n if (this.data.l === undefined)\n this.data.l = utils_1.default.channel.rgb2hsl(this.data, 'l');\n };\n Channels.prototype._ensureRGB = function () {\n if (this.data.r === undefined)\n this.data.r = utils_1.default.channel.hsl2rgb(this.data, 'r');\n if (this.data.g === undefined)\n this.data.g = utils_1.default.channel.hsl2rgb(this.data, 'g');\n if (this.data.b === undefined)\n this.data.b = utils_1.default.channel.hsl2rgb(this.data, 'b');\n };\n Object.defineProperty(Channels.prototype, \"r\", {\n /* GETTERS */\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.r !== undefined)\n return this.data.r;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'r');\n },\n /* SETTERS */\n set: function (r) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.r = r;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"g\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.g !== undefined)\n return this.data.g;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'g');\n },\n set: function (g) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.g = g;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"b\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.b !== undefined)\n return this.data.b;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'b');\n },\n set: function (b) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.b = b;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"h\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.h !== undefined)\n return this.data.h;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'h');\n },\n set: function (h) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.h = h;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"s\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.s !== undefined)\n return this.data.s;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 's');\n },\n set: function (s) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.s = s;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"l\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.l !== undefined)\n return this.data.l;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'l');\n },\n set: function (l) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.l = l;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"a\", {\n get: function () {\n return this.data.a;\n },\n set: function (a) {\n this.changed = true;\n this.data.a = a;\n },\n enumerable: true,\n configurable: true\n });\n return Channels;\n}());\n/* EXPORT */\nexports.default = Channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _1 = require(\".\");\n/* REUSABLE */\nvar channels = new _1.default({ r: 0, g: 0, b: 0, a: 0 }, 'transparent');\n/* EXPORT */\nexports.default = channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\n/* TYPE */\nvar Type = /** @class */ (function () {\n function Type() {\n this.type = types_1.TYPE.ALL;\n }\n Type.prototype.get = function () {\n return this.type;\n };\n Type.prototype.set = function (type) {\n if (this.type && this.type !== type)\n throw new Error('Cannot change both RGB and HSL channels at the same time');\n this.type = type;\n };\n Type.prototype.reset = function () {\n this.type = types_1.TYPE.ALL;\n };\n Type.prototype.is = function (type) {\n return this.type === type;\n };\n return Type;\n}());\n/* EXPORT */\nexports.default = Type;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar consts_1 = require(\"../consts\");\n/* HEX */\nvar Hex = {\n /* VARIABLES */\n re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,\n /* API */\n parse: function (color) {\n if (color.charCodeAt(0) !== 35)\n return; // '#'\n var match = color.match(Hex.re);\n if (!match)\n return;\n var hex = match[1], dec = parseInt(hex, 16), length = hex.length, hasAlpha = length % 4 === 0, isFullLength = length > 4, multiplier = isFullLength ? 1 : 17, bits = isFullLength ? 8 : 4, bitsOffset = hasAlpha ? 0 : -1, mask = isFullLength ? 255 : 15;\n return reusable_1.default.set({\n r: ((dec >> (bits * (bitsOffset + 3))) & mask) * multiplier,\n g: ((dec >> (bits * (bitsOffset + 2))) & mask) * multiplier,\n b: ((dec >> (bits * (bitsOffset + 1))) & mask) * multiplier,\n a: hasAlpha ? (dec & mask) * multiplier / 255 : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // #RRGGBBAA\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)] + utils_1.default.unit.frac2hex(channels.a);\n }\n else { // #RRGGBB\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)];\n }\n }\n};\n/* EXPORT */\nexports.default = Hex;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* HSL */\nvar HSL = {\n /* VARIABLES */\n re: /^hsla?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(?:deg|grad|rad|turn)?)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(%)?))?\\s*?\\)$/i,\n hueRe: /^(.+?)(deg|grad|rad|turn)$/i,\n /* HELPERS */\n _hue2deg: function (hue) {\n var match = hue.match(HSL.hueRe);\n if (match) {\n var number = match[1], unit = match[2];\n switch (unit) {\n case 'grad': return utils_1.default.channel.clamp.h(parseFloat(number) * .9);\n case 'rad': return utils_1.default.channel.clamp.h(parseFloat(number) * 180 / Math.PI);\n case 'turn': return utils_1.default.channel.clamp.h(parseFloat(number) * 360);\n }\n }\n return utils_1.default.channel.clamp.h(parseFloat(hue));\n },\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 104 && charCode !== 72)\n return; // 'h'/'H'\n var match = color.match(HSL.re);\n if (!match)\n return;\n var h = match[1], s = match[2], l = match[3], a = match[4], isAlphaPercentage = match[5];\n return reusable_1.default.set({\n h: HSL._hue2deg(h),\n s: utils_1.default.channel.clamp.s(parseFloat(s)),\n l: utils_1.default.channel.clamp.l(parseFloat(l)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // HSLA\n return \"hsla(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%, \" + channels.a + \")\";\n }\n else { // HSL\n return \"hsl(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%)\";\n }\n }\n};\n/* EXPORT */\nexports.default = HSL;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\nvar hex_1 = require(\"./hex\");\nvar keyword_1 = require(\"./keyword\");\nvar rgb_1 = require(\"./rgb\");\nvar hsl_1 = require(\"./hsl\");\n/* COLOR */\nvar Color = {\n /* VARIABLES */\n format: {\n keyword: keyword_1.default,\n hex: hex_1.default,\n rgb: rgb_1.default,\n rgba: rgb_1.default,\n hsl: hsl_1.default,\n hsla: hsl_1.default\n },\n /* API */\n parse: function (color) {\n if (typeof color !== 'string')\n return color;\n var channels = hex_1.default.parse(color) || rgb_1.default.parse(color) || hsl_1.default.parse(color) || keyword_1.default.parse(color); // Color providers ordered with performance in mind\n if (channels)\n return channels;\n throw new Error(\"Unsupported color format: \\\"\" + color + \"\\\"\");\n },\n stringify: function (channels) {\n // SASS returns a keyword if possible, but we avoid doing that as it's slower and doesn't really add any value\n if (!channels.changed && channels.color)\n return channels.color;\n if (channels.type.is(types_1.TYPE.HSL) || channels.data.r === undefined) {\n return hsl_1.default.stringify(channels);\n }\n else if (channels.a < 1 || !Number.isInteger(channels.r) || !Number.isInteger(channels.g) || !Number.isInteger(channels.b)) {\n return rgb_1.default.stringify(channels);\n }\n else {\n return hex_1.default.stringify(channels);\n }\n }\n};\n/* EXPORT */\nexports.default = Color;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar hex_1 = require(\"./hex\");\n/* KEYWORD */\nvar Keyword = {\n /* VARIABLES */\n colors: {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyanaqua: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n transparent: '#00000000',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n },\n /* API */\n parse: function (color) {\n color = color.toLowerCase();\n var hex = Keyword.colors[color];\n if (!hex)\n return;\n return hex_1.default.parse(hex);\n },\n stringify: function (channels) {\n var hex = hex_1.default.stringify(channels);\n for (var name_1 in Keyword.colors) {\n if (Keyword.colors[name_1] === hex)\n return name_1;\n }\n }\n};\n/* EXPORT */\nexports.default = Keyword;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* RGB */\nvar RGB = {\n /* VARIABLES */\n re: /^rgba?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?)))?\\s*?\\)$/i,\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 114 && charCode !== 82)\n return; // 'r'/'R'\n var match = color.match(RGB.re);\n if (!match)\n return;\n var r = match[1], isRedPercentage = match[2], g = match[3], isGreenPercentage = match[4], b = match[5], isBluePercentage = match[6], a = match[7], isAlphaPercentage = match[8];\n return reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(isRedPercentage ? parseFloat(r) * 2.55 : parseFloat(r)),\n g: utils_1.default.channel.clamp.g(isGreenPercentage ? parseFloat(g) * 2.55 : parseFloat(g)),\n b: utils_1.default.channel.clamp.b(isBluePercentage ? parseFloat(b) * 2.55 : parseFloat(b)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // RGBA\n return \"rgba(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \", \" + utils_1.default.lang.round(channels.a) + \")\";\n }\n else { // RGB\n return \"rgb(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \")\";\n }\n }\n};\n/* EXPORT */\nexports.default = RGB;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"./utils\");\n/* CONSTS */\nvar DEC2HEX = {};\nexports.DEC2HEX = DEC2HEX;\nfor (var i = 0; i <= 255; i++)\n DEC2HEX[i] = utils_1.default.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance\n","\"use strict\";\n/* EXPORT */\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./methods\"));\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\n/* ADJUST */\nfunction adjust(color, channels) {\n var ch = color_1.default.parse(color), changes = {};\n for (var c in channels) {\n if (!channels[c])\n continue;\n changes[c] = ch[c] + channels[c];\n }\n return change_1.default(color, changes);\n}\n/* EXPORT */\nexports.default = adjust;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* ADJUST CHANNEL */\nfunction adjustChannel(color, channel, amount) {\n var channels = color_1.default.parse(color), amountCurrent = channels[channel], amountNext = utils_1.default.channel.clamp[channel](amountCurrent + amount);\n if (amountCurrent !== amountNext)\n channels[channel] = amountNext;\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = adjustChannel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* ALPHA */\nfunction alpha(color) {\n return channel_1.default(color, 'a');\n}\n/* EXPORT */\nexports.default = alpha;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* BLUE */\nfunction blue(color) {\n return channel_1.default(color, 'b');\n}\n/* EXPORT */\nexports.default = blue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANGE */\nfunction change(color, channels) {\n var ch = color_1.default.parse(color);\n for (var c in channels) {\n ch[c] = utils_1.default.channel.clamp[c](channels[c]);\n }\n return color_1.default.stringify(ch);\n}\n/* EXPORT */\nexports.default = change;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANNEL */\nfunction channel(color, channel) {\n return utils_1.default.lang.round(color_1.default.parse(color)[channel]);\n}\n/* EXPORT */\nexports.default = channel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* COMPLEMENT */\nfunction complement(color) {\n return adjust_channel_1.default(color, 'h', 180);\n}\n/* EXPORT */\nexports.default = complement;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DARKEN */\nfunction darken(color, amount) {\n return adjust_channel_1.default(color, 'l', -amount);\n}\n/* EXPORT */\nexports.default = darken;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DESATURATE */\nfunction desaturate(color, amount) {\n return adjust_channel_1.default(color, 's', -amount);\n}\n/* EXPORT */\nexports.default = desaturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar change_1 = require(\"./change\");\n/* GRAYSCALE */\nfunction grayscale(color) {\n return change_1.default(color, { s: 0 });\n}\n/* EXPORT */\nexports.default = grayscale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* GREEN */\nfunction green(color) {\n return channel_1.default(color, 'g');\n}\n/* EXPORT */\nexports.default = green;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\n/* HSLA */\nfunction hsla(h, s, l, a) {\n if (a === void 0) { a = 1; }\n var channels = reusable_1.default.set({\n h: utils_1.default.channel.clamp.h(h),\n s: utils_1.default.channel.clamp.s(s),\n l: utils_1.default.channel.clamp.l(l),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = hsla;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* HUE */\nfunction hue(color) {\n return channel_1.default(color, 'h');\n}\n/* EXPORT */\nexports.default = hue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar rgba_1 = require(\"./rgba\"); // Alias\nexports.hex = rgba_1.default;\nvar rgba_2 = require(\"./rgba\"); // Alias\nexports.rgb = rgba_2.default;\nvar rgba_3 = require(\"./rgba\");\nexports.rgba = rgba_3.default;\nvar hsla_1 = require(\"./hsla\"); // Alias\nexports.hsl = hsla_1.default;\nvar hsla_2 = require(\"./hsla\");\nexports.hsla = hsla_2.default;\nvar channel_1 = require(\"./channel\");\nexports.channel = channel_1.default;\nvar red_1 = require(\"./red\");\nexports.red = red_1.default;\nvar green_1 = require(\"./green\");\nexports.green = green_1.default;\nvar blue_1 = require(\"./blue\");\nexports.blue = blue_1.default;\nvar hue_1 = require(\"./hue\");\nexports.hue = hue_1.default;\nvar saturation_1 = require(\"./saturation\");\nexports.saturation = saturation_1.default;\nvar lightness_1 = require(\"./lightness\");\nexports.lightness = lightness_1.default;\nvar alpha_1 = require(\"./alpha\");\nexports.alpha = alpha_1.default;\nvar alpha_2 = require(\"./alpha\"); // Alias\nexports.opacity = alpha_2.default;\nvar luminance_1 = require(\"./luminance\");\nexports.luminance = luminance_1.default;\nvar is_dark_1 = require(\"./is_dark\");\nexports.isDark = is_dark_1.default;\nvar is_light_1 = require(\"./is_light\");\nexports.isLight = is_light_1.default;\nvar is_valid_1 = require(\"./is_valid\");\nexports.isValid = is_valid_1.default;\nvar saturate_1 = require(\"./saturate\");\nexports.saturate = saturate_1.default;\nvar desaturate_1 = require(\"./desaturate\");\nexports.desaturate = desaturate_1.default;\nvar lighten_1 = require(\"./lighten\");\nexports.lighten = lighten_1.default;\nvar darken_1 = require(\"./darken\");\nexports.darken = darken_1.default;\nvar opacify_1 = require(\"./opacify\");\nexports.opacify = opacify_1.default;\nvar opacify_2 = require(\"./opacify\"); // Alias\nexports.fadeIn = opacify_2.default;\nvar transparentize_1 = require(\"./transparentize\");\nexports.transparentize = transparentize_1.default;\nvar transparentize_2 = require(\"./transparentize\"); // Alias\nexports.fadeOut = transparentize_2.default;\nvar complement_1 = require(\"./complement\");\nexports.complement = complement_1.default;\nvar grayscale_1 = require(\"./grayscale\");\nexports.grayscale = grayscale_1.default;\nvar adjust_1 = require(\"./adjust\");\nexports.adjust = adjust_1.default;\nvar change_1 = require(\"./change\");\nexports.change = change_1.default;\nvar invert_1 = require(\"./invert\");\nexports.invert = invert_1.default;\nvar mix_1 = require(\"./mix\");\nexports.mix = mix_1.default;\nvar scale_1 = require(\"./scale\");\nexports.scale = scale_1.default;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar mix_1 = require(\"./mix\");\n/* INVERT */\nfunction invert(color, weight) {\n if (weight === void 0) { weight = 100; }\n var inverse = color_1.default.parse(color);\n inverse.r = 255 - inverse.r;\n inverse.g = 255 - inverse.g;\n inverse.b = 255 - inverse.b;\n return mix_1.default(inverse, color, weight);\n}\n/* EXPORT */\nexports.default = invert;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar is_light_1 = require(\"./is_light\");\n/* IS DARK */\nfunction isDark(color) {\n return !is_light_1.default(color);\n}\n/* EXPORT */\nexports.default = isDark;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar luminance_1 = require(\"./luminance\");\n/* IS LIGHT */\nfunction isLight(color) {\n return luminance_1.default(color) >= .5;\n}\n/* EXPORT */\nexports.default = isLight;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\n/* IS VALID */\nfunction isValid(color) {\n try {\n color_1.default.parse(color);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\n/* EXPORT */\nexports.default = isValid;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* LIGHTEN */\nfunction lighten(color, amount) {\n return adjust_channel_1.default(color, 'l', amount);\n}\n/* EXPORT */\nexports.default = lighten;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* LIGHTNESS */\nfunction lightness(color) {\n return channel_1.default(color, 'l');\n}\n/* EXPORT */\nexports.default = lightness;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* LUMINANCE */\n//SOURCE: https://planetcalc.com/7779\nfunction luminance(color) {\n var _a = color_1.default.parse(color), r = _a.r, g = _a.g, b = _a.b, luminance = .2126 * utils_1.default.channel.toLinear(r) + .7152 * utils_1.default.channel.toLinear(g) + .0722 * utils_1.default.channel.toLinear(b);\n return utils_1.default.lang.round(luminance);\n}\n/* EXPORT */\nexports.default = luminance;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar rgba_1 = require(\"./rgba\");\n/* MIX */\n//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L756\nfunction mix(color1, color2, weight) {\n if (weight === void 0) { weight = 50; }\n var _a = color_1.default.parse(color1), r1 = _a.r, g1 = _a.g, b1 = _a.b, a1 = _a.a, _b = color_1.default.parse(color2), r2 = _b.r, g2 = _b.g, b2 = _b.b, a2 = _b.a, weightScale = weight / 100, weightNormalized = (weightScale * 2) - 1, alphaDelta = a1 - a2, weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta), weight1 = (weight1combined + 1) / 2, weight2 = 1 - weight1, r = (r1 * weight1) + (r2 * weight2), g = (g1 * weight1) + (g2 * weight2), b = (b1 * weight1) + (b2 * weight2), a = (a1 * weightScale) + (a2 * (1 - weightScale));\n return rgba_1.default(r, g, b, a);\n}\n/* EXPORT */\nexports.default = mix;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* OPACIFY */\nfunction opacify(color, amount) {\n return adjust_channel_1.default(color, 'a', amount);\n}\n/* EXPORT */\nexports.default = opacify;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* RED */\nfunction red(color) {\n return channel_1.default(color, 'r');\n}\n/* EXPORT */\nexports.default = red;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\nfunction rgba(r, g, b, a) {\n if (b === void 0) { b = 0; }\n if (a === void 0) { a = 1; }\n if (typeof r !== 'number')\n return change_1.default(r, { a: g });\n var channels = reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(r),\n g: utils_1.default.channel.clamp.g(g),\n b: utils_1.default.channel.clamp.b(b),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = rgba;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* SATURATE */\nfunction saturate(color, amount) {\n return adjust_channel_1.default(color, 's', amount);\n}\n/* EXPORT */\nexports.default = saturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* SATURATION */\nfunction saturation(color) {\n return channel_1.default(color, 's');\n}\n/* EXPORT */\nexports.default = saturation;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\nvar adjust_1 = require(\"./adjust\");\n/* SCALE */\nfunction scale(color, channels) {\n var ch = color_1.default.parse(color), adjustments = {}, delta = function (amount, weight, max) { return weight > 0 ? (max - amount) * weight / 100 : amount * weight / 100; };\n for (var c in channels) {\n adjustments[c] = delta(ch[c], channels[c], utils_1.default.channel.max[c]);\n }\n return adjust_1.default(color, adjustments);\n}\n/* EXPORT */\nexports.default = scale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* TRANSPARENTIZE */\nfunction transparentize(color, amount) {\n return adjust_channel_1.default(color, 'a', -amount);\n}\n/* EXPORT */\nexports.default = transparentize;\n","\"use strict\";\n/* ENUMS */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"ALL\"] = 0] = \"ALL\";\n TYPE[TYPE[\"RGB\"] = 1] = \"RGB\";\n TYPE[TYPE[\"HSL\"] = 2] = \"HSL\";\n})(TYPE || (TYPE = {}));\nexports.TYPE = TYPE;\n;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* CHANNEL */\nvar Channel = {\n /* CLAMP */\n min: {\n r: 0,\n g: 0,\n b: 0,\n s: 0,\n l: 0,\n a: 0\n },\n max: {\n r: 255,\n g: 255,\n b: 255,\n h: 360,\n s: 100,\n l: 100,\n a: 1\n },\n clamp: {\n r: function (r) { return r >= 255 ? 255 : (r < 0 ? 0 : r); },\n g: function (g) { return g >= 255 ? 255 : (g < 0 ? 0 : g); },\n b: function (b) { return b >= 255 ? 255 : (b < 0 ? 0 : b); },\n h: function (h) { return h % 360; },\n s: function (s) { return s >= 100 ? 100 : (s < 0 ? 0 : s); },\n l: function (l) { return l >= 100 ? 100 : (l < 0 ? 0 : l); },\n a: function (a) { return a >= 1 ? 1 : (a < 0 ? 0 : a); }\n },\n /* CONVERSION */\n //SOURCE: https://planetcalc.com/7779\n toLinear: function (c) {\n var n = c / 255;\n return c > .03928 ? Math.pow(((n + .055) / 1.055), 2.4) : n / 12.92;\n },\n //SOURCE: https://gist.github.com/mjackson/5311256\n hue2rgb: function (p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n },\n hsl2rgb: function (_a, channel) {\n var h = _a.h, s = _a.s, l = _a.l;\n if (s === 100)\n return l * 2.55; // Achromatic\n h /= 360;\n s /= 100;\n l /= 100;\n var q = (l < .5) ? l * (1 + s) : (l + s) - (l * s), p = 2 * l - q;\n switch (channel) {\n case 'r': return Channel.hue2rgb(p, q, h + 1 / 3) * 255;\n case 'g': return Channel.hue2rgb(p, q, h) * 255;\n case 'b': return Channel.hue2rgb(p, q, h - 1 / 3) * 255;\n }\n },\n rgb2hsl: function (_a, channel) {\n var r = _a.r, g = _a.g, b = _a.b;\n r /= 255;\n g /= 255;\n b /= 255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;\n if (channel === 'l')\n return l * 100;\n if (max === min)\n return 0; // Achromatic\n var d = max - min, s = (l > .5) ? d / (2 - max - min) : d / (max + min);\n if (channel === 's')\n return s * 100;\n switch (max) {\n case r: return ((g - b) / d + (g < b ? 6 : 0)) * 60;\n case g: return ((b - r) / d + 2) * 60;\n case b: return ((r - g) / d + 4) * 60;\n default: return -1; //TSC: TypeScript is stupid and complains if there isn't this useless default statement\n }\n }\n};\n/* EXPORT */\nexports.default = Channel;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\nvar lang_1 = require(\"./lang\");\nvar unit_1 = require(\"./unit\");\n/* UTILS */\nvar Utils = {\n channel: channel_1.default,\n lang: lang_1.default,\n unit: unit_1.default\n};\n/* EXPORT */\nexports.default = Utils;\n","\"use strict\";\n/* LANG */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Lang = {\n round: function (number) {\n return Math.round(number * 10000000000) / 10000000000;\n }\n};\n/* EXPORT */\nexports.default = Lang;\n","\"use strict\";\n/* UNIT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Unit = {\n frac2hex: function (frac) {\n var hex = Math.round(frac * 255).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n },\n dec2hex: function (dec) {\n var hex = Math.round(dec).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n }\n};\n/* EXPORT */\nexports.default = Unit;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","module.exports = require('./forEach');\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n","var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n","var map = {\n\t\"./locale\": \"./node_modules/moment-mini/locale/locale.js\",\n\t\"./locale.js\": \"./node_modules/moment-mini/locale/locale.js\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"./node_modules/moment-mini/locale sync recursive ^\\\\.\\\\/.*$\";","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,yt=/Z|[+-]\\d\\d(?::?\\d\\d)?/,gt=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],vt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/*\n * __ ___\n * _____/ /___ __/ (_)____\n * / ___/ __/ / / / / / ___/\n * (__ ) /_/ /_/ / / (__ )\n * /____/\\__/\\__, /_/_/____/\n * /____/\n *\n * light - weight css preprocessor @licence MIT\n */\n(function (factory) {/* eslint-disable */\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory(null)) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory(null)) :\n\t\t\t(window['stylis'] = factory(null))\n}(/** @param {*=} options */function factory (options) {/* eslint-disable */\n\n\t'use strict'\n\n\t/**\n\t * Notes\n\t *\n\t * The [''] pattern is used to support closure compiler\n\t * the jsdoc signatures are also used to the same effect\n\t *\n\t * ----\n\t *\n\t * int + int + int === n4 [faster]\n\t *\n\t * vs\n\t *\n\t * int === n1 && int === n2 && int === n3\n\t *\n\t * ----\n\t *\n\t * switch (int) { case ints...} [faster]\n\t *\n\t * vs\n\t *\n\t * if (int == 1 && int === 2 ...)\n\t *\n\t * ----\n\t *\n\t * The (first*n1 + second*n2 + third*n3) format used in the property parser\n\t * is a simple way to hash the sequence of characters\n\t * taking into account the index they occur in\n\t * since any number of 3 character sequences could produce duplicates.\n\t *\n\t * On the other hand sequences that are directly tied to the index of the character\n\t * resolve a far more accurate measure, it's also faster\n\t * to evaluate one condition in a switch statement\n\t * than three in an if statement regardless of the added math.\n\t *\n\t * This allows the vendor prefixer to be both small and fast.\n\t */\n\n\tvar nullptn = /^\\0+/g /* matches leading null characters */\n\tvar formatptn = /[\\0\\r\\f]/g /* matches new line, null and formfeed characters */\n\tvar colonptn = /: */g /* splits animation rules */\n\tvar cursorptn = /zoo|gra/ /* assert cursor varient */\n\tvar transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */\n\tvar animationptn = /,+\\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */\n\tvar propertiesptn = / +\\s*(?![^(]*[)])/g /* animation properties */\n\tvar elementptn = / *[\\0] */g /* selector elements */\n\tvar selectorptn = /,\\r+?/g /* splits selectors */\n\tvar andptn = /([\\t\\r\\n ])*\\f?&/g /* match & */\n\tvar escapeptn = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g /* matches :global(.*) */\n\tvar invalidptn = /\\W+/g /* removes invalid characters from keyframes */\n\tvar keyframeptn = /@(k\\w+)\\s*(\\S*)\\s*/ /* matches @keyframes $1 */\n\tvar plcholdrptn = /::(place)/g /* match ::placeholder varient */\n\tvar readonlyptn = /:(read-only)/g /* match :read-only varient */\n\tvar beforeptn = /\\s+(?=[{\\];=:>])/g /* matches \\s before ] ; = : */\n\tvar afterptn = /([[}=:>])\\s+/g /* matches \\s after characters [ } = : */\n\tvar tailptn = /(\\{[^{]+?);(?=\\})/g /* matches tail semi-colons ;} */\n\tvar whiteptn = /\\s{2,}/g /* matches repeating whitespace */\n\tvar pseudoptn = /([^\\(])(:+) */g /* pseudo element */\n\tvar writingptn = /[svh]\\w+-[tblr]{2}/ /* match writing mode property values */\n\tvar gradientptn = /([\\w-]+t\\()/g /* match *gradient property */\n\tvar supportsptn = /\\(\\s*(.*)\\s*\\)/g /* match supports (groups) */\n\tvar propertyptn = /([\\s\\S]*?);/g /* match properties leading semicolon */\n\tvar selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */\n\tvar pseudofmt = /[^]*?(:[rp][el]a[\\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */\n\tvar trimptn = /[ \\t]+$/ /* match tail whitspace */\n\tvar dimensionptn = /stretch|:\\s*\\w+\\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */\n\tvar imgsrcptn = /([^-])(image-set\\()/\n\n\t/* vendors */\n\tvar webkit = '-webkit-'\n\tvar moz = '-moz-'\n\tvar ms = '-ms-'\n\n\t/* character codes */\n\tvar SEMICOLON = 59 /* ; */\n\tvar CLOSEBRACES = 125 /* } */\n\tvar OPENBRACES = 123 /* { */\n\tvar OPENPARENTHESES = 40 /* ( */\n\tvar CLOSEPARENTHESES = 41 /* ) */\n\tvar OPENBRACKET = 91 /* [ */\n\tvar CLOSEBRACKET = 93 /* ] */\n\tvar NEWLINE = 10 /* \\n */\n\tvar CARRIAGE = 13 /* \\r */\n\tvar TAB = 9 /* \\t */\n\tvar AT = 64 /* @ */\n\tvar SPACE = 32 /* */\n\tvar AND = 38 /* & */\n\tvar DASH = 45 /* - */\n\tvar UNDERSCORE = 95 /* _ */\n\tvar STAR = 42 /* * */\n\tvar COMMA = 44 /* , */\n\tvar COLON = 58 /* : */\n\tvar SINGLEQUOTE = 39 /* ' */\n\tvar DOUBLEQUOTE = 34 /* \" */\n\tvar FOWARDSLASH = 47 /* / */\n\tvar GREATERTHAN = 62 /* > */\n\tvar PLUS = 43 /* + */\n\tvar TILDE = 126 /* ~ */\n\tvar NULL = 0 /* \\0 */\n\tvar FORMFEED = 12 /* \\f */\n\tvar VERTICALTAB = 11 /* \\v */\n\n\t/* special identifiers */\n\tvar KEYFRAME = 107 /* k */\n\tvar MEDIA = 109 /* m */\n\tvar SUPPORTS = 115 /* s */\n\tvar PLACEHOLDER = 112 /* p */\n\tvar READONLY = 111 /* o */\n\tvar IMPORT = 105 /* i */\n\tvar CHARSET = 99 /* c */\n\tvar DOCUMENT = 100 /* d */\n\tvar PAGE = 112 /* p */\n\n\tvar column = 1 /* current column */\n\tvar line = 1 /* current line numebr */\n\tvar pattern = 0 /* :pattern */\n\n\tvar cascade = 1 /* #id h1 h2 vs h1#id h2#id */\n\tvar prefix = 1 /* vendor prefix */\n\tvar escape = 1 /* escape :global() pattern */\n\tvar compress = 0 /* compress output */\n\tvar semicolon = 0 /* no/semicolon option */\n\tvar preserve = 0 /* preserve empty selectors */\n\n\t/* empty reference */\n\tvar array = []\n\n\t/* plugins */\n\tvar plugins = []\n\tvar plugged = 0\n\tvar should = null\n\n\t/* plugin context */\n\tvar POSTS = -2\n\tvar PREPS = -1\n\tvar UNKWN = 0\n\tvar PROPS = 1\n\tvar BLCKS = 2\n\tvar ATRUL = 3\n\n\t/* plugin newline context */\n\tvar unkwn = 0\n\n\t/* keyframe animation */\n\tvar keyed = 1\n\tvar key = ''\n\n\t/* selector namespace */\n\tvar nscopealt = ''\n\tvar nscope = ''\n\n\t/**\n\t * Compile\n\t *\n\t * @param {Array} parent\n\t * @param {Array} current\n\t * @param {string} body\n\t * @param {number} id\n\t * @param {number} depth\n\t * @return {string}\n\t */\n\tfunction compile (parent, current, body, id, depth) {\n\t\tvar bracket = 0 /* brackets [] */\n\t\tvar comment = 0 /* comments /* // or /* */\n\t\tvar parentheses = 0 /* functions () */\n\t\tvar quote = 0 /* quotes '', \"\" */\n\n\t\tvar first = 0 /* first character code */\n\t\tvar second = 0 /* second character code */\n\t\tvar code = 0 /* current character code */\n\t\tvar tail = 0 /* previous character code */\n\t\tvar trail = 0 /* character before previous code */\n\t\tvar peak = 0 /* previous non-whitespace code */\n\n\t\tvar counter = 0 /* count sequence termination */\n\t\tvar context = 0 /* track current context */\n\t\tvar atrule = 0 /* track @at-rule context */\n\t\tvar pseudo = 0 /* track pseudo token index */\n\t\tvar caret = 0 /* current character index */\n\t\tvar format = 0 /* control character formating context */\n\t\tvar insert = 0 /* auto semicolon insertion */\n\t\tvar invert = 0 /* inverted selector pattern */\n\t\tvar length = 0 /* generic length address */\n\t\tvar eof = body.length /* end of file(length) */\n\t\tvar eol = eof - 1 /* end of file(characters) */\n\n\t\tvar char = '' /* current character */\n\t\tvar chars = '' /* current buffer of characters */\n\t\tvar child = '' /* next buffer of characters */\n\t\tvar out = '' /* compiled body */\n\t\tvar children = '' /* compiled children */\n\t\tvar flat = '' /* compiled leafs */\n\t\tvar selector /* generic selector address */\n\t\tvar result /* generic address */\n\n\t\t// ...build body\n\t\twhile (caret < eof) {\n\t\t\tcode = body.charCodeAt(caret)\n\n\t\t\t// eof varient\n\t\t\tif (caret === eol) {\n\t\t\t\t// last character + noop context, add synthetic padding for noop context to terminate\n\t\t\t\tif (comment + quote + parentheses + bracket !== 0) {\n\t\t\t\t\tif (comment !== 0) {\n\t\t\t\t\t\tcode = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH\n\t\t\t\t\t}\n\n\t\t\t\t\tquote = parentheses = bracket = 0\n\t\t\t\t\teof++\n\t\t\t\t\teol++\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t// eof varient\n\t\t\t\tif (caret === eol) {\n\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chars.trim().length > 0) {\n\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchars += body.charAt(caret)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcode = SEMICOLON\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// auto semicolon insertion\n\t\t\t\tif (insert === 1) {\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t// false flags\n\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\tcase OPENPARENTHESES:\n\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// valid\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\tfirst = code\n\t\t\t\t\t\t\tcaret--\n\t\t\t\t\t\t\tcode = SEMICOLON\n\n\t\t\t\t\t\t\twhile (length < eof) {\n\t\t\t\t\t\t\t\tswitch (body.charCodeAt(length++)) {\n\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// token varient\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\tchars = chars.trim()\n\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\tcounter = 1\n\t\t\t\t\t\tlength = ++caret\n\n\t\t\t\t\t\twhile (caret < eof) {\n\t\t\t\t\t\t\tswitch (code = body.charCodeAt(caret)) {\n\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\tcounter++\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\t\tcounter--\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\tswitch (second = body.charCodeAt(caret + 1)) {\n\t\t\t\t\t\t\t\t\t\t// /*, //\n\t\t\t\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\t\t\tcaret = delimited(second, caret, eol, body)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"[\" === 91 & \"]\" === 93 hence forth 91 + 1 + 1 === 93\n\t\t\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"(\" === 40 & \")\" === 41 hence forth 40 + 1 === 41\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// quote tail delimiter is identical to the head delimiter hence noop,\n\t\t\t\t\t\t\t\t// fallthrough clauses have been shifted to the correct tail delimiter\n\t\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\t\t\twhile (caret++ < eol) {\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(caret) === code) {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (counter === 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcaret++\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchild = body.substring(length, caret)\n\n\t\t\t\t\t\tif (first === NULL) {\n\t\t\t\t\t\t\tfirst = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t// @at-rule\n\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\tcase SUPPORTS:\n\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\tselector = current\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tselector = array\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tchild = compile(current, selector, child, second, depth+1)\n\t\t\t\t\t\t\t\tlength = child.length\n\n\t\t\t\t\t\t\t\t// preserve empty @at-rule\n\t\t\t\t\t\t\t\tif (preserve > 0 && length === 0) {\n\t\t\t\t\t\t\t\t\tlength = chars.length\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// execute plugins, @at-rule context\n\t\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\t\tselector = select(array, chars, invert)\n\t\t\t\t\t\t\t\t\tresult = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)\n\t\t\t\t\t\t\t\t\tchars = selector.join('')\n\n\t\t\t\t\t\t\t\t\tif (result !== void 0) {\n\t\t\t\t\t\t\t\t\t\tif ((length = (child = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\t\tsecond = 0\n\t\t\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (length > 0) {\n\t\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\t\tcase SUPPORTS: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(supportsptn, supports)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase KEYFRAME: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\n\t\t\t\t\t\t\t\t\t\t\tif (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + webkit + child + '@' + child\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + child\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + child\n\n\t\t\t\t\t\t\t\t\t\t\tif (id === PAGE) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = (out += child, '')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// selector\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchild = compile(current, select(current, chars, invert), child, id, depth+1)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchildren += child\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tatrule = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\tchars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()\n\n\t\t\t\t\t\tif ((length = chars.length) > 1) {\n\t\t\t\t\t\t\t// monkey-patch missing colon\n\t\t\t\t\t\t\tif (pseudo === 0) {\n\t\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\n\t\t\t\t\t\t\t\t// first character is a letter or dash, buffer has a space character\n\t\t\t\t\t\t\t\tif ((first === DASH || first > 96 && first < 123)) {\n\t\t\t\t\t\t\t\t\tlength = (chars = chars.replace(' ', ':')).length\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// execute plugins, property context\n\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\tif ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {\n\t\t\t\t\t\t\t\t\tif ((length = (chars = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\tchars = '\\0\\0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\t\tif (second === IMPORT || second === CHARSET) {\n\t\t\t\t\t\t\t\t\t\tflat += chars + body.charAt(caret)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tif (chars.charCodeAt(length-1) === COLON) {\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tout += property(chars, first, second, chars.charCodeAt(2))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// parse characters\n\t\t\tswitch (code) {\n\t\t\t\tcase CARRIAGE:\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t// auto insert semicolon\n\t\t\t\t\tif (comment + quote + parentheses + bracket + semicolon === 0) {\n\t\t\t\t\t\t// valid non-whitespace characters that\n\t\t\t\t\t\t// may precede a newline\n\t\t\t\t\t\tswitch (peak) {\n\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\tcase AT:\n\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\tcase FOWARDSLASH:\n\t\t\t\t\t\t\tcase DASH:\n\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t// current buffer has a colon\n\t\t\t\t\t\t\t\tif (pseudo > 0) {\n\t\t\t\t\t\t\t\t\tinsert = 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// terminate line comment\n\t\t\t\t\tif (comment === FOWARDSLASH) {\n\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t} else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {\n\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\tchars += '\\0'\n\t\t\t\t\t}\n\n\t\t\t\t\t// execute plugins, newline context\n\t\t\t\t\tif (plugged * unkwn > 0) {\n\t\t\t\t\t\tproxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)\n\t\t\t\t\t}\n\n\t\t\t\t\t// next line, reset column position\n\t\t\t\t\tcolumn = 1\n\t\t\t\t\tline++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase SEMICOLON:\n\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t\t\tcolumn++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\t// increment column position\n\t\t\t\t\tcolumn++\n\n\t\t\t\t\t// current character\n\t\t\t\t\tchar = body.charAt(caret)\n\n\t\t\t\t\t// remove comments, escape functions, strings, attributes and prepare selectors\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tif (quote + bracket + comment === 0) {\n\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tif (code !== SPACE) {\n\t\t\t\t\t\t\t\t\t\t\tchar = ' '\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// escape breaking control characters\n\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\tchar = '\\\\0'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FORMFEED: {\n\t\t\t\t\t\t\tchar = '\\\\f'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase VERTICALTAB: {\n\t\t\t\t\t\t\tchar = '\\\\v'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// &\n\t\t\t\t\t\tcase AND: {\n\t\t\t\t\t\t\t// inverted selector pattern i.e html &\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0 && cascade > 0) {\n\t\t\t\t\t\t\t\tinvert = 1\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar = '\\f' + char\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ::paceholder, l\n\t\t\t\t\t\t// :read-ony, l\n\t\t\t\t\t\tcase 108: {\n\t\t\t\t\t\t\tif (quote + comment + bracket + pattern === 0 && pseudo > 0) {\n\t\t\t\t\t\t\t\tswitch (caret - pseudo) {\n\t\t\t\t\t\t\t\t\t// ::placeholder\n\t\t\t\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\t\t\t\tif (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = tail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// :read-only\n\t\t\t\t\t\t\t\t\tcase 8: {\n\t\t\t\t\t\t\t\t\t\tif (trail === READONLY) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = trail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tpseudo = caret\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// selectors\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket === 0) {\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar += '\\r'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// quotes\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// attributes\n\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase CLOSEBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// functions\n\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tparentheses--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\tswitch (tail*2 + trail*3) {\n\t\t\t\t\t\t\t\t\t\t// :matches\n\t\t\t\t\t\t\t\t\t\tcase 533: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// :global, :not, :nth-child etc...\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tcounter = 0\n\t\t\t\t\t\t\t\t\t\t\tcontext = 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tparentheses++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket + pseudo + atrule === 0) {\n\t\t\t\t\t\t\t\tatrule = 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// block/line comments\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\tif (quote + bracket + parentheses > 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch (comment) {\n\t\t\t\t\t\t\t\t// initialize line/block comment context\n\t\t\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\t\t\tswitch (code*2 + body.charCodeAt(caret+1)*3) {\n\t\t\t\t\t\t\t\t\t\t// //\n\t\t\t\t\t\t\t\t\t\tcase 235: {\n\t\t\t\t\t\t\t\t\t\t\tcomment = FOWARDSLASH\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// /*\n\t\t\t\t\t\t\t\t\t\tcase 220: {\n\t\t\t\t\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\t\t\t\t\tcomment = STAR\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// end block comment context\n\t\t\t\t\t\t\t\tcase STAR: {\n\t\t\t\t\t\t\t\t\tif (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {\n\t\t\t\t\t\t\t\t\t\t// /* ... */, !\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(length+2) === 33) {\n\t\t\t\t\t\t\t\t\t\t\tout += body.substring(length, caret+1)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// ignore comment blocks\n\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t// aggressive isolation mode, divide each individual selector\n\t\t\t\t\t\t// including selectors in :not function but excluding selectors in :global function\n\t\t\t\t\t\tif (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {\n\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t// outside of an isolated context i.e nth-child(<...>)\n\t\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = char + '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = '\\0' + char + (code === COMMA ? '' : '\\0')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// within an isolated context, sleep untill it's terminated\n\t\t\t\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\t// :globa(\n\t\t\t\t\t\t\t\t\t\t\t\tif (pseudo + 7 === caret && tail === 108) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcontext = ++counter\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\tif ((context = --counter) === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\tcase NULL:\n\t\t\t\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\t\tcase FORMFEED:\n\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t// ignore in isolated contexts\n\t\t\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// concat buffer of characters\n\t\t\t\t\t\tchars += char\n\n\t\t\t\t\t\t// previous non-whitespace character code\n\t\t\t\t\t\tif (code !== SPACE && code !== TAB) {\n\t\t\t\t\t\t\tpeak = code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// tail character codes\n\t\t\ttrail = tail\n\t\t\ttail = code\n\n\t\t\t// visit every character\n\t\t\tcaret++\n\t\t}\n\n\t\tlength = out.length\n\n\t\t// preserve empty selector\n \t\tif (preserve > 0) {\n \t\t\tif (length === 0 && children.length === 0 && (current[0].length === 0) === false) {\n \t\t\t\tif (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {\n\t\t\t\t\tlength = current.join(',').length + 2\n \t\t\t\t}\n \t\t\t}\n\t\t}\n\n\t\tif (length > 0) {\n\t\t\t// cascade isolation mode?\n\t\t\tselector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current\n\n\t\t\t// execute plugins, block context\n\t\t\tif (plugged > 0) {\n\t\t\t\tresult = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)\n\n\t\t\t\tif (result !== void 0 && (out = result).length === 0) {\n\t\t\t\t\treturn flat + out + children\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout = selector.join(',') + '{' + out + '}'\n\n\t\t\tif (prefix*pattern !== 0) {\n\t\t\t\tif (prefix === 2 && !vendor(out, 2))\n\t\t\t\t\tpattern = 0\n\n\t\t\t\tswitch (pattern) {\n\t\t\t\t\t// ::read-only\n\t\t\t\t\tcase READONLY: {\n\t\t\t\t\t\tout = out.replace(readonlyptn, ':'+moz+'$1')+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// ::placeholder\n\t\t\t\t\tcase PLACEHOLDER: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + webkit + 'input-$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + moz + '$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, ':' + ms + 'input-$1') + out\n\t\t\t\t\t\t)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpattern = 0\n\t\t\t}\n\t\t}\n\n\t\treturn flat + out + children\n\t}\n\n\t/**\n\t * Select\n\t *\n\t * @param {Array} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @return {Array}\n\t */\n\tfunction select (parent, current, invert) {\n\t\tvar selectors = current.trim().split(selectorptn)\n\t\tvar out = selectors\n\n\t\tvar length = selectors.length\n\t\tvar l = parent.length\n\n\t\tswitch (l) {\n\t\t\t// 0-1 parent selectors\n\t\t\tcase 0:\n\t\t\tcase 1: {\n\t\t\t\tfor (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {\n\t\t\t\t\tout[i] = scope(selector, out[i], invert, l).trim()\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// >2 parent selectors, nested\n\t\t\tdefault: {\n\t\t\t\tfor (var i = 0, j = 0, out = []; i < length; ++i) {\n\t\t\t\t\tfor (var k = 0; k < l; ++k) {\n\t\t\t\t\t\tout[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Scope\n\t *\n\t * @param {string} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @param {number} level\n\t * @return {string}\n\t */\n\tfunction scope (parent, current, invert, level) {\n\t\tvar selector = current\n\t\tvar code = selector.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (selector = selector.trim()).charCodeAt(0)\n\t\t}\n\n\t\tswitch (code) {\n\t\t\t// &\n\t\t\tcase AND: {\n\t\t\t\tswitch (cascade + level) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1: {\n\t\t\t\t\t\tif (parent.trim().length === 0) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// :\n\t\t\tcase COLON: {\n\t\t\t\tswitch (selector.charCodeAt(1)) {\n\t\t\t\t\t// g in :global\n\t\t\t\t\tcase 103: {\n\t\t\t\t\t\tif (escape > 0 && cascade > 0) {\n\t\t\t\t\t\t\treturn selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\t// :hover\n\t\t\t\t\t\treturn parent.trim() + selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// html &\n\t\t\t\tif (invert*cascade > 0 && selector.indexOf('\\f') > 0) {\n\t\t\t\t\treturn selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent + selector\n\t}\n\n\t/**\n\t * Property\n\t *\n\t * @param {string} input\n\t * @param {number} first\n\t * @param {number} second\n\t * @param {number} third\n\t * @return {string}\n\t */\n\tfunction property (input, first, second, third) {\n\t\tvar index = 0\n\t\tvar out = input + ';'\n\t\tvar hash = (first*2) + (second*3) + (third*4)\n\t\tvar cache\n\n\t\t// animation: a, n, i characters\n\t\tif (hash === 944) {\n\t\t\treturn animation(out)\n\t\t} else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {\n\t\t\treturn out\n\t\t}\n\n\t\t// vendor prefix\n\t\tswitch (hash) {\n\t\t\t// text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x\n\t\t\tcase 1015: {\n\t\t\t\t// text-shadow/text-align/text-transform, a\n\t\t\t\treturn out.charCodeAt(10) === 97 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// filter/fill f, i, l\n\t\t\tcase 951: {\n\t\t\t\t// filter, t\n\t\t\t\treturn out.charCodeAt(3) === 116 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// color/column, c, o, l\n\t\t\tcase 963: {\n\t\t\t\t// column, n\n\t\t\t\treturn out.charCodeAt(5) === 110 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// box-decoration-break, b, o, x\n\t\t\tcase 1009: {\n\t\t\t\tif (out.charCodeAt(4) !== 100) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// mask, m, a, s\n\t\t\t// clip-path, c, l, i\n\t\t\tcase 969:\n\t\t\tcase 942: {\n\t\t\t\treturn webkit + out + out\n\t\t\t}\n\t\t\t// appearance: a, p, p\n\t\t\tcase 978: {\n\t\t\t\treturn webkit + out + moz + out + out\n\t\t\t}\n\t\t\t// hyphens: h, y, p\n\t\t\t// user-select: u, s, e\n\t\t\tcase 1019:\n\t\t\tcase 983: {\n\t\t\t\treturn webkit + out + moz + out + ms + out + out\n\t\t\t}\n\t\t\t// background/backface-visibility, b, a, c\n\t\t\tcase 883: {\n\t\t\t\t// backface-visibility, -\n\t\t\t\tif (out.charCodeAt(8) === DASH) {\n\t\t\t\t\treturn webkit + out + out\n\t\t\t\t}\n\n\t\t\t\t// image-set(...)\n\t\t\t\tif (out.indexOf('image-set(', 11) > 0) {\n\t\t\t\t\treturn out.replace(imgsrcptn, '$1'+webkit+'$2') + out\n\t\t\t\t}\n\n\t\t\t\treturn out\n\t\t\t}\n\t\t\t// flex: f, l, e\n\t\t\tcase 932: {\n\t\t\t\tif (out.charCodeAt(4) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(5)) {\n\t\t\t\t\t\t// flex-grow, g\n\t\t\t\t\t\tcase 103: {\n\t\t\t\t\t\t\treturn webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-shrink, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('shrink', 'negative') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-basis, b\n\t\t\t\t\t\tcase 98: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('basis', 'preferred-size') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + out + out\n\t\t\t}\n\t\t\t// order: o, r, d\n\t\t\tcase 964: {\n\t\t\t\treturn webkit + out + ms + 'flex' + '-' + out + out\n\t\t\t}\n\t\t\t// justify-items/justify-content, j, u, s\n\t\t\tcase 1023: {\n\t\t\t\t// justify-content, c\n\t\t\t\tif (out.charCodeAt(8) !== 99) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tcache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')\n\t\t\t\treturn webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out\n\t\t\t}\n\t\t\t// cursor, c, u, r\n\t\t\tcase 1005: {\n\t\t\t\treturn cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out\n\t\t\t}\n\t\t\t// writing-mode, w, r, i\n\t\t\tcase 1000: {\n\t\t\t\tcache = out.substring(13).trim()\n\t\t\t\tindex = cache.indexOf('-') + 1\n\n\t\t\t\tswitch (cache.charCodeAt(0)+cache.charCodeAt(index)) {\n\t\t\t\t\t// vertical-lr\n\t\t\t\t\tcase 226: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// vertical-rl\n\t\t\t\t\tcase 232: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb-rl')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// horizontal-tb\n\t\t\t\t\tcase 220: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'lr')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn out\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + cache + out\n\t\t\t}\n\t\t\t// position: sticky\n\t\t\tcase 1017: {\n\t\t\t\tif (out.indexOf('sticky', 9) === -1) {\n\t\t\t\t\treturn out\n\t\t\t\t}\n\t\t\t}\n\t\t\t// display(flex/inline-flex/inline-box): d, i, s\n\t\t\tcase 975: {\n\t\t\t\tindex = (out = input).length - 10\n\t\t\t\tcache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()\n\n\t\t\t\tswitch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {\n\t\t\t\t\t// inline-\n\t\t\t\t\tcase 203: {\n\t\t\t\t\t\t// inline-box\n\t\t\t\t\t\tif (cache.charCodeAt(8) < 111) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// inline-box/sticky\n\t\t\t\t\tcase 115: {\n\t\t\t\t\t\tout = out.replace(cache, webkit+cache)+';'+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// inline-flex\n\t\t\t\t\t// flex\n\t\t\t\t\tcase 207:\n\t\t\t\t\tcase 102: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+\n\t\t\t\t\t\t\tout.replace(cache, webkit+cache)+';'+\n\t\t\t\t\t\t\tout.replace(cache, ms+cache+'box')+';'+\n\t\t\t\t\t\t\tout\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn out + ';'\n\t\t\t}\n\t\t\t// align-items, align-center, align-self: a, l, i, -\n\t\t\tcase 938: {\n\t\t\t\tif (out.charCodeAt(5) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(6)) {\n\t\t\t\t\t\t// align-items, i\n\t\t\t\t\t\tcase 105: {\n\t\t\t\t\t\t\tcache = out.replace('-items', '')\n\t\t\t\t\t\t\treturn webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-self, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-content\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// min/max\n\t\t\tcase 973:\n\t\t\tcase 989: {\n\t\t\t\t// min-/max- height/width/block-size/inline-size\n\t\t\t\tif (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// height/width: min-content / width: max-content\n\t\t\tcase 931:\n\t\t\tcase 953: {\n\t\t\t\tif (dimensionptn.test(input) === true) {\n\t\t\t\t\t// stretch\n\t\t\t\t\tif ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)\n\t\t\t\t\t\treturn property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')\n\t\t\t\t\telse\n\t\t\t\t\t\treturn out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// transform, transition: t, r, a\n\t\t\tcase 962: {\n\t\t\t\tout = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out\n\n\t\t\t\t// transitions\n\t\t\t\tif (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {\n\t\t\t\t\treturn out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Vendor\n\t *\n\t * @param {string} content\n\t * @param {number} context\n\t * @return {boolean}\n\t */\n\tfunction vendor (content, context) {\n\t\tvar index = content.indexOf(context === 1 ? ':' : '{')\n\t\tvar key = content.substring(0, context !== 3 ? index : 10)\n\t\tvar value = content.substring(index + 1, content.length - 1)\n\n\t\treturn should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)\n\t}\n\n\t/**\n\t * Supports\n\t *\n\t * @param {string} match\n\t * @param {string} group\n\t * @return {string}\n\t */\n\tfunction supports (match, group) {\n\t\tvar out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))\n\n\t\treturn out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'\n\t}\n\n\t/**\n\t * Animation\n\t *\n\t * @param {string} input\n\t * @return {string}\n\t */\n\tfunction animation (input) {\n\t\tvar length = input.length\n\t\tvar index = input.indexOf(':', 9) + 1\n\t\tvar declare = input.substring(0, index).trim()\n\t\tvar out = input.substring(index, length-1).trim()\n\n\t\tswitch (input.charCodeAt(9)*keyed) {\n\t\t\tcase 0: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// animation-*, -\n\t\t\tcase DASH: {\n\t\t\t\t// animation-name, n\n\t\t\t\tif (input.charCodeAt(10) !== 110) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// animation/animation-name\n\t\t\tdefault: {\n\t\t\t\t// split in case of multiple animations\n\t\t\t\tvar list = out.split((out = '', animationptn))\n\n\t\t\t\tfor (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {\n\t\t\t\t\tvar value = list[i]\n\t\t\t\t\tvar items = value.split(propertiesptn)\n\n\t\t\t\t\twhile (value = items[index]) {\n\t\t\t\t\t\tvar peak = value.charCodeAt(0)\n\n\t\t\t\t\t\tif (keyed === 1 && (\n\t\t\t\t\t\t\t// letters\n\t\t\t\t\t\t\t(peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||\n\t\t\t\t\t\t\t// dash but not in sequence i.e --\n\t\t\t\t\t\t\t(peak === DASH && value.charCodeAt(1) !== DASH)\n\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t// not a number/function\n\t\t\t\t\t\t\tswitch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {\n\t\t\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\t\t\tswitch (value) {\n\t\t\t\t\t\t\t\t\t\t// not a valid reserved keyword\n\t\t\t\t\t\t\t\t\t\tcase 'infinite': case 'alternate': case 'backwards': case 'running':\n\t\t\t\t\t\t\t\t\t\tcase 'normal': case 'forwards': case 'both': case 'none': case 'linear':\n\t\t\t\t\t\t\t\t\t\tcase 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':\n\t\t\t\t\t\t\t\t\t\tcase 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':\n\t\t\t\t\t\t\t\t\t\tcase 'initial': case 'unset': case 'step-start': case 'step-end': {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tvalue += key\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titems[index++] = value\n\t\t\t\t\t}\n\n\t\t\t\t\tout += (i === 0 ? '' : ',') + items.join(' ')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tout = declare + out + ';'\n\n\t\tif (prefix === 1 || (prefix === 2 && vendor(out, 1)))\n\t\t\treturn webkit + out + out\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Isolate\n\t *\n\t * @param {Array} current\n\t */\n\tfunction isolate (current) {\n\t\tfor (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {\n\t\t\t// split individual elements in a selector i.e h1 h2 === [h1, h2]\n\t\t\tvar elements = current[i].split(elementptn)\n\t\t\tvar out = ''\n\n\t\t\tfor (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {\n\t\t\t\t// empty element\n\t\t\t\tif ((size = (element = elements[j]).length) === 0 && l > 1) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\ttail = out.charCodeAt(out.length-1)\n\t\t\t\tcode = element.charCodeAt(0)\n\t\t\t\tpadding = ''\n\n\t\t\t\tif (j !== 0) {\n\t\t\t\t\t// determine if we need padding\n\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tpadding = ' '\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase AND: {\n\t\t\t\t\t\telement = padding + nscopealt\n\t\t\t\t\t}\n\t\t\t\t\tcase TILDE:\n\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\tcase SPACE:\n\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\tswitch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {\n\t\t\t\t\t\t\t// :global\n\t\t\t\t\t\t\tcase 530: {\n\t\t\t\t\t\t\t\tif (escape > 0) {\n\t\t\t\t\t\t\t\t\telement = padding + element.substring(8, size - 1)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// :hover, :nth-child(), ...\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tif (j < 1 || elements[j-1].length < 1) {\n\t\t\t\t\t\t\t\t\telement = padding + nscopealt + element\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\tpadding = ''\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\tif (size > 1 && element.indexOf(':') > 0) {\n\t\t\t\t\t\t\telement = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout += element\n\t\t\t}\n\n\t\t\tselector[i] = out.replace(formatptn, '').trim()\n\t\t}\n\n\t\treturn selector\n\t}\n\n\t/**\n\t * Proxy\n\t *\n\t * @param {number} context\n\t * @param {string} content\n\t * @param {Array} selectors\n\t * @param {Array} parents\n\t * @param {number} line\n\t * @param {number} column\n\t * @param {number} length\n\t * @param {number} id\n\t * @param {number} depth\n\t * @param {number} at\n\t * @return {(string|void|*)}\n\t */\n\tfunction proxy (context, content, selectors, parents, line, column, length, id, depth, at) {\n\t\tfor (var i = 0, out = content, next; i < plugged; ++i) {\n\t\t\tswitch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {\n\t\t\t\tcase void 0:\n\t\t\t\tcase false:\n\t\t\t\tcase true:\n\t\t\t\tcase null: {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tout = next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (out !== content) {\n\t\t return out\n\t\t}\n\t}\n\n\t/**\n\t * @param {number} code\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction delimited (code, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\t// /*\n\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\tif (code === STAR) {\n\t\t\t\t\t\tif (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {\n\t\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// //\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\tif (code === FOWARDSLASH) {\n\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * @param {number} type\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {number} find\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction match (type, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\tcase type: {\n\t\t\t\t\treturn i\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * Minify\n\t *\n\t * @param {(string|*)} output\n\t * @return {string}\n\t */\n\tfunction minify (output) {\n\t\treturn output\n\t\t\t.replace(formatptn, '')\n\t\t\t.replace(beforeptn, '')\n\t\t\t.replace(afterptn, '$1')\n\t\t\t.replace(tailptn, '$1')\n\t\t\t.replace(whiteptn, ' ')\n\t}\n\n\t/**\n\t * Use\n\t *\n\t * @param {(Array|function(...?)|number|void)?} plugin\n\t */\n\tfunction use (plugin) {\n\t\tswitch (plugin) {\n\t\t\tcase void 0:\n\t\t\tcase null: {\n\t\t\t\tplugged = plugins.length = 0\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tif (typeof plugin === 'function') {\n\t\t\t\t\tplugins[plugged++] = plugin\n\t\t\t\t}\telse if (typeof plugin === 'object') {\n\t\t\t\t\tfor (var i = 0, length = plugin.length; i < length; ++i) {\n\t\t\t\t\t\tuse(plugin[i])\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tunkwn = !!plugin|0\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\n \t\treturn use\n\t}\n\n\t/**\n\t * Set\n\t *\n\t * @param {*} options\n\t */\n\tfunction set (options) {\n\t\tfor (var name in options) {\n\t\t\tvar value = options[name]\n\t\t\tswitch (name) {\n\t\t\t\tcase 'keyframe': keyed = value|0; break\n\t\t\t\tcase 'global': escape = value|0; break\n\t\t\t\tcase 'cascade': cascade = value|0; break\n\t\t\t\tcase 'compress': compress = value|0; break\n\t\t\t\tcase 'semicolon': semicolon = value|0; break\n\t\t\t\tcase 'preserve': preserve = value|0; break\n\t\t\t\tcase 'prefix':\n\t\t\t\t\tshould = null\n\n\t\t\t\t\tif (!value) {\n\t\t\t\t\t\tprefix = 0\n\t\t\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\t\t\tprefix = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprefix = 2\n\t\t\t\t\t\tshould = value\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn set\n\t}\n\n\t/**\n\t * Stylis\n\t *\n\t * @param {string} selector\n\t * @param {string} input\n\t * @return {*}\n\t */\n\tfunction stylis (selector, input) {\n\t\tif (this !== void 0 && this.constructor === stylis) {\n\t\t\treturn factory(selector)\n\t\t}\n\n\t\t// setup\n\t\tvar ns = selector\n\t\tvar code = ns.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (ns = ns.trim()).charCodeAt(0)\n\t\t}\n\n\t\t// keyframe/animation namespace\n\t\tif (keyed > 0) {\n\t\t\tkey = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')\n\t\t}\n\n\t\t// reset, used to assert if a plugin is moneky-patching the return value\n\t\tcode = 1\n\n\t\t// cascade/isolate\n\t\tif (cascade === 1) {\n\t\t\tnscope = ns\n\t\t} else {\n\t\t\tnscopealt = ns\n\t\t}\n\n\t\tvar selectors = [nscope]\n\t\tvar result\n\n\t\t// execute plugins, pre-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)\n\n\t\t\tif (result !== void 0 && typeof result === 'string') {\n\t\t\t\tinput = result\n\t\t\t}\n\t\t}\n\n\t\t// build\n\t\tvar output = compile(array, selectors, input, 0, 0)\n\n\t\t// execute plugins, post-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)\n\n\t\t\t// bypass minification\n\t\t\tif (result !== void 0 && typeof(output = result) !== 'string') {\n\t\t\t\tcode = 0\n\t\t\t}\n\t\t}\n\n\t\t// reset\n\t\tkey = ''\n\t\tnscope = ''\n\t\tnscopealt = ''\n\t\tpattern = 0\n\t\tline = 1\n\t\tcolumn = 1\n\n\t\treturn compress*code === 0 ? output : minify(output)\n\t}\n\n\tstylis['use'] = use\n\tstylis['set'] = set\n\n\tif (options !== void 0) {\n\t\tset(options)\n\t}\n\n\treturn stylis\n}));\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\nimport config from './defaultConfig';\n\n// debugger;\n\nexport const defaultConfig = Object.freeze(config);\n\nlet siteConfig = assignWithDepth({}, defaultConfig);\nlet directives = [];\nlet currentConfig = assignWithDepth({}, defaultConfig);\n\n\nconst updateCurrentConfig = conf => {\n currentConfig = assignWithDepth({}, siteConfig);\n\n // Apply directives\n let themeVariables;\n directives.forEach( d => {\n currentConfig = assignWithDepth(currentConfig, d);\n if(d.themeVariables) {\n themeVariables = d.themeVariables;\n }\n })\n const variables = theme[currentConfig.theme].getThemeVariables(themeVariables);\n currentConfig.themeVariables = variables;\n}\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n siteConfig = {...defaultConfig, ...conf};\n\n return siteConfig;\n};\nexport const updateSiteConfig = conf => {\n console.log('setSiteConfig');\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n siteConfig = {...siteConfig, ...conf};\n\n // assignWithDesetpth(currentConfig, conf, { clobber: true });\n // // Set theme variables if user has set the theme option\n // assignWithDepth(siteConfig, conf);\n\n return siteConfig;\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n // sanitize(conf);\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n\n // assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.trace(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n\nexport const addDirective = directive => {\n directives.push(directive);\n updateCurrentConfig();\n}\n\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n // Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n // Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n // assignWithDepth(siteConfig, conf, { clobber: true });\n // assignWithDepth(currentConfig, conf, { clobber: true });\n\n // Replace current config with siteConfig\n directives = [];\n updateCurrentConfig();\n};\n\n// const configApi = Object.freeze({\n// sanitize,\n// setSiteConfig,\n// getSiteConfig,\n// setConfig,\n// getConfig,\n// reset,\n// defaultConfig\n// });\n// export default configApi;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 'strokeWidth')\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","import theme from './themes';\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *

\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for journey diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\n\nexport default config;\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = configApi.getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().class,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,7],$V1=[1,6],$V2=[1,14],$V3=[1,24],$V4=[1,27],$V5=[1,25],$V6=[1,26],$V7=[1,28],$V8=[1,29],$V9=[1,31],$Va=[1,32],$Vb=[1,33],$Vc=[10,19],$Vd=[1,45],$Ve=[1,46],$Vf=[1,47],$Vg=[1,48],$Vh=[1,49],$Vi=[1,50],$Vj=[10,19,25,31,39,42,43,44,45,46,47],$Vk=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],$Vl=[10,13,17,19],$Vm=[39,63,64,65],$Vn=[39,46,47,63,64,65],$Vo=[39,42,43,44,45,63,64,65],$Vp=[10,19,25],$Vq=[1,75];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"graphConfig\":6,\"openDirective\":7,\"typeDirective\":8,\"closeDirective\":9,\"NEWLINE\":10,\":\":11,\"argDirective\":12,\"open_directive\":13,\"type_directive\":14,\"arg_directive\":15,\"close_directive\":16,\"CLASS_DIAGRAM\":17,\"statements\":18,\"EOF\":19,\"statement\":20,\"className\":21,\"alphaNumToken\":22,\"GENERICTYPE\":23,\"relationStatement\":24,\"LABEL\":25,\"classStatement\":26,\"methodStatement\":27,\"annotationStatement\":28,\"clickStatement\":29,\"CLASS\":30,\"STRUCT_START\":31,\"members\":32,\"STRUCT_STOP\":33,\"ANNOTATION_START\":34,\"ANNOTATION_END\":35,\"MEMBER\":36,\"SEPARATOR\":37,\"relation\":38,\"STR\":39,\"relationType\":40,\"lineType\":41,\"AGGREGATION\":42,\"EXTENSION\":43,\"COMPOSITION\":44,\"DEPENDENCY\":45,\"LINE\":46,\"DOTTED_LINE\":47,\"CALLBACK\":48,\"LINK\":49,\"commentToken\":50,\"textToken\":51,\"graphCodeTokens\":52,\"textNoTagsToken\":53,\"TAGSTART\":54,\"TAGEND\":55,\"==\":56,\"--\":57,\"PCT\":58,\"DEFAULT\":59,\"SPACE\":60,\"MINUS\":61,\"keywords\":62,\"UNICODE_TEXT\":63,\"NUM\":64,\"ALPHA\":65,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\"NEWLINE\",11:\":\",13:\"open_directive\",14:\"type_directive\",15:\"arg_directive\",16:\"close_directive\",17:\"CLASS_DIAGRAM\",19:\"EOF\",23:\"GENERICTYPE\",25:\"LABEL\",30:\"CLASS\",31:\"STRUCT_START\",33:\"STRUCT_STOP\",34:\"ANNOTATION_START\",35:\"ANNOTATION_END\",36:\"MEMBER\",37:\"SEPARATOR\",39:\"STR\",42:\"AGGREGATION\",43:\"EXTENSION\",44:\"COMPOSITION\",45:\"DEPENDENCY\",46:\"LINE\",47:\"DOTTED_LINE\",48:\"CALLBACK\",49:\"LINK\",52:\"graphCodeTokens\",54:\"TAGSTART\",55:\"TAGEND\",56:\"==\",57:\"--\",58:\"PCT\",59:\"DEFAULT\",60:\"SPACE\",61:\"MINUS\",62:\"keywords\",63:\"UNICODE_TEXT\",64:\"NUM\",65:\"ALPHA\"},\nproductions_: [0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 7:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 8:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 9:\n yy.parseDirective('}%%', 'close_directive', 'class'); \nbreak;\ncase 14:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 15:\n this.$=$$[$0]; \nbreak;\ncase 16:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 17:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 18:\n yy.addRelation($$[$0]); \nbreak;\ncase 19:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 25:\nyy.addClass($$[$0]);\nbreak;\ncase 26:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 27:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 28:\n this.$ = [$$[$0]]; \nbreak;\ncase 29:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 30:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 31:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 32:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 33:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 34:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 35:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 36:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 37:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 38:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 39:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 40:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 41:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 42:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 43:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 44:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 45:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 46:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 47:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 48:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 50:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:$V2},o([11,16],[2,7]),{5:22,7:5,13:$V0,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},o($Vc,[2,18],{25:[1,39]}),o($Vc,[2,20]),o($Vc,[2,21]),o($Vc,[2,22]),o($Vc,[2,23]),o($Vc,[2,24]),o($Vc,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi}),{21:51,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,32]),o($Vc,[2,33]),{22:52,63:$V9,64:$Va,65:$Vb},{21:53,22:30,63:$V9,64:$Va,65:$Vb},{21:54,22:30,63:$V9,64:$Va,65:$Vb},o($Vj,[2,15],{22:30,21:55,23:[1,56],63:$V9,64:$Va,65:$Vb}),o($Vk,[2,65]),o($Vk,[2,66]),o($Vk,[2,67]),o($Vl,[2,4]),{9:57,16:$V2},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:$V0,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},o($Vc,[2,19]),{21:59,22:30,39:[1,60],63:$V9,64:$Va,65:$Vb},{38:61,40:43,41:44,42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi},o($Vc,[2,31]),{41:62,46:$Vh,47:$Vi},o($Vm,[2,41],{40:63,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vn,[2,42]),o($Vn,[2,43]),o($Vn,[2,44]),o($Vn,[2,45]),o($Vo,[2,46]),o($Vo,[2,47]),o($Vc,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},o($Vj,[2,14]),o($Vj,[2,17],{22:30,21:68,63:$V9,64:$Va,65:$Vb}),{10:[1,69]},{19:[2,13]},o($Vp,[2,34]),{21:70,22:30,63:$V9,64:$Va,65:$Vb},{21:71,22:30,39:[1,72],63:$V9,64:$Va,65:$Vb},o($Vm,[2,40],{40:73,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vm,[2,39]),{32:74,36:$Vq},{21:76,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,48],{39:[1,77]}),o($Vc,[2,50],{39:[1,78]}),o($Vj,[2,16]),o($Vl,[2,5]),o($Vp,[2,36]),o($Vp,[2,35]),{21:79,22:30,63:$V9,64:$Va,65:$Vb},o($Vm,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:$Vq},o($Vc,[2,27]),o($Vc,[2,49]),o($Vc,[2,51]),o($Vp,[2,37]),o($Vc,[2,26]),{33:[2,29]}],\ndefaultActions: {2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 13; \nbreak;\ncase 1: this.begin('type_directive'); return 14; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 11; \nbreak;\ncase 3: this.popState(); this.popState(); return 16; \nbreak;\ncase 4:return 15;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 10;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 17;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11: this.begin(\"struct\"); /*console.log('Starting struct');*/ return 31;\nbreak;\ncase 12:return \"EOF_IN_STRUCT\";\nbreak;\ncase 13:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 14: /*console.log('Ending struct');*/this.popState(); return 33;\nbreak;\ncase 15:/* nothing */\nbreak;\ncase 16: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 17:return 30;\nbreak;\ncase 18:return 48;\nbreak;\ncase 19:return 49;\nbreak;\ncase 20:return 34;\nbreak;\ncase 21:return 35;\nbreak;\ncase 22:this.begin(\"generic\");\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24:return \"GENERICTYPE\";\nbreak;\ncase 25:this.begin(\"string\");\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:return \"STR\";\nbreak;\ncase 28:return 43;\nbreak;\ncase 29:return 43;\nbreak;\ncase 30:return 45;\nbreak;\ncase 31:return 45;\nbreak;\ncase 32:return 44;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 46;\nbreak;\ncase 35:return 47;\nbreak;\ncase 36:return 25;\nbreak;\ncase 37:return 61;\nbreak;\ncase 38:return 'DOT';\nbreak;\ncase 39:return 'PLUS';\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 'EQUALS';\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 65;\nbreak;\ncase 44:return 'PUNCTUATION';\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 63;\nbreak;\ncase 47:return 60;\nbreak;\ncase 48:return 19;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%%(?!\\{)*[^\\n]*(\\r?\\n)+)/,/^(?:%%[^\\n]*(\\r?\\n)*)/,/^(?:(\\r?\\n)+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\\n])/,/^(?:[^{}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[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B\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[26,27],\"inclusive\":false},\"generic\":{\"rules\":[23,24],\"inclusive\":false},\"struct\":{\"rules\":[12,13,14,15,16],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n getConfig: () => configApi.getConfig().er,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'er'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.tertiaryColor};\n opacity: 0.3;\n background-color: ${options.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = configApi.defaultConfig;\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = configApi.defaultConfig;\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (configApi.defaultConfig.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n defaultConfig: () => configApi.defaultConfig.flowchart,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,9],$V1=[1,7],$V2=[1,6],$V3=[1,8],$V4=[1,20,21,22,23,38,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$V5=[2,10],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[1,23],$Va=[1,30],$Vb=[1,54],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[1,36],$Vh=[1,48],$Vi=[1,43],$Vj=[1,45],$Vk=[1,40],$Vl=[1,44],$Vm=[1,47],$Vn=[1,51],$Vo=[1,52],$Vp=[1,53],$Vq=[1,42],$Vr=[1,46],$Vs=[1,49],$Vt=[1,50],$Vu=[1,41],$Vv=[1,57],$Vw=[1,62],$Vx=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vy=[1,66],$Vz=[1,65],$VA=[1,67],$VB=[20,21,23,69,70],$VC=[20,21,22,23,69,70],$VD=[20,21,22,23,47,69,70],$VE=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VF=[20,21,23],$VG=[20,21,23,46,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VH=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VI=[46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VJ=[1,115],$VK=[1,136],$VL=[1,137],$VM=[1,138],$VN=[1,139],$VO=[1,119],$VP=[1,110],$VQ=[1,111],$VR=[1,107],$VS=[1,131],$VT=[1,132],$VU=[1,133],$VV=[1,134],$VW=[1,135],$VX=[1,140],$VY=[1,141],$VZ=[1,113],$V_=[1,121],$V$=[1,124],$V01=[1,122],$V11=[1,123],$V21=[1,116],$V31=[1,129],$V41=[1,128],$V51=[1,112],$V61=[1,109],$V71=[1,118],$V81=[1,120],$V91=[1,125],$Va1=[1,126],$Vb1=[1,127],$Vc1=[1,130],$Vd1=[20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Ve1=[1,144],$Vf1=[1,148],$Vg1=[1,150],$Vh1=[1,151],$Vi1=[12,21,22,24],$Vj1=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,90,91,94,95,96,98,99,100,101,105,106,107,108,109,110],$Vk1=[20,21,22,23,26,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vl1=[22,91],$Vm1=[1,220],$Vn1=[1,224],$Vo1=[1,221],$Vp1=[1,218],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,217],$Vt1=[1,219],$Vu1=[1,222],$Vv1=[1,223],$Vw1=[1,225],$Vx1=[1,241],$Vy1=[20,21,23,91],$Vz1=[20,21,22,23,75,87,90,91,94,95,96,97,98,99,100];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"openDirective\":6,\"typeDirective\":7,\"closeDirective\":8,\"separator\":9,\":\":10,\"argDirective\":11,\"open_directive\":12,\"type_directive\":13,\"arg_directive\":14,\"close_directive\":15,\"graphConfig\":16,\"document\":17,\"line\":18,\"statement\":19,\"SEMI\":20,\"NEWLINE\":21,\"SPACE\":22,\"EOF\":23,\"GRAPH\":24,\"NODIR\":25,\"DIR\":26,\"FirstStmtSeperator\":27,\"ending\":28,\"endToken\":29,\"spaceList\":30,\"spaceListNewline\":31,\"verticeStatement\":32,\"styleStatement\":33,\"linkStyleStatement\":34,\"classDefStatement\":35,\"classStatement\":36,\"clickStatement\":37,\"subgraph\":38,\"text\":39,\"SQS\":40,\"SQE\":41,\"end\":42,\"link\":43,\"node\":44,\"vertex\":45,\"AMP\":46,\"STYLE_SEPARATOR\":47,\"idString\":48,\"PS\":49,\"PE\":50,\"(-\":51,\"-)\":52,\"STADIUMSTART\":53,\"STADIUMEND\":54,\"SUBROUTINESTART\":55,\"SUBROUTINEEND\":56,\"CYLINDERSTART\":57,\"CYLINDEREND\":58,\"DIAMOND_START\":59,\"DIAMOND_STOP\":60,\"TAGEND\":61,\"TRAPSTART\":62,\"TRAPEND\":63,\"INVTRAPSTART\":64,\"INVTRAPEND\":65,\"linkStatement\":66,\"arrowText\":67,\"TESTSTR\":68,\"START_LINK\":69,\"LINK\":70,\"PIPE\":71,\"textToken\":72,\"STR\":73,\"keywords\":74,\"STYLE\":75,\"LINKSTYLE\":76,\"CLASSDEF\":77,\"CLASS\":78,\"CLICK\":79,\"DOWN\":80,\"UP\":81,\"textNoTags\":82,\"textNoTagsToken\":83,\"DEFAULT\":84,\"stylesOpt\":85,\"alphaNum\":86,\"HEX\":87,\"numList\":88,\"INTERPOLATE\":89,\"NUM\":90,\"COMMA\":91,\"style\":92,\"styleComponent\":93,\"ALPHA\":94,\"COLON\":95,\"MINUS\":96,\"UNIT\":97,\"BRKT\":98,\"DOT\":99,\"PCT\":100,\"TAGSTART\":101,\"alphaNumToken\":102,\"idStringToken\":103,\"alphaNumStatement\":104,\"PUNCTUATION\":105,\"UNICODE_TEXT\":106,\"PLUS\":107,\"EQUALS\":108,\"MULT\":109,\"UNDERSCORE\":110,\"graphCodeTokens\":111,\"ARROW_CROSS\":112,\"ARROW_POINT\":113,\"ARROW_CIRCLE\":114,\"ARROW_OPEN\":115,\"QUOTE\":116,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\":\",12:\"open_directive\",13:\"type_directive\",14:\"arg_directive\",15:\"close_directive\",20:\"SEMI\",21:\"NEWLINE\",22:\"SPACE\",23:\"EOF\",24:\"GRAPH\",25:\"NODIR\",26:\"DIR\",38:\"subgraph\",40:\"SQS\",41:\"SQE\",42:\"end\",46:\"AMP\",47:\"STYLE_SEPARATOR\",49:\"PS\",50:\"PE\",51:\"(-\",52:\"-)\",53:\"STADIUMSTART\",54:\"STADIUMEND\",55:\"SUBROUTINESTART\",56:\"SUBROUTINEEND\",57:\"CYLINDERSTART\",58:\"CYLINDEREND\",59:\"DIAMOND_START\",60:\"DIAMOND_STOP\",61:\"TAGEND\",62:\"TRAPSTART\",63:\"TRAPEND\",64:\"INVTRAPSTART\",65:\"INVTRAPEND\",68:\"TESTSTR\",69:\"START_LINK\",70:\"LINK\",71:\"PIPE\",73:\"STR\",75:\"STYLE\",76:\"LINKSTYLE\",77:\"CLASSDEF\",78:\"CLASS\",79:\"CLICK\",80:\"DOWN\",81:\"UP\",84:\"DEFAULT\",87:\"HEX\",89:\"INTERPOLATE\",90:\"NUM\",91:\"COMMA\",94:\"ALPHA\",95:\"COLON\",96:\"MINUS\",97:\"UNIT\",98:\"BRKT\",99:\"DOT\",100:\"PCT\",101:\"TAGSTART\",105:\"PUNCTUATION\",106:\"UNICODE_TEXT\",107:\"PLUS\",108:\"EQUALS\",109:\"MULT\",110:\"UNDERSCORE\",112:\"ARROW_CROSS\",113:\"ARROW_POINT\",114:\"ARROW_CIRCLE\",115:\"ARROW_OPEN\",116:\"QUOTE\"},\nproductions_: [0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[88,1],[88,3],[85,1],[85,3],[92,1],[92,2],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[104,1],[104,1],[104,1],[104,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 5:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 6:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 7:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 8:\n yy.parseDirective('}%%', 'close_directive', 'flowchart'); \nbreak;\ncase 10:\n this.$ = [];\nbreak;\ncase 11:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 12: case 76: case 78: case 90: case 136: case 138: case 139:\nthis.$=$$[$0];\nbreak;\ncase 19:\n yy.setDirection('TB');this.$ = 'TB';\nbreak;\ncase 20:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 35:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 36: case 37: case 38: case 39: case 40:\nthis.$=[];\nbreak;\ncase 41:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 42:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 43:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 47:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 48:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 49:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 50:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 51:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 52:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 53:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 55:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 62:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 63:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 64:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 65:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 66:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 67:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 68:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 69:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 70: case 71:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 72:\nthis.$ = $$[$0];\nbreak;\ncase 73:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 74:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 75:\nthis.$ = $$[$0-1];\nbreak;\ncase 77: case 91: case 137:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 92: case 93:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 97:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 98:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 99:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 100: case 102:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 101:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 103:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 104:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 105:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 106:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 107: case 109:\nthis.$ = [$$[$0]]\nbreak;\ncase 108: case 110:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 112:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 134:\nthis.$=$$[$0]\nbreak;\ncase 135:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 140:\nthis.$='v';\nbreak;\ncase 141:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},o($V4,$V5,{17:11}),{7:12,13:[1,13]},{16:14,21:$V1,22:$V2,24:$V3},{16:15,21:$V1,22:$V2,24:$V3},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{8:55,10:[1,56],15:$Vv},o([10,15],[2,6]),o($V4,[2,17]),o($V4,[2,18]),o($V4,[2,19]),{20:[1,59],21:[1,60],22:$Vw,27:58,30:61},o($Vx,[2,11]),o($Vx,[2,12]),o($Vx,[2,13]),o($Vx,[2,14]),o($Vx,[2,15]),o($Vx,[2,16]),{9:63,20:$Vy,21:$Vz,23:$VA,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:$Vy,21:$Vz,23:$VA},{9:72,20:$Vy,21:$Vz,23:$VA},{9:73,20:$Vy,21:$Vz,23:$VA},{9:74,20:$Vy,21:$Vz,23:$VA},{9:75,20:$Vy,21:$Vz,23:$VA},{9:77,20:$Vy,21:$Vz,22:[1,76],23:$VA},o($VB,[2,50],{30:78,22:$Vw}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},o($VC,[2,51],{47:[1,84]}),o($VD,[2,68],{103:95,40:[1,85],46:$Vb,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),o($VE,[2,134]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($VE,[2,165]),o($VE,[2,166]),o($VE,[2,167]),o($VE,[2,168]),o($VE,[2,169]),{9:96,20:$Vy,21:$Vz,23:$VA},{11:97,14:[1,98]},o($VF,[2,8]),o($V4,[2,20]),o($V4,[2,26]),o($V4,[2,27]),{21:[1,99]},o($VG,[2,34],{30:100,22:$Vw}),o($Vx,[2,35]),{44:101,45:37,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VH,[2,44]),o($VH,[2,45]),o($VH,[2,46]),o($VI,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$VJ,24:$VK,26:$VL,38:$VM,39:105,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o([46,68,71,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,74]),o($Vx,[2,36]),o($Vx,[2,37]),o($Vx,[2,38]),o($Vx,[2,39]),o($Vx,[2,40]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:142,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:143}),o($VB,[2,49],{46:$Ve1}),{26:$Vf1,46:$VO,80:$Vg1,86:145,87:[1,146],90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{84:[1,152],88:153,90:[1,154]},{26:$Vf1,46:$VO,80:$Vg1,84:[1,155],86:156,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:157,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:158,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{46:$Vb,48:159,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$VJ,24:$VK,26:$VL,38:$VM,39:160,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:162,42:$VN,46:$VO,49:[1,161],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:163,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:164,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:165,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:166,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:167,42:$VN,46:$VO,59:[1,168],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:169,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:170,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:171,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VE,[2,135]),o($Vi1,[2,3]),{8:172,15:$Vv},{15:[2,7]},o($V4,[2,28]),o($VG,[2,33]),o($VB,[2,47],{30:173,22:$Vw}),o($VI,[2,69],{22:[1,174]}),{22:[1,175]},{22:$VJ,24:$VK,26:$VL,38:$VM,39:176,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,70:[1,177],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vj1,[2,76]),o($Vj1,[2,78]),o($Vj1,[2,124]),o($Vj1,[2,125]),o($Vj1,[2,126]),o($Vj1,[2,127]),o($Vj1,[2,128]),o($Vj1,[2,129]),o($Vj1,[2,130]),o($Vj1,[2,131]),o($Vj1,[2,132]),o($Vj1,[2,133]),o($Vj1,[2,142]),o($Vj1,[2,143]),o($Vj1,[2,144]),o($Vj1,[2,145]),o($Vj1,[2,146]),o($Vj1,[2,147]),o($Vj1,[2,148]),o($Vj1,[2,149]),o($Vj1,[2,150]),o($Vj1,[2,151]),o($Vj1,[2,152]),o($Vj1,[2,153]),o($Vj1,[2,154]),o($Vj1,[2,79]),o($Vj1,[2,80]),o($Vj1,[2,81]),o($Vj1,[2,82]),o($Vj1,[2,83]),o($Vj1,[2,84]),o($Vj1,[2,85]),o($Vj1,[2,86]),o($Vj1,[2,87]),o($Vj1,[2,88]),o($Vj1,[2,89]),{9:180,20:$Vy,21:$Vz,22:$VJ,23:$VA,24:$VK,26:$VL,38:$VM,40:[1,179],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,181],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vw,30:182},{22:[1,183],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,185]},o($Vk1,[2,136]),o($Vk1,[2,138]),o($Vk1,[2,139]),o($Vk1,[2,140]),o($Vk1,[2,141]),{22:[1,186]},{22:[1,187],91:[1,188]},o($Vl1,[2,107]),{22:[1,189]},{22:[1,190],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,191],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,192],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VC,[2,53],{103:95,46:$Vb,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,193],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:194,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,195],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,52:[1,196],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,54:[1,197],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,56:[1,198],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,58:[1,199],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,200],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:201,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,202],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,203],65:[1,204],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,206],65:[1,205],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{9:207,20:$Vy,21:$Vz,23:$VA},o($VB,[2,48],{46:$Ve1}),o($VI,[2,71]),o($VI,[2,70]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,71:[1,208],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VI,[2,73]),o($Vj1,[2,77]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:209,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:210}),o($Vx,[2,43]),{45:211,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:212,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vk1,[2,137]),{22:$Vm1,75:$Vn1,85:226,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:227,87:$Vo1,89:[1,228],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:229,87:$Vo1,89:[1,230],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{90:[1,231]},{22:$Vm1,75:$Vn1,85:232,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:233,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{26:$Vf1,46:$VO,80:$Vg1,86:234,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,73:[1,236],80:$Vg1,86:235,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,54]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,237],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,60]),o($VD,[2,56]),o($VD,[2,57]),o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,238],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,63]),o($VD,[2,64]),o($VD,[2,66]),o($VD,[2,65]),o($VD,[2,67]),o($Vi1,[2,4]),o([22,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,75]),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,239],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,240],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VC,[2,52]),o($VF,[2,99],{91:$Vx1}),o($Vy1,[2,109],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($Vz1,[2,111]),o($Vz1,[2,113]),o($Vz1,[2,114]),o($Vz1,[2,115]),o($Vz1,[2,116]),o($Vz1,[2,117]),o($Vz1,[2,118]),o($Vz1,[2,119]),o($Vz1,[2,120]),o($Vz1,[2,121]),o($Vz1,[2,122]),o($Vz1,[2,123]),o($VF,[2,100],{91:$Vx1}),o($VF,[2,101],{91:$Vx1}),{22:[1,243]},o($VF,[2,102],{91:$Vx1}),{22:[1,244]},o($Vl1,[2,108]),o($VF,[2,92],{91:$Vx1}),o($VF,[2,93],{91:$Vx1}),o($VF,[2,94],{102:149,104:184,26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,95],{102:149,104:184,22:[1,245],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:$Vy,21:$Vz,23:$VA},o($Vx,[2,42]),{22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,92:250,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vz1,[2,112]),{26:$Vf1,46:$VO,80:$Vg1,86:251,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:252,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{73:[1,253]},{73:[1,254]},o($VD,[2,55]),o($VD,[2,62]),o($Vd1,$V5,{17:255}),o($Vy1,[2,110],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($VF,[2,105],{102:149,104:184,22:[1,256],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,106],{102:149,104:184,22:[1,257],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,96]),o($VF,[2,98]),{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,258],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:259,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:260,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vx,[2,41]),o($VF,[2,103],{91:$Vx1}),o($VF,[2,104],{91:$Vx1})],\ndefaultActions: {2:[2,1],9:[2,5],10:[2,2],98:[2,7]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 12; \nbreak;\ncase 1: this.begin('type_directive'); return 13; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 10; \nbreak;\ncase 3: this.popState(); this.popState(); return 15; \nbreak;\ncase 4:return 14;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 75;\nbreak;\ncase 11:return 84;\nbreak;\ncase 12:return 76;\nbreak;\ncase 13:return 89;\nbreak;\ncase 14:return 77;\nbreak;\ncase 15:return 78;\nbreak;\ncase 16:return 79;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 19:return 38;\nbreak;\ncase 20:return 42;\nbreak;\ncase 21: this.popState(); return 25; \nbreak;\ncase 22: this.popState(); return 26; \nbreak;\ncase 23: this.popState(); return 26; \nbreak;\ncase 24: this.popState(); return 26; \nbreak;\ncase 25: this.popState(); return 26; \nbreak;\ncase 26: this.popState(); return 26; \nbreak;\ncase 27: this.popState(); return 26; \nbreak;\ncase 28: this.popState(); return 26; \nbreak;\ncase 29: this.popState(); return 26; \nbreak;\ncase 30: this.popState(); return 26; \nbreak;\ncase 31: this.popState(); return 26; \nbreak;\ncase 32: return 90;\nbreak;\ncase 33:return 98;\nbreak;\ncase 34:return 47;\nbreak;\ncase 35:return 95;\nbreak;\ncase 36:return 46;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 91;\nbreak;\ncase 39:return 109;\nbreak;\ncase 40:return 70;\nbreak;\ncase 41:return 70;\nbreak;\ncase 42:return 70;\nbreak;\ncase 43:return 70;\nbreak;\ncase 44:return 70;\nbreak;\ncase 45:return 70;\nbreak;\ncase 46:return 70;\nbreak;\ncase 47:return 70;\nbreak;\ncase 48:return 70;\nbreak;\ncase 49:return 70;\nbreak;\ncase 50:return 70;\nbreak;\ncase 51:return 70;\nbreak;\ncase 52:return 70;\nbreak;\ncase 53:return 70;\nbreak;\ncase 54:return 70;\nbreak;\ncase 55:return 70;\nbreak;\ncase 56:return 70;\nbreak;\ncase 57:return 70;\nbreak;\ncase 58:return 70;\nbreak;\ncase 59:return 70;\nbreak;\ncase 60:return 70;\nbreak;\ncase 61:return 70;\nbreak;\ncase 62:return 70;\nbreak;\ncase 63:return 70;\nbreak;\ncase 64:return 70;\nbreak;\ncase 65:return 70;\nbreak;\ncase 66:return 70;\nbreak;\ncase 67:return 70;\nbreak;\ncase 68:return 69;\nbreak;\ncase 69:return 69;\nbreak;\ncase 70:return 69;\nbreak;\ncase 71:return 69;\nbreak;\ncase 72:return 69;\nbreak;\ncase 73:return 69;\nbreak;\ncase 74:return 69;\nbreak;\ncase 75:return 69;\nbreak;\ncase 76:return 69;\nbreak;\ncase 77:return 69;\nbreak;\ncase 78:return 69;\nbreak;\ncase 79:return 69;\nbreak;\ncase 80:return 51;\nbreak;\ncase 81:return 52;\nbreak;\ncase 82:return 53;\nbreak;\ncase 83:return 54;\nbreak;\ncase 84:return 55;\nbreak;\ncase 85:return 56;\nbreak;\ncase 86:return 57;\nbreak;\ncase 87:return 58;\nbreak;\ncase 88:return 96;\nbreak;\ncase 89:return 99;\nbreak;\ncase 90:return 110;\nbreak;\ncase 91:return 107;\nbreak;\ncase 92:return 100;\nbreak;\ncase 93:return 108;\nbreak;\ncase 94:return 108;\nbreak;\ncase 95:return 101;\nbreak;\ncase 96:return 61;\nbreak;\ncase 97:return 81;\nbreak;\ncase 98:return 'SEP';\nbreak;\ncase 99:return 80;\nbreak;\ncase 100:return 94;\nbreak;\ncase 101:return 63;\nbreak;\ncase 102:return 62;\nbreak;\ncase 103:return 65;\nbreak;\ncase 104:return 64;\nbreak;\ncase 105:return 105;\nbreak;\ncase 106:return 106;\nbreak;\ncase 107:return 71;\nbreak;\ncase 108:return 49;\nbreak;\ncase 109:return 50;\nbreak;\ncase 110:return 40;\nbreak;\ncase 111:return 41;\nbreak;\ncase 112:return 59\nbreak;\ncase 113:return 60\nbreak;\ncase 114:return 116;\nbreak;\ncase 115:return 21;\nbreak;\ncase 116:return 22;\nbreak;\ncase 117:return 23;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:(\\r?\\n)*\\s*\\n)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*<-->\\s*)/,/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z]+)/,/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\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u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r?\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30,31],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (configApi.getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (configApi.getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().gantt,\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,5],$V2=[7,9,11,12,13,14,15,16,17,18,20,27,32],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,23],$Vb=[1,25],$Vc=[1,28],$Vd=[5,7,9,11,12,13,14,15,16,17,18,20,27,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"directive\":4,\"gantt\":5,\"document\":6,\"EOF\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NL\":11,\"dateFormat\":12,\"inclusiveEndDates\":13,\"axisFormat\":14,\"excludes\":15,\"todayMarker\":16,\"title\":17,\"section\":18,\"clickStatement\":19,\"taskTxt\":20,\"taskData\":21,\"openDirective\":22,\"typeDirective\":23,\"closeDirective\":24,\":\":25,\"argDirective\":26,\"click\":27,\"callbackname\":28,\"callbackargs\":29,\"href\":30,\"clickStatementDebug\":31,\"open_directive\":32,\"type_directive\":33,\"arg_directive\":34,\"close_directive\":35,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"gantt\",7:\"EOF\",9:\"SPACE\",11:\"NL\",12:\"dateFormat\",13:\"inclusiveEndDates\",14:\"axisFormat\",15:\"excludes\",16:\"todayMarker\",17:\"title\",18:\"section\",20:\"taskTxt\",21:\"taskData\",25:\":\",27:\"click\",28:\"callbackname\",29:\"callbackargs\",30:\"href\",32:\"open_directive\",33:\"type_directive\",34:\"arg_directive\",35:\"close_directive\"},\nproductions_: [0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 9:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 10:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 11:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 12:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 13:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 14:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 15:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 17:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 21:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 22:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 23:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 24:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 25:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 26:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 27:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 28: case 34:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 29: case 30: case 32:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 31: case 33:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 35:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 36:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 37:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 38:\n yy.parseDirective('}%%', 'close_directive', 'gantt'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:$V0,22:4,32:$V1},{1:[3]},{3:6,4:2,5:$V0,22:4,32:$V1},o($V2,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},{24:26,25:[1,27],35:$Vc},o([25,35],[2,36]),o($V2,[2,8],{1:[2,2]}),o($V2,[2,4]),{4:24,10:29,12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,9]),o($V2,[2,10]),o($V2,[2,11]),o($V2,[2,12]),o($V2,[2,13]),o($V2,[2,14]),o($V2,[2,15]),o($V2,[2,16]),{21:[1,30]},o($V2,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},o($V2,[2,5]),o($V2,[2,17]),o($V2,[2,21],{29:[1,36],30:[1,37]}),o($V2,[2,27],{28:[1,38]}),o($Vd,[2,19]),{24:39,35:$Vc},{35:[2,37]},o($V2,[2,22],{30:[1,40]}),o($V2,[2,23]),o($V2,[2,25],{29:[1,41]}),{11:[1,42]},o($V2,[2,24]),o($V2,[2,26]),o($Vd,[2,20])],\ndefaultActions: {5:[2,35],6:[2,1],28:[2,38],35:[2,37]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 32; \nbreak;\ncase 1: this.begin('type_directive'); return 33; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 25; \nbreak;\ncase 3: this.popState(); this.popState(); return 35; \nbreak;\ncase 4:return 34;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 11;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12:this.begin(\"href\");\nbreak;\ncase 13:this.popState();\nbreak;\ncase 14:return 30;\nbreak;\ncase 15:this.begin(\"callbackname\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 18:return 28;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return 29;\nbreak;\ncase 21:this.begin(\"click\");\nbreak;\ncase 22:this.popState();\nbreak;\ncase 23:return 27;\nbreak;\ncase 24:return 5;\nbreak;\ncase 25:return 12;\nbreak;\ncase 26:return 13;\nbreak;\ncase 27:return 14;\nbreak;\ncase 28:return 15;\nbreak;\ncase 29:return 16;\nbreak;\ncase 30:return 'date';\nbreak;\ncase 31:return 17;\nbreak;\ncase 32:return 18;\nbreak;\ncase 33:return 20;\nbreak;\ncase 34:return 21;\nbreak;\ncase 35:return 25;\nbreak;\ncase 36:return 7;\nbreak;\ncase 37:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)*[^\\n]*)/i,/^(?:[^\\}]%%*[^\\n]*)/i,/^(?:%%*[^\\n]*[\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"callbackargs\":{\"rules\":[19,20],\"inclusive\":false},\"callbackname\":{\"rules\":[16,17,18],\"inclusive\":false},\"href\":{\"rules\":[13,14],\"inclusive\":false},\"click\":{\"rules\":[22,23],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = () => ``;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[1,6],$V3=[1,7],$V4=[1,9],$V5=[1,10,12,19,20,21,22],$V6=[1,6,10,12,19,20,21,22],$V7=[19,20,21],$V8=[1,22],$V9=[6,19,20,21,22];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"eol\":4,\"directive\":5,\"PIE\":6,\"document\":7,\"line\":8,\"statement\":9,\"txt\":10,\"value\":11,\"title\":12,\"title_value\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"NEWLINE\":19,\";\":20,\"EOF\":21,\"open_directive\":22,\"type_directive\":23,\"arg_directive\":24,\"close_directive\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"PIE\",10:\"txt\",11:\"value\",12:\"title\",13:\"title_value\",17:\":\",19:\"NEWLINE\",20:\";\",21:\"EOF\",22:\"open_directive\",23:\"type_directive\",24:\"arg_directive\",25:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$ = $$[$0-1] \nbreak;\ncase 8:\n yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 9:\n this.$=$$[$0].trim();yy.setTitle(this.$); \nbreak;\ncase 16:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 17:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 18:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 19:\n yy.parseDirective('}%%', 'close_directive', 'pie'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{1:[3]},{3:10,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{3:11,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},o($V5,[2,4],{7:12}),o($V6,[2,13]),o($V6,[2,14]),o($V6,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},o($V7,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:$V4}),{16:20,17:[1,21],25:$V8},o([17,25],[2,17]),o($V5,[2,5]),{4:23,19:$V1,20:$V2,21:$V3},{11:[1,24]},{13:[1,25]},o($V7,[2,10]),o($V9,[2,11]),{18:26,24:[1,27]},o($V9,[2,19]),o($V5,[2,6]),o($V7,[2,8]),o($V7,[2,9]),{16:28,25:$V8},{25:[2,18]},o($V9,[2,12])],\ndefaultActions: {9:[2,16],10:[2,1],11:[2,2],27:[2,18]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 22; \nbreak;\ncase 1: this.begin('type_directive'); return 23; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 25; \nbreak;\ncase 4:return 24;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 19;\nbreak;\ncase 8:/* do nothing */\nbreak;\ncase 9:/* ignore */\nbreak;\ncase 10: this.begin(\"title\");return 12; \nbreak;\ncase 11: this.popState(); return \"title_value\"; \nbreak;\ncase 12: this.begin(\"string\"); \nbreak;\ncase 13: this.popState(); \nbreak;\ncase 14: return \"txt\"; \nbreak;\ncase 15:return 6;\nbreak;\ncase 16:return \"value\";\nbreak;\ncase 17:return 21;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n\\r]+)/i,/^(?:%%[^\\n]*)/i,/^(?:[\\s]+)/i,/^(?:title\\b)/i,/^(?:(?!\\n||)*[^\\n]*)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:pie\\b)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"title\":{\"rules\":[11],\"inclusive\":false},\"string\":{\"rules\":[13,14],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,12,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet sections = {};\nlet title = '';\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().pie,\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+((?!(-x|--x))[\\-]*[^\\+\\->:\\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,8],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,8],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,8],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || undefined\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : undefined\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,28],$Vc=[1,23],$Vd=[1,24],$Ve=[1,25],$Vf=[1,26],$Vg=[1,29],$Vh=[1,32],$Vi=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],$Vj=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],$Vk=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],$Vl=[4,5,14,15,17,19,20,22,23,24,25,26,36,39];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"idStatement\":11,\"DESCR\":12,\"-->\":13,\"HIDE_EMPTY\":14,\"scale\":15,\"WIDTH\":16,\"COMPOSIT_STATE\":17,\"STRUCT_START\":18,\"STRUCT_STOP\":19,\"STATE_DESCR\":20,\"AS\":21,\"ID\":22,\"FORK\":23,\"JOIN\":24,\"CONCURRENT\":25,\"note\":26,\"notePosition\":27,\"NOTE_TEXT\":28,\"openDirective\":29,\"typeDirective\":30,\"closeDirective\":31,\":\":32,\"argDirective\":33,\"eol\":34,\";\":35,\"EDGE_STATE\":36,\"left_of\":37,\"right_of\":38,\"open_directive\":39,\"type_directive\":40,\"arg_directive\":41,\"close_directive\":42,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",12:\"DESCR\",13:\"-->\",14:\"HIDE_EMPTY\",15:\"scale\",16:\"WIDTH\",17:\"COMPOSIT_STATE\",18:\"STRUCT_START\",19:\"STRUCT_STOP\",20:\"STATE_DESCR\",21:\"AS\",22:\"ID\",23:\"FORK\",24:\"JOIN\",25:\"CONCURRENT\",26:\"note\",28:\"NOTE_TEXT\",32:\":\",35:\";\",36:\"EDGE_STATE\",37:\"left_of\",38:\"right_of\",39:\"open_directive\",40:\"type_directive\",41:\"arg_directive\",42:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$='nl';\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 11:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 12:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 13:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 17:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 18:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 19:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 22:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 23:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 30: case 31:\nthis.$=$$[$0];\nbreak;\ncase 34:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 35:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 36:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 37:\n yy.parseDirective('}%%', 'close_directive', 'state'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},o([1,4,5,14,15,17,20,22,23,24,25,26,36,39],$V4,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},{31:30,32:[1,31],42:$Vh},o([32,42],[2,35]),o($Vi,[2,6]),{6:27,10:33,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,8]),o($Vi,[2,9]),o($Vi,[2,10],{12:[1,34],13:[1,35]}),o($Vi,[2,14]),{16:[1,36]},o($Vi,[2,16],{18:[1,37]}),{21:[1,38]},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},o($Vi,[2,25]),o($Vj,[2,30]),o($Vj,[2,31]),o($Vk,[2,26]),{33:43,41:[1,44]},o($Vk,[2,37]),o($Vi,[2,7]),o($Vi,[2,11]),{11:45,22:$Vb,36:$Vg},o($Vi,[2,15]),o($Vl,$V4,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:$Vh},{42:[2,36]},o($Vi,[2,12],{12:[1,51]}),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,52],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},o($Vk,[2,27]),o($Vi,[2,13]),o($Vi,[2,17]),o($Vl,$V4,{8:56}),o($Vi,[2,23]),o($Vi,[2,24]),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,57],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,19])],\ndefaultActions: {7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 39; \nbreak;\ncase 1: this.begin('type_directive'); return 40; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 32; \nbreak;\ncase 3: this.popState(); this.popState(); return 42; \nbreak;\ncase 4:return 41;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 15; \nbreak;\ncase 13:return 16;\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15: this.pushState('STATE'); \nbreak;\ncase 16:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 17:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 18:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 19:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 20:this.begin(\"STATE_STRING\");\nbreak;\ncase 21:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 22:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 25:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 17;\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 18;\nbreak;\ncase 28: /*console.log('Ending struct');*/ this.popState(); return 19;\nbreak;\ncase 29:/* nothing */\nbreak;\ncase 30: this.begin('NOTE'); return 26; \nbreak;\ncase 31: this.popState();this.pushState('NOTE_ID');return 37;\nbreak;\ncase 32: this.popState();this.pushState('NOTE_ID');return 38;\nbreak;\ncase 33: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 34:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 35:/**/\nbreak;\ncase 36: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 37:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 38: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 22;\nbreak;\ncase 39: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 28;\nbreak;\ncase 40: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 28;\nbreak;\ncase 41: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 42: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 43: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 14; \nbreak;\ncase 44: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 36;\nbreak;\ncase 45: /*console.log('=>ID=',yy_.yytext);*/ return 22;\nbreak;\ncase 46: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 12; \nbreak;\ncase 47:return 13;\nbreak;\ncase 48:return 25;\nbreak;\ncase 49:return 5;\nbreak;\ncase 50:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:[\\s]+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[9,10],\"inclusive\":false},\"close_directive\":{\"rules\":[9,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,9,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,9,10],\"inclusive\":false},\"open_directive\":{\"rules\":[1,9,10],\"inclusive\":false},\"struct\":{\"rules\":[9,10,15,28,29,30,44,45,46,47,48],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[37],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[34,35,36],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[39,40],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[38],\"inclusive\":false},\"NOTE\":{\"rules\":[31,32,33],\"inclusive\":false},\"SCALE\":{\"rules\":[13,14],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[22],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[23,24],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[9,10,16,17,18,19,20,21,25,26,27],\"inclusive\":false},\"ID\":{\"rules\":[9,10],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().state,\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.error('Parsing failed', err);\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${options.tertiaryColor};\n opacity: 0.2;\n}\n.edgeLabel .label text {\n fill: ${options.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: ${options.primaryBorderColor};\n stroke: black;\n}\n.node circle.state-end {\n fill: ${options.primaryBorderColor};\n stroke: ${options.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${options.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().journey,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'journey'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n console.log('Starting rendering diagrams (init) - mermaid.init', conf);\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.updateSiteConfig({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.updateSiteConfig({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\n// import * as configApi from './config';\n// // , {\n// // setConfig,\n// // configApi.getConfig,\n// // configApi.updateSiteConfig,\n// // configApi.setSiteConfig,\n// // configApi.getSiteConfig,\n// // configApi.defaultConfig\n// // }\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport * as configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n configApi.reset();\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n configApi.addDirective(graphInit);\n } else {\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n configApi.addDirective(siteConfig);\n }\n\n const cnf = configApi.getConfig();\n console.log('Render', cnf);\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(p, statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(p, currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(p, directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n configApi.addDirective(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n if (p && p['setWrap']) {\n p.setWrap(directive.type === 'wrap');\n }\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n `mermaidAPI.reinitialize: v${pkg.version}`,\n JSON.stringify(options),\n options.themeVariables.primaryColor;\n // // if (options.theme && theme[options.theme]) {\n // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n // // }\n // // Set default options\n // const config =\n // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig();\n // updateRendererConfigs(config);\n // setLogLevel(config.logLevel);\n // logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n console.trace(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config =\n typeof options === 'object' ? configApi.setSiteConfig(options) : configApi.getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig: configApi.getConfig,\n getSiteConfig: configApi.getSiteConfig,\n updateSiteConfig: configApi.updateSiteConfig,\n reset: () => {\n console.warn('reset');\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(configApi.getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(configApi.getConfig().logLevel);\nconfigApi.reset(configApi.getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import { darken, lighten, adjust, invert } from 'khroma';\n\nconst mkBorder = (col, darkMode) =>\n darkMode ? adjust(col, { s: -40, l: 10 }) : adjust(col, { s: -40, l: -10 });\nclass Theme {\n constructor() {\n /** # Base variables */\n /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */\n this.background = '#f4f4f4';\n // this.background = '#0c0c0c';\n /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */\n this.darkMode = false;\n // this.darkMode = true;\n // this.primaryColor = '#1f1f00';\n\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = '#333';\n // this.primaryColor = '#9f33be';\n this.primaryColor = '#f0fff0';\n // this.primaryColor = '#fa255e';\n // this.primaryColor = '#ECECFF';\n\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n this.secondaryColor = '#dfdfde';\n this.tertiaryColor = '#CCCCFF';\n\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.textColor = '#333';\n this.updateColors();\n this.relationColor = '#000';\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Main */\n this.secondaryColor = adjust(this.primaryColor, { h: 120 });\n this.tertiaryColor = adjust(this.primaryColor, { h: -160 });\n console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor);\n this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode);\n this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode);\n this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode);\n this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode);\n\n this.primaryTextColor = invert(this.primaryColor);\n this.secondaryTextColor = invert(this.secondaryColor);\n this.tertiaryTextColor = invert(this.tertiaryColor);\n this.lineColor = invert(this.background);\n this.textColor = invert(this.background);\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = this.primaryBorderColor;\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = this.tertiaryBorderColor;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.tertiaryTextColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = this.primaryBorderColor;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.primaryTextColor;\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n // this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = this.primaryBorderColor;\n this.taskBkgColor = this.primaryColor;\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n this.taskTextColor = this.textColor;\n this.taskTextOutsideColor = this.textColor;\n this.taskTextLightColor = this.textColor;\n this.taskTextColor = this.primaryTextColor;\n this.taskTextDarkColor = this.textColor;\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n\n /* state colors */\n this.labelColor = this.primaryTextColor;\n this.altBackground = this.tertiaryColor;\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/mermaid.min.js b/dist/mermaid.min.js index 543c9042e9..64107d5e1f 100644 --- a/dist/mermaid.min.js +++ b/dist/mermaid.min.js @@ -1,4 +1,4 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mermaid=e():t.mermaid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=383)}([function(t,e,n){"use strict";n.r(e);var r=function(t,e){return te?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,s=a.left,c=o,u=function(t,e){null==e&&(e=l);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o1)return c/(a-1)},g=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},y=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=0?(a>=k?10:a>=E?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=E?5:a>=T?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=k?i*=10:a>=E?i*=5:a>=T&&(i*=2),eh;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:l,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}},D=function(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(N(t,.75)-N(t,.25))*Math.pow(t.length,-1/3)))},B=function(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r},F=function(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n},j=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r},R=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},Y=function(t,e){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==e&&(e=r);++a=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ct(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;ae?1:t>=e?0:NaN}var _t="http://www.w3.org/1999/xhtml",wt={svg:"http://www.w3.org/2000/svg",xhtml:_t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},kt=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wt.hasOwnProperty(e)?{space:wt[e],local:t}:t};function Et(t){return function(){this.removeAttribute(t)}}function Tt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function St(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ct(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Mt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ot=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Nt(t){return function(){this.style.removeProperty(t)}}function Dt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Bt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Lt(t,e){return t.style.getPropertyValue(e)||Ot(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Pt(t,e){return function(){this[t]=e}}function It(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function jt(t){return t.trim().split(/^|\s+/)}function Rt(t){return t.classList||new Yt(t)}function Yt(t){this._node=t,this._names=jt(t.getAttribute("class")||"")}function zt(t,e){for(var n=Rt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vt(){this.textContent=""}function Gt(t){return function(){this.textContent=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Xt(){this.innerHTML=""}function Zt(t){return function(){this.innerHTML=t}}function Jt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Qt(){this.nextSibling&&this.parentNode.appendChild(this)}function Kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function te(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_t&&e.documentElement.namespaceURI===_t?e.createElement(t):e.createElementNS(n,t)}}function ee(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var ne=function(t){var e=kt(t);return(e.local?ee:te)(e)};function re(){return null}function ie(){var t=this.parentNode;t&&t.removeChild(this)}function ae(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var se={},ce=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(se={mouseenter:"mouseover",mouseleave:"mouseout"}));function ue(t,e,n){return t=le(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function le(t,e,n){return function(r){var i=ce;ce=r;try{t.call(this,this.__data__,e,n)}finally{ce=i}}}function he(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function fe(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=_&&(_=x+1);!(b=v[_])&&++_=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=xt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Nt:"function"==typeof e?Bt:Dt)(t,e,null==n?"":n)):Lt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:"function"==typeof e?It:Pt)(t,e)):this.node()[t]},classed:function(t,e){var n=jt(t+"");if(arguments.length<2){for(var r=Rt(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new qe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new qe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Le.exec(t))?new qe(e[1],e[2],e[3],1):(e=Fe.exec(t))?new qe(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pe.exec(t))?He(e[1],e[2],e[3],e[4]):(e=Ie.exec(t))?He(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=je.exec(t))?Qe(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Qe(e[1],e[2]/100,e[3]/100,e[4]):Ye.hasOwnProperty(t)?We(Ye[t]):"transparent"===t?new qe(NaN,NaN,NaN,0):null}function We(t){return new qe(t>>16&255,t>>8&255,255&t,1)}function He(t,e,n,r){return r<=0&&(t=e=n=NaN),new qe(t,e,n,r)}function Ve(t){return t instanceof Me||(t=$e(t)),t?new qe((t=t.rgb()).r,t.g,t.b,t.opacity):new qe}function Ge(t,e,n,r){return 1===arguments.length?Ve(t):new qe(t,e,n,null==r?1:r)}function qe(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Xe(){return"#"+Je(this.r)+Je(this.g)+Je(this.b)}function Ze(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Je(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Qe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new en(t,e,n,r)}function Ke(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof Me||(t=$e(t)),!t)return new en;if(t instanceof en)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new en(o,s,c,t.opacity)}function tn(t,e,n,r){return 1===arguments.length?Ke(t):new en(t,e,n,null==r?1:r)}function en(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function nn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function rn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Se(Me,$e,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ze,formatHex:ze,formatHsl:function(){return Ke(this).formatHsl()},formatRgb:Ue,toString:Ue}),Se(qe,Ge,Ce(Me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xe,formatHex:Xe,formatRgb:Ze,toString:Ze})),Se(en,tn,Ce(Me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new en(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new en(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new qe(nn(t>=240?t-240:t+120,i,r),nn(t,i,r),nn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var an=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):sn(isNaN(t)?e:t)}function ln(t){return 1==(t=+t)?hn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):sn(isNaN(e)?n:e)}}function hn(t,e){var n=e-t;return n?cn(t,n):sn(isNaN(t)?e:t)}var fn=function t(e){var n=ln(e);function r(t,e){var r=n((t=Ge(t)).r,(e=Ge(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=hn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function dn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:_n(n,r)})),a=En.lastIndex;return a=0&&e._call.call(null,t),e=e._next;--Bn}function Vn(){In=(Pn=Rn.now())+jn,Bn=Ln=0;try{Hn()}finally{Bn=0,function(){var t,e,n=Tn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Tn=e);An=t,qn(r)}(),In=0}}function Gn(){var t=Rn.now(),e=t-Pn;e>1e3&&(jn-=e,Pn=t)}function qn(t){Bn||(Ln&&(Ln=clearTimeout(Ln)),t-In>24?(t<1/0&&(Ln=setTimeout(Vn,t-Rn.now()-jn)),Fn&&(Fn=clearInterval(Fn))):(Fn||(Pn=Rn.now(),Fn=setInterval(Gn,1e3)),Bn=1,Yn(Vn)))}$n.prototype=Wn.prototype={constructor:$n,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?zn():+n)+(null==e?0:+e),this._next||An===this||(An?An._next=this:Tn=this,An=this),this._call=t,this._time=n,qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,qn())}};var Xn=function(t,e,n){var r=new $n;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Zn=lt("start","end","cancel","interrupt"),Jn=[],Qn=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Xn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function tr(t,e){var n=er(t,e);if(n.state>3)throw new Error("too late; already running");return n}function er(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var nr,rr,ir,ar,or=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}},sr=180/Math.PI,cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ur=function(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:_n(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:_n(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:_n(t,n)},{i:s-2,x:_n(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Kn:tr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Br=_e.prototype.constructor;function Lr(t){return function(){this.style.removeProperty(t)}}function Fr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Pr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Fr(t,a,n)),r}return a._value=e,a}function Ir(t){return function(e){this.textContent=t.call(this,e)}}function jr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ir(r)),e}return r._value=t,r}var Rr=0;function Yr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function zr(t){return _e().transition(t)}function Ur(){return++Rr}var $r=_e.prototype;function Wr(t){return t*t*t}function Hr(t){return--t*t*t+1}function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Yr.prototype=zr.prototype={constructor:Yr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ft(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o1&&n.name===e)return new Yr([[t]],Xr,e,+r);return null},Jr=function(t){return function(){return t}},Qr=function(t,e,n){this.target=t,this.type=e,this.selection=n};function Kr(){ce.stopImmediatePropagation()}var ti=function(){ce.preventDefault(),ce.stopImmediatePropagation()},ei={name:"drag"},ni={name:"space"},ri={name:"handle"},ii={name:"center"};function ai(t){return[+t[0],+t[1]]}function oi(t){return[ai(t[0]),ai(t[1])]}function si(t){return function(e){return Nn(e,ce.touches,t)}}var ci={name:"x",handles:["w","e"].map(yi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ui={name:"y",handles:["n","s"].map(yi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},li={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(yi),input:function(t){return null==t?null:oi(t)},output:function(t){return t}},hi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},fi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},di={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},gi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(t){return{type:t}}function vi(){return!ce.ctrlKey&&!ce.button}function mi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function bi(){return navigator.maxTouchPoints||"ontouchstart"in this}function xi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function _i(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function wi(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ki(){return Ai(ci)}function Ei(){return Ai(ui)}var Ti=function(){return Ai(li)};function Ai(t){var e,n=mi,r=vi,i=bi,a=!0,o=lt("start","brush","end"),s=6;function c(e){var n=e.property("__brush",g).selectAll(".overlay").data([yi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hi.overlay).merge(n).each((function(){var t=xi(this).extent;we(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return hi[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=we(this),e=xi(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||ce.touches)&&r.apply(this,arguments)){var n,i,o,s,c,h,f,d,p,g,y,v=this,m=ce.target.__data__.type,b="selection"===(a&&ce.metaKey?m="overlay":m)?ei:a&&ce.altKey?ii:ri,x=t===ui?null:pi[m],_=t===ci?null:gi[m],w=xi(v),k=w.extent,E=w.selection,T=k[0][0],A=k[0][1],S=k[1][0],C=k[1][1],M=0,O=0,N=x&&_&&a&&ce.shiftKey,D=ce.touches?si(ce.changedTouches[0].identifier):Dn,B=D(v),L=B,F=l(v,arguments,!0).beforestart();"overlay"===m?(E&&(p=!0),w.selection=E=[[n=t===ui?T:B[0],o=t===ci?A:B[1]],[c=t===ui?S:n,f=t===ci?C:o]]):(n=E[0][0],o=E[0][1],c=E[1][0],f=E[1][1]),i=n,s=o,h=c,d=f;var P=we(v).attr("pointer-events","none"),I=P.selectAll(".overlay").attr("cursor",hi[m]);if(ce.touches)F.moved=R,F.ended=z;else{var j=we(ce.view).on("mousemove.brush",R,!0).on("mouseup.brush",z,!0);a&&j.on("keydown.brush",U,!0).on("keyup.brush",$,!0),Te(ce.view)}Kr(),or(v),u.call(v),F.start()}function R(){var t=D(v);!N||g||y||(Math.abs(t[0]-L[0])>Math.abs(t[1]-L[1])?y=!0:g=!0),L=t,p=!0,ti(),Y()}function Y(){var t;switch(M=L[0]-B[0],O=L[1]-B[1],b){case ni:case ei:x&&(M=Math.max(T-n,Math.min(S-c,M)),i=n+M,h=c+M),_&&(O=Math.max(A-o,Math.min(C-f,O)),s=o+O,d=f+O);break;case ri:x<0?(M=Math.max(T-n,Math.min(S-n,M)),i=n+M,h=c):x>0&&(M=Math.max(T-c,Math.min(S-c,M)),i=n,h=c+M),_<0?(O=Math.max(A-o,Math.min(C-o,O)),s=o+O,d=f):_>0&&(O=Math.max(A-f,Math.min(C-f,O)),s=o,d=f+O);break;case ii:x&&(i=Math.max(T,Math.min(S,n-M*x)),h=Math.max(T,Math.min(S,c+M*x))),_&&(s=Math.max(A,Math.min(C,o-O*_)),d=Math.max(A,Math.min(C,f+O*_)))}h0&&(n=i-M),_<0?f=d-O:_>0&&(o=s-O),b=ni,I.attr("cursor",hi.selection),Y());break;default:return}ti()}function $(){switch(ce.keyCode){case 16:N&&(g=y=N=!1,Y());break;case 18:b===ii&&(x<0?c=h:x>0&&(n=i),_<0?f=d:_>0&&(o=s),b=ri,Y());break;case 32:b===ni&&(ce.altKey?(x&&(c=h-M*x,n=i+M*x),_&&(f=d-O*_,o=s+O*_),b=ii):(x<0?c=h:x>0&&(n=i),_<0?f=d:_>0&&(o=s),b=ri),I.attr("cursor",hi[m]),Y());break;default:return}ti()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function g(){var e=this.__brush||{selection:null};return e.extent=oi(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Cn(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),u.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,i.extent),o=l(e,r).beforestart();or(e),i.selection=null===a?null:a,u.call(e),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){pe(new Qr(c,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Jr(oi(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Jr(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Jr(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Si=Math.cos,Ci=Math.sin,Mi=Math.PI,Oi=Mi/2,Ni=2*Mi,Di=Math.max;function Bi(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}var Li=function(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,c,u,l,h=i.length,f=[],d=w(h),p=[],g=[],y=g.groups=new Array(h),v=new Array(h*h);for(a=0,u=-1;++u1e-6)if(Math.abs(l*s-c*u)>1e-6&&i){var f=n-a,d=r-o,p=s*s+c*c,g=f*f+d*d,y=Math.sqrt(p),v=Math.sqrt(h),m=i*Math.tan((Ii-Math.acos((p+h-g)/(2*y*v)))/2),b=m/v,x=m/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%ji+ji),h>Ri?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=Ii)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Ui=zi;function $i(t){return t.source}function Wi(t){return t.target}function Hi(t){return t.radius}function Vi(t){return t.startAngle}function Gi(t){return t.endAngle}var qi=function(){var t=$i,e=Wi,n=Hi,r=Vi,i=Gi,a=null;function o(){var o,s=Fi.call(arguments),c=t.apply(this,s),u=e.apply(this,s),l=+n.apply(this,(s[0]=c,s)),h=r.apply(this,s)-Oi,f=i.apply(this,s)-Oi,d=l*Si(h),p=l*Ci(h),g=+n.apply(this,(s[0]=u,s)),y=r.apply(this,s)-Oi,v=i.apply(this,s)-Oi;if(a||(a=o=Ui()),a.moveTo(d,p),a.arc(0,0,l,h,f),h===y&&f===v||(a.quadraticCurveTo(0,0,g*Si(y),g*Ci(y)),a.arc(0,0,g,y,v)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:Pi(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Pi(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Pi(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o};function Xi(){}function Zi(t,e){var n=new Xi;if(t instanceof Xi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,u,l,h=-1,f=n.length,d=r[i++],p=Ji(),g=o();++hr.length)return n;var o,s=i[a-1];return null!=e&&a>=r.length?o=n.entries():(o=[],n.each((function(e,n){o.push({key:n,values:t(e,a)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}(a(t,0,ea,na),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function Ki(){return{}}function ta(t,e,n){t[e]=n}function ea(){return Ji()}function na(t,e,n){t.set(e,n)}function ra(){}var ia=Ji.prototype;function aa(t,e){var n=new ra;if(t instanceof ra)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function va(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function ma(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ba(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xa(t){if(t instanceof ka)return new ka(t.h,t.c,t.l,t.opacity);if(t instanceof ga||(t=fa(t)),0===t.a&&0===t.b)return new ka(NaN,0r!=d>r&&n<(f-u)*(r-l)/(d-l)+u&&(i=-i)}return i}function Ia(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}var ja=function(){},Ra=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Ya=function(){var t=1,e=1,n=M,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Ba);else{var r=y(t),i=r[0],o=r[1];e=C(i,o,e),e=w(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,u,l,h,f=new Array,d=new Array;a=s=-1,u=n[0]>=r,Ra[u<<1].forEach(p);for(;++a=r,Ra[c|u<<1].forEach(p);Ra[u<<0].forEach(p);for(;++s=r,l=n[s*t]>=r,Ra[u<<1|l<<2].forEach(p);++a=r,h=l,l=n[s*t+a+1]>=r,Ra[c|u<<1|l<<2|h<<3].forEach(p);Ra[u|l<<3].forEach(p)}a=-1,l=n[s*t]>=r,Ra[l<<2].forEach(p);for(;++a=r,Ra[l<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],u=o(r),l=o(c);(e=d[u])?(n=f[l])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(c),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=f[l])?(n=d[u])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=u]=e):f[u]=d[l]={start:u,end:l,ring:[r,c]}}Ra[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n0&&o0&&s0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?La(Da.call(t)):La(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:ja,i):r===s},i};function za(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function Ua(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function $a(t){return t[0]}function Wa(t){return t[1]}function Ha(){return 1}var Va=function(){var t=$a,e=Wa,n=Ha,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,u=i+2*s>>o,l=La(20);function h(r){var i=new Float32Array(c*u),h=new Float32Array(c*u);r.forEach((function(r,a,l){var h=+t(r,a,l)+s>>o,f=+e(r,a,l)+s>>o,d=+n(r,a,l);h>=0&&h=0&&f>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),za({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),za({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o);var d=l(i);if(!Array.isArray(d)){var p=L(i);d=C(0,p,d),(d=w(0,Math.floor(p/d)*d,d)).shift()}return Ya().thresholds(d).size([c,u])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function y(){return c=r+2*(s=3*a)>>o,u=i+2*s>>o,h}return h.x=function(e){return arguments.length?(t="function"==typeof e?e:La(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:La(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:La(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,y()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),y()},h.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?La(Da.call(t)):La(t),h):l},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},h},Ga=function(t){return function(){return t}};function qa(t,e,n,r,i,a,o,s,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=c,this._=u}function Xa(){return!ce.ctrlKey&&!ce.button}function Za(){return this.parentNode}function Ja(t){return null==t?{x:ce.x,y:ce.y}:t}function Qa(){return navigator.maxTouchPoints||"ontouchstart"in this}qa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ka=function(){var t,e,n,r,i=Xa,a=Za,o=Ja,s=Qa,c={},u=lt("start","drag","end"),l=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",y).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",a.apply(this,arguments),Dn,this,arguments);o&&(we(ce.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Te(ce.view),ke(),n=!1,t=ce.clientX,e=ce.clientY,o("start"))}}function p(){if(Ee(),!n){var r=ce.clientX-t,i=ce.clientY-e;n=r*r+i*i>h}c.mouse("drag")}function g(){we(ce.view).on("mousemove.drag mouseup.drag",null),Ae(ce.view,n),Ee(),c.mouse("end")}function y(){if(i.apply(this,arguments)){var t,e,n=ce.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t9999?"+"+io(e,6):io(e,4))+"-"+io(t.getUTCMonth()+1,2)+"-"+io(t.getUTCDate(),2)+(a?"T"+io(n,2)+":"+io(r,2)+":"+io(i,2)+"."+io(a,3)+"Z":i?"T"+io(n,2)+":"+io(r,2)+":"+io(i,2)+"Z":r||n?"T"+io(n,2)+":"+io(r,2)+"Z":"")}var oo=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,c=a<=0,u=!1;function l(){if(c)return eo;if(u)return u=!1,to;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++=a?c=!0:10===(r=t.charCodeAt(o++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(g+v)/2))?g=a:v=a,(l=n>=(o=(y+m)/2))?y=o:m=o,i=d,!(d=d[h=l<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===s&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(g+v)/2))?g=a:v=a,(l=n>=(o=(y+m)/2))?y=o:m=o}while((h=l<<1|u)==(f=(c>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}var _s=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function ws(t){return t[0]}function ks(t){return t[1]}function Es(t,e,n){var r=new Ts(null==e?ws:e,null==n?ks:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ts(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function As(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Ss=Es.prototype=Ts.prototype;function Cs(t){return t.x+t.vx}function Ms(t){return t.y+t.vy}Ss.copy=function(){var t,e,n=new Ts(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=As(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=As(e));return n},Ss.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return xs(this.cover(e,n),e,n,t)},Ss.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),c=1/0,u=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=r),ih&&(h=i));if(c>l||u>h)return this;for(this.cover(c,u).cover(l,h),n=0;nt||t>=i||r>e||e>=a;)switch(s=(ef||(a=c.y0)>d||(o=c.x1)=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var m=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=m*m+b*b;if(x=(s=(p+y)/2))?p=s:y=s,(l=o>=(c=(g+v)/2))?g=c:v=c,e=d,!(d=d[h=l<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Ss.removeAll=function(t){for(var e=0,n=t.length;ec+d||iu+d||as.index){var p=c-o.x-o.vx,g=u-o.y-o.vy,y=p*p+g*g;yt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}},js=function(){var t,e,n,r,i=ms(-30),a=1,o=1/0,s=.81;function c(r){var i,a=t.length,o=Es(t,Ls,Fs).visitAfter(l);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===l&&(d+=(l=bs())*l),0===h&&(d+=(h=bs())*h),d1?r[0]+r.slice(2):r,+t.slice(n+1)]},$s=function(t){return(t=Us(Math.abs(t)))?t[1]:NaN},Ws=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hs(t){if(!(e=Ws.exec(t)))throw new Error("invalid format: "+t);var e;return new Vs({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Vs(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Hs.prototype=Vs.prototype,Vs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Gs,qs,Xs,Zs,Js=function(t,e){var n=Us(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Qs={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Js(100*t,e)},r:Js,s:function(t,e){var n=Us(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Gs=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Us(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ks=function(t){return t},tc=Array.prototype.map,ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],nc=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ks:(e=tc.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Ks:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(tc.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Hs(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Qs[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===f?a:/[%p]/.test(m)?c:"",_=Qs[m],w=/[defgprs%]/.test(m);function k(t){var i,a,c,f=b,k=x;if("c"===m)k=_(t)+k,t="";else{var E=(t=+t)<0;if(t=isNaN(t)?l:_(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&(E=!1),f=(E?"("===h?h:u:"-"===h||"("===h?"":h)+f,k=("s"===m?ec[8+Gs/3]:"")+k+(E&&"("===h?")":""),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var T=f.length+t.length+k.length,A=T>1)+f+t+k+A.slice(T);break;default:t=A+f+t+k}return s(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Hs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($s(e)/3))),i=Math.pow(10,-r),a=ec[8+r/3];return function(t){return n(i*t)+a}}}};function rc(t){return qs=nc(t),Xs=qs.format,Zs=qs.formatPrefix,qs}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ic=function(t){return Math.max(0,-$s(Math.abs(t)))},ac=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($s(e)/3)))-$s(Math.abs(t)))},oc=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$s(e)-$s(t))+1},sc=function(){return new cc};function cc(){this.reset()}cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){lc(uc,t,this.t),lc(this,uc.s,this.s),this.s?this.t+=uc.t:this.s=uc.t},valueOf:function(){return this.s}};var uc=new cc;function lc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var hc=Math.PI,fc=hc/2,dc=hc/4,pc=2*hc,gc=180/hc,yc=hc/180,vc=Math.abs,mc=Math.atan,bc=Math.atan2,xc=Math.cos,_c=Math.ceil,wc=Math.exp,kc=(Math.floor,Math.log),Ec=Math.pow,Tc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Sc=Math.sqrt,Cc=Math.tan;function Mc(t){return t>1?0:t<-1?hc:Math.acos(t)}function Oc(t){return t>1?fc:t<-1?-fc:Math.asin(t)}function Nc(t){return(t=Tc(t/2))*t}function Dc(){}function Bc(t,e){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,e)}var Lc={Feature:function(t,e){Bc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=xc(e=(e*=yc)/2+dc),o=Tc(e),s=Uc*o,c=zc*a+s*xc(i),u=s*r*Tc(i);Wc.add(bc(u,c)),Yc=t,zc=a,Uc=o}var Jc=function(t){return Hc.reset(),$c(t,Vc),2*Hc};function Qc(t){return[bc(t[1],t[0]),Oc(t[2])]}function Kc(t){var e=t[0],n=t[1],r=xc(n);return[r*xc(e),r*Tc(e),Tc(n)]}function tu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eu(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function nu(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ru(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function iu(t){var e=Sc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var au,ou,su,cu,uu,lu,hu,fu,du,pu,gu=sc(),yu={point:vu,lineStart:bu,lineEnd:xu,polygonStart:function(){yu.point=_u,yu.lineStart=wu,yu.lineEnd=ku,gu.reset(),Vc.polygonStart()},polygonEnd:function(){Vc.polygonEnd(),yu.point=vu,yu.lineStart=bu,yu.lineEnd=xu,Wc<0?(au=-(su=180),ou=-(cu=90)):gu>1e-6?cu=90:gu<-1e-6&&(ou=-90),pu[0]=au,pu[1]=su},sphere:function(){au=-(su=180),ou=-(cu=90)}};function vu(t,e){du.push(pu=[au=t,su=t]),ecu&&(cu=e)}function mu(t,e){var n=Kc([t*yc,e*yc]);if(fu){var r=eu(fu,n),i=eu([r[1],-r[0],0],r);iu(i),i=Qc(i);var a,o=t-uu,s=o>0?1:-1,c=i[0]*gc*s,u=vc(o)>180;u^(s*uucu&&(cu=a):u^(s*uu<(c=(c+360)%360-180)&&ccu&&(cu=e)),u?tEu(au,su)&&(su=t):Eu(t,su)>Eu(au,su)&&(au=t):su>=au?(tsu&&(su=t)):t>uu?Eu(au,t)>Eu(au,su)&&(su=t):Eu(t,su)>Eu(au,su)&&(au=t)}else du.push(pu=[au=t,su=t]);ecu&&(cu=e),fu=n,uu=t}function bu(){yu.point=mu}function xu(){pu[0]=au,pu[1]=su,yu.point=vu,fu=null}function _u(t,e){if(fu){var n=t-uu;gu.add(vc(n)>180?n+(n>0?360:-360):n)}else lu=t,hu=e;Vc.point(t,e),mu(t,e)}function wu(){Vc.lineStart()}function ku(){_u(lu,hu),Vc.lineEnd(),vc(gu)>1e-6&&(au=-(su=180)),pu[0]=au,pu[1]=su,fu=null}function Eu(t,e){return(e-=t)<0?e+360:e}function Tu(t,e){return t[0]-e[0]}function Au(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eEu(r[0],r[1])&&(r[1]=i[1]),Eu(i[0],r[1])>Eu(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=Eu(r[1],i[0]))>o&&(o=s,au=i[0],su=r[1])}return du=pu=null,au===1/0||ou===1/0?[[NaN,NaN],[NaN,NaN]]:[[au,ou],[su,cu]]},Wu={sphere:Dc,point:Hu,lineStart:Gu,lineEnd:Zu,polygonStart:function(){Wu.lineStart=Ju,Wu.lineEnd=Qu},polygonEnd:function(){Wu.lineStart=Gu,Wu.lineEnd=Zu}};function Hu(t,e){t*=yc;var n=xc(e*=yc);Vu(n*xc(t),n*Tc(t),Tc(e))}function Vu(t,e,n){++Su,Mu+=(t-Mu)/Su,Ou+=(e-Ou)/Su,Nu+=(n-Nu)/Su}function Gu(){Wu.point=qu}function qu(t,e){t*=yc;var n=xc(e*=yc);Yu=n*xc(t),zu=n*Tc(t),Uu=Tc(e),Wu.point=Xu,Vu(Yu,zu,Uu)}function Xu(t,e){t*=yc;var n=xc(e*=yc),r=n*xc(t),i=n*Tc(t),a=Tc(e),o=bc(Sc((o=zu*a-Uu*i)*o+(o=Uu*r-Yu*a)*o+(o=Yu*i-zu*r)*o),Yu*r+zu*i+Uu*a);Cu+=o,Du+=o*(Yu+(Yu=r)),Bu+=o*(zu+(zu=i)),Lu+=o*(Uu+(Uu=a)),Vu(Yu,zu,Uu)}function Zu(){Wu.point=Hu}function Ju(){Wu.point=Ku}function Qu(){tl(ju,Ru),Wu.point=Hu}function Ku(t,e){ju=t,Ru=e,t*=yc,e*=yc,Wu.point=tl;var n=xc(e);Yu=n*xc(t),zu=n*Tc(t),Uu=Tc(e),Vu(Yu,zu,Uu)}function tl(t,e){t*=yc;var n=xc(e*=yc),r=n*xc(t),i=n*Tc(t),a=Tc(e),o=zu*a-Uu*i,s=Uu*r-Yu*a,c=Yu*i-zu*r,u=Sc(o*o+s*s+c*c),l=Oc(u),h=u&&-l/u;Fu+=h*o,Pu+=h*s,Iu+=h*c,Cu+=l,Du+=l*(Yu+(Yu=r)),Bu+=l*(zu+(zu=i)),Lu+=l*(Uu+(Uu=a)),Vu(Yu,zu,Uu)}var el=function(t){Su=Cu=Mu=Ou=Nu=Du=Bu=Lu=Fu=Pu=Iu=0,$c(t,Wu);var e=Fu,n=Pu,r=Iu,i=e*e+n*n+r*r;return i<1e-12&&(e=Du,n=Bu,r=Lu,Cu<1e-6&&(e=Mu,n=Ou,r=Nu),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[bc(n,e)*gc,Oc(r/Sc(i))*gc]},nl=function(t){return function(){return t}},rl=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function il(t,e){return[vc(t)>hc?t+Math.round(-t/pc)*pc:t,e]}function al(t,e,n){return(t%=pc)?e||n?rl(sl(t),cl(e,n)):sl(t):e||n?cl(e,n):il}function ol(t){return function(e,n){return[(e+=t)>hc?e-pc:e<-hc?e+pc:e,n]}}function sl(t){var e=ol(t);return e.invert=ol(-t),e}function cl(t,e){var n=xc(t),r=Tc(t),i=xc(e),a=Tc(e);function o(t,e){var o=xc(e),s=xc(t)*o,c=Tc(t)*o,u=Tc(e),l=u*n+s*r;return[bc(c*i-l*a,s*n-u*r),Oc(l*i+c*a)]}return o.invert=function(t,e){var o=xc(e),s=xc(t)*o,c=Tc(t)*o,u=Tc(e),l=u*i-c*a;return[bc(c*i+u*a,s*n+l*r),Oc(l*n-s*r)]},o}il.invert=il;var ul=function(t){function e(e){return(e=t(e[0]*yc,e[1]*yc))[0]*=gc,e[1]*=gc,e}return t=al(t[0]*yc,t[1]*yc,t.length>2?t[2]*yc:0),e.invert=function(e){return(e=t.invert(e[0]*yc,e[1]*yc))[0]*=gc,e[1]*=gc,e},e};function ll(t,e,n,r,i,a){if(n){var o=xc(e),s=Tc(e),c=r*n;null==i?(i=e+r*pc,a=e-c/2):(i=hl(o,i),a=hl(o,a),(r>0?ia)&&(i+=r*pc));for(var u,l=i;r>0?l>a:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},pl=function(t,e){return vc(t[0]-e[0])<1e-6&&vc(t[1]-e[1])<1e-6};function gl(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var yl=function(t,e,n,r,i){var a,o,s=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(pl(r,o)){for(i.lineStart(),a=0;a=0;--a)i.point((l=u[a])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}};function vl(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,T=E*k,A=T>hc,S=g*_;if(ml.add(bc(S*E*Tc(T),y*w+S*xc(T))),o+=A?k+E*pc:k,A^d>=n^b>=n){var C=eu(Kc(f),Kc(m));iu(C);var M=eu(a,C);iu(M);var O=(A^k>=0?-1:1)*Oc(M[2]);(r>O||r===O&&(C[0]||C[1]))&&(s+=A^k>=0?1:-1)}}return(o<-1e-6||o<1e-6&&ml<-1e-6)^1&s},_l=function(t,e,n,r){return function(i){var a,o,s,c=e(i),u=dl(),l=e(u),h=!1,f={point:d,lineStart:g,lineEnd:y,polygonStart:function(){f.point=v,f.lineStart=m,f.lineEnd=b,o=[],a=[]},polygonEnd:function(){f.point=d,f.lineStart=g,f.lineEnd=y,o=I(o);var t=xl(a,r);o.length?(h||(i.polygonStart(),h=!0),yl(o,kl,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function g(){f.point=p,c.lineStart()}function y(){f.point=d,c.lineEnd()}function v(t,e){s.push([t,e]),l.point(t,e)}function m(){l.lineStart(),s=[]}function b(){v(s[0][0],s[0][1]),l.lineEnd();var t,e,n,r,c=l.clean(),f=u.result(),d=f.length;if(s.pop(),a.push(s),s=null,d)if(1&c){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t1&&2&c&&f.push(f.pop().concat(f.shift())),o.push(f.filter(wl))}return f}};function wl(t){return t.length>1}function kl(t,e){return((t=t.x)[0]<0?t[1]-fc-1e-6:fc-t[1])-((e=e.x)[0]<0?e[1]-fc-1e-6:fc-e[1])}var El=_l((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?hc:-hc,c=vc(a-n);vc(c-hc)<1e-6?(t.point(n,r=(r+o)/2>0?fc:-fc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=hc&&(vc(n-i)<1e-6&&(n-=1e-6*i),vc(a-s)<1e-6&&(a-=1e-6*s),r=function(t,e,n,r){var i,a,o=Tc(t-n);return vc(o)>1e-6?mc((Tc(e)*(a=xc(r))*Tc(n)-Tc(r)*(i=xc(e))*Tc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*fc,r.point(-hc,i),r.point(0,i),r.point(hc,i),r.point(hc,0),r.point(hc,-i),r.point(0,-i),r.point(-hc,-i),r.point(-hc,0),r.point(-hc,i);else if(vc(t[0]-e[0])>1e-6){var a=t[0]0,i=vc(e)>1e-6;function a(t,n){return xc(t)*xc(n)>e}function o(t,n,r){var i=[1,0,0],a=eu(Kc(t),Kc(n)),o=tu(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var u=e*o/c,l=-e*s/c,h=eu(i,a),f=ru(i,u);nu(f,ru(a,l));var d=h,p=tu(f,d),g=tu(d,d),y=p*p-g*(tu(f,f)-1);if(!(y<0)){var v=Sc(y),m=ru(d,(-p-v)/g);if(nu(m,f),m=Qc(m),!r)return m;var b,x=t[0],_=n[0],w=t[1],k=n[1];_0^m[1]<(vc(m[0]-x)<1e-6?w:k):w<=m[1]&&m[1]<=k:E>hc^(x<=m[0]&&m[0]<=_)){var A=ru(d,(-p+v)/g);return nu(A,f),[m,Qc(A)]}}}function s(e,n){var i=r?t:hc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return _l(a,(function(t){var e,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(h,f){var d,p=[h,f],g=a(h,f),y=r?g?0:s(h,f):g?s(h+(h<0?hc:-hc),f):0;if(!e&&(u=c=g)&&t.lineStart(),g!==c&&(!(d=o(e,p))||pl(e,d)||pl(p,d))&&(p[0]+=1e-6,p[1]+=1e-6,g=a(p[0],p[1])),g!==c)l=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^g){var v;y&n||!(v=o(p,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&&pl(e,p)||t.point(p[0],p[1]),e=p,c=g,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(u&&c)<<1}}}),(function(e,r,i,a){ll(a,t,n,i,e,r)}),r?[0,-t]:[-hc,t-hc])};function Al(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,u){var l=0,h=0;if(null==i||(l=o(i,s))!==(h=o(a,s))||c(i,a)<0^s>0)do{u.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==h);else u.point(a[0],a[1])}function o(r,i){return vc(r[0]-t)<1e-6?i>0?0:3:vc(r[0]-n)<1e-6?i>0?2:1:vc(r[1]-e)<1e-6?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,u,l,h,f,d,p,g,y,v,m,b=o,x=dl(),_={point:w,lineStart:function(){_.point=k,u&&u.push(l=[]);v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(k(h,f),d&&y&&x.rejoin(),c.push(x.result()));_.point=w,y&&b.lineEnd()},polygonStart:function(){b=x,c=[],u=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;nr&&(f-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(f-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=m&&e,i=(c=I(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&yl(c,s,e,a,o),o.polygonEnd());b=o,c=u=l=null}};function w(t,e){i(t,e)&&b.point(t,e)}function k(a,o){var s=i(a,o);if(u&&l.push([a,o]),v)h=a,f=o,d=s,v=!1,s&&(b.lineStart(),b.point(a,o));else if(s&&y)b.point(a,o);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),g=Math.max(-1e9,Math.min(1e9,g))],x=[a=Math.max(-1e9,Math.min(1e9,a)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],u=0,l=1,h=e[0]-s,f=e[1]-c;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>u&&(u=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=a-c,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>u&&(u=o)}else if(f>0){if(o0&&(t[0]=s+u*h,t[1]=c+u*f),l<1&&(e[0]=s+l*h,e[1]=c+l*f),!0}}}}}(c,x,t,e,n,r)?s&&(b.lineStart(),b.point(a,o),m=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(x[0],x[1]),s||b.lineEnd(),m=!1)}p=a,g=o,y=s}return _}}var Sl,Cl,Ml,Ol=function(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Al(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}},Nl=sc(),Dl={sphere:Dc,point:Dc,lineStart:function(){Dl.point=Ll,Dl.lineEnd=Bl},lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc};function Bl(){Dl.point=Dl.lineEnd=Dc}function Ll(t,e){Sl=t*=yc,Cl=Tc(e*=yc),Ml=xc(e),Dl.point=Fl}function Fl(t,e){t*=yc;var n=Tc(e*=yc),r=xc(e),i=vc(t-Sl),a=xc(i),o=r*Tc(i),s=Ml*n-Cl*r*a,c=Cl*n+Ml*r*a;Nl.add(bc(Sc(o*o+s*s),c)),Sl=t,Cl=n,Ml=r}var Pl=function(t){return Nl.reset(),$c(t,Dl),+Nl},Il=[null,null],jl={type:"LineString",coordinates:Il},Rl=function(t,e){return Il[0]=t,Il[1]=e,Pl(jl)},Yl={Feature:function(t,e){return Ul(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=Rl(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function Hl(t,e){return!!xl(t.map(Vl),Gl(e))}function Vl(t){return(t=t.map(Gl)).pop(),t}function Gl(t){return[t[0]*yc,t[1]*yc]}var ql=function(t,e){return(t&&Yl.hasOwnProperty(t.type)?Yl[t.type]:Ul)(t,e)};function Xl(t,e,n){var r=w(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Zl(t,e,n){var r=w(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Jl(){var t,e,n,r,i,a,o,s,c,u,l,h,f=10,d=f,p=90,g=360,y=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return w(_c(r/p)*p,n,p).map(l).concat(w(_c(s/g)*g,o,g).map(h)).concat(w(_c(e/f)*f,t,f).filter((function(t){return vc(t%p)>1e-6})).map(c)).concat(w(_c(a/d)*d,i,d).filter((function(t){return vc(t%g)>1e-6})).map(u))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(h(o).slice(1),l(n).reverse().slice(1),h(s).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),v.precision(y)):[[r,s],[n,o]]},v.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),v.precision(y)):[[e,a],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],v):[f,d]},v.precision=function(f){return arguments.length?(y=+f,c=Xl(a,i,90),u=Zl(e,t,y),l=Xl(s,o,90),h=Zl(r,n,y),v):y},v.extentMajor([[-180,1e-6-90],[180,90-1e-6]]).extentMinor([[-180,-80-1e-6],[180,80+1e-6]])}function Ql(){return Jl()()}var Kl,th,eh,nh,rh=function(t,e){var n=t[0]*yc,r=t[1]*yc,i=e[0]*yc,a=e[1]*yc,o=xc(r),s=Tc(r),c=xc(a),u=Tc(a),l=o*xc(n),h=o*Tc(n),f=c*xc(i),d=c*Tc(i),p=2*Oc(Sc(Nc(a-r)+o*c*Nc(i-n))),g=Tc(p),y=p?function(t){var e=Tc(t*=p)/g,n=Tc(p-t)/g,r=n*l+e*f,i=n*h+e*d,a=n*s+e*u;return[bc(i,r)*gc,bc(a,Sc(r*r+i*i))*gc]}:function(){return[n*gc,r*gc]};return y.distance=p,y},ih=function(t){return t},ah=sc(),oh=sc(),sh={point:Dc,lineStart:Dc,lineEnd:Dc,polygonStart:function(){sh.lineStart=ch,sh.lineEnd=hh},polygonEnd:function(){sh.lineStart=sh.lineEnd=sh.point=Dc,ah.add(vc(oh)),oh.reset()},result:function(){var t=ah/2;return ah.reset(),t}};function ch(){sh.point=uh}function uh(t,e){sh.point=lh,Kl=eh=t,th=nh=e}function lh(t,e){oh.add(nh*t-eh*e),eh=t,nh=e}function hh(){lh(Kl,th)}var fh=sh,dh=1/0,ph=dh,gh=-dh,yh=gh;var vh,mh,bh,xh,_h={point:function(t,e){tgh&&(gh=t);eyh&&(yh=e)},lineStart:Dc,lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc,result:function(){var t=[[dh,ph],[gh,yh]];return gh=yh=-(ph=dh=1/0),t}},wh=0,kh=0,Eh=0,Th=0,Ah=0,Sh=0,Ch=0,Mh=0,Oh=0,Nh={point:Dh,lineStart:Bh,lineEnd:Ph,polygonStart:function(){Nh.lineStart=Ih,Nh.lineEnd=jh},polygonEnd:function(){Nh.point=Dh,Nh.lineStart=Bh,Nh.lineEnd=Ph},result:function(){var t=Oh?[Ch/Oh,Mh/Oh]:Sh?[Th/Sh,Ah/Sh]:Eh?[wh/Eh,kh/Eh]:[NaN,NaN];return wh=kh=Eh=Th=Ah=Sh=Ch=Mh=Oh=0,t}};function Dh(t,e){wh+=t,kh+=e,++Eh}function Bh(){Nh.point=Lh}function Lh(t,e){Nh.point=Fh,Dh(bh=t,xh=e)}function Fh(t,e){var n=t-bh,r=e-xh,i=Sc(n*n+r*r);Th+=i*(bh+t)/2,Ah+=i*(xh+e)/2,Sh+=i,Dh(bh=t,xh=e)}function Ph(){Nh.point=Dh}function Ih(){Nh.point=Rh}function jh(){Yh(vh,mh)}function Rh(t,e){Nh.point=Yh,Dh(vh=bh=t,mh=xh=e)}function Yh(t,e){var n=t-bh,r=e-xh,i=Sc(n*n+r*r);Th+=i*(bh+t)/2,Ah+=i*(xh+e)/2,Sh+=i,Ch+=(i=xh*t-bh*e)*(bh+t),Mh+=i*(xh+e),Oh+=3*i,Dh(bh=t,xh=e)}var zh=Nh;function Uh(t){this._context=t}Uh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,pc)}},result:Dc};var $h,Wh,Hh,Vh,Gh,qh=sc(),Xh={point:Dc,lineStart:function(){Xh.point=Zh},lineEnd:function(){$h&&Jh(Wh,Hh),Xh.point=Dc},polygonStart:function(){$h=!0},polygonEnd:function(){$h=null},result:function(){var t=+qh;return qh.reset(),t}};function Zh(t,e){Xh.point=Jh,Wh=Vh=t,Hh=Gh=e}function Jh(t,e){Vh-=t,Gh-=e,qh.add(Sc(Vh*Vh+Gh*Gh)),Vh=t,Gh=e}var Qh=Xh;function Kh(){this._string=[]}function tf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Kh.prototype={_radius:4.5,_circle:tf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=tf(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var ef=function(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),$c(t,n(r))),r.result()}return a.area=function(t){return $c(t,n(fh)),fh.result()},a.measure=function(t){return $c(t,n(Qh)),Qh.result()},a.bounds=function(t){return $c(t,n(_h)),_h.result()},a.centroid=function(t){return $c(t,n(zh)),zh.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,ih):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Kh):new Uh(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)},nf=function(t){return{stream:rf(t)}};function rf(t){return function(e){var n=new af;for(var r in t)n[r]=t[r];return n.stream=e,n}}function af(){}function of(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),$c(n,t.stream(_h)),e(_h.result()),null!=r&&t.clipExtent(r),t}function sf(t,e,n){return of(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function cf(t,e,n){return sf(t,[[0,0],e],n)}function uf(t,e,n){return of(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function lf(t,e,n){return of(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}af.prototype={constructor:af,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var hf=xc(30*yc),ff=function(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,u,l,h,f,d,p,g,y){var v=u-r,m=l-i,b=v*v+m*m;if(b>4*e&&g--){var x=o+f,_=s+d,w=c+p,k=Sc(x*x+_*_+w*w),E=Oc(w/=k),T=vc(vc(w)-1)<1e-6||vc(a-h)<1e-6?(a+h)/2:bc(_,x),A=t(T,E),S=A[0],C=A[1],M=S-r,O=C-i,N=m*M-v*O;(N*N/b>e||vc((v*M+m*O)/b-.5)>.3||o*f+s*d+c*p2?t[2]%360*yc:0,S()):[y*gc,v*gc,m*gc]},T.angle=function(t){return arguments.length?(b=t%360*yc,S()):b*gc},T.precision=function(t){return arguments.length?(o=ff(s,E=t*t),C()):Sc(E)},T.fitExtent=function(t,e){return sf(T,t,e)},T.fitSize=function(t,e){return cf(T,t,e)},T.fitWidth=function(t,e){return uf(T,t,e)},T.fitHeight=function(t,e){return lf(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&A,S()}}function mf(t){var e=0,n=hc/3,r=vf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*yc,n=t[1]*yc):[e*gc,n*gc]},i}function bf(t,e){var n=Tc(t),r=(n+Tc(e))/2;if(vc(r)<1e-6)return function(t){var e=xc(t);function n(t,n){return[t*e,Tc(n)/e]}return n.invert=function(t,n){return[t/e,Oc(n*e)]},n}(t);var i=1+n*(2*r-n),a=Sc(i)/r;function o(t,e){var n=Sc(i-2*r*Tc(e))/r;return[n*Tc(t*=r),a-n*xc(t)]}return o.invert=function(t,e){var n=a-e;return[bc(t,vc(n))/r*Ac(n),Oc((i-(t*t+n*n)*r*r)/(2*r))]},o}var xf=function(){return mf(bf).scale(155.424).center([0,33.6442])},_f=function(){return xf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var wf=function(){var t,e,n,r,i,a,o=_f(),s=xf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=xf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function l(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,l}return l.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<1e-6-fc&&(e=1e-6-fc):e>fc-1e-6&&(e=fc-1e-6);var n=i/Ec(Df(e),r);return[n*Tc(r*t),i-n*xc(r*t)]}return a.invert=function(t,e){var n=i-e,a=Ac(r)*Sc(t*t+n*n);return[bc(t,vc(n))/r*Ac(n),2*mc(Ec(i/a,1/r))-fc]},a}var Lf=function(){return mf(Bf).scale(109.5).parallels([30,30])};function Ff(t,e){return[t,e]}Ff.invert=Ff;var Pf=function(){return yf(Ff).scale(152.63)};function If(t,e){var n=xc(t),r=t===e?Tc(t):(n-xc(e))/(e-t),i=n/r+t;if(vc(r)<1e-6)return Ff;function a(t,e){var n=i-e,a=r*t;return[n*Tc(a),i-n*xc(a)]}return a.invert=function(t,e){var n=i-e;return[bc(t,vc(n))/r*Ac(n),i-Ac(r)*Sc(t*t+n*n)]},a}var jf=function(){return mf(If).scale(131.154).center([0,13.9389])},Rf=1.340264,Yf=-.081106,zf=893e-6,Uf=.003796,$f=Sc(3)/2;function Wf(t,e){var n=Oc($f*Tc(e)),r=n*n,i=r*r*r;return[t*xc(n)/($f*(Rf+3*Yf*r+i*(7*zf+9*Uf*r))),n*(Rf+Yf*r+i*(zf+Uf*r))]}Wf.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(Rf+Yf*i+a*(zf+Uf*i))-e)/(Rf+3*Yf*i+a*(7*zf+9*Uf*i)))*r)*i*i,!(vc(n)<1e-12));++o);return[$f*t*(Rf+3*Yf*i+a*(7*zf+9*Uf*i))/xc(r),Oc(Tc(r)/$f)]};var Hf=function(){return yf(Wf).scale(177.158)};function Vf(t,e){var n=xc(e),r=xc(t)*n;return[n*Tc(t)/r,Tc(e)/r]}Vf.invert=Ef(mc);var Gf=function(){return yf(Vf).scale(144.049).clipAngle(60)};function qf(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?ih:rf({point:function(i,a){this.stream.point(i*t+n,a*e+r)}})}var Xf=function(){var t,e,n,r,i,a,o=1,s=0,c=0,u=1,l=1,h=ih,f=null,d=ih;function p(){return r=i=null,a}return a={stream:function(t){return r&&i===t?r:r=h(d(i=t))},postclip:function(r){return arguments.length?(d=r,f=t=e=n=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(f=t=e=n=null,ih):Al(f=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==f?null:[[f,t],[e,n]]},scale:function(t){return arguments.length?(h=qf((o=+t)*u,o*l,s,c),p()):o},translate:function(t){return arguments.length?(h=qf(o*u,o*l,s=+t[0],c=+t[1]),p()):[s,c]},reflectX:function(t){return arguments.length?(h=qf(o*(u=t?-1:1),o*l,s,c),p()):u<0},reflectY:function(t){return arguments.length?(h=qf(o*u,o*(l=t?-1:1),s,c),p()):l<0},fitExtent:function(t,e){return sf(a,t,e)},fitSize:function(t,e){return cf(a,t,e)},fitWidth:function(t,e){return uf(a,t,e)},fitHeight:function(t,e){return lf(a,t,e)}}};function Zf(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Zf.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(vc(n)>1e-6&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};var Jf=function(){return yf(Zf).scale(175.295)};function Qf(t,e){return[xc(e)*Tc(t),Tc(e)]}Qf.invert=Ef(Oc);var Kf=function(){return yf(Qf).scale(249.5).clipAngle(90+1e-6)};function td(t,e){var n=xc(e),r=1+xc(t)*n;return[n*Tc(t)/r,Tc(e)/r]}td.invert=Ef((function(t){return 2*mc(t)}));var ed=function(){return yf(td).scale(250).clipAngle(142)};function nd(t,e){return[kc(Cc((fc+e)/2)),-t]}nd.invert=function(t,e){return[-e,2*mc(wc(t))-fc]};var rd=function(){var t=Nf(nd),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};function id(t,e){return t.parent===e.parent?1:2}function ad(t,e){return t+e.x}function od(t,e){return Math.max(t,e.y)}var sd=function(){var t=id,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(ad,0)/t.length}(n),e.y=function(t){return 1+t.reduce(od,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,c)/2,l=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(l-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function cd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ud(t,e){var n,r,i,a,o,s=new dd(t),c=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=ld);n=u.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)u.push(r=n.children[a]=new dd(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(fd)}function ld(t){return t.children}function hd(t){t.data=t.data.data}function fd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function dd(t){this.data=t,this.depth=this.height=0,this.parent=null}dd.prototype=ud.prototype={constructor:dd,count:function(){return this.eachAfter(cd)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ud(this).eachBefore(hd)}};var pd=Array.prototype.slice;var gd=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(pd.call(t))).length,a=[];r0&&n*n>r*r+i*i}function bd(t,e){for(var n=0;n(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function Ed(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Td(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Ad(t){this._=t,this.next=null,this.previous=null}function Sd(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,c,u,l,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;kd(n,e,r=t[2]),e=new Ad(e),n=new Ad(n),r=new Ad(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Od(e),n):t},n.parentId=function(t){return arguments.length?(e=Od(t),n):e},n};function Vd(t,e){return t.parent===e.parent?1:2}function Gd(t){var e=t.children;return e?e[0]:t.t}function qd(t){var e=t.children;return e?e[e.length-1]:t.t}function Xd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Zd(t,e,n){return t.a.parent===e.parent?t.a:n}function Jd(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Jd.prototype=Object.create(dd.prototype);var Qd=function(){var t=Vd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Jd(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new Jd(r[i],i)),n.parent=e;return(o.parent=new Jd(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var u=i,l=i,h=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=u===l?1:t(u,l)/2,d=f-u.x,p=e/(l.x+f+d),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],u=a.m,l=o.m,h=s.m,f=c.m;s=qd(s),a=Gd(a),s&&a;)c=Gd(c),(o=qd(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(Xd(Zd(s,e,r),e,i),u+=i,l+=i),h+=s.m,u+=a.m,f+=c.m,l+=o.m;s&&!qd(o)&&(o.t=s,o.m+=h-l),a&&!Gd(c)&&(c.t=a,c.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},Kd=function(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,u=t.value&&(i-n)/t.value;++sf&&(f=s),y=l*l*g,(d=Math.max(f/y,y/h))>p){l-=s;break}p=d}v.push(o={value:l,dice:c1?e:1)},n}(tp),rp=function(){var t=np,e=!1,n=1,r=1,i=[0],a=Nd,o=Nd,s=Nd,c=Nd,u=Nd;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(jd),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=c)}var h=u[e],f=r/2+h,d=e+1,p=n-1;for(;d>>1;u[g]c-a){var m=(i*v+o*y)/r;t(e,d,y,i,a,m,c),t(d,n,v,m,a,o,c)}else{var b=(a*v+c*y)/r;t(e,d,y,i,a,o,b),t(d,n,v,i,b,o,c)}}(0,c,t.value,e,n,r,i)},ap=function(t,e,n,r,i){(1&t.depth?Kd:Rd)(t,e,n,r,i)},op=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,u,l,h=-1,f=o.length,d=t.value;++h1?e:1)},n}(tp),sp=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},cp=function(t,e){var n=un(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},up=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},lp=Math.SQRT2;function hp(t){return((t=Math.exp(t))+1/t)/2}var fp=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],c=e[1],u=e[2],l=s-i,h=c-a,f=l*l+h*h;if(f<1e-12)r=Math.log(u/o)/lp,n=function(t){return[i+t*l,a+t*h,o*Math.exp(lp*t*r)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),g=(u*u-o*o-4*f)/(2*u*2*d),y=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(g*g+1)-g);r=(v-y)/lp,n=function(t){var e,n=t*r,s=hp(y),c=o/(2*d)*(s*(e=lp*n+y,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y));return[i+c*l,a+c*h,o*s/hp(lp*n+y)]}}return n.duration=1e3*r,n};function dp(t){return function(e,n){var r=t((e=tn(e)).h,(n=tn(n)).h),i=hn(e.s,n.s),a=hn(e.l,n.l),o=hn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var pp=dp(un),gp=dp(hn);function yp(t,e){var n=hn((t=pa(t)).l,(e=pa(e)).l),r=hn(t.a,e.a),i=hn(t.b,e.b),a=hn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function vp(t){return function(e,n){var r=t((e=wa(e)).h,(n=wa(n)).h),i=hn(e.c,n.c),a=hn(e.l,n.l),o=hn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var mp=vp(un),bp=vp(hn);function xp(t){return function e(n){function r(e,r){var i=t((e=Oa(e)).h,(r=Oa(r)).h),a=hn(e.s,r.s),o=hn(e.l,r.l),s=hn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}var _p=xp(un),wp=xp(hn);function kp(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n1&&(e=t[a[o-2]],n=t[a[o-1]],r=t[s],(n[0]-e[0])*(r[1]-e[1])-(n[1]-e[1])*(r[0]-e[0])<=0);)--o;a[o++]=s}return a.slice(0,o)}var Mp=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)u.push(t[r[a[e]][2]]);for(e=+s;es!=u>s&&o<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l},Np=function(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Dp),Fp=function t(e){function n(){var t=Lp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Dp),Pp=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function tg(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?eg:tg,i=a=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),_n)))(n)))},h.domain=function(t){return arguments.length?(o=Up.call(t,Xp),u===Jp||(u=Kp(o)),l()):o.slice()},h.range=function(t){return arguments.length?(s=$p.call(t),l()):s.slice()},h.rangeRound=function(t){return s=$p.call(t),c=up,l()},h.clamp=function(t){return arguments.length?(u=t?Kp(o):Jp,h):u!==Jp},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function ig(t,e){return rg()(t,e)}var ag=function(t,e,n,r){var i,a=C(t,e,n);switch((r=Hs(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=ac(a,o))||(r.precision=i),Zs(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=oc(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ic(a))||(r.precision=i-2*("%"===r.type))}return Xs(r)};function og(t){var e=t.domain;return t.ticks=function(t){var n=e();return A(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ag(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c0?r=S(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=S(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function sg(){var t=ig(Jp,Jp);return t.copy=function(){return ng(t,sg())},Rp.apply(t,arguments),og(t)}function cg(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Up.call(e,Xp),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return cg(t).unknown(e)},t=arguments.length?Up.call(t,Xp):[0,1],og(n)}var ug=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;fc)break;g.push(h)}}else for(;f=1;--l)if(!((h=u*l)c)break;g.push(h)}}else g=A(f,d,Math.min(d-f,p)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Xs(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0?i[r-1]:e[0],r=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return Mg().domain([e,n]).range(a).unknown(t)},Rp.apply(og(o),arguments)}function Og(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[c(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=$p.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=$p.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Og().domain(e).range(n).unknown(t)},Rp.apply(i,arguments)}var Ng=new Date,Dg=new Date;function Bg(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ng.setTime(+e),Dg.setTime(+r),t(Ng),t(Dg),Math.floor(n(Ng,Dg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Lg=Bg((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Lg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bg((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Fg=Lg,Pg=Lg.range,Ig=Bg((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),jg=Ig,Rg=Ig.range;function Yg(t){return Bg((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var zg=Yg(0),Ug=Yg(1),$g=Yg(2),Wg=Yg(3),Hg=Yg(4),Vg=Yg(5),Gg=Yg(6),qg=zg.range,Xg=Ug.range,Zg=$g.range,Jg=Wg.range,Qg=Hg.range,Kg=Vg.range,ty=Gg.range,ey=Bg((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),ny=ey,ry=ey.range,iy=Bg((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),ay=iy,oy=iy.range,sy=Bg((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),cy=sy,uy=sy.range,ly=Bg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),hy=ly,fy=ly.range,dy=Bg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));dy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Bg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dy:null};var py=dy,gy=dy.range;function yy(t){return Bg((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var vy=yy(0),my=yy(1),by=yy(2),xy=yy(3),_y=yy(4),wy=yy(5),ky=yy(6),Ey=vy.range,Ty=my.range,Ay=by.range,Sy=xy.range,Cy=_y.range,My=wy.range,Oy=ky.range,Ny=Bg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),Dy=Ny,By=Ny.range,Ly=Bg((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ly.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bg((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Fy=Ly,Py=Ly.range;function Iy(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function jy(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ry(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Yy(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Qy(i),l=Ky(i),h=Qy(a),f=Ky(a),d=Qy(o),p=Ky(o),g=Qy(s),y=Ky(s),v=Qy(c),m=Ky(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:xv,e:xv,f:Tv,H:_v,I:wv,j:kv,L:Ev,m:Av,M:Sv,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:em,s:nm,S:Cv,u:Mv,U:Ov,V:Nv,w:Dv,W:Bv,x:null,X:null,y:Lv,Y:Fv,Z:Pv,"%":tm},x={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Iv,e:Iv,f:Uv,H:jv,I:Rv,j:Yv,L:zv,m:$v,M:Wv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:em,s:nm,S:Hv,u:Vv,U:Gv,V:qv,w:Xv,W:Zv,x:null,X:null,y:Jv,Y:Qv,Z:Kv,"%":tm},_={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:lv,e:lv,f:yv,H:fv,I:fv,j:hv,L:gv,m:uv,M:dv,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:cv,Q:mv,s:bv,S:pv,u:ev,U:nv,V:rv,w:tv,W:iv,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:ov,Y:av,Z:sv,"%":vv};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=jy(Ry(a.y,0,1))).getUTCDay(),r=i>4||0===i?my.ceil(r):my(r),r=Dy.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Iy(Ry(a.y,0,1))).getDay(),r=i>4||0===i?Ug.ceil(r):Ug(r),r=ny.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?jy(Ry(a.y,0,1)).getUTCDay():Iy(Ry(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,jy(a)):Iy(a)}}function E(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=_[i in Vy?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}})}var zy,Uy,$y,Wy,Hy,Vy={"-":"",_:" ",0:"0"},Gy=/^\s*\d+/,qy=/^%/,Xy=/[\\^$*+?|[\]().{}]/g;function Zy(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function sv(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cv(t,e,n){var r=Gy.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function uv(t,e,n){var r=Gy.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function lv(t,e,n){var r=Gy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function hv(t,e,n){var r=Gy.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function fv(t,e,n){var r=Gy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function dv(t,e,n){var r=Gy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pv(t,e,n){var r=Gy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function gv(t,e,n){var r=Gy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function yv(t,e,n){var r=Gy.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vv(t,e,n){var r=qy.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function mv(t,e,n){var r=Gy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function bv(t,e,n){var r=Gy.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function xv(t,e){return Zy(t.getDate(),e,2)}function _v(t,e){return Zy(t.getHours(),e,2)}function wv(t,e){return Zy(t.getHours()%12||12,e,2)}function kv(t,e){return Zy(1+ny.count(Fg(t),t),e,3)}function Ev(t,e){return Zy(t.getMilliseconds(),e,3)}function Tv(t,e){return Ev(t,e)+"000"}function Av(t,e){return Zy(t.getMonth()+1,e,2)}function Sv(t,e){return Zy(t.getMinutes(),e,2)}function Cv(t,e){return Zy(t.getSeconds(),e,2)}function Mv(t){var e=t.getDay();return 0===e?7:e}function Ov(t,e){return Zy(zg.count(Fg(t)-1,t),e,2)}function Nv(t,e){var n=t.getDay();return t=n>=4||0===n?Hg(t):Hg.ceil(t),Zy(Hg.count(Fg(t),t)+(4===Fg(t).getDay()),e,2)}function Dv(t){return t.getDay()}function Bv(t,e){return Zy(Ug.count(Fg(t)-1,t),e,2)}function Lv(t,e){return Zy(t.getFullYear()%100,e,2)}function Fv(t,e){return Zy(t.getFullYear()%1e4,e,4)}function Pv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zy(e/60|0,"0",2)+Zy(e%60,"0",2)}function Iv(t,e){return Zy(t.getUTCDate(),e,2)}function jv(t,e){return Zy(t.getUTCHours(),e,2)}function Rv(t,e){return Zy(t.getUTCHours()%12||12,e,2)}function Yv(t,e){return Zy(1+Dy.count(Fy(t),t),e,3)}function zv(t,e){return Zy(t.getUTCMilliseconds(),e,3)}function Uv(t,e){return zv(t,e)+"000"}function $v(t,e){return Zy(t.getUTCMonth()+1,e,2)}function Wv(t,e){return Zy(t.getUTCMinutes(),e,2)}function Hv(t,e){return Zy(t.getUTCSeconds(),e,2)}function Vv(t){var e=t.getUTCDay();return 0===e?7:e}function Gv(t,e){return Zy(vy.count(Fy(t)-1,t),e,2)}function qv(t,e){var n=t.getUTCDay();return t=n>=4||0===n?_y(t):_y.ceil(t),Zy(_y.count(Fy(t),t)+(4===Fy(t).getUTCDay()),e,2)}function Xv(t){return t.getUTCDay()}function Zv(t,e){return Zy(my.count(Fy(t)-1,t),e,2)}function Jv(t,e){return Zy(t.getUTCFullYear()%100,e,2)}function Qv(t,e){return Zy(t.getUTCFullYear()%1e4,e,4)}function Kv(){return"+0000"}function tm(){return"%"}function em(t){return+t}function nm(t){return Math.floor(+t/1e3)}function rm(t){return zy=Yy(t),Uy=zy.format,$y=zy.parse,Wy=zy.utcFormat,Hy=zy.utcParse,zy}rm({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function im(t){return new Date(t)}function am(t){return t instanceof Date?+t:+new Date(+t)}function om(t,e,n,r,a,o,s,c,u){var l=ig(Jp,Jp),h=l.invert,f=l.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),x=u("%Y"),_=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function w(i){return(s(i)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return qb.h=360*t-100,qb.s=1.5-1.5*e,qb.l=.8-.9*e,qb+""},Zb=Ge(),Jb=Math.PI/3,Qb=2*Math.PI/3,Kb=function(t){var e;return t=(.5-t)*Math.PI,Zb.r=255*(e=Math.sin(t))*e,Zb.g=255*(e=Math.sin(t+Jb))*e,Zb.b=255*(e=Math.sin(t+Qb))*e,Zb+""},tx=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function ex(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var nx=ex(Dm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),rx=ex(Dm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ix=ex(Dm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ax=ex(Dm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),ox=function(t){return we(ne(t).call(document.documentElement))},sx=0;function cx(){return new ux}function ux(){this._="@"+(++sx).toString(36)}ux.prototype=cx.prototype={constructor:ux,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var lx=function(t){return"string"==typeof t?new be([document.querySelectorAll(t)],[document.documentElement]):new be([null==t?[]:t],me)},hx=function(t,e){null==e&&(e=Mn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n1?0:t<-1?xx:Math.acos(t)}function Ex(t){return t>=1?_x:t<=-1?-_x:Math.asin(t)}function Tx(t){return t.innerRadius}function Ax(t){return t.outerRadius}function Sx(t){return t.startAngle}function Cx(t){return t.endAngle}function Mx(t){return t&&t.padAngle}function Ox(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*f<1e-12))return[t+(f=(l*(e-a)-h*(t-i))/f)*c,e+f*u]}function Nx(t,e,n,r,i,a,o){var s=t-n,c=e-r,u=(o?a:-a)/bx(s*s+c*c),l=u*c,h=-u*s,f=t+l,d=e+h,p=n+l,g=r+h,y=(f+p)/2,v=(d+g)/2,m=p-f,b=g-d,x=m*m+b*b,_=i-a,w=f*g-p*d,k=(b<0?-1:1)*bx(yx(0,_*_*x-w*w)),E=(w*b-m*k)/x,T=(-w*m-b*k)/x,A=(w*b+m*k)/x,S=(-w*m+b*k)/x,C=E-y,M=T-v,O=A-y,N=S-v;return C*C+M*M>O*O+N*N&&(E=A,T=S),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/_-1),y11:T*(i/_-1)}}var Dx=function(){var t=Tx,e=Ax,n=fx(0),r=null,i=Sx,a=Cx,o=Mx,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-_x,d=a.apply(this,arguments)-_x,p=dx(d-f),g=d>f;if(s||(s=c=Ui()),h1e-12)if(p>wx-1e-12)s.moveTo(h*gx(f),h*mx(f)),s.arc(0,0,h,f,d,!g),l>1e-12&&(s.moveTo(l*gx(d),l*mx(d)),s.arc(0,0,l,d,f,g));else{var y,v,m=f,b=d,x=f,_=d,w=p,k=p,E=o.apply(this,arguments)/2,T=E>1e-12&&(r?+r.apply(this,arguments):bx(l*l+h*h)),A=vx(dx(h-l)/2,+n.apply(this,arguments)),S=A,C=A;if(T>1e-12){var M=Ex(T/l*mx(E)),O=Ex(T/h*mx(E));(w-=2*M)>1e-12?(x+=M*=g?1:-1,_-=M):(w=0,x=_=(f+d)/2),(k-=2*O)>1e-12?(m+=O*=g?1:-1,b-=O):(k=0,m=b=(f+d)/2)}var N=h*gx(m),D=h*mx(m),B=l*gx(_),L=l*mx(_);if(A>1e-12){var F,P=h*gx(b),I=h*mx(b),j=l*gx(x),R=l*mx(x);if(p1e-12?C>1e-12?(y=Nx(j,R,N,D,h,C,g),v=Nx(P,I,B,L,h,C,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),C1e-12&&w>1e-12?S>1e-12?(y=Nx(B,L,P,I,l,-S,g),v=Nx(N,D,j,R,l,-S,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--h)s.point(y[h],v[h]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+t(f,u,c),v[u]=+n(f,u,c),s.point(e?+e(f,u,c):y[u],r?+r(f,u,c):v[u]))}if(d)return s=null,d+""||null}function u(){return Ix().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:fx(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:fx(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:fx(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:fx(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:fx(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:fx(+t),c):r},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(r)},c.lineX1=function(){return u().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:fx(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c},Rx=function(t,e){return et?1:e>=t?0:NaN},Yx=function(t){return t},zx=function(){var t=Yx,e=Rx,n=null,r=fx(0),i=fx(wx),a=fx(0);function o(o){var s,c,u,l,h,f=o.length,d=0,p=new Array(f),g=new Array(f),y=+r.apply(this,arguments),v=Math.min(wx,Math.max(-wx,i.apply(this,arguments)-y)),m=Math.min(Math.abs(v)/f,a.apply(this,arguments)),b=m*(v<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,u=d?(v-f*b)/d:0;s0?h*u:0)+b,g[c]={data:o[c],index:s,value:h,startAngle:y,endAngle:l,padAngle:m};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:fx(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:fx(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:fx(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:fx(+t),o):a},o},Ux=Wx(Lx);function $x(t){this._curve=t}function Wx(t){function e(e){return new $x(t(e))}return e._curve=t,e}function Hx(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Wx(t)):e()._curve},t}$x.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Vx=function(){return Hx(Ix().curve(Ux))},Gx=function(){var t=jx().curve(Ux),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Hx(n())},delete t.lineX0,t.lineEndAngle=function(){return Hx(r())},delete t.lineX1,t.lineInnerRadius=function(){return Hx(i())},delete t.lineY0,t.lineOuterRadius=function(){return Hx(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Wx(t)):e()._curve},t},qx=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Xx=Array.prototype.slice;function Zx(t){return t.source}function Jx(t){return t.target}function Qx(t){var e=Zx,n=Jx,r=Fx,i=Px,a=null;function o(){var o,s=Xx.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(a||(a=o=Ui()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:fx(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:fx(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Kx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function t_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function e_(t,e,n,r,i){var a=qx(e,n),o=qx(e,n=(n+i)/2),s=qx(r,n),c=qx(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function n_(){return Qx(Kx)}function r_(){return Qx(t_)}function i_(){var t=Qx(e_);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var a_={draw:function(t,e){var n=Math.sqrt(e/xx);t.moveTo(n,0),t.arc(0,0,n,0,wx)}},o_={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},s_=Math.sqrt(1/3),c_=2*s_,u_={draw:function(t,e){var n=Math.sqrt(e/c_),r=n*s_;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},l_=Math.sin(xx/10)/Math.sin(7*xx/10),h_=Math.sin(wx/10)*l_,f_=-Math.cos(wx/10)*l_,d_={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=h_*n,i=f_*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=wx*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},p_={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},g_=Math.sqrt(3),y_={draw:function(t,e){var n=-Math.sqrt(e/(3*g_));t.moveTo(0,2*n),t.lineTo(-g_*n,-n),t.lineTo(g_*n,-n),t.closePath()}},v_=Math.sqrt(3)/2,m_=1/Math.sqrt(12),b_=3*(m_/2+1),x_={draw:function(t,e){var n=Math.sqrt(e/b_),r=n/2,i=n*m_,a=r,o=n*m_+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(-.5*r-v_*i,v_*r+-.5*i),t.lineTo(-.5*a-v_*o,v_*a+-.5*o),t.lineTo(-.5*s-v_*c,v_*s+-.5*c),t.lineTo(-.5*r+v_*i,-.5*i-v_*r),t.lineTo(-.5*a+v_*o,-.5*o-v_*a),t.lineTo(-.5*s+v_*c,-.5*c-v_*s),t.closePath()}},__=[a_,o_,u_,p_,d_,y_,x_],w_=function(){var t=fx(a_),e=fx(64),n=null;function r(){var r;if(n||(n=r=Ui()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:fx(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:fx(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},k_=function(){};function E_(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function T_(t){this._context=t}T_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:E_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:E_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var A_=function(t){return new T_(t)};function S_(t){this._context=t}S_.prototype={areaStart:k_,areaEnd:k_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:E_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var C_=function(t){return new S_(t)};function M_(t){this._context=t}M_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:E_(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var O_=function(t){return new M_(t)};function N_(t,e){this._basis=new T_(t),this._beta=e}N_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var D_=function t(e){function n(t){return 1===e?new T_(t):new N_(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function B_(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function L_(t,e){this._context=t,this._k=(1-e)/6}L_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:B_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:B_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F_=function t(e){function n(t){return new L_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function P_(t,e){this._context=t,this._k=(1-e)/6}P_.prototype={areaStart:k_,areaEnd:k_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:B_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var I_=function t(e){function n(t){return new P_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function j_(t,e){this._context=t,this._k=(1-e)/6}j_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:B_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var R_=function t(e){function n(t){return new j_(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Y_(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function z_(t,e){this._context=t,this._alpha=e}z_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Y_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var U_=function t(e){function n(t){return e?new z_(t,e):new L_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $_(t,e){this._context=t,this._alpha=e}$_.prototype={areaStart:k_,areaEnd:k_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Y_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var W_=function t(e){function n(t){return e?new $_(t,e):new P_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function H_(t,e){this._context=t,this._alpha=e}H_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Y_(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var V_=function t(e){function n(t){return e?new H_(t,e):new j_(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function G_(t){this._context=t}G_.prototype={areaStart:k_,areaEnd:k_,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var q_=function(t){return new G_(t)};function X_(t){return t<0?-1:1}function Z_(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(X_(a)+X_(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function J_(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Q_(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function K_(t){this._context=t}function tw(t){this._context=new ew(t)}function ew(t){this._context=t}function nw(t){return new K_(t)}function rw(t){return new tw(t)}function iw(t){this._context=t}function aw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var cw=function(t){return new sw(t,.5)};function uw(t){return new sw(t,0)}function lw(t){return new sw(t,1)}var hw=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a=0;)n[e]=e;return n};function dw(t,e){return t[e]}var pw=function(){var t=fx([]),e=fw,n=hw,r=dw;function i(i){var a,o,s=t.apply(this,arguments),c=i.length,u=s.length,l=new Array(u);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a0)for(var n,r,i,a,o,s,c=0,u=t[e[0]].length;c0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},vw=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;oa&&(a=e,r=n);return r}var _w=function(t){var e=t.map(ww);return fw(t).sort((function(t,n){return e[t]-e[n]}))};function ww(t){for(var e,n=0,r=-1,i=t.length;++r0)){if(a/=f,f<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=r-c,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=i-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>l&&(l=a)}else if(d>0){if(a0||h<1)||(l>0&&(t[0]=[c+l*f,u+l*d]),h<1&&(t[1]=[c+h*f,u+h*d]),!0)}}}}}function Uw(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,c=t[0],u=t.left,l=t.right,h=u[0],f=u[1],d=l[0],p=l[1],g=(h+d)/2,y=(f+p)/2;if(p===f){if(g=r)return;if(h>d){if(c){if(c[1]>=i)return}else c=[g,n];a=[g,i]}else{if(c){if(c[1]1)if(h>d){if(c){if(c[1]>=i)return}else c=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+s];a=[r,o*r+s]}else{if(c){if(c[0]=-lk)){var d=c*c+u*u,p=l*l+h*h,g=(h*d-u*p)/f,y=(c*p-l*d)/f,v=Gw.pop()||new qw;v.arc=t,v.site=i,v.x=g+o,v.y=(v.cy=y+s)+Math.sqrt(g*g+y*y),t.circle=v;for(var m=null,b=sk._;b;)if(v.yuk)s=s.L;else{if(!((i=a-ik(s,o))>uk)){r>-uk?(e=s.P,n=s):i>-uk?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){ok[t.index]={site:t,halfedges:[]}}(t);var c=Kw(t);if(ak.insert(e,c),e||n){if(e===n)return Zw(e),n=Kw(e.site),ak.insert(c,n),c.edge=n.edge=jw(e.site,c.site),Xw(e),void Xw(n);if(n){Zw(e),Zw(n);var u=e.site,l=u[0],h=u[1],f=t[0]-l,d=t[1]-h,p=n.site,g=p[0]-l,y=p[1]-h,v=2*(f*y-d*g),m=f*f+d*d,b=g*g+y*y,x=[(y*m-d*b)/v+l,(f*b-g*m)/v+h];Yw(n.edge,u,p,x),c.edge=jw(u,t,null,x),n.edge=jw(t,p,null,x),Xw(e),Xw(n)}else c.edge=jw(e.site,c.site)}}function rk(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],c=n[1],u=c-e;if(!u)return s;var l=s-r,h=1/a-1/u,f=l/u;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*u)-c+u/2+i-a/2)))/h+r:(r+s)/2}function ik(t,e){var n=t.N;if(n)return rk(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var ak,ok,sk,ck,uk=1e-6,lk=1e-12;function hk(t,e){return e[1]-t[1]||e[0]-t[0]}function fk(t,e){var n,r,i,a=t.sort(hk).pop();for(ck=[],ok=new Array(t.length),ak=new Iw,sk=new Iw;;)if(i=Vw,a&&(!i||a[1]uk||Math.abs(i[0][1]-i[1][1])>uk)||delete ck[a]}(o,s,c,u),function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,g,y=ok.length,v=!0;for(i=0;iuk||Math.abs(g-f)>uk)&&(c.splice(s,0,ck.push(Rw(o,d,Math.abs(p-t)uk?[t,Math.abs(h-t)uk?[Math.abs(f-r)uk?[n,Math.abs(h-n)uk?[Math.abs(f-e)=s)return null;var c=t-i.site[0],u=e-i.site[1],l=c*c+u*u;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var c=t-s[0],u=e-s[1],h=c*c+u*u;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}var Sk=function(){var t,e,n=_k,r=wk,i=Ak,a=Ek,o=Tk,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=fp,h=lt("start","zoom","end"),f=0;function d(t){t.property("__zoom",kk).on("wheel.zoom",x).on("mousedown.zoom",_).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",k).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new yk(e,t.x,t.y)}function g(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new yk(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function v(t,e,n){t.on("start.zoom",(function(){m(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=m(t,i),o=r.apply(t,i),s=null==n?y(o):"function"==typeof n?n.apply(t,i):n,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,i):e,f=l(u.invert(s).concat(c/u.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=c/e[2];t=new yk(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function x(){if(n.apply(this,arguments)){var t=m(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Dn(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],or(this),t.start()}xk(),t.wheel=setTimeout(u,150),t.zoom("mouse",i(g(p(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function u(){t.wheel=null,t.end()}}function _(){if(!e&&n.apply(this,arguments)){var t=m(this,arguments,!0),r=we(ce.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",l,!0),a=Dn(this),o=ce.clientX,s=ce.clientY;Te(ce.view),bk(),t.mouse=[a,this.__zoom.invert(a)],or(this),t.start()}function u(){if(xk(),!t.moved){var e=ce.clientX-o,n=ce.clientY-s;t.moved=e*e+n*n>f}t.zoom("mouse",i(g(t.that.__zoom,t.mouse[0]=Dn(t.that),t.mouse[1]),t.extent,c))}function l(){r.on("mousemove.zoom mouseup.zoom",null),Ae(ce.view,t.moved),xk(),t.end()}}function w(){if(n.apply(this,arguments)){var t=this.__zoom,e=Dn(this),a=t.invert(e),o=t.k*(ce.shiftKey?.5:2),s=i(g(p(t,o),e,a),r.apply(this,arguments),c);xk(),u>0?we(this).transition().duration(u).call(v,s,e):we(this).call(d.transform,s)}}function k(){if(n.apply(this,arguments)){var e,r,i,a,o=ce.touches,s=o.length,c=m(this,arguments,ce.changedTouches.length===s);for(bk(),r=0;rh&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),56;case 1:return this.begin("type_directive"),57;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:case 6:break;case 7:return 5;case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return e.yytext=e.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,10],inclusive:!1},type_directive:{rules:[2,3,10],inclusive:!1},arg_directive:{rules:[3,4,10],inclusive:!1},ID:{rules:[9,10,12],inclusive:!1},ALIAS:{rules:[9,10,13,14],inclusive:!1},LINE:{rules:[9,10,22],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function O(){this.yy={}}return C.lexer=M,O.prototype=C,C.Parser=O,new O}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){var r=n(198);t.exports={Graph:r.Graph,json:n(301),alg:n(302),version:r.version}},function(t,e,n){var r;try{r={cloneDeep:n(313),constant:n(86),defaults:n(154),each:n(87),filter:n(128),find:n(314),flatten:n(156),forEach:n(126),forIn:n(319),has:n(93),isUndefined:n(139),last:n(320),map:n(140),mapValues:n(321),max:n(322),merge:n(324),min:n(329),minBy:n(330),now:n(331),pick:n(161),range:n(162),reduce:n(142),sortBy:n(338),uniqueId:n(163),values:n(147),zipObject:n(343)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mermaid=e():t.mermaid=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=383)}([function(t,e,n){"use strict";n.r(e);var r=function(t,e){return te?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,s=a.left,c=o,u=function(t,e){null==e&&(e=l);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o1)return c/(a-1)},y=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=0?(a>=k?10:a>=E?5:a>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=E?5:a>=T?2:1)}function S(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=k?i*=10:a>=E?i*=5:a>=T&&(i*=2),eh;)f.pop(),--d;var p,y=new Array(d+1);for(i=0;i<=d;++i)(p=y[i]=[]).x0=i>0?f[i-1]:l,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}},N=function(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(D(t,.75)-D(t,.25))*Math.pow(t.length,-1/3)))},B=function(t,e,n){return Math.ceil((n-e)/(3.5*y(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r},P=function(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n},j=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r},R=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},Y=function(t,e){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==e&&(e=r);++a=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ct(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;ae?1:t>=e?0:NaN}var xt="http://www.w3.org/1999/xhtml",wt={svg:"http://www.w3.org/2000/svg",xhtml:xt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},kt=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wt.hasOwnProperty(e)?{space:wt[e],local:t}:t};function Et(t){return function(){this.removeAttribute(t)}}function Tt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Ct(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function St(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Mt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ot=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Dt(t){return function(){this.style.removeProperty(t)}}function Nt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Bt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Lt(t,e){return t.style.getPropertyValue(e)||Ot(t).getComputedStyle(t,null).getPropertyValue(e)}function Pt(t){return function(){delete this[t]}}function Ft(t,e){return function(){this[t]=e}}function It(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function jt(t){return t.trim().split(/^|\s+/)}function Rt(t){return t.classList||new Yt(t)}function Yt(t){this._node=t,this._names=jt(t.getAttribute("class")||"")}function zt(t,e){for(var n=Rt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vt(){this.textContent=""}function Gt(t){return function(){this.textContent=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Xt(){this.innerHTML=""}function Zt(t){return function(){this.innerHTML=t}}function Jt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Qt(){this.nextSibling&&this.parentNode.appendChild(this)}function Kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function te(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xt&&e.documentElement.namespaceURI===xt?e.createElement(t):e.createElementNS(n,t)}}function ee(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var ne=function(t){var e=kt(t);return(e.local?ee:te)(e)};function re(){return null}function ie(){var t=this.parentNode;t&&t.removeChild(this)}function ae(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var se={},ce=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(se={mouseenter:"mouseover",mouseleave:"mouseout"}));function ue(t,e,n){return t=le(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function le(t,e,n){return function(r){var i=ce;ce=r;try{t.call(this,this.__data__,e,n)}finally{ce=i}}}function he(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function fe(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=x&&(x=_+1);!(b=v[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=_t);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Dt:"function"==typeof e?Bt:Nt)(t,e,null==n?"":n)):Lt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Pt:"function"==typeof e?It:Ft)(t,e)):this.node()[t]},classed:function(t,e){var n=jt(t+"");if(arguments.length<2){for(var r=Rt(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new qe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new qe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Le.exec(t))?new qe(e[1],e[2],e[3],1):(e=Pe.exec(t))?new qe(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Fe.exec(t))?He(e[1],e[2],e[3],e[4]):(e=Ie.exec(t))?He(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=je.exec(t))?Qe(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Qe(e[1],e[2]/100,e[3]/100,e[4]):Ye.hasOwnProperty(t)?We(Ye[t]):"transparent"===t?new qe(NaN,NaN,NaN,0):null}function We(t){return new qe(t>>16&255,t>>8&255,255&t,1)}function He(t,e,n,r){return r<=0&&(t=e=n=NaN),new qe(t,e,n,r)}function Ve(t){return t instanceof Me||(t=$e(t)),t?new qe((t=t.rgb()).r,t.g,t.b,t.opacity):new qe}function Ge(t,e,n,r){return 1===arguments.length?Ve(t):new qe(t,e,n,null==r?1:r)}function qe(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Xe(){return"#"+Je(this.r)+Je(this.g)+Je(this.b)}function Ze(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Je(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Qe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new en(t,e,n,r)}function Ke(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof Me||(t=$e(t)),!t)return new en;if(t instanceof en)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new en(o,s,c,t.opacity)}function tn(t,e,n,r){return 1===arguments.length?Ke(t):new en(t,e,n,null==r?1:r)}function en(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function nn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function rn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Ce(Me,$e,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ze,formatHex:ze,formatHsl:function(){return Ke(this).formatHsl()},formatRgb:Ue,toString:Ue}),Ce(qe,Ge,Se(Me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xe,formatHex:Xe,formatRgb:Ze,toString:Ze})),Ce(en,tn,Se(Me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new en(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new en(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new qe(nn(t>=240?t-240:t+120,i,r),nn(t,i,r),nn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var an=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):sn(isNaN(t)?e:t)}function ln(t){return 1==(t=+t)?hn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):sn(isNaN(e)?n:e)}}function hn(t,e){var n=e-t;return n?cn(t,n):sn(isNaN(t)?e:t)}var fn=function t(e){var n=ln(e);function r(t,e){var r=n((t=Ge(t)).r,(e=Ge(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=hn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function dn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:xn(n,r)})),a=En.lastIndex;return a=0&&e._call.call(null,t),e=e._next;--Bn}function Vn(){In=(Fn=Rn.now())+jn,Bn=Ln=0;try{Hn()}finally{Bn=0,function(){var t,e,n=Tn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Tn=e);An=t,qn(r)}(),In=0}}function Gn(){var t=Rn.now(),e=t-Fn;e>1e3&&(jn-=e,Fn=t)}function qn(t){Bn||(Ln&&(Ln=clearTimeout(Ln)),t-In>24?(t<1/0&&(Ln=setTimeout(Vn,t-Rn.now()-jn)),Pn&&(Pn=clearInterval(Pn))):(Pn||(Fn=Rn.now(),Pn=setInterval(Gn,1e3)),Bn=1,Yn(Vn)))}$n.prototype=Wn.prototype={constructor:$n,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?zn():+n)+(null==e?0:+e),this._next||An===this||(An?An._next=this:Tn=this,An=this),this._call=t,this._time=n,qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,qn())}};var Xn=function(t,e,n){var r=new $n;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Zn=lt("start","end","cancel","interrupt"),Jn=[],Qn=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Xn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function tr(t,e){var n=er(t,e);if(n.state>3)throw new Error("too late; already running");return n}function er(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var nr,rr,ir,ar,or=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}},sr=180/Math.PI,cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ur=function(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:xn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:xn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:xn(t,n)},{i:s-2,x:xn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Kn:tr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Br=xe.prototype.constructor;function Lr(t){return function(){this.style.removeProperty(t)}}function Pr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Fr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Pr(t,a,n)),r}return a._value=e,a}function Ir(t){return function(e){this.textContent=t.call(this,e)}}function jr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ir(r)),e}return r._value=t,r}var Rr=0;function Yr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function zr(t){return xe().transition(t)}function Ur(){return++Rr}var $r=xe.prototype;function Wr(t){return t*t*t}function Hr(t){return--t*t*t+1}function Vr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Yr.prototype=zr.prototype={constructor:Yr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ft(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o1&&n.name===e)return new Yr([[t]],Xr,e,+r);return null},Jr=function(t){return function(){return t}},Qr=function(t,e,n){this.target=t,this.type=e,this.selection=n};function Kr(){ce.stopImmediatePropagation()}var ti=function(){ce.preventDefault(),ce.stopImmediatePropagation()},ei={name:"drag"},ni={name:"space"},ri={name:"handle"},ii={name:"center"};function ai(t){return[+t[0],+t[1]]}function oi(t){return[ai(t[0]),ai(t[1])]}function si(t){return function(e){return Dn(e,ce.touches,t)}}var ci={name:"x",handles:["w","e"].map(gi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ui={name:"y",handles:["n","s"].map(gi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},li={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(gi),input:function(t){return null==t?null:oi(t)},output:function(t){return t}},hi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},fi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},di={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},yi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function gi(t){return{type:t}}function vi(){return!ce.ctrlKey&&!ce.button}function mi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function bi(){return navigator.maxTouchPoints||"ontouchstart"in this}function _i(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function xi(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function wi(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ki(){return Ai(ci)}function Ei(){return Ai(ui)}var Ti=function(){return Ai(li)};function Ai(t){var e,n=mi,r=vi,i=bi,a=!0,o=lt("start","brush","end"),s=6;function c(e){var n=e.property("__brush",y).selectAll(".overlay").data([gi("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",hi.overlay).merge(n).each((function(){var t=_i(this).extent;we(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([gi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",hi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return hi[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=we(this),e=_i(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||ce.touches)&&r.apply(this,arguments)){var n,i,o,s,c,h,f,d,p,y,g,v=this,m=ce.target.__data__.type,b="selection"===(a&&ce.metaKey?m="overlay":m)?ei:a&&ce.altKey?ii:ri,_=t===ui?null:pi[m],x=t===ci?null:yi[m],w=_i(v),k=w.extent,E=w.selection,T=k[0][0],A=k[0][1],C=k[1][0],S=k[1][1],M=0,O=0,D=_&&x&&a&&ce.shiftKey,N=ce.touches?si(ce.changedTouches[0].identifier):Nn,B=N(v),L=B,P=l(v,arguments,!0).beforestart();"overlay"===m?(E&&(p=!0),w.selection=E=[[n=t===ui?T:B[0],o=t===ci?A:B[1]],[c=t===ui?C:n,f=t===ci?S:o]]):(n=E[0][0],o=E[0][1],c=E[1][0],f=E[1][1]),i=n,s=o,h=c,d=f;var F=we(v).attr("pointer-events","none"),I=F.selectAll(".overlay").attr("cursor",hi[m]);if(ce.touches)P.moved=R,P.ended=z;else{var j=we(ce.view).on("mousemove.brush",R,!0).on("mouseup.brush",z,!0);a&&j.on("keydown.brush",U,!0).on("keyup.brush",$,!0),Te(ce.view)}Kr(),or(v),u.call(v),P.start()}function R(){var t=N(v);!D||y||g||(Math.abs(t[0]-L[0])>Math.abs(t[1]-L[1])?g=!0:y=!0),L=t,p=!0,ti(),Y()}function Y(){var t;switch(M=L[0]-B[0],O=L[1]-B[1],b){case ni:case ei:_&&(M=Math.max(T-n,Math.min(C-c,M)),i=n+M,h=c+M),x&&(O=Math.max(A-o,Math.min(S-f,O)),s=o+O,d=f+O);break;case ri:_<0?(M=Math.max(T-n,Math.min(C-n,M)),i=n+M,h=c):_>0&&(M=Math.max(T-c,Math.min(C-c,M)),i=n,h=c+M),x<0?(O=Math.max(A-o,Math.min(S-o,O)),s=o+O,d=f):x>0&&(O=Math.max(A-f,Math.min(S-f,O)),s=o,d=f+O);break;case ii:_&&(i=Math.max(T,Math.min(C,n-M*_)),h=Math.max(T,Math.min(C,c+M*_))),x&&(s=Math.max(A,Math.min(S,o-O*x)),d=Math.max(A,Math.min(S,f+O*x)))}h0&&(n=i-M),x<0?f=d-O:x>0&&(o=s-O),b=ni,I.attr("cursor",hi.selection),Y());break;default:return}ti()}function $(){switch(ce.keyCode){case 16:D&&(y=g=D=!1,Y());break;case 18:b===ii&&(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=ri,Y());break;case 32:b===ni&&(ce.altKey?(_&&(c=h-M*_,n=i+M*_),x&&(f=d-O*x,o=s+O*x),b=ii):(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=ri),I.attr("cursor",hi[m]),Y());break;default:return}ti()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function y(){var e=this.__brush||{selection:null};return e.extent=oi(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Sn(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),u.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,i.extent),o=l(e,r).beforestart();or(e),i.selection=null===a?null:a,u.call(e),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){pe(new Qr(c,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Jr(oi(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Jr(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Jr(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Ci=Math.cos,Si=Math.sin,Mi=Math.PI,Oi=Mi/2,Di=2*Mi,Ni=Math.max;function Bi(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}var Li=function(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,c,u,l,h=i.length,f=[],d=w(h),p=[],y=[],g=y.groups=new Array(h),v=new Array(h*h);for(a=0,u=-1;++u1e-6)if(Math.abs(l*s-c*u)>1e-6&&i){var f=n-a,d=r-o,p=s*s+c*c,y=f*f+d*d,g=Math.sqrt(p),v=Math.sqrt(h),m=i*Math.tan((Ii-Math.acos((p+h-y)/(2*g*v)))/2),b=m/v,_=m/g;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>u*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%ji+ji),h>Ri?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=Ii)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Ui=zi;function $i(t){return t.source}function Wi(t){return t.target}function Hi(t){return t.radius}function Vi(t){return t.startAngle}function Gi(t){return t.endAngle}var qi=function(){var t=$i,e=Wi,n=Hi,r=Vi,i=Gi,a=null;function o(){var o,s=Pi.call(arguments),c=t.apply(this,s),u=e.apply(this,s),l=+n.apply(this,(s[0]=c,s)),h=r.apply(this,s)-Oi,f=i.apply(this,s)-Oi,d=l*Ci(h),p=l*Si(h),y=+n.apply(this,(s[0]=u,s)),g=r.apply(this,s)-Oi,v=i.apply(this,s)-Oi;if(a||(a=o=Ui()),a.moveTo(d,p),a.arc(0,0,l,h,f),h===g&&f===v||(a.quadraticCurveTo(0,0,y*Ci(g),y*Si(g)),a.arc(0,0,y,g,v)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:Fi(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Fi(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Fi(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o};function Xi(){}function Zi(t,e){var n=new Xi;if(t instanceof Xi)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,u,l,h=-1,f=n.length,d=r[i++],p=Ji(),y=o();++hr.length)return n;var o,s=i[a-1];return null!=e&&a>=r.length?o=n.entries():(o=[],n.each((function(e,n){o.push({key:n,values:t(e,a)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}(a(t,0,ea,na),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function Ki(){return{}}function ta(t,e,n){t[e]=n}function ea(){return Ji()}function na(t,e,n){t.set(e,n)}function ra(){}var ia=Ji.prototype;function aa(t,e){var n=new ra;if(t instanceof ra)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function va(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function ma(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ba(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _a(t){if(t instanceof ka)return new ka(t.h,t.c,t.l,t.opacity);if(t instanceof ya||(t=fa(t)),0===t.a&&0===t.b)return new ka(NaN,0r!=d>r&&n<(f-u)*(r-l)/(d-l)+u&&(i=-i)}return i}function Ia(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}var ja=function(){},Ra=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],Ya=function(){var t=1,e=1,n=M,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Ba);else{var r=g(t),i=r[0],o=r[1];e=S(i,o,e),e=w(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,u,l,h,f=new Array,d=new Array;a=s=-1,u=n[0]>=r,Ra[u<<1].forEach(p);for(;++a=r,Ra[c|u<<1].forEach(p);Ra[u<<0].forEach(p);for(;++s=r,l=n[s*t]>=r,Ra[u<<1|l<<2].forEach(p);++a=r,h=l,l=n[s*t+a+1]>=r,Ra[c|u<<1|l<<2|h<<3].forEach(p);Ra[u|l<<3].forEach(p)}a=-1,l=n[s*t]>=r,Ra[l<<2].forEach(p);for(;++a=r,Ra[l<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],u=o(r),l=o(c);(e=d[u])?(n=f[l])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(c),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=f[l])?(n=d[u])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=u]=e):f[u]=d[l]={start:u,end:l,ring:[r,c]}}Ra[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n0&&o0&&s0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?La(Na.call(t)):La(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:ja,i):r===s},i};function za(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function Ua(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function $a(t){return t[0]}function Wa(t){return t[1]}function Ha(){return 1}var Va=function(){var t=$a,e=Wa,n=Ha,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,u=i+2*s>>o,l=La(20);function h(r){var i=new Float32Array(c*u),h=new Float32Array(c*u);r.forEach((function(r,a,l){var h=+t(r,a,l)+s>>o,f=+e(r,a,l)+s>>o,d=+n(r,a,l);h>=0&&h=0&&f>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),za({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),za({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),Ua({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o);var d=l(i);if(!Array.isArray(d)){var p=L(i);d=S(0,p,d),(d=w(0,Math.floor(p/d)*d,d)).shift()}return Ya().thresholds(d).size([c,u])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(y)}function y(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function g(){return c=r+2*(s=3*a)>>o,u=i+2*s>>o,h}return h.x=function(e){return arguments.length?(t="function"==typeof e?e:La(+e),h):t},h.y=function(t){return arguments.length?(e="function"==typeof t?t:La(+t),h):e},h.weight=function(t){return arguments.length?(n="function"==typeof t?t:La(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,g()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},h.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?La(Na.call(t)):La(t),h):l},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),g()},h},Ga=function(t){return function(){return t}};function qa(t,e,n,r,i,a,o,s,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=c,this._=u}function Xa(){return!ce.ctrlKey&&!ce.button}function Za(){return this.parentNode}function Ja(t){return null==t?{x:ce.x,y:ce.y}:t}function Qa(){return navigator.maxTouchPoints||"ontouchstart"in this}qa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ka=function(){var t,e,n,r,i=Xa,a=Za,o=Ja,s=Qa,c={},u=lt("start","drag","end"),l=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",g).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=b("mouse",a.apply(this,arguments),Nn,this,arguments);o&&(we(ce.view).on("mousemove.drag",p,!0).on("mouseup.drag",y,!0),Te(ce.view),ke(),n=!1,t=ce.clientX,e=ce.clientY,o("start"))}}function p(){if(Ee(),!n){var r=ce.clientX-t,i=ce.clientY-e;n=r*r+i*i>h}c.mouse("drag")}function y(){we(ce.view).on("mousemove.drag mouseup.drag",null),Ae(ce.view,n),Ee(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=ce.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t9999?"+"+io(e,6):io(e,4))+"-"+io(t.getUTCMonth()+1,2)+"-"+io(t.getUTCDate(),2)+(a?"T"+io(n,2)+":"+io(r,2)+":"+io(i,2)+"."+io(a,3)+"Z":i?"T"+io(n,2)+":"+io(r,2)+":"+io(i,2)+"Z":r||n?"T"+io(n,2)+":"+io(r,2)+"Z":"")}var oo=function(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,c=a<=0,u=!1;function l(){if(c)return eo;if(u)return u=!1,to;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++=a?c=!0:10===(r=t.charCodeAt(o++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(y+v)/2))?y=a:v=a,(l=n>=(o=(g+m)/2))?g=o:m=o,i=d,!(d=d[h=l<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===s&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(y+v)/2))?y=a:v=a,(l=n>=(o=(g+m)/2))?g=o:m=o}while((h=l<<1|u)==(f=(c>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}var xs=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function ws(t){return t[0]}function ks(t){return t[1]}function Es(t,e,n){var r=new Ts(null==e?ws:e,null==n?ks:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ts(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function As(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Cs=Es.prototype=Ts.prototype;function Ss(t){return t.x+t.vx}function Ms(t){return t.y+t.vy}Cs.copy=function(){var t,e,n=new Ts(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=As(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=As(e));return n},Cs.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return _s(this.cover(e,n),e,n,t)},Cs.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),c=1/0,u=1/0,l=-1/0,h=-1/0;for(n=0;nl&&(l=r),ih&&(h=i));if(c>l||u>h)return this;for(this.cover(c,u).cover(l,h),n=0;nt||t>=i||r>e||e>=a;)switch(s=(ef||(a=c.y0)>d||(o=c.x1)=v)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var m=t-+this._x.call(null,y.data),b=e-+this._y.call(null,y.data),_=m*m+b*b;if(_=(s=(p+g)/2))?p=s:g=s,(l=o>=(c=(y+v)/2))?y=c:v=c,e=d,!(d=d[h=l<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Cs.removeAll=function(t){for(var e=0,n=t.length;ec+d||iu+d||as.index){var p=c-o.x-o.vx,y=u-o.y-o.vy,g=p*p+y*y;gt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}},js=function(){var t,e,n,r,i=ms(-30),a=1,o=1/0,s=.81;function c(r){var i,a=t.length,o=Es(t,Ls,Ps).visitAfter(l);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===l&&(d+=(l=bs())*l),0===h&&(d+=(h=bs())*h),d1?r[0]+r.slice(2):r,+t.slice(n+1)]},$s=function(t){return(t=Us(Math.abs(t)))?t[1]:NaN},Ws=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hs(t){if(!(e=Ws.exec(t)))throw new Error("invalid format: "+t);var e;return new Vs({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Vs(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Hs.prototype=Vs.prototype,Vs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Gs,qs,Xs,Zs,Js=function(t,e){var n=Us(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Qs={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Js(100*t,e)},r:Js,s:function(t,e){var n=Us(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Gs=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Us(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ks=function(t){return t},tc=Array.prototype.map,ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],nc=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Ks:(e=tc.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Ks:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(tc.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Hs(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,y=t.comma,g=t.precision,v=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Qs[m]||(void 0===g&&(g=12),v=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===f?a:/[%p]/.test(m)?c:"",x=Qs[m],w=/[defgprs%]/.test(m);function k(t){var i,a,c,f=b,k=_;if("c"===m)k=x(t)+k,t="";else{var E=(t=+t)<0;if(t=isNaN(t)?l:x(Math.abs(t),g),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&(E=!1),f=(E?"("===h?h:u:"-"===h||"("===h?"":h)+f,k=("s"===m?ec[8+Gs/3]:"")+k+(E&&"("===h?")":""),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}y&&!d&&(t=r(t,1/0));var T=f.length+t.length+k.length,A=T>1)+f+t+k+A.slice(T);break;default:t=A+f+t+k}return s(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Hs(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($s(e)/3))),i=Math.pow(10,-r),a=ec[8+r/3];return function(t){return n(i*t)+a}}}};function rc(t){return qs=nc(t),Xs=qs.format,Zs=qs.formatPrefix,qs}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var ic=function(t){return Math.max(0,-$s(Math.abs(t)))},ac=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($s(e)/3)))-$s(Math.abs(t)))},oc=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,$s(e)-$s(t))+1},sc=function(){return new cc};function cc(){this.reset()}cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){lc(uc,t,this.t),lc(this,uc.s,this.s),this.s?this.t+=uc.t:this.s=uc.t},valueOf:function(){return this.s}};var uc=new cc;function lc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var hc=Math.PI,fc=hc/2,dc=hc/4,pc=2*hc,yc=180/hc,gc=hc/180,vc=Math.abs,mc=Math.atan,bc=Math.atan2,_c=Math.cos,xc=Math.ceil,wc=Math.exp,kc=(Math.floor,Math.log),Ec=Math.pow,Tc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Cc=Math.sqrt,Sc=Math.tan;function Mc(t){return t>1?0:t<-1?hc:Math.acos(t)}function Oc(t){return t>1?fc:t<-1?-fc:Math.asin(t)}function Dc(t){return(t=Tc(t/2))*t}function Nc(){}function Bc(t,e){t&&Pc.hasOwnProperty(t.type)&&Pc[t.type](t,e)}var Lc={Feature:function(t,e){Bc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=_c(e=(e*=gc)/2+dc),o=Tc(e),s=Uc*o,c=zc*a+s*_c(i),u=s*r*Tc(i);Wc.add(bc(u,c)),Yc=t,zc=a,Uc=o}var Jc=function(t){return Hc.reset(),$c(t,Vc),2*Hc};function Qc(t){return[bc(t[1],t[0]),Oc(t[2])]}function Kc(t){var e=t[0],n=t[1],r=_c(n);return[r*_c(e),r*Tc(e),Tc(n)]}function tu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eu(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function nu(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ru(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function iu(t){var e=Cc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var au,ou,su,cu,uu,lu,hu,fu,du,pu,yu=sc(),gu={point:vu,lineStart:bu,lineEnd:_u,polygonStart:function(){gu.point=xu,gu.lineStart=wu,gu.lineEnd=ku,yu.reset(),Vc.polygonStart()},polygonEnd:function(){Vc.polygonEnd(),gu.point=vu,gu.lineStart=bu,gu.lineEnd=_u,Wc<0?(au=-(su=180),ou=-(cu=90)):yu>1e-6?cu=90:yu<-1e-6&&(ou=-90),pu[0]=au,pu[1]=su},sphere:function(){au=-(su=180),ou=-(cu=90)}};function vu(t,e){du.push(pu=[au=t,su=t]),ecu&&(cu=e)}function mu(t,e){var n=Kc([t*gc,e*gc]);if(fu){var r=eu(fu,n),i=eu([r[1],-r[0],0],r);iu(i),i=Qc(i);var a,o=t-uu,s=o>0?1:-1,c=i[0]*yc*s,u=vc(o)>180;u^(s*uucu&&(cu=a):u^(s*uu<(c=(c+360)%360-180)&&ccu&&(cu=e)),u?tEu(au,su)&&(su=t):Eu(t,su)>Eu(au,su)&&(au=t):su>=au?(tsu&&(su=t)):t>uu?Eu(au,t)>Eu(au,su)&&(su=t):Eu(t,su)>Eu(au,su)&&(au=t)}else du.push(pu=[au=t,su=t]);ecu&&(cu=e),fu=n,uu=t}function bu(){gu.point=mu}function _u(){pu[0]=au,pu[1]=su,gu.point=vu,fu=null}function xu(t,e){if(fu){var n=t-uu;yu.add(vc(n)>180?n+(n>0?360:-360):n)}else lu=t,hu=e;Vc.point(t,e),mu(t,e)}function wu(){Vc.lineStart()}function ku(){xu(lu,hu),Vc.lineEnd(),vc(yu)>1e-6&&(au=-(su=180)),pu[0]=au,pu[1]=su,fu=null}function Eu(t,e){return(e-=t)<0?e+360:e}function Tu(t,e){return t[0]-e[0]}function Au(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eEu(r[0],r[1])&&(r[1]=i[1]),Eu(i[0],r[1])>Eu(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=Eu(r[1],i[0]))>o&&(o=s,au=i[0],su=r[1])}return du=pu=null,au===1/0||ou===1/0?[[NaN,NaN],[NaN,NaN]]:[[au,ou],[su,cu]]},Wu={sphere:Nc,point:Hu,lineStart:Gu,lineEnd:Zu,polygonStart:function(){Wu.lineStart=Ju,Wu.lineEnd=Qu},polygonEnd:function(){Wu.lineStart=Gu,Wu.lineEnd=Zu}};function Hu(t,e){t*=gc;var n=_c(e*=gc);Vu(n*_c(t),n*Tc(t),Tc(e))}function Vu(t,e,n){++Cu,Mu+=(t-Mu)/Cu,Ou+=(e-Ou)/Cu,Du+=(n-Du)/Cu}function Gu(){Wu.point=qu}function qu(t,e){t*=gc;var n=_c(e*=gc);Yu=n*_c(t),zu=n*Tc(t),Uu=Tc(e),Wu.point=Xu,Vu(Yu,zu,Uu)}function Xu(t,e){t*=gc;var n=_c(e*=gc),r=n*_c(t),i=n*Tc(t),a=Tc(e),o=bc(Cc((o=zu*a-Uu*i)*o+(o=Uu*r-Yu*a)*o+(o=Yu*i-zu*r)*o),Yu*r+zu*i+Uu*a);Su+=o,Nu+=o*(Yu+(Yu=r)),Bu+=o*(zu+(zu=i)),Lu+=o*(Uu+(Uu=a)),Vu(Yu,zu,Uu)}function Zu(){Wu.point=Hu}function Ju(){Wu.point=Ku}function Qu(){tl(ju,Ru),Wu.point=Hu}function Ku(t,e){ju=t,Ru=e,t*=gc,e*=gc,Wu.point=tl;var n=_c(e);Yu=n*_c(t),zu=n*Tc(t),Uu=Tc(e),Vu(Yu,zu,Uu)}function tl(t,e){t*=gc;var n=_c(e*=gc),r=n*_c(t),i=n*Tc(t),a=Tc(e),o=zu*a-Uu*i,s=Uu*r-Yu*a,c=Yu*i-zu*r,u=Cc(o*o+s*s+c*c),l=Oc(u),h=u&&-l/u;Pu+=h*o,Fu+=h*s,Iu+=h*c,Su+=l,Nu+=l*(Yu+(Yu=r)),Bu+=l*(zu+(zu=i)),Lu+=l*(Uu+(Uu=a)),Vu(Yu,zu,Uu)}var el=function(t){Cu=Su=Mu=Ou=Du=Nu=Bu=Lu=Pu=Fu=Iu=0,$c(t,Wu);var e=Pu,n=Fu,r=Iu,i=e*e+n*n+r*r;return i<1e-12&&(e=Nu,n=Bu,r=Lu,Su<1e-6&&(e=Mu,n=Ou,r=Du),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[bc(n,e)*yc,Oc(r/Cc(i))*yc]},nl=function(t){return function(){return t}},rl=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function il(t,e){return[vc(t)>hc?t+Math.round(-t/pc)*pc:t,e]}function al(t,e,n){return(t%=pc)?e||n?rl(sl(t),cl(e,n)):sl(t):e||n?cl(e,n):il}function ol(t){return function(e,n){return[(e+=t)>hc?e-pc:e<-hc?e+pc:e,n]}}function sl(t){var e=ol(t);return e.invert=ol(-t),e}function cl(t,e){var n=_c(t),r=Tc(t),i=_c(e),a=Tc(e);function o(t,e){var o=_c(e),s=_c(t)*o,c=Tc(t)*o,u=Tc(e),l=u*n+s*r;return[bc(c*i-l*a,s*n-u*r),Oc(l*i+c*a)]}return o.invert=function(t,e){var o=_c(e),s=_c(t)*o,c=Tc(t)*o,u=Tc(e),l=u*i-c*a;return[bc(c*i+u*a,s*n+l*r),Oc(l*n-s*r)]},o}il.invert=il;var ul=function(t){function e(e){return(e=t(e[0]*gc,e[1]*gc))[0]*=yc,e[1]*=yc,e}return t=al(t[0]*gc,t[1]*gc,t.length>2?t[2]*gc:0),e.invert=function(e){return(e=t.invert(e[0]*gc,e[1]*gc))[0]*=yc,e[1]*=yc,e},e};function ll(t,e,n,r,i,a){if(n){var o=_c(e),s=Tc(e),c=r*n;null==i?(i=e+r*pc,a=e-c/2):(i=hl(o,i),a=hl(o,a),(r>0?ia)&&(i+=r*pc));for(var u,l=i;r>0?l>a:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},pl=function(t,e){return vc(t[0]-e[0])<1e-6&&vc(t[1]-e[1])<1e-6};function yl(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var gl=function(t,e,n,r,i){var a,o,s=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(pl(r,o)){for(i.lineStart(),a=0;a=0;--a)i.point((l=u[a])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}};function vl(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,T=E*k,A=T>hc,C=y*x;if(ml.add(bc(C*E*Tc(T),g*w+C*_c(T))),o+=A?k+E*pc:k,A^d>=n^b>=n){var S=eu(Kc(f),Kc(m));iu(S);var M=eu(a,S);iu(M);var O=(A^k>=0?-1:1)*Oc(M[2]);(r>O||r===O&&(S[0]||S[1]))&&(s+=A^k>=0?1:-1)}}return(o<-1e-6||o<1e-6&&ml<-1e-6)^1&s},xl=function(t,e,n,r){return function(i){var a,o,s,c=e(i),u=dl(),l=e(u),h=!1,f={point:d,lineStart:y,lineEnd:g,polygonStart:function(){f.point=v,f.lineStart=m,f.lineEnd=b,o=[],a=[]},polygonEnd:function(){f.point=d,f.lineStart=y,f.lineEnd=g,o=I(o);var t=_l(a,r);o.length?(h||(i.polygonStart(),h=!0),gl(o,kl,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){c.point(t,e)}function y(){f.point=p,c.lineStart()}function g(){f.point=d,c.lineEnd()}function v(t,e){s.push([t,e]),l.point(t,e)}function m(){l.lineStart(),s=[]}function b(){v(s[0][0],s[0][1]),l.lineEnd();var t,e,n,r,c=l.clean(),f=u.result(),d=f.length;if(s.pop(),a.push(s),s=null,d)if(1&c){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t1&&2&c&&f.push(f.pop().concat(f.shift())),o.push(f.filter(wl))}return f}};function wl(t){return t.length>1}function kl(t,e){return((t=t.x)[0]<0?t[1]-fc-1e-6:fc-t[1])-((e=e.x)[0]<0?e[1]-fc-1e-6:fc-e[1])}var El=xl((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?hc:-hc,c=vc(a-n);vc(c-hc)<1e-6?(t.point(n,r=(r+o)/2>0?fc:-fc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=hc&&(vc(n-i)<1e-6&&(n-=1e-6*i),vc(a-s)<1e-6&&(a-=1e-6*s),r=function(t,e,n,r){var i,a,o=Tc(t-n);return vc(o)>1e-6?mc((Tc(e)*(a=_c(r))*Tc(n)-Tc(r)*(i=_c(e))*Tc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*fc,r.point(-hc,i),r.point(0,i),r.point(hc,i),r.point(hc,0),r.point(hc,-i),r.point(0,-i),r.point(-hc,-i),r.point(-hc,0),r.point(-hc,i);else if(vc(t[0]-e[0])>1e-6){var a=t[0]0,i=vc(e)>1e-6;function a(t,n){return _c(t)*_c(n)>e}function o(t,n,r){var i=[1,0,0],a=eu(Kc(t),Kc(n)),o=tu(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var u=e*o/c,l=-e*s/c,h=eu(i,a),f=ru(i,u);nu(f,ru(a,l));var d=h,p=tu(f,d),y=tu(d,d),g=p*p-y*(tu(f,f)-1);if(!(g<0)){var v=Cc(g),m=ru(d,(-p-v)/y);if(nu(m,f),m=Qc(m),!r)return m;var b,_=t[0],x=n[0],w=t[1],k=n[1];x<_&&(b=_,_=x,x=b);var E=x-_,T=vc(E-hc)<1e-6;if(!T&&k0^m[1]<(vc(m[0]-_)<1e-6?w:k):w<=m[1]&&m[1]<=k:E>hc^(_<=m[0]&&m[0]<=x)){var A=ru(d,(-p+v)/y);return nu(A,f),[m,Qc(A)]}}}function s(e,n){var i=r?t:hc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return xl(a,(function(t){var e,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(h,f){var d,p=[h,f],y=a(h,f),g=r?y?0:s(h,f):y?s(h+(h<0?hc:-hc),f):0;if(!e&&(u=c=y)&&t.lineStart(),y!==c&&(!(d=o(e,p))||pl(e,d)||pl(p,d))&&(p[0]+=1e-6,p[1]+=1e-6,y=a(p[0],p[1])),y!==c)l=0,y?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^y){var v;g&n||!(v=o(p,e,!0))||(l=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!y||e&&pl(e,p)||t.point(p[0],p[1]),e=p,c=y,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(u&&c)<<1}}}),(function(e,r,i,a){ll(a,t,n,i,e,r)}),r?[0,-t]:[-hc,t-hc])};function Al(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,u){var l=0,h=0;if(null==i||(l=o(i,s))!==(h=o(a,s))||c(i,a)<0^s>0)do{u.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==h);else u.point(a[0],a[1])}function o(r,i){return vc(r[0]-t)<1e-6?i>0?0:3:vc(r[0]-n)<1e-6?i>0?2:1:vc(r[1]-e)<1e-6?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,u,l,h,f,d,p,y,g,v,m,b=o,_=dl(),x={point:w,lineStart:function(){x.point=k,u&&u.push(l=[]);v=!0,g=!1,p=y=NaN},lineEnd:function(){c&&(k(h,f),d&&g&&_.rejoin(),c.push(_.result()));x.point=w,g&&b.lineEnd()},polygonStart:function(){b=_,c=[],u=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;nr&&(f-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(f-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=m&&e,i=(c=I(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&gl(c,s,e,a,o),o.polygonEnd());b=o,c=u=l=null}};function w(t,e){i(t,e)&&b.point(t,e)}function k(a,o){var s=i(a,o);if(u&&l.push([a,o]),v)h=a,f=o,d=s,v=!1,s&&(b.lineStart(),b.point(a,o));else if(s&&g)b.point(a,o);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),y=Math.max(-1e9,Math.min(1e9,y))],_=[a=Math.max(-1e9,Math.min(1e9,a)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],u=0,l=1,h=e[0]-s,f=e[1]-c;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>u&&(u=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=a-c,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>u&&(u=o)}else if(f>0){if(o0&&(t[0]=s+u*h,t[1]=c+u*f),l<1&&(e[0]=s+l*h,e[1]=c+l*f),!0}}}}}(c,_,t,e,n,r)?s&&(b.lineStart(),b.point(a,o),m=!1):(g||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),s||b.lineEnd(),m=!1)}p=a,y=o,g=s}return x}}var Cl,Sl,Ml,Ol=function(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Al(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}},Dl=sc(),Nl={sphere:Nc,point:Nc,lineStart:function(){Nl.point=Ll,Nl.lineEnd=Bl},lineEnd:Nc,polygonStart:Nc,polygonEnd:Nc};function Bl(){Nl.point=Nl.lineEnd=Nc}function Ll(t,e){Cl=t*=gc,Sl=Tc(e*=gc),Ml=_c(e),Nl.point=Pl}function Pl(t,e){t*=gc;var n=Tc(e*=gc),r=_c(e),i=vc(t-Cl),a=_c(i),o=r*Tc(i),s=Ml*n-Sl*r*a,c=Sl*n+Ml*r*a;Dl.add(bc(Cc(o*o+s*s),c)),Cl=t,Sl=n,Ml=r}var Fl=function(t){return Dl.reset(),$c(t,Nl),+Dl},Il=[null,null],jl={type:"LineString",coordinates:Il},Rl=function(t,e){return Il[0]=t,Il[1]=e,Fl(jl)},Yl={Feature:function(t,e){return Ul(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=Rl(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<1e-12*i)return!0;n=r}return!1}function Hl(t,e){return!!_l(t.map(Vl),Gl(e))}function Vl(t){return(t=t.map(Gl)).pop(),t}function Gl(t){return[t[0]*gc,t[1]*gc]}var ql=function(t,e){return(t&&Yl.hasOwnProperty(t.type)?Yl[t.type]:Ul)(t,e)};function Xl(t,e,n){var r=w(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Zl(t,e,n){var r=w(t,e-1e-6,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Jl(){var t,e,n,r,i,a,o,s,c,u,l,h,f=10,d=f,p=90,y=360,g=2.5;function v(){return{type:"MultiLineString",coordinates:m()}}function m(){return w(xc(r/p)*p,n,p).map(l).concat(w(xc(s/y)*y,o,y).map(h)).concat(w(xc(e/f)*f,t,f).filter((function(t){return vc(t%p)>1e-6})).map(c)).concat(w(xc(a/d)*d,i,d).filter((function(t){return vc(t%y)>1e-6})).map(u))}return v.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(h(o).slice(1),l(n).reverse().slice(1),h(s).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),v.precision(g)):[[r,s],[n,o]]},v.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),v.precision(g)):[[e,a],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],y=+t[1],v):[p,y]},v.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],v):[f,d]},v.precision=function(f){return arguments.length?(g=+f,c=Xl(a,i,90),u=Zl(e,t,g),l=Xl(s,o,90),h=Zl(r,n,g),v):g},v.extentMajor([[-180,1e-6-90],[180,90-1e-6]]).extentMinor([[-180,-80-1e-6],[180,80+1e-6]])}function Ql(){return Jl()()}var Kl,th,eh,nh,rh=function(t,e){var n=t[0]*gc,r=t[1]*gc,i=e[0]*gc,a=e[1]*gc,o=_c(r),s=Tc(r),c=_c(a),u=Tc(a),l=o*_c(n),h=o*Tc(n),f=c*_c(i),d=c*Tc(i),p=2*Oc(Cc(Dc(a-r)+o*c*Dc(i-n))),y=Tc(p),g=p?function(t){var e=Tc(t*=p)/y,n=Tc(p-t)/y,r=n*l+e*f,i=n*h+e*d,a=n*s+e*u;return[bc(i,r)*yc,bc(a,Cc(r*r+i*i))*yc]}:function(){return[n*yc,r*yc]};return g.distance=p,g},ih=function(t){return t},ah=sc(),oh=sc(),sh={point:Nc,lineStart:Nc,lineEnd:Nc,polygonStart:function(){sh.lineStart=ch,sh.lineEnd=hh},polygonEnd:function(){sh.lineStart=sh.lineEnd=sh.point=Nc,ah.add(vc(oh)),oh.reset()},result:function(){var t=ah/2;return ah.reset(),t}};function ch(){sh.point=uh}function uh(t,e){sh.point=lh,Kl=eh=t,th=nh=e}function lh(t,e){oh.add(nh*t-eh*e),eh=t,nh=e}function hh(){lh(Kl,th)}var fh=sh,dh=1/0,ph=dh,yh=-dh,gh=yh;var vh,mh,bh,_h,xh={point:function(t,e){tyh&&(yh=t);egh&&(gh=e)},lineStart:Nc,lineEnd:Nc,polygonStart:Nc,polygonEnd:Nc,result:function(){var t=[[dh,ph],[yh,gh]];return yh=gh=-(ph=dh=1/0),t}},wh=0,kh=0,Eh=0,Th=0,Ah=0,Ch=0,Sh=0,Mh=0,Oh=0,Dh={point:Nh,lineStart:Bh,lineEnd:Fh,polygonStart:function(){Dh.lineStart=Ih,Dh.lineEnd=jh},polygonEnd:function(){Dh.point=Nh,Dh.lineStart=Bh,Dh.lineEnd=Fh},result:function(){var t=Oh?[Sh/Oh,Mh/Oh]:Ch?[Th/Ch,Ah/Ch]:Eh?[wh/Eh,kh/Eh]:[NaN,NaN];return wh=kh=Eh=Th=Ah=Ch=Sh=Mh=Oh=0,t}};function Nh(t,e){wh+=t,kh+=e,++Eh}function Bh(){Dh.point=Lh}function Lh(t,e){Dh.point=Ph,Nh(bh=t,_h=e)}function Ph(t,e){var n=t-bh,r=e-_h,i=Cc(n*n+r*r);Th+=i*(bh+t)/2,Ah+=i*(_h+e)/2,Ch+=i,Nh(bh=t,_h=e)}function Fh(){Dh.point=Nh}function Ih(){Dh.point=Rh}function jh(){Yh(vh,mh)}function Rh(t,e){Dh.point=Yh,Nh(vh=bh=t,mh=_h=e)}function Yh(t,e){var n=t-bh,r=e-_h,i=Cc(n*n+r*r);Th+=i*(bh+t)/2,Ah+=i*(_h+e)/2,Ch+=i,Sh+=(i=_h*t-bh*e)*(bh+t),Mh+=i*(_h+e),Oh+=3*i,Nh(bh=t,_h=e)}var zh=Dh;function Uh(t){this._context=t}Uh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,pc)}},result:Nc};var $h,Wh,Hh,Vh,Gh,qh=sc(),Xh={point:Nc,lineStart:function(){Xh.point=Zh},lineEnd:function(){$h&&Jh(Wh,Hh),Xh.point=Nc},polygonStart:function(){$h=!0},polygonEnd:function(){$h=null},result:function(){var t=+qh;return qh.reset(),t}};function Zh(t,e){Xh.point=Jh,Wh=Vh=t,Hh=Gh=e}function Jh(t,e){Vh-=t,Gh-=e,qh.add(Cc(Vh*Vh+Gh*Gh)),Vh=t,Gh=e}var Qh=Xh;function Kh(){this._string=[]}function tf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Kh.prototype={_radius:4.5,_circle:tf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=tf(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var ef=function(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),$c(t,n(r))),r.result()}return a.area=function(t){return $c(t,n(fh)),fh.result()},a.measure=function(t){return $c(t,n(Qh)),Qh.result()},a.bounds=function(t){return $c(t,n(xh)),xh.result()},a.centroid=function(t){return $c(t,n(zh)),zh.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,ih):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Kh):new Uh(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)},nf=function(t){return{stream:rf(t)}};function rf(t){return function(e){var n=new af;for(var r in t)n[r]=t[r];return n.stream=e,n}}function af(){}function of(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),$c(n,t.stream(xh)),e(xh.result()),null!=r&&t.clipExtent(r),t}function sf(t,e,n){return of(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function cf(t,e,n){return sf(t,[[0,0],e],n)}function uf(t,e,n){return of(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function lf(t,e,n){return of(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}af.prototype={constructor:af,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var hf=_c(30*gc),ff=function(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,u,l,h,f,d,p,y,g){var v=u-r,m=l-i,b=v*v+m*m;if(b>4*e&&y--){var _=o+f,x=s+d,w=c+p,k=Cc(_*_+x*x+w*w),E=Oc(w/=k),T=vc(vc(w)-1)<1e-6||vc(a-h)<1e-6?(a+h)/2:bc(x,_),A=t(T,E),C=A[0],S=A[1],M=C-r,O=S-i,D=m*M-v*O;(D*D/b>e||vc((v*M+m*O)/b-.5)>.3||o*f+s*d+c*p2?t[2]%360*gc:0,C()):[g*yc,v*yc,m*yc]},T.angle=function(t){return arguments.length?(b=t%360*gc,C()):b*yc},T.precision=function(t){return arguments.length?(o=ff(s,E=t*t),S()):Cc(E)},T.fitExtent=function(t,e){return sf(T,t,e)},T.fitSize=function(t,e){return cf(T,t,e)},T.fitWidth=function(t,e){return uf(T,t,e)},T.fitHeight=function(t,e){return lf(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&A,C()}}function mf(t){var e=0,n=hc/3,r=vf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*gc,n=t[1]*gc):[e*yc,n*yc]},i}function bf(t,e){var n=Tc(t),r=(n+Tc(e))/2;if(vc(r)<1e-6)return function(t){var e=_c(t);function n(t,n){return[t*e,Tc(n)/e]}return n.invert=function(t,n){return[t/e,Oc(n*e)]},n}(t);var i=1+n*(2*r-n),a=Cc(i)/r;function o(t,e){var n=Cc(i-2*r*Tc(e))/r;return[n*Tc(t*=r),a-n*_c(t)]}return o.invert=function(t,e){var n=a-e;return[bc(t,vc(n))/r*Ac(n),Oc((i-(t*t+n*n)*r*r)/(2*r))]},o}var _f=function(){return mf(bf).scale(155.424).center([0,33.6442])},xf=function(){return _f().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var wf=function(){var t,e,n,r,i,a,o=xf(),s=_f().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=_f().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function l(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,l}return l.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<1e-6-fc&&(e=1e-6-fc):e>fc-1e-6&&(e=fc-1e-6);var n=i/Ec(Nf(e),r);return[n*Tc(r*t),i-n*_c(r*t)]}return a.invert=function(t,e){var n=i-e,a=Ac(r)*Cc(t*t+n*n);return[bc(t,vc(n))/r*Ac(n),2*mc(Ec(i/a,1/r))-fc]},a}var Lf=function(){return mf(Bf).scale(109.5).parallels([30,30])};function Pf(t,e){return[t,e]}Pf.invert=Pf;var Ff=function(){return gf(Pf).scale(152.63)};function If(t,e){var n=_c(t),r=t===e?Tc(t):(n-_c(e))/(e-t),i=n/r+t;if(vc(r)<1e-6)return Pf;function a(t,e){var n=i-e,a=r*t;return[n*Tc(a),i-n*_c(a)]}return a.invert=function(t,e){var n=i-e;return[bc(t,vc(n))/r*Ac(n),i-Ac(r)*Cc(t*t+n*n)]},a}var jf=function(){return mf(If).scale(131.154).center([0,13.9389])},Rf=1.340264,Yf=-.081106,zf=893e-6,Uf=.003796,$f=Cc(3)/2;function Wf(t,e){var n=Oc($f*Tc(e)),r=n*n,i=r*r*r;return[t*_c(n)/($f*(Rf+3*Yf*r+i*(7*zf+9*Uf*r))),n*(Rf+Yf*r+i*(zf+Uf*r))]}Wf.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(Rf+Yf*i+a*(zf+Uf*i))-e)/(Rf+3*Yf*i+a*(7*zf+9*Uf*i)))*r)*i*i,!(vc(n)<1e-12));++o);return[$f*t*(Rf+3*Yf*i+a*(7*zf+9*Uf*i))/_c(r),Oc(Tc(r)/$f)]};var Hf=function(){return gf(Wf).scale(177.158)};function Vf(t,e){var n=_c(e),r=_c(t)*n;return[n*Tc(t)/r,Tc(e)/r]}Vf.invert=Ef(mc);var Gf=function(){return gf(Vf).scale(144.049).clipAngle(60)};function qf(t,e,n,r){return 1===t&&1===e&&0===n&&0===r?ih:rf({point:function(i,a){this.stream.point(i*t+n,a*e+r)}})}var Xf=function(){var t,e,n,r,i,a,o=1,s=0,c=0,u=1,l=1,h=ih,f=null,d=ih;function p(){return r=i=null,a}return a={stream:function(t){return r&&i===t?r:r=h(d(i=t))},postclip:function(r){return arguments.length?(d=r,f=t=e=n=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(f=t=e=n=null,ih):Al(f=+r[0][0],t=+r[0][1],e=+r[1][0],n=+r[1][1]),p()):null==f?null:[[f,t],[e,n]]},scale:function(t){return arguments.length?(h=qf((o=+t)*u,o*l,s,c),p()):o},translate:function(t){return arguments.length?(h=qf(o*u,o*l,s=+t[0],c=+t[1]),p()):[s,c]},reflectX:function(t){return arguments.length?(h=qf(o*(u=t?-1:1),o*l,s,c),p()):u<0},reflectY:function(t){return arguments.length?(h=qf(o*u,o*(l=t?-1:1),s,c),p()):l<0},fitExtent:function(t,e){return sf(a,t,e)},fitSize:function(t,e){return cf(a,t,e)},fitWidth:function(t,e){return uf(a,t,e)},fitHeight:function(t,e){return lf(a,t,e)}}};function Zf(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Zf.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(vc(n)>1e-6&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};var Jf=function(){return gf(Zf).scale(175.295)};function Qf(t,e){return[_c(e)*Tc(t),Tc(e)]}Qf.invert=Ef(Oc);var Kf=function(){return gf(Qf).scale(249.5).clipAngle(90+1e-6)};function td(t,e){var n=_c(e),r=1+_c(t)*n;return[n*Tc(t)/r,Tc(e)/r]}td.invert=Ef((function(t){return 2*mc(t)}));var ed=function(){return gf(td).scale(250).clipAngle(142)};function nd(t,e){return[kc(Sc((fc+e)/2)),-t]}nd.invert=function(t,e){return[-e,2*mc(wc(t))-fc]};var rd=function(){var t=Df(nd),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)};function id(t,e){return t.parent===e.parent?1:2}function ad(t,e){return t+e.x}function od(t,e){return Math.max(t,e.y)}var sd=function(){var t=id,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(ad,0)/t.length}(n),e.y=function(t){return 1+t.reduce(od,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,c)/2,l=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(l-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function cd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ud(t,e){var n,r,i,a,o,s=new dd(t),c=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=ld);n=u.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)u.push(r=n.children[a]=new dd(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(fd)}function ld(t){return t.children}function hd(t){t.data=t.data.data}function fd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function dd(t){this.data=t,this.depth=this.height=0,this.parent=null}dd.prototype=ud.prototype={constructor:dd,count:function(){return this.eachAfter(cd)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ud(this).eachBefore(hd)}};var pd=Array.prototype.slice;var yd=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(pd.call(t))).length,a=[];r0&&n*n>r*r+i*i}function bd(t,e){for(var n=0;n(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function Ed(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Td(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Ad(t){this._=t,this.next=null,this.previous=null}function Cd(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,c,u,l,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;kd(n,e,r=t[2]),e=new Ad(e),n=new Ad(n),r=new Ad(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Od(e),n):t},n.parentId=function(t){return arguments.length?(e=Od(t),n):e},n};function Vd(t,e){return t.parent===e.parent?1:2}function Gd(t){var e=t.children;return e?e[0]:t.t}function qd(t){var e=t.children;return e?e[e.length-1]:t.t}function Xd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Zd(t,e,n){return t.a.parent===e.parent?t.a:n}function Jd(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Jd.prototype=Object.create(dd.prototype);var Qd=function(){var t=Vd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Jd(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new Jd(r[i],i)),n.parent=e;return(o.parent=new Jd(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var u=i,l=i,h=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=u===l?1:t(u,l)/2,d=f-u.x,p=e/(l.x+f+d),y=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*y}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],u=a.m,l=o.m,h=s.m,f=c.m;s=qd(s),a=Gd(a),s&&a;)c=Gd(c),(o=qd(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(Xd(Zd(s,e,r),e,i),u+=i,l+=i),h+=s.m,u+=a.m,f+=c.m,l+=o.m;s&&!qd(o)&&(o.t=s,o.m+=h-l),a&&!Gd(c)&&(c.t=a,c.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},Kd=function(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,u=t.value&&(i-n)/t.value;++sf&&(f=s),g=l*l*y,(d=Math.max(f/g,g/h))>p){l-=s;break}p=d}v.push(o={value:l,dice:c1?e:1)},n}(tp),rp=function(){var t=np,e=!1,n=1,r=1,i=[0],a=Dd,o=Dd,s=Dd,c=Dd,u=Dd;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(jd),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=c)}var h=u[e],f=r/2+h,d=e+1,p=n-1;for(;d>>1;u[y]c-a){var m=(i*v+o*g)/r;t(e,d,g,i,a,m,c),t(d,n,v,m,a,o,c)}else{var b=(a*v+c*g)/r;t(e,d,g,i,a,o,b),t(d,n,v,i,b,o,c)}}(0,c,t.value,e,n,r,i)},ap=function(t,e,n,r,i){(1&t.depth?Kd:Rd)(t,e,n,r,i)},op=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,u,l,h=-1,f=o.length,d=t.value;++h1?e:1)},n}(tp),sp=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},cp=function(t,e){var n=un(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},up=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},lp=Math.SQRT2;function hp(t){return((t=Math.exp(t))+1/t)/2}var fp=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],c=e[1],u=e[2],l=s-i,h=c-a,f=l*l+h*h;if(f<1e-12)r=Math.log(u/o)/lp,n=function(t){return[i+t*l,a+t*h,o*Math.exp(lp*t*r)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),y=(u*u-o*o-4*f)/(2*u*2*d),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(y*y+1)-y);r=(v-g)/lp,n=function(t){var e,n=t*r,s=hp(g),c=o/(2*d)*(s*(e=lp*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*l,a+c*h,o*s/hp(lp*n+g)]}}return n.duration=1e3*r,n};function dp(t){return function(e,n){var r=t((e=tn(e)).h,(n=tn(n)).h),i=hn(e.s,n.s),a=hn(e.l,n.l),o=hn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var pp=dp(un),yp=dp(hn);function gp(t,e){var n=hn((t=pa(t)).l,(e=pa(e)).l),r=hn(t.a,e.a),i=hn(t.b,e.b),a=hn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function vp(t){return function(e,n){var r=t((e=wa(e)).h,(n=wa(n)).h),i=hn(e.c,n.c),a=hn(e.l,n.l),o=hn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}var mp=vp(un),bp=vp(hn);function _p(t){return function e(n){function r(e,r){var i=t((e=Oa(e)).h,(r=Oa(r)).h),a=hn(e.s,r.s),o=hn(e.l,r.l),s=hn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}var xp=_p(un),wp=_p(hn);function kp(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n1&&(e=t[a[o-2]],n=t[a[o-1]],r=t[s],(n[0]-e[0])*(r[1]-e[1])-(n[1]-e[1])*(r[0]-e[0])<=0);)--o;a[o++]=s}return a.slice(0,o)}var Mp=function(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)u.push(t[r[a[e]][2]]);for(e=+s;es!=u>s&&o<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l},Dp=function(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Np),Pp=function t(e){function n(){var t=Lp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Np),Fp=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function ty(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?ey:ty,i=a=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),xn)))(n)))},h.domain=function(t){return arguments.length?(o=Up.call(t,Xp),u===Jp||(u=Kp(o)),l()):o.slice()},h.range=function(t){return arguments.length?(s=$p.call(t),l()):s.slice()},h.rangeRound=function(t){return s=$p.call(t),c=up,l()},h.clamp=function(t){return arguments.length?(u=t?Kp(o):Jp,h):u!==Jp},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function iy(t,e){return ry()(t,e)}var ay=function(t,e,n,r){var i,a=S(t,e,n);switch((r=Hs(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=ac(a,o))||(r.precision=i),Zs(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=oc(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=ic(a))||(r.precision=i-2*("%"===r.type))}return Xs(r)};function oy(t){var e=t.domain;return t.ticks=function(t){var n=e();return A(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ay(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c0?r=C(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=C(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function sy(){var t=iy(Jp,Jp);return t.copy=function(){return ny(t,sy())},Rp.apply(t,arguments),oy(t)}function cy(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Up.call(e,Xp),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return cy(t).unknown(e)},t=arguments.length?Up.call(t,Xp):[0,1],oy(n)}var uy=function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;fc)break;y.push(h)}}else for(;f=1;--l)if(!((h=u*l)c)break;y.push(h)}}else y=A(f,d,Math.min(d-f,p)).map(n);return r?y.reverse():y},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!=typeof i&&(i=Xs(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0?i[r-1]:e[0],r=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return My().domain([e,n]).range(a).unknown(t)},Rp.apply(oy(o),arguments)}function Oy(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[c(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=$p.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=$p.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Oy().domain(e).range(n).unknown(t)},Rp.apply(i,arguments)}var Dy=new Date,Ny=new Date;function By(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Dy.setTime(+e),Ny.setTime(+r),t(Dy),t(Ny),Math.floor(n(Dy,Ny))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Ly=By((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ly.every=function(t){return isFinite(t=Math.floor(t))&&t>0?By((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Py=Ly,Fy=Ly.range,Iy=By((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),jy=Iy,Ry=Iy.range;function Yy(t){return By((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var zy=Yy(0),Uy=Yy(1),$y=Yy(2),Wy=Yy(3),Hy=Yy(4),Vy=Yy(5),Gy=Yy(6),qy=zy.range,Xy=Uy.range,Zy=$y.range,Jy=Wy.range,Qy=Hy.range,Ky=Vy.range,tg=Gy.range,eg=By((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),ng=eg,rg=eg.range,ig=By((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),ag=ig,og=ig.range,sg=By((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),cg=sg,ug=sg.range,lg=By((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),hg=lg,fg=lg.range,dg=By((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));dg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?By((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dg:null};var pg=dg,yg=dg.range;function gg(t){return By((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var vg=gg(0),mg=gg(1),bg=gg(2),_g=gg(3),xg=gg(4),wg=gg(5),kg=gg(6),Eg=vg.range,Tg=mg.range,Ag=bg.range,Cg=_g.range,Sg=xg.range,Mg=wg.range,Og=kg.range,Dg=By((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),Ng=Dg,Bg=Dg.range,Lg=By((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Lg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?By((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Pg=Lg,Fg=Lg.range;function Ig(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function jg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Rg(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Yg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Qg(i),l=Kg(i),h=Qg(a),f=Kg(a),d=Qg(o),p=Kg(o),y=Qg(s),g=Kg(s),v=Qg(c),m=Kg(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:_v,e:_v,f:Tv,H:xv,I:wv,j:kv,L:Ev,m:Av,M:Cv,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:em,s:nm,S:Sv,u:Mv,U:Ov,V:Dv,w:Nv,W:Bv,x:null,X:null,y:Lv,Y:Pv,Z:Fv,"%":tm},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Iv,e:Iv,f:Uv,H:jv,I:Rv,j:Yv,L:zv,m:$v,M:Wv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:em,s:nm,S:Hv,u:Vv,U:Gv,V:qv,w:Xv,W:Zv,x:null,X:null,y:Jv,Y:Qv,Z:Kv,"%":tm},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:lv,e:lv,f:gv,H:fv,I:fv,j:hv,L:yv,m:uv,M:dv,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:cv,Q:mv,s:bv,S:pv,u:ev,U:nv,V:rv,w:tv,W:iv,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:ov,Y:av,Z:sv,"%":vv};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=jg(Rg(a.y,0,1))).getUTCDay(),r=i>4||0===i?mg.ceil(r):mg(r),r=Ng.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Ig(Rg(a.y,0,1))).getDay(),r=i>4||0===i?Uy.ceil(r):Uy(r),r=ng.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?jg(Rg(a.y,0,1)).getUTCDay():Ig(Rg(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,jg(a)):Ig(a)}}function E(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Vg?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}})}var zg,Ug,$g,Wg,Hg,Vg={"-":"",_:" ",0:"0"},Gg=/^\s*\d+/,qg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Zg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function sv(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cv(t,e,n){var r=Gg.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function uv(t,e,n){var r=Gg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function lv(t,e,n){var r=Gg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function hv(t,e,n){var r=Gg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function fv(t,e,n){var r=Gg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function dv(t,e,n){var r=Gg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function pv(t,e,n){var r=Gg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function yv(t,e,n){var r=Gg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function gv(t,e,n){var r=Gg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vv(t,e,n){var r=qg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function mv(t,e,n){var r=Gg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function bv(t,e,n){var r=Gg.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function _v(t,e){return Zg(t.getDate(),e,2)}function xv(t,e){return Zg(t.getHours(),e,2)}function wv(t,e){return Zg(t.getHours()%12||12,e,2)}function kv(t,e){return Zg(1+ng.count(Py(t),t),e,3)}function Ev(t,e){return Zg(t.getMilliseconds(),e,3)}function Tv(t,e){return Ev(t,e)+"000"}function Av(t,e){return Zg(t.getMonth()+1,e,2)}function Cv(t,e){return Zg(t.getMinutes(),e,2)}function Sv(t,e){return Zg(t.getSeconds(),e,2)}function Mv(t){var e=t.getDay();return 0===e?7:e}function Ov(t,e){return Zg(zy.count(Py(t)-1,t),e,2)}function Dv(t,e){var n=t.getDay();return t=n>=4||0===n?Hy(t):Hy.ceil(t),Zg(Hy.count(Py(t),t)+(4===Py(t).getDay()),e,2)}function Nv(t){return t.getDay()}function Bv(t,e){return Zg(Uy.count(Py(t)-1,t),e,2)}function Lv(t,e){return Zg(t.getFullYear()%100,e,2)}function Pv(t,e){return Zg(t.getFullYear()%1e4,e,4)}function Fv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zg(e/60|0,"0",2)+Zg(e%60,"0",2)}function Iv(t,e){return Zg(t.getUTCDate(),e,2)}function jv(t,e){return Zg(t.getUTCHours(),e,2)}function Rv(t,e){return Zg(t.getUTCHours()%12||12,e,2)}function Yv(t,e){return Zg(1+Ng.count(Pg(t),t),e,3)}function zv(t,e){return Zg(t.getUTCMilliseconds(),e,3)}function Uv(t,e){return zv(t,e)+"000"}function $v(t,e){return Zg(t.getUTCMonth()+1,e,2)}function Wv(t,e){return Zg(t.getUTCMinutes(),e,2)}function Hv(t,e){return Zg(t.getUTCSeconds(),e,2)}function Vv(t){var e=t.getUTCDay();return 0===e?7:e}function Gv(t,e){return Zg(vg.count(Pg(t)-1,t),e,2)}function qv(t,e){var n=t.getUTCDay();return t=n>=4||0===n?xg(t):xg.ceil(t),Zg(xg.count(Pg(t),t)+(4===Pg(t).getUTCDay()),e,2)}function Xv(t){return t.getUTCDay()}function Zv(t,e){return Zg(mg.count(Pg(t)-1,t),e,2)}function Jv(t,e){return Zg(t.getUTCFullYear()%100,e,2)}function Qv(t,e){return Zg(t.getUTCFullYear()%1e4,e,4)}function Kv(){return"+0000"}function tm(){return"%"}function em(t){return+t}function nm(t){return Math.floor(+t/1e3)}function rm(t){return zg=Yg(t),Ug=zg.format,$g=zg.parse,Wg=zg.utcFormat,Hg=zg.utcParse,zg}rm({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function im(t){return new Date(t)}function am(t){return t instanceof Date?+t:+new Date(+t)}function om(t,e,n,r,a,o,s,c,u){var l=iy(Jp,Jp),h=l.invert,f=l.domain,d=u(".%L"),p=u(":%S"),y=u("%I:%M"),g=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),_=u("%Y"),x=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function w(i){return(s(i)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return qb.h=360*t-100,qb.s=1.5-1.5*e,qb.l=.8-.9*e,qb+""},Zb=Ge(),Jb=Math.PI/3,Qb=2*Math.PI/3,Kb=function(t){var e;return t=(.5-t)*Math.PI,Zb.r=255*(e=Math.sin(t))*e,Zb.g=255*(e=Math.sin(t+Jb))*e,Zb.b=255*(e=Math.sin(t+Qb))*e,Zb+""},t_=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function e_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var n_=e_(Nm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),r_=e_(Nm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),i_=e_(Nm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a_=e_(Nm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),o_=function(t){return we(ne(t).call(document.documentElement))},s_=0;function c_(){return new u_}function u_(){this._="@"+(++s_).toString(36)}u_.prototype=c_.prototype={constructor:u_,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var l_=function(t){return"string"==typeof t?new be([document.querySelectorAll(t)],[document.documentElement]):new be([null==t?[]:t],me)},h_=function(t,e){null==e&&(e=Mn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n1?0:t<-1?__:Math.acos(t)}function E_(t){return t>=1?x_:t<=-1?-x_:Math.asin(t)}function T_(t){return t.innerRadius}function A_(t){return t.outerRadius}function C_(t){return t.startAngle}function S_(t){return t.endAngle}function M_(t){return t&&t.padAngle}function O_(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*f<1e-12))return[t+(f=(l*(e-a)-h*(t-i))/f)*c,e+f*u]}function D_(t,e,n,r,i,a,o){var s=t-n,c=e-r,u=(o?a:-a)/b_(s*s+c*c),l=u*c,h=-u*s,f=t+l,d=e+h,p=n+l,y=r+h,g=(f+p)/2,v=(d+y)/2,m=p-f,b=y-d,_=m*m+b*b,x=i-a,w=f*y-p*d,k=(b<0?-1:1)*b_(g_(0,x*x*_-w*w)),E=(w*b-m*k)/_,T=(-w*m-b*k)/_,A=(w*b+m*k)/_,C=(-w*m+b*k)/_,S=E-g,M=T-v,O=A-g,D=C-v;return S*S+M*M>O*O+D*D&&(E=A,T=C),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/x-1),y11:T*(i/x-1)}}var N_=function(){var t=T_,e=A_,n=f_(0),r=null,i=C_,a=S_,o=M_,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-x_,d=a.apply(this,arguments)-x_,p=d_(d-f),y=d>f;if(s||(s=c=Ui()),h1e-12)if(p>w_-1e-12)s.moveTo(h*y_(f),h*m_(f)),s.arc(0,0,h,f,d,!y),l>1e-12&&(s.moveTo(l*y_(d),l*m_(d)),s.arc(0,0,l,d,f,y));else{var g,v,m=f,b=d,_=f,x=d,w=p,k=p,E=o.apply(this,arguments)/2,T=E>1e-12&&(r?+r.apply(this,arguments):b_(l*l+h*h)),A=v_(d_(h-l)/2,+n.apply(this,arguments)),C=A,S=A;if(T>1e-12){var M=E_(T/l*m_(E)),O=E_(T/h*m_(E));(w-=2*M)>1e-12?(_+=M*=y?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*O)>1e-12?(m+=O*=y?1:-1,b-=O):(k=0,m=b=(f+d)/2)}var D=h*y_(m),N=h*m_(m),B=l*y_(x),L=l*m_(x);if(A>1e-12){var P,F=h*y_(b),I=h*m_(b),j=l*y_(_),R=l*m_(_);if(p<__&&(P=O_(D,N,j,R,F,I,B,L))){var Y=D-P[0],z=N-P[1],U=F-P[0],$=I-P[1],W=1/m_(k_((Y*U+z*$)/(b_(Y*Y+z*z)*b_(U*U+$*$)))/2),H=b_(P[0]*P[0]+P[1]*P[1]);C=v_(A,(l-H)/(W-1)),S=v_(A,(h-H)/(W+1))}}k>1e-12?S>1e-12?(g=D_(j,R,D,N,h,S,y),v=D_(F,I,B,L,h,S,y),s.moveTo(g.cx+g.x01,g.cy+g.y01),S1e-12&&w>1e-12?C>1e-12?(g=D_(B,L,F,I,l,-C,y),v=D_(D,N,j,R,l,-C,y),s.lineTo(g.cx+g.x01,g.cy+g.y01),C=l;--h)s.point(g[h],v[h]);s.lineEnd(),s.areaEnd()}y&&(g[u]=+t(f,u,c),v[u]=+n(f,u,c),s.point(e?+e(f,u,c):g[u],r?+r(f,u,c):v[u]))}if(d)return s=null,d+""||null}function u(){return I_().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:f_(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:f_(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:f_(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:f_(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:f_(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:f_(+t),c):r},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(r)},c.lineX1=function(){return u().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:f_(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c},R_=function(t,e){return et?1:e>=t?0:NaN},Y_=function(t){return t},z_=function(){var t=Y_,e=R_,n=null,r=f_(0),i=f_(w_),a=f_(0);function o(o){var s,c,u,l,h,f=o.length,d=0,p=new Array(f),y=new Array(f),g=+r.apply(this,arguments),v=Math.min(w_,Math.max(-w_,i.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/f,a.apply(this,arguments)),b=m*(v<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(y[t],y[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,u=d?(v-f*b)/d:0;s0?h*u:0)+b,y[c]={data:o[c],index:s,value:h,startAngle:g,endAngle:l,padAngle:m};return y}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:f_(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:f_(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:f_(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:f_(+t),o):a},o},U_=W_(L_);function $_(t){this._curve=t}function W_(t){function e(e){return new $_(t(e))}return e._curve=t,e}function H_(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(W_(t)):e()._curve},t}$_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var V_=function(){return H_(I_().curve(U_))},G_=function(){var t=j_().curve(U_),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return H_(n())},delete t.lineX0,t.lineEndAngle=function(){return H_(r())},delete t.lineX1,t.lineInnerRadius=function(){return H_(i())},delete t.lineY0,t.lineOuterRadius=function(){return H_(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(W_(t)):e()._curve},t},q_=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},X_=Array.prototype.slice;function Z_(t){return t.source}function J_(t){return t.target}function Q_(t){var e=Z_,n=J_,r=P_,i=F_,a=null;function o(){var o,s=X_.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(a||(a=o=Ui()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:f_(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:f_(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function K_(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function tx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function ex(t,e,n,r,i){var a=q_(e,n),o=q_(e,n=(n+i)/2),s=q_(r,n),c=q_(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function nx(){return Q_(K_)}function rx(){return Q_(tx)}function ix(){var t=Q_(ex);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var ax={draw:function(t,e){var n=Math.sqrt(e/__);t.moveTo(n,0),t.arc(0,0,n,0,w_)}},ox={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},sx=Math.sqrt(1/3),cx=2*sx,ux={draw:function(t,e){var n=Math.sqrt(e/cx),r=n*sx;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},lx=Math.sin(__/10)/Math.sin(7*__/10),hx=Math.sin(w_/10)*lx,fx=-Math.cos(w_/10)*lx,dx={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=hx*n,i=fx*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=w_*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},px={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},yx=Math.sqrt(3),gx={draw:function(t,e){var n=-Math.sqrt(e/(3*yx));t.moveTo(0,2*n),t.lineTo(-yx*n,-n),t.lineTo(yx*n,-n),t.closePath()}},vx=Math.sqrt(3)/2,mx=1/Math.sqrt(12),bx=3*(mx/2+1),_x={draw:function(t,e){var n=Math.sqrt(e/bx),r=n/2,i=n*mx,a=r,o=n*mx+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(-.5*r-vx*i,vx*r+-.5*i),t.lineTo(-.5*a-vx*o,vx*a+-.5*o),t.lineTo(-.5*s-vx*c,vx*s+-.5*c),t.lineTo(-.5*r+vx*i,-.5*i-vx*r),t.lineTo(-.5*a+vx*o,-.5*o-vx*a),t.lineTo(-.5*s+vx*c,-.5*c-vx*s),t.closePath()}},xx=[ax,ox,ux,px,dx,gx,_x],wx=function(){var t=f_(ax),e=f_(64),n=null;function r(){var r;if(n||(n=r=Ui()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:f_(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:f_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},kx=function(){};function Ex(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Tx(t){this._context=t}Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ex(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ex(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Ax=function(t){return new Tx(t)};function Cx(t){this._context=t}Cx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ex(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Sx=function(t){return new Cx(t)};function Mx(t){this._context=t}Mx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ex(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Ox=function(t){return new Mx(t)};function Dx(t,e){this._basis=new Tx(t),this._beta=e}Dx.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Nx=function t(e){function n(t){return 1===e?new Tx(t):new Dx(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Bx(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Lx(t,e){this._context=t,this._k=(1-e)/6}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Bx(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Bx(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Px=function t(e){function n(t){return new Lx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Fx(t,e){this._context=t,this._k=(1-e)/6}Fx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Bx(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ix=function t(e){function n(t){return new Fx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function jx(t,e){this._context=t,this._k=(1-e)/6}jx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bx(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rx=function t(e){function n(t){return new jx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Yx(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function zx(t,e){this._context=t,this._alpha=e}zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Yx(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ux=function t(e){function n(t){return e?new zx(t,e):new Lx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $x(t,e){this._context=t,this._alpha=e}$x.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Yx(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wx=function t(e){function n(t){return e?new $x(t,e):new Fx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Hx(t,e){this._context=t,this._alpha=e}Hx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yx(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vx=function t(e){function n(t){return e?new Hx(t,e):new jx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Gx(t){this._context=t}Gx.prototype={areaStart:kx,areaEnd:kx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var qx=function(t){return new Gx(t)};function Xx(t){return t<0?-1:1}function Zx(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Xx(a)+Xx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Jx(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Qx(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Kx(t){this._context=t}function tw(t){this._context=new ew(t)}function ew(t){this._context=t}function nw(t){return new Kx(t)}function rw(t){return new tw(t)}function iw(t){this._context=t}function aw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var cw=function(t){return new sw(t,.5)};function uw(t){return new sw(t,0)}function lw(t){return new sw(t,1)}var hw=function(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a=0;)n[e]=e;return n};function dw(t,e){return t[e]}var pw=function(){var t=f_([]),e=fw,n=hw,r=dw;function i(i){var a,o,s=t.apply(this,arguments),c=i.length,u=s.length,l=new Array(u);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a0)for(var n,r,i,a,o,s,c=0,u=t[e[0]].length;c0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},vw=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;oa&&(a=e,r=n);return r}var xw=function(t){var e=t.map(ww);return fw(t).sort((function(t,n){return e[t]-e[n]}))};function ww(t){for(var e,n=0,r=-1,i=t.length;++r0)){if(a/=f,f<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=r-c,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=i-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>l&&(l=a)}else if(d>0){if(a0||h<1)||(l>0&&(t[0]=[c+l*f,u+l*d]),h<1&&(t[1]=[c+h*f,u+h*d]),!0)}}}}}function Uw(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,c=t[0],u=t.left,l=t.right,h=u[0],f=u[1],d=l[0],p=l[1],y=(h+d)/2,g=(f+p)/2;if(p===f){if(y=r)return;if(h>d){if(c){if(c[1]>=i)return}else c=[y,n];a=[y,i]}else{if(c){if(c[1]1)if(h>d){if(c){if(c[1]>=i)return}else c=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+s];a=[r,o*r+s]}else{if(c){if(c[0]=-lk)){var d=c*c+u*u,p=l*l+h*h,y=(h*d-u*p)/f,g=(c*p-l*d)/f,v=Gw.pop()||new qw;v.arc=t,v.site=i,v.x=y+o,v.y=(v.cy=g+s)+Math.sqrt(y*y+g*g),t.circle=v;for(var m=null,b=sk._;b;)if(v.yuk)s=s.L;else{if(!((i=a-ik(s,o))>uk)){r>-uk?(e=s.P,n=s):i>-uk?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){ok[t.index]={site:t,halfedges:[]}}(t);var c=Kw(t);if(ak.insert(e,c),e||n){if(e===n)return Zw(e),n=Kw(e.site),ak.insert(c,n),c.edge=n.edge=jw(e.site,c.site),Xw(e),void Xw(n);if(n){Zw(e),Zw(n);var u=e.site,l=u[0],h=u[1],f=t[0]-l,d=t[1]-h,p=n.site,y=p[0]-l,g=p[1]-h,v=2*(f*g-d*y),m=f*f+d*d,b=y*y+g*g,_=[(g*m-d*b)/v+l,(f*b-y*m)/v+h];Yw(n.edge,u,p,_),c.edge=jw(u,t,null,_),n.edge=jw(t,p,null,_),Xw(e),Xw(n)}else c.edge=jw(e.site,c.site)}}function rk(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],c=n[1],u=c-e;if(!u)return s;var l=s-r,h=1/a-1/u,f=l/u;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*u)-c+u/2+i-a/2)))/h+r:(r+s)/2}function ik(t,e){var n=t.N;if(n)return rk(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var ak,ok,sk,ck,uk=1e-6,lk=1e-12;function hk(t,e){return e[1]-t[1]||e[0]-t[0]}function fk(t,e){var n,r,i,a=t.sort(hk).pop();for(ck=[],ok=new Array(t.length),ak=new Iw,sk=new Iw;;)if(i=Vw,a&&(!i||a[1]uk||Math.abs(i[0][1]-i[1][1])>uk)||delete ck[a]}(o,s,c,u),function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,y,g=ok.length,v=!0;for(i=0;iuk||Math.abs(y-f)>uk)&&(c.splice(s,0,ck.push(Rw(o,d,Math.abs(p-t)uk?[t,Math.abs(h-t)uk?[Math.abs(f-r)uk?[n,Math.abs(h-n)uk?[Math.abs(f-e)=s)return null;var c=t-i.site[0],u=e-i.site[1],l=c*c+u*u;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var c=t-s[0],u=e-s[1],h=c*c+u*u;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}var Ck=function(){var t,e,n=xk,r=wk,i=Ak,a=Ek,o=Tk,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=fp,h=lt("start","zoom","end"),f=0;function d(t){t.property("__zoom",kk).on("wheel.zoom",_).on("mousedown.zoom",x).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",k).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new gk(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new gk(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function v(t,e,n){t.on("start.zoom",(function(){m(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,a=m(t,i),o=r.apply(t,i),s=null==n?g(o):"function"==typeof n?n.apply(t,i):n,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,h="function"==typeof e?e.apply(t,i):e,f=l(u.invert(s).concat(c/u.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=c/e[2];t=new gk(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function m(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function _(){if(n.apply(this,arguments)){var t=m(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Nn(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],or(this),t.start()}_k(),t.wheel=setTimeout(u,150),t.zoom("mouse",i(y(p(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function u(){t.wheel=null,t.end()}}function x(){if(!e&&n.apply(this,arguments)){var t=m(this,arguments,!0),r=we(ce.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",l,!0),a=Nn(this),o=ce.clientX,s=ce.clientY;Te(ce.view),bk(),t.mouse=[a,this.__zoom.invert(a)],or(this),t.start()}function u(){if(_k(),!t.moved){var e=ce.clientX-o,n=ce.clientY-s;t.moved=e*e+n*n>f}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=Nn(t.that),t.mouse[1]),t.extent,c))}function l(){r.on("mousemove.zoom mouseup.zoom",null),Ae(ce.view,t.moved),_k(),t.end()}}function w(){if(n.apply(this,arguments)){var t=this.__zoom,e=Nn(this),a=t.invert(e),o=t.k*(ce.shiftKey?.5:2),s=i(y(p(t,o),e,a),r.apply(this,arguments),c);_k(),u>0?we(this).transition().duration(u).call(v,s,e):we(this).call(d.transform,s)}}function k(){if(n.apply(this,arguments)){var e,r,i,a,o=ce.touches,s=o.length,c=m(this,arguments,ce.changedTouches.length===s);for(bk(),r=0;rh&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),56;case 1:return this.begin("type_directive"),57;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return e.yytext=e.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,12],inclusive:!1},ALIAS:{rules:[7,8,13,14],inclusive:!1},LINE:{rules:[7,8,22],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function O(){this.yy={}}return S.lexer=M,O.prototype=S,S.Parser=O,new O}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){var r=n(198);t.exports={Graph:r.Graph,json:n(301),alg:n(302),version:r.version}},function(t,e,n){var r;try{r={cloneDeep:n(313),constant:n(86),defaults:n(154),each:n(87),filter:n(128),find:n(314),flatten:n(156),forEach:n(126),forIn:n(319),has:n(93),isUndefined:n(139),last:n(320),map:n(140),mapValues:n(321),max:n(322),merge:n(324),min:n(329),minBy:n(330),now:n(331),pick:n(161),range:n(162),reduce:n(142),sortBy:n(338),uniqueId:n(163),values:n(147),zipObject:n(343)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){ /** * @license * Copyright (c) 2012-2013 Chris Pettitt @@ -21,12 +21,12 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -t.exports={graphlib:n(311),dagre:n(153),intersect:n(368),render:n(370),util:n(12),version:n(382)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(4),i=n(17).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,r=u):(o<0&&(c=-c),n=c,r=c*s/o);return{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(173),i=n(174),a=n(175),o={channel:r.default,lang:i.default,unit:a.default};e.default=o},function(t,e,n){var r;try{r={clone:n(199),constant:n(86),each:n(87),filter:n(128),has:n(93),isArray:n(5),isEmpty:n(276),isFunction:n(37),isUndefined:n(139),keys:n(30),map:n(140),reduce:n(142),size:n(279),transform:n(285),union:n(286),values:n(147)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(43);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,6],r=[1,20],i=[1,23],a=[1,21],o=[1,22],s=[1,24],c=[1,25],u=[1,27],l=[1,28],h=[1,29],f=[1,32],d=[7,9],p=[1,41],g=[1,42],y=[1,43],v=[1,44],m=[1,45],b=[1,46],x=[7,9,20,26,34,37,38,39,40,41,42],_=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],w=[34,58,59,60],k=[34,41,42,58,59,60],E=[34,37,38,39,40,58,59,60],T=[6,7,9,61],A=[7,9,20],S=[1,73],C={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,directive:5,CLASS_DIAGRAM:6,NEWLINE:7,statements:8,EOF:9,statement:10,className:11,alphaNumToken:12,GENERICTYPE:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,relationStatement:19,LABEL:20,classStatement:21,methodStatement:22,annotationStatement:23,clickStatement:24,CLASS:25,STRUCT_START:26,members:27,STRUCT_STOP:28,ANNOTATION_START:29,ANNOTATION_END:30,MEMBER:31,SEPARATOR:32,relation:33,STR:34,relationType:35,lineType:36,AGGREGATION:37,EXTENSION:38,COMPOSITION:39,DEPENDENCY:40,LINE:41,DOTTED_LINE:42,CALLBACK:43,LINK:44,commentToken:45,textToken:46,graphCodeTokens:47,textNoTagsToken:48,TAGSTART:49,TAGEND:50,"==":51,"--":52,PCT:53,DEFAULT:54,SPACE:55,MINUS:56,keywords:57,UNICODE_TEXT:58,NUM:59,ALPHA:60,open_directive:61,type_directive:62,arg_directive:63,close_directive:64,$accept:0,$end:1},terminals_:{2:"error",6:"CLASS_DIAGRAM",7:"NEWLINE",9:"EOF",13:"GENERICTYPE",17:":",20:"LABEL",25:"CLASS",26:"STRUCT_START",28:"STRUCT_STOP",29:"ANNOTATION_START",30:"ANNOTATION_END",31:"MEMBER",32:"SEPARATOR",34:"STR",37:"AGGREGATION",38:"EXTENSION",39:"COMPOSITION",40:"DEPENDENCY",41:"LINE",42:"DOTTED_LINE",43:"CALLBACK",44:"LINK",47:"graphCodeTokens",49:"TAGSTART",50:"TAGEND",51:"==",52:"--",53:"PCT",54:"DEFAULT",55:"SPACE",56:"MINUS",57:"keywords",58:"UNICODE_TEXT",59:"NUM",60:"ALPHA",61:"open_directive",62:"type_directive",63:"arg_directive",64:"close_directive"},productions_:[0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 7:this.$=a[s-1]+a[s];break;case 8:this.$=a[s];break;case 9:this.$=a[s-2]+"~"+a[s-1]+a[s];break;case 10:this.$=a[s-1]+"~"+a[s];break;case 13:r.addRelation(a[s]);break;case 14:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 20:r.addClass(a[s]);break;case 21:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 22:r.addAnnotation(a[s],a[s-2]);break;case 23:this.$=[a[s]];break;case 24:a[s].push(a[s-1]),this.$=a[s];break;case 25:break;case 26:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 27:case 28:break;case 29:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 30:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 31:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 32:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 33:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 34:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 35:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 36:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 37:this.$=r.relationType.AGGREGATION;break;case 38:this.$=r.relationType.EXTENSION;break;case 39:this.$=r.relationType.COMPOSITION;break;case 40:this.$=r.relationType.DEPENDENCY;break;case 41:this.$=r.lineType.LINE;break;case 42:this.$=r.lineType.DOTTED_LINE;break;case 43:this.$=a[s-2],r.setClickEvent(a[s-1],a[s],void 0);break;case 44:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 45:this.$=a[s-2],r.setLink(a[s-1],a[s],void 0);break;case 46:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 63:r.parseDirective("%%{","open_directive");break;case 64:r.parseDirective(a[s],"type_directive");break;case 65:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 66:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:2,5:3,6:e,14:5,61:n},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:e,14:5,61:n},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:r,29:i,31:a,32:o,43:s,44:c,58:u,59:l,60:h,61:n},{16:30,17:[1,31],64:f},t([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},t(d,[2,13],{20:[1,35]}),t(d,[2,15]),t(d,[2,16]),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:p,38:g,39:y,40:v,41:m,42:b}),{11:47,12:26,58:u,59:l,60:h},t(d,[2,27]),t(d,[2,28]),{12:48,58:u,59:l,60:h},{11:49,12:26,58:u,59:l,60:h},{11:50,12:26,58:u,59:l,60:h},t(x,[2,8],{12:26,11:51,13:[1,52],58:u,59:l,60:h}),t(_,[2,60]),t(_,[2,61]),t(_,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:r,29:i,31:a,32:o,43:s,44:c,58:u,59:l,60:h,61:n},t(d,[2,14]),{11:57,12:26,34:[1,58],58:u,59:l,60:h},{33:59,35:39,36:40,37:p,38:g,39:y,40:v,41:m,42:b},t(d,[2,26]),{36:60,41:m,42:b},t(w,[2,36],{35:61,37:p,38:g,39:y,40:v}),t(k,[2,37]),t(k,[2,38]),t(k,[2,39]),t(k,[2,40]),t(E,[2,41]),t(E,[2,42]),t(d,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},t(x,[2,7]),t(x,[2,10],{12:26,11:66,58:u,59:l,60:h}),t(T,[2,11]),{16:67,64:f},{64:[2,65]},{9:[2,6]},t(A,[2,29]),{11:68,12:26,58:u,59:l,60:h},{11:69,12:26,34:[1,70],58:u,59:l,60:h},t(w,[2,35],{35:71,37:p,38:g,39:y,40:v}),t(w,[2,34]),{27:72,31:S},{11:74,12:26,58:u,59:l,60:h},t(d,[2,43],{34:[1,75]}),t(d,[2,45],{34:[1,76]}),t(x,[2,9]),{7:[1,77]},t(A,[2,31]),t(A,[2,30]),{11:78,12:26,58:u,59:l,60:h},t(w,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:S},t(d,[2,22]),t(d,[2,44]),t(d,[2,46]),t(T,[2,12]),t(A,[2,32]),t(d,[2,21]),{28:[2,24]}],defaultActions:{2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),61;case 1:return this.begin("type_directive"),62;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),64;case 4:return 63;case 5:case 6:case 7:break;case 8:return 7;case 9:break;case 10:case 11:return 6;case 12:return this.begin("struct"),26;case 13:return"EOF_IN_STRUCT";case 14:return"OPEN_IN_STRUCT";case 15:return this.popState(),28;case 16:break;case 17:return"MEMBER";case 18:return 25;case 19:return 43;case 20:return 44;case 21:return 29;case 22:return 30;case 23:this.begin("generic");break;case 24:this.popState();break;case 25:return"GENERICTYPE";case 26:this.begin("string");break;case 27:this.popState();break;case 28:return"STR";case 29:case 30:return 38;case 31:case 32:return 40;case 33:return 39;case 34:return 37;case 35:return 41;case 36:return 42;case 37:return 20;case 38:return 56;case 39:return"DOT";case 40:return"PLUS";case 41:return 53;case 42:case 43:return"EQUALS";case 44:return 60;case 45:return"PUNCTUATION";case 46:return 59;case 47:return 58;case 48:return 55;case 49:return 9}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:%%[^\n]*\n*)/,/^(?:\n+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[\{])/,/^(?:$)/,/^(?:[\{])/,/^(?:\})/,/^(?:[\n])/,/^(?:[^\{\}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},string:{rules:[27,28],inclusive:!1},generic:{rules:[24,25],inclusive:!1},struct:{rules:[13,14,15,16,17],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],inclusive:!0}}};function O(){this.yy={}}return C.lexer=M,O.prototype=C,C.Parser=O,new O}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var c,u=[],l=!1,h=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h1)for(var n=1;n=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return(i?"/":"")+(e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var a=e.isAbsolute(t),o="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!a).join("/"))||a||(t="."),t&&o&&(t+="/"),(a?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c=1;--a)if(47===(e=t.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(14))},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,13],c=[1,14],u=[1,15],l=[1,16],h=[1,21],f=[1,17],d=[1,18],p=[1,19],g=[1,20],y=[1,22],v=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],m=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],b=[4,5,13,14,16,18,19,21,22,23,24,25,28],x={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,idStatement:10,DESCR:11,"--\x3e":12,HIDE_EMPTY:13,scale:14,WIDTH:15,COMPOSIT_STATE:16,STRUCT_START:17,STRUCT_STOP:18,STATE_DESCR:19,AS:20,ID:21,FORK:22,JOIN:23,CONCURRENT:24,note:25,notePosition:26,NOTE_TEXT:27,EDGE_STATE:28,left_of:29,right_of:30,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",11:"DESCR",12:"--\x3e",13:"HIDE_EMPTY",14:"scale",15:"WIDTH",16:"COMPOSIT_STATE",17:"STRUCT_START",18:"STRUCT_STOP",19:"STATE_DESCR",20:"AS",21:"ID",22:"FORK",23:"JOIN",24:"CONCURRENT",25:"note",27:"NOTE_TEXT",28:"EDGE_STATE",29:"left_of",30:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$="nl";break;case 9:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 10:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 11:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 16:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 17:var c=a[s],u=a[s-2].trim();if(a[s].match(":")){var l=a[s].split(":");c=l[0],u=[u,l[1]]}this.$={stmt:"state",id:c,type:"default",description:u};break;case 18:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 19:this.$={stmt:"state",id:a[s],type:"fork"};break;case 20:this.$={stmt:"state",id:a[s],type:"join"};break;case 21:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 22:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 24:case 25:this.$=a[s]}},table:[{3:1,4:e,5:n,6:r},{1:[3]},{3:5,4:e,5:n,6:r},{3:6,4:e,5:n,6:r},t([1,4,5,13,14,16,19,21,22,23,24,25,28],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,13:s,14:c,16:u,19:l,21:h,22:f,23:d,24:p,25:g,28:y},t(v,[2,5]),{9:23,10:12,13:s,14:c,16:u,19:l,21:h,22:f,23:d,24:p,25:g,28:y},t(v,[2,7]),t(v,[2,8]),t(v,[2,9],{11:[1,24],12:[1,25]}),t(v,[2,13]),{15:[1,26]},t(v,[2,15],{17:[1,27]}),{20:[1,28]},t(v,[2,19]),t(v,[2,20]),t(v,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},t(m,[2,24]),t(m,[2,25]),t(v,[2,6]),t(v,[2,10]),{10:33,21:h,28:y},t(v,[2,14]),t(b,i,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},t(v,[2,11],{11:[1,38]}),{4:a,5:o,8:8,9:10,10:12,13:s,14:c,16:u,18:[1,39],19:l,21:h,22:f,23:d,24:p,25:g,28:y},t(v,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},t(v,[2,12]),t(v,[2,16]),t(b,i,{7:43}),t(v,[2,22]),t(v,[2,23]),{4:a,5:o,8:8,9:10,10:12,13:s,14:c,16:u,18:[1,44],19:l,21:h,22:f,23:d,24:p,25:g,28:y},t(v,[2,18])],defaultActions:{5:[2,1],6:[2,2],31:[2,26],32:[2,27]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 5;case 1:case 2:case 3:case 4:break;case 5:return this.pushState("SCALE"),14;case 6:return 15;case 7:this.popState();break;case 8:this.pushState("STATE");break;case 9:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),22;case 10:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 11:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),22;case 12:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 13:this.begin("STATE_STRING");break;case 14:return this.popState(),this.pushState("STATE_ID"),"AS";case 15:return this.popState(),"ID";case 16:this.popState();break;case 17:return"STATE_DESCR";case 18:return 16;case 19:this.popState();break;case 20:return this.popState(),this.pushState("struct"),17;case 21:return this.popState(),18;case 22:break;case 23:return this.begin("NOTE"),25;case 24:return this.popState(),this.pushState("NOTE_ID"),29;case 25:return this.popState(),this.pushState("NOTE_ID"),30;case 26:this.popState(),this.pushState("FLOATING_NOTE");break;case 27:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 28:break;case 29:return"NOTE_TEXT";case 30:return this.popState(),"ID";case 31:return this.popState(),this.pushState("NOTE_TEXT"),21;case 32:return this.popState(),e.yytext=e.yytext.substr(2).trim(),27;case 33:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),27;case 34:case 35:return 6;case 36:return 13;case 37:return 28;case 38:return 21;case 39:return e.yytext=e.yytext.trim(),11;case 40:return 12;case 41:return 24;case 42:return 5;case 43:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[2,3],inclusive:!1},struct:{rules:[2,3,8,21,22,23,37,38,39,40,41],inclusive:!1},FLOATING_NOTE_ID:{rules:[30],inclusive:!1},FLOATING_NOTE:{rules:[27,28,29],inclusive:!1},NOTE_TEXT:{rules:[32,33],inclusive:!1},NOTE_ID:{rules:[31],inclusive:!1},NOTE:{rules:[24,25,26],inclusive:!1},SCALE:{rules:[6,7],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[15],inclusive:!1},STATE_STRING:{rules:[16,17],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[2,3,9,10,11,12,13,14,18,19,20],inclusive:!1},ID:{rules:[2,3],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],inclusive:!0}}};function w(){this.yy={}}return x.lexer=_,w.prototype=x,x.Parser=w,new w}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,r=[];for(n=0;n>>0,r=0;ryt(t)?(a=t+1,s-yt(t)):(a=t,s),{year:a,dayOfYear:o}}function Ft(t,e,n){var r,i,a=Bt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+Pt(i=t.year()-1,e,n):o>Pt(t.year(),e,n)?(r=o-Pt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Pt(t,e,n){var r=Bt(t,e,n),i=Bt(t+1,e,n);return(yt(t)-r+i)/7}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),j("week",5),j("isoWeek",5),lt("w",Q),lt("ww",Q,q),lt("W",Q),lt("WW",Q,q),gt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=k(t)})),W("d",0,"do","day"),W("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),W("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),W("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t})),gt(["d","e","E"],(function(t,e,n,r){e[r]=k(t)}));var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=ct,Ut=ct,$t=ct;function Wt(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],c=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),c.push(a),u.push(r),u.push(i),u.push(a);for(o.sort(t),s.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),c[e]=ft(c[e]),u[e]=ft(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ht(){return this.hours()%12||12}function Vt(t,e){W(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Gt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ht),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Ht.apply(this)+R(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Ht.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Vt("a",!0),Vt("A",!1),L("hour","h"),j("hour",13),lt("a",Gt),lt("A",Gt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,q),lt("hh",Q,q),lt("kk",Q,q),lt("hmm",K),lt("hmmss",tt),lt("Hmm",K),lt("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],(function(t,e,n){var r=k(t);e[3]=24===r?0:r})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[3]=k(t),p(n).bigHour=!0})),pt("hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r)),p(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i)),p(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r))})),pt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i))}));var qt,Xt=xt("Hours",!0),Zt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Tt,monthsShort:At,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:Yt,weekdaysShort:Rt,meridiemParse:/[ap]\.?m?\.?/i},Jt={},Qt={};function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function te(e){var r=null;if(!Jt[e]&&void 0!==t&&t&&t.exports)try{r=qt._abbr,n(171)("./"+e),ee(r)}catch(e){}return Jt[e]}function ee(t,e){var n;return t&&((n=s(e)?re(t):ne(t,e))?qt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function ne(t,e){if(null===e)return delete Jt[t],null;var n,r=Zt;if(e.abbr=t,null!=Jt[t])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Jt[t]._config;else if(null!=e.parentLocale)if(null!=Jt[e.parentLocale])r=Jt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Qt[e.parentLocale]||(Qt[e.parentLocale]=[]),Qt[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Jt[t]=new D(N(r,e)),Qt[t]&&Qt[t].forEach((function(t){ne(t.name,t.config)})),ee(t),Jt[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!a(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a=e&&E(i,n,!0)>=e-1)break;e--}a++}return qt}(t)}function ie(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[1]<0||11kt(n[0],n[1])?2:n[3]<0||24Pt(n,a,o)?p(t)._overflowWeeks=!0:null!=c?p(t)._overflowWeekday=!0:(s=Lt(n,r,i,a,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=ae(t._a[0],r[0]),(t._dayOfYear>yt(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Dt(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Dt:function(t,e,n,r,i,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(p(t).weekdayMismatch=!0)}}var se=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ue=/Z|[+-]\d\d(?::?\d\d)?/,le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],he=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fe=/^\/?Date\((\-?\d+)/i;function de(t){var e,n,r,i,a,o,s=t._i,c=se.exec(s)||ce.exec(s);if(c){for(p(t).iso=!0,e=0,n=le.length;en.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Be,on.isUTC=Be,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=A("dates accessor is deprecated. Use date instead.",Ke),on.months=A("months accessor is deprecated. Use month instead",Ct),on.years=A("years accessor is deprecated. Use year instead",bt),on.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),on.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),(t=me(t))._a){var e=t._isUTC?d(t._a):xe(t._a);this._isDSTShifted=this.isValid()&&0h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},Gt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),110;case 1:return this.begin("type_directive"),111;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),113;case 4:return 112;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 68;case 11:return 77;case 12:return 69;case 13:return 82;case 14:return 70;case 15:return 71;case 16:return 72;case 17:case 18:return t.lex.firstGraph()&&this.begin("dir"),19;case 19:return 32;case 20:return 36;case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:return this.popState(),20;case 31:return 83;case 32:return 91;case 33:return 41;case 34:return 88;case 35:return 40;case 36:return 9;case 37:return 84;case 38:return 102;case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:return 64;case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:return 63;case 79:return 45;case 80:return 46;case 81:return 47;case 82:return 48;case 83:return 49;case 84:return 50;case 85:return 51;case 86:return 52;case 87:return 89;case 88:return 92;case 89:return 103;case 90:return 100;case 91:return 93;case 92:case 93:return 101;case 94:return 94;case 95:return 55;case 96:return 74;case 97:return"SEP";case 98:return 73;case 99:return 87;case 100:return 57;case 101:return 56;case 102:return 59;case 103:return 58;case 104:return 98;case 105:return 99;case 106:return 65;case 107:return 43;case 108:return 44;case 109:return 34;case 110:return 35;case 111:return 53;case 112:return 54;case 113:return 109;case 114:return 10;case 115:return 11;case 116:return 12}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%[^\n]*)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*<-->\s*)/,/^(?:\s*[x]--[x]\s*)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-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r|\n|\r\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[21,22,23,24,25,26,27,28,29,30],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],inclusive:!0}}};function qt(){this.yy={}}return Vt.lexer=Gt,qt.prototype=Vt,Vt.Parser=qt,new qt}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,8,10,11,12,13,14,15,16,17,19,21],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],c=[1,15],u=[1,17],l=[1,18],h={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,inclusiveEndDates:12,axisFormat:13,excludes:14,todayMarker:15,title:16,section:17,clickStatement:18,taskTxt:19,taskData:20,click:21,callbackname:22,callbackargs:23,href:24,clickStatementDebug:25,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"inclusiveEndDates",13:"axisFormat",14:"excludes",15:"todayMarker",16:"title",17:"section",19:"taskTxt",20:"taskData",21:"click",22:"callbackname",23:"callbackargs",24:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 9:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 10:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 11:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 12:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 13:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 14:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:r.addTask(a[s-1],a[s]),this.$="task";break;case 17:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 18:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 19:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 20:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 21:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 22:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 23:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 24:case 30:this.$=a[s-1]+" "+a[s];break;case 25:case 26:case 28:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 27:case 29:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s]}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,13:i,14:a,15:o,16:s,17:c,18:16,19:u,21:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:19,11:n,12:r,13:i,14:a,15:o,16:s,17:c,18:16,19:u,21:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},t(e,[2,4]),t(e,[2,16]),t(e,[2,17],{23:[1,23],24:[1,24]}),t(e,[2,23],{22:[1,25]}),t(e,[2,18],{24:[1,26]}),t(e,[2,19]),t(e,[2,21],{23:[1,27]}),t(e,[2,20]),t(e,[2,22])],defaultActions:{},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 10;case 1:case 2:case 3:break;case 4:this.begin("href");break;case 5:this.popState();break;case 6:return 24;case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 22;case 11:this.popState();break;case 12:return 23;case 13:this.begin("click");break;case 14:this.popState();break;case 15:return 21;case 16:return 4;case 17:return 11;case 18:return 12;case 19:return 13;case 20:return 14;case 21:return 15;case 22:return"date";case 23:return 16;case 24:return 17;case 25:return 19;case 26:return 20;case 27:return":";case 28:return 6;case 29:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{callbackargs:{rules:[11,12],inclusive:!1},callbackname:{rules:[8,9,10],inclusive:!1},href:{rules:[5,6],inclusive:!1},click:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],inclusive:!0}}};function d(){this.yy={}}return h.lexer=f,d.prototype=h,h.Parser=d,new d}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],a=[1,16],o=[1,17],s=[1,21],c=[4,6,9,11,17,18,19,21],u={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(a[s],"type_directive");break;case 17:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,7:3,12:4,21:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,19:o,21:n},{1:[2,2]},{14:19,15:[1,20],24:s},t([15,24],[2,16]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:18,10:22,12:4,17:i,18:a,19:o,21:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,12]),{20:[1,23]},t(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},t(r,[2,5]),t(r,[2,13]),t(c,[2,9]),{14:27,24:s},{24:[2,17]},{11:[1,28]},t(c,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function h(){this.yy={}}return u.lexer=l,h.prototype=u,u.Parser=h,new h}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t,e){return r.default.lang.round(i.default.parse(t)[e])}},function(t,e,n){var r=n(112),i=n(82),a=n(24);t.exports=function(t){return a(t)?r(t):i(t)}},function(t,e,n){var r;if(!r)try{r=n(0)}catch(t){}r||(r=window.d3),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t,e,n){var a=i.default.parse(t),o=a[e],s=r.default.channel.clamp[e](o+n);return o!==s&&(a[e]=s),i.default.stringify(a)}},function(t,e,n){var r=n(210),i=n(216);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(38),i=n(212),a=n(213),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(34),i=n(11);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(16).Symbol;t.exports=r},function(t,e,n){(function(t){var r=n(16),i=n(232),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,n(7)(t))},function(t,e,n){var r=n(112),i=n(236),a=n(24);t.exports=function(t){return a(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(241),i=n(77),a=n(242),o=n(121),s=n(243),c=n(34),u=n(110),l=u(r),h=u(i),f=u(a),d=u(o),p=u(s),g=c;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||a&&"[object Promise]"!=g(a.resolve())||o&&"[object Set]"!=g(new o)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case h:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){var r=n(34),i=n(21);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r;try{r={defaults:n(154),each:n(87),isFunction:n(37),isPlainObject:n(158),pick:n(161),has:n(93),range:n(162),uniqueId:n(163)}}catch(t){}r||(r=window._),t.exports=r},function(t){t.exports=JSON.parse('{"name":"mermaid","version":"8.6.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test && yarn e2e","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new(n(176).default)({r:0,g:0,b:0,a:0},"transparent");e.default=r},function(t,e,n){var r=n(58),i=n(59);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,c=e.length;++s-1&&t%1==0&&t-1}(s)?s:(n=s.match(a))?(e=n[0],r.test(e)?"about:blank":s):"about:blank"}}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],a=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:return r.setDirection(a[s-3]),a[s-1];case 4:r.setOptions(a[s-1]),this.$=a[s];break;case 5:a[s-1]+=a[s],this.$=a[s-1];break;case 7:this.$=[];break;case 8:a[s-1].push(a[s]),this.$=a[s-1];break;case 9:this.$=a[s-1];break;case 11:r.commit(a[s]);break;case 12:r.branch(a[s]);break;case 13:r.checkout(a[s]);break;case 14:r.merge(a[s]);break;case 15:r.reset(a[s]);break;case 16:this.$="";break;case 17:this.$=a[s];break;case 18:this.$=a[s-1]+":"+a[s];break;case 19:this.$=a[s-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:n},{5:[1,8]},{7:[1,9]},t(r,[2,7],{10:10,11:[1,11]}),t(i,[2,6]),{6:12,7:e,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},t(i,[2,5]),{7:[1,21]},t(r,[2,8]),{12:[1,22]},t(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},t(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:a,25:31,26:o},{12:a,25:33,26:o},{12:[2,18]},{12:a,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},c={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function u(){this.yy={}}return s.lexer=c,u.prototype=s,s.Parser=u,new u}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){a.length;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10,12],n={trace:function(){},yy:{},symbols_:{error:2,start:3,pie:4,document:5,EOF:6,line:7,statement:8,NL:9,STR:10,VALUE:11,title:12,$accept:0,$end:1},terminals_:{2:"error",4:"pie",6:"EOF",9:"NL",10:"STR",11:"VALUE",12:"title"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:break;case 6:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 7:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),{11:[1,10]},t(e,[2,7]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:case 1:break;case 2:return 4;case 3:return 9;case 4:return"space";case 5:return 12;case 6:this.begin("string");break;case 7:this.popState();break;case 8:return"STR";case 9:return"VALUE";case 10:return 6}},rules:[/^(?:%%[^\n]*)/i,/^(?:\s+)/i,/^(?:pie\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:title\s[^#\n;]+)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{string:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,9,10],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,20,30],i=[1,17],a=[1,20],o=[1,24],s=[1,25],c=[1,26],u=[1,27],l=[20,27,28],h=[4,6,9,11,20,30],f=[23,24,25,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,ALPHANUM:20,cardinality:21,relType:22,ZERO_OR_ONE:23,ZERO_OR_MORE:24,ONE_OR_MORE:25,ONLY_ONE:26,NON_IDENTIFYING:27,IDENTIFYING:28,WORD:29,open_directive:30,type_directive:31,arg_directive:32,close_directive:33,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"ALPHANUM",23:"ZERO_OR_ONE",24:"ZERO_OR_MORE",25:"ONE_OR_MORE",26:"ONLY_ONE",27:"NON_IDENTIFYING",28:"IDENTIFYING",29:"WORD",30:"open_directive",31:"type_directive",32:"arg_directive",33:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:this.$=a[s];break;case 14:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 15:this.$=r.Cardinality.ZERO_OR_ONE;break;case 16:this.$=r.Cardinality.ZERO_OR_MORE;break;case 17:this.$=r.Cardinality.ONE_OR_MORE;break;case 18:this.$=r.Cardinality.ONLY_ONE;break;case 19:this.$=r.Identification.NON_IDENTIFYING;break;case 20:this.$=r.Identification.IDENTIFYING;break;case 21:this.$=a[s].replace(/"/g,"");break;case 22:this.$=a[s];break;case 23:r.parseDirective("%%{","open_directive");break;case 24:r.parseDirective(a[s],"type_directive");break;case 25:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 26:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,7:3,12:4,30:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,30:n},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:i,30:n},{1:[2,2]},{14:18,15:[1,19],33:a},t([15,33],[2,24]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:21,12:4,17:16,20:i,30:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),{18:22,21:23,23:o,24:s,25:c,26:u},t([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},t(r,[2,5]),{17:31,20:i},{22:32,27:[1,33],28:[1,34]},t(l,[2,15]),t(l,[2,16]),t(l,[2,17]),t(l,[2,18]),t(h,[2,9]),{14:35,33:a},{33:[2,25]},{15:[1,36]},{21:37,23:o,24:s,25:c,26:u},t(f,[2,19]),t(f,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},t(h,[2,10]),t(r,[2,12]),t(r,[2,21]),t(r,[2,22])],defaultActions:{5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var x,_,w,k,E,T,A,S,C,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==x&&(x=b()),k=o[w]&&o[w][x]),void 0===k||!k.length||!k[0]){var O="";for(T in C=[],o[w])this.terminals_[T]&&T>h&&C.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(x==f?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:v,expected:C})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+x);switch(k[0]){case 1:n.push(x),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),x=null,_?(x=_,_=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),30;case 1:return this.begin("type_directive"),31;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),33;case 4:return 32;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 29;case 11:return 4;case 12:return 23;case 13:return 24;case 14:return 25;case 15:return 26;case 16:return 23;case 17:return 24;case 18:return 25;case 19:return 27;case 20:return 28;case 21:case 22:return 27;case 23:return 20;case 24:return e.yytext[0];case 25:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};function g(){this.yy={}}return d.lexer=p,g.prototype=d,d.Parser=g,new g}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ALL=0]="ALL",t[t.RGB=1]="RGB",t[t.HSL=2]="HSL"}(r||(r={})),e.TYPE=r},function(t,e,n){"use strict";var r=n(10);t.exports=i;function i(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(t,e){t[e]?t[e]++:t[e]=1}function o(t,e){--t[e]||delete t[e]}function s(t,e,n,i){var a=""+e,o=""+n;if(!t&&a>o){var s=a;a=o,o=s}return a+""+o+""+(r.isUndefined(i)?"\0":i)}function c(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function u(t,e){return s(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var a=n.parent(r);return void 0===a||e.hasNode(a)?(i[r]=a,a):a in i?i[a]:t(a)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,o=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return o&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=o?i:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,a(this._preds[e],t),a(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],o(this._preds[e],t),o(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){var r=n(33)(n(16),"Map");t.exports=r},function(t,e,n){var r=n(217),i=n(224),a=n(226),o=n(227),s=n(228);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){var r=n(109),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{var t=a&&a.require&&a.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}).call(this,n(7)(t))},function(t,e,n){var r=n(62),i=n(234),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(116),i=n(117),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n0&&a(l)?n>1?t(l,n-1,a,o,s):r(s,l):o||(s[s.length]=l)}return s}},function(t,e,n){var r=n(42);t.exports=function(t,e,n){for(var i=-1,a=t.length;++i4,u=c?1:17,l=c?8:4,h=s?0:-1,f=c?255:15;return i.default.set({r:(r>>l*(h+3)&f)*u,g:(r>>l*(h+2)&f)*u,b:(r>>l*(h+1)&f)*u,a:s?(r&f)*u/255:1},t)}}},stringify:function(t){return t.a<1?"#"+a.DEC2HEX[Math.round(t.r)]+a.DEC2HEX[Math.round(t.g)]+a.DEC2HEX[Math.round(t.b)]+r.default.unit.frac2hex(t.a):"#"+a.DEC2HEX[Math.round(t.r)]+a.DEC2HEX[Math.round(t.g)]+a.DEC2HEX[Math.round(t.b)]}};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a=n(15);e.default=function(t,e,n,o){void 0===o&&(o=1);var s=i.default.set({h:r.default.channel.clamp.h(t),s:r.default.channel.clamp.s(e),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(o)});return a.default.stringify(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"a")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t){var e=i.default.parse(t),n=e.r,a=e.g,o=e.b,s=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(a)+.0722*r.default.channel.toLinear(o);return r.default.lang.round(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(102);e.default=function(t){return r.default(t)>=.5}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"a",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"a",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(52);e.default=function(t,e){var n=r.default.parse(t),a={};for(var o in e)e[o]&&(a[o]=n[o]+e[o]);return i.default(t,a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(51);e.default=function(t,e,n){void 0===n&&(n=50);var a=r.default.parse(t),o=a.r,s=a.g,c=a.b,u=a.a,l=r.default.parse(e),h=l.r,f=l.g,d=l.b,p=l.a,g=n/100,y=2*g-1,v=u-p,m=((y*v==-1?y:(y+v)/(1+y*v))+1)/2,b=1-m,x=o*m+h*b,_=s*m+f*b,w=c*m+d*b,k=u*g+p*(1-g);return i.default(x,_,w,k)}},function(t,e,n){var r=n(53),i=n(79),a=n(58),o=n(229),s=n(235),c=n(114),u=n(115),l=n(238),h=n(239),f=n(119),d=n(240),p=n(41),g=n(244),y=n(245),v=n(124),m=n(5),b=n(39),x=n(249),_=n(11),w=n(251),k=n(30),E={};E["[object Arguments]"]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E["[object Object]"]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E["[object Function]"]=E["[object WeakMap]"]=!1,t.exports=function t(e,n,T,A,S,C){var M,O=1&n,N=2&n,D=4&n;if(T&&(M=S?T(e,A,S,C):T(e)),void 0!==M)return M;if(!_(e))return e;var B=m(e);if(B){if(M=g(e),!O)return u(e,M)}else{var L=p(e),F="[object Function]"==L||"[object GeneratorFunction]"==L;if(b(e))return c(e,O);if("[object Object]"==L||"[object Arguments]"==L||F&&!S){if(M=N||F?{}:v(e),!O)return N?h(e,s(M,e)):l(e,o(M,e))}else{if(!E[L])return S?e:{};M=y(e,L,O)}}C||(C=new r);var P=C.get(e);if(P)return P;C.set(e,M),w(e)?e.forEach((function(r){M.add(t(r,n,T,r,e,C))})):x(e)&&e.forEach((function(r,i){M.set(i,t(r,n,T,i,e,C))}));var I=D?N?d:f:N?keysIn:k,j=B?void 0:I(e);return i(j||e,(function(r,i){j&&(r=e[i=r]),a(M,i,t(r,n,T,i,e,C))})),M}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(211))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(33),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(230),i=n(47),a=n(5),o=n(39),s=n(60),c=n(48),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),l=!n&&i(t),h=!n&&!l&&o(t),f=!n&&!l&&!h&&c(t),d=n||l||h||f,p=d?r(t.length,String):[],g=p.length;for(var y in t)!e&&!u.call(t,y)||d&&("length"==y||h&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,g))||p.push(y);return p}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){var r=n(16),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(7)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++nl))return!1;var f=c.get(t);if(f&&c.get(e))return f==e;var d=-1,p=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d0&&(a=c.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(u);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},function(t,e,n){var r=n(10);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority2?e[2]:void 0;for(u&&a(e[0],e[1],u)&&(r=1);++n1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return aMath.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o);return{x:i+n,y:a+r}}},function(t,e,n){t.exports=function t(e){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,c=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,l=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,x=/\s{2,}/g,_=/([^\(])(:+) */g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,T=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,M="-webkit-",O="-moz-",N="-ms-",D=1,B=1,L=0,F=1,P=1,I=1,j=0,R=0,Y=0,z=[],U=[],$=0,W=null,H=0,V=1,G="",q="",X="";function Z(t,e,i,a,o){for(var s,c,l=0,h=0,f=0,d=0,v=0,m=0,b=0,x=0,w=0,E=0,T=0,A=0,S=0,C=0,O=0,N=0,j=0,U=0,W=0,Q=i.length,it=Q-1,at="",ot="",st="",ct="",ut="",lt="";O0&&(ot=ot.replace(r,"")),ot.trim().length>0)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:ot+=i.charAt(O)}b=59}if(1===j)switch(b){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:j=0;case 9:case 13:case 10:case 32:break;default:for(j=0,W=O,v=b,O--,b=59;W0&&(++O,b=v);case 123:W=Q}}switch(b){case 123:for(v=(ot=ot.trim()).charCodeAt(0),T=1,W=++O;O0&&(ot=ot.replace(r,"")),m=ot.charCodeAt(1)){case 100:case 109:case 115:case 45:s=e;break;default:s=z}if(W=(st=Z(e,s,st,m,o+1)).length,Y>0&&0===W&&(W=ot.length),$>0&&(c=nt(3,st,s=J(z,ot,U),e,B,D,W,m,o,a),ot=s.join(""),void 0!==c&&0===(W=(st=c.trim()).length)&&(m=0,st="")),W>0)switch(m){case 115:ot=ot.replace(k,et);case 100:case 109:case 45:st=ot+"{"+st+"}";break;case 107:st=(ot=ot.replace(p,"$1 $2"+(V>0?G:"")))+"{"+st+"}",st=1===P||2===P&&tt("@"+st,3)?"@"+M+st+"@"+st:"@"+st;break;default:st=ot+st,112===a&&(ct+=st,st="")}else st="";break;default:st=Z(e,J(e,ot,U),st,a,o+1)}ut+=st,A=0,j=0,C=0,N=0,U=0,S=0,ot="",st="",b=i.charCodeAt(++O);break;case 125:case 59:if((W=(ot=(N>0?ot.replace(r,""):ot).trim()).length)>1)switch(0===C&&(45===(v=ot.charCodeAt(0))||v>96&&v<123)&&(W=(ot=ot.replace(" ",":")).length),$>0&&void 0!==(c=nt(1,ot,e,t,B,D,ct.length,a,o,a))&&0===(W=(ot=c.trim()).length)&&(ot="\0\0"),v=ot.charCodeAt(0),m=ot.charCodeAt(1),v){case 0:break;case 64:if(105===m||99===m){lt+=ot+i.charAt(O);break}default:if(58===ot.charCodeAt(W-1))break;ct+=K(ot,v,m,ot.charCodeAt(2))}A=0,j=0,C=0,N=0,U=0,ot="",b=i.charCodeAt(++O)}}switch(b){case 13:case 10:if(h+d+f+l+R===0)switch(E){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:C>0&&(j=1)}47===h?h=0:F+A===0&&107!==a&&ot.length>0&&(N=1,ot+="\0"),$*H>0&&nt(0,ot,e,t,B,D,ct.length,a,o,a),D=1,B++;break;case 59:case 125:if(h+d+f+l===0){D++;break}default:switch(D++,at=i.charAt(O),b){case 9:case 32:if(d+l+h===0)switch(x){case 44:case 58:case 9:case 32:at="";break;default:32!==b&&(at=" ")}break;case 0:at="\\0";break;case 12:at="\\f";break;case 11:at="\\v";break;case 38:d+h+l===0&&F>0&&(U=1,N=1,at="\f"+at);break;case 108:if(d+h+l+L===0&&C>0)switch(O-C){case 2:112===x&&58===i.charCodeAt(O-3)&&(L=x);case 8:111===w&&(L=w)}break;case 58:d+h+l===0&&(C=O);break;case 44:h+f+d+l===0&&(N=1,at+="\r");break;case 34:case 39:0===h&&(d=d===b?0:0===d?b:d);break;case 91:d+h+f===0&&l++;break;case 93:d+h+f===0&&l--;break;case 41:d+h+l===0&&f--;break;case 40:if(d+h+l===0){if(0===A)switch(2*x+3*w){case 533:break;default:T=0,A=1}f++}break;case 64:h+f+d+l+C+S===0&&(S=1);break;case 42:case 47:if(d+l+f>0)break;switch(h){case 0:switch(2*b+3*i.charCodeAt(O+1)){case 235:h=47;break;case 220:W=O,h=42}break;case 42:47===b&&42===x&&W+2!==O&&(33===i.charCodeAt(W+2)&&(ct+=i.substring(W,O+1)),at="",h=0)}}if(0===h){if(F+d+l+S===0&&107!==a&&59!==b)switch(b){case 44:case 126:case 62:case 43:case 41:case 40:if(0===A){switch(x){case 9:case 32:case 10:case 13:at+="\0";break;default:at="\0"+at+(44===b?"":"\0")}N=1}else switch(b){case 40:C+7===O&&108===x&&(C=0),A=++T;break;case 41:0==(A=--T)&&(N=1,at+="\0")}break;case 9:case 32:switch(x){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===A&&(N=1,at+="\0")}}ot+=at,32!==b&&9!==b&&(E=b)}}w=x,x=b,O++}if(W=ct.length,Y>0&&0===W&&0===ut.length&&0===e[0].length==0&&(109!==a||1===e.length&&(F>0?q:X)===e[0])&&(W=e.join(",").length+2),W>0){if(s=0===F&&107!==a?function(t){for(var e,n,i=0,a=t.length,o=Array(a);i1)){if(f=c.charCodeAt(c.length-1),d=n.charCodeAt(0),e="",0!==l)switch(f){case 42:case 126:case 62:case 43:case 32:case 40:break;default:e=" "}switch(d){case 38:n=e+q;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:n=e+n+q;break;case 58:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(I>0){n=e+n.substring(8,h-1);break}default:(l<1||s[l-1].length<1)&&(n=e+q+n)}break;case 44:e="";default:n=h>1&&n.indexOf(":")>0?e+n.replace(_,"$1"+q+"$2"):e+n+q}c+=n}o[i]=c.replace(r,"").trim()}return o}(e):e,$>0&&void 0!==(c=nt(2,ct,s,t,B,D,W,a,o,a))&&0===(ct=c).length)return lt+ct+ut;if(ct=s.join(",")+"{"+ct+"}",P*L!=0){switch(2!==P||tt(ct,2)||(L=0),L){case 111:ct=ct.replace(y,":-moz-$1")+ct;break;case 112:ct=ct.replace(g,"::-webkit-input-$1")+ct.replace(g,"::-moz-$1")+ct.replace(g,":-ms-input-$1")+ct}L=0}}return lt+ct+ut}function J(t,e,n){var r=e.trim().split(l),i=r,a=r.length,o=t.length;switch(o){case 0:case 1:for(var s=0,c=0===o?"":t[0]+" ";s0&&F>0)return i.replace(f,"$1").replace(h,"$1"+X);break;default:return t.trim()+i.replace(h,"$1"+t.trim())}default:if(n*F>0&&i.indexOf("\f")>0)return i.replace(h,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+i}function K(t,e,n,r){var u,l=0,h=t+";",f=2*e+3*n+4*r;if(944===f)return function(t){var e=t.length,n=t.indexOf(":",9)+1,r=t.substring(0,n).trim(),i=t.substring(n,e-1).trim();switch(t.charCodeAt(9)*V){case 0:break;case 45:if(110!==t.charCodeAt(10))break;default:var a=i.split((i="",s)),o=0;for(n=0,e=a.length;o64&&h<90||h>96&&h<123||95===h||45===h&&45!==u.charCodeAt(1)))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=G}}l[n++]=u}i+=(0===o?"":",")+l.join(" ")}}return i=r+i+";",1===P||2===P&&tt(i,1)?M+i+i:i}(h);if(0===P||2===P&&!tt(h,1))return h;switch(f){case 1015:return 97===h.charCodeAt(10)?M+h+h:h;case 951:return 116===h.charCodeAt(3)?M+h+h:h;case 963:return 110===h.charCodeAt(5)?M+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return M+h+h;case 978:return M+h+O+h+h;case 1019:case 983:return M+h+O+h+N+h+h;case 883:return 45===h.charCodeAt(8)?M+h+h:h.indexOf("image-set(",11)>0?h.replace(C,"$1-webkit-$2")+h:h;case 932:if(45===h.charCodeAt(4))switch(h.charCodeAt(5)){case 103:return M+"box-"+h.replace("-grow","")+M+h+N+h.replace("grow","positive")+h;case 115:return M+h+N+h.replace("shrink","negative")+h;case 98:return M+h+N+h.replace("basis","preferred-size")+h}return M+h+N+h+h;case 964:return M+h+N+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return u=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),M+"box-pack"+u+M+h+N+"flex-pack"+u+h;case 1005:return a.test(h)?h.replace(i,":"+M)+h.replace(i,":"+O)+h:h;case 1e3:switch(l=(u=h.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(l)){case 226:u=h.replace(w,"tb");break;case 232:u=h.replace(w,"tb-rl");break;case 220:u=h.replace(w,"lr");break;default:return h}return M+h+N+u+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(l=(h=t).length-10,f=(u=(33===h.charCodeAt(l)?h.substring(0,l):h).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:h=h.replace(u,M+u)+";"+h;break;case 207:case 102:h=h.replace(u,M+(f>102?"inline-":"")+"box")+";"+h.replace(u,M+u)+";"+h.replace(u,N+u+"box")+";"+h}return h+";";case 938:if(45===h.charCodeAt(5))switch(h.charCodeAt(6)){case 105:return u=h.replace("-items",""),M+h+M+"box-"+u+N+"flex-"+u+h;case 115:return M+h+N+"flex-item-"+h.replace(T,"")+h;default:return M+h+N+"flex-line-pack"+h.replace("align-content","").replace(T,"")+h}break;case 973:case 989:if(45!==h.charCodeAt(3)||122===h.charCodeAt(4))break;case 931:case 953:if(!0===S.test(t))return 115===(u=t.substring(t.indexOf(":")+1)).charCodeAt(0)?K(t.replace("stretch","fill-available"),e,n,r).replace(":fill-available",":stretch"):h.replace(u,M+u)+h.replace(u,O+u.replace("fill-",""))+h;break;case 962:if(h=M+h+(102===h.charCodeAt(5)?N+h:"")+h,n+r===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(o,"$1-webkit-$2")+h}return h}function tt(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10),i=t.substring(n+1,t.length-1);return W(2!==e?r:r.replace(A,"$1"),i,e)}function et(t,e){var n=K(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(E," or ($1)").substring(4):"("+e+")"}function nt(t,e,n,r,i,a,o,s,c,u){for(var l,h=0,f=e;h<$;++h)switch(l=U[h].call(at,t,f,n,r,i,a,o,s,c,u)){case void 0:case!1:case!0:case null:break;default:f=l}if(f!==e)return f}function rt(t,e,n,r){for(var i=e+1;i0&&(G=i.replace(d,91===a?"":"-")),a=1,1===F?X=i:q=i;var o,s=[X];$>0&&void 0!==(o=nt(-1,n,s,s,B,D,0,0,0,0))&&"string"==typeof o&&(n=o);var c=Z(z,s,n,0,0);return $>0&&void 0!==(o=nt(-2,c,s,s,B,D,c.length,0,0,0))&&"string"!=typeof(c=o)&&(a=0),G="",X="",q="",L=0,B=1,D=1,j*a==0?c:function(t){return t.replace(r,"").replace(v,"").replace(m,"$1").replace(b,"$1").replace(x," ")}(c)}return at.use=function t(e){switch(e){case void 0:case null:$=U.length=0;break;default:if("function"==typeof e)U[$++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n=255?255:t<0?0:t},g:function(t){return t>=255?255:t<0?0:t},b:function(t){return t>=255?255:t<0?0:t},h:function(t){return t%360},s:function(t){return t>=100?100:t<0?0:t},l:function(t){return t>=100?100:t<0?0:t},a:function(t){return t>=1?1:t<0?0:t}},toLinear:function(t){var e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},hsl2rgb:function(t,e){var n=t.h,i=t.s,a=t.l;if(100===i)return 2.55*a;n/=360,i/=100;var o=(a/=100)<.5?a*(1+i):a+i-a*i,s=2*a-o;switch(e){case"r":return 255*r.hue2rgb(s,o,n+1/3);case"g":return 255*r.hue2rgb(s,o,n);case"b":return 255*r.hue2rgb(s,o,n-1/3)}},rgb2hsl:function(t,e){var n=t.r,r=t.g,i=t.b;n/=255,r/=255,i/=255;var a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;if("l"===e)return 100*s;if(a===o)return 0;var c=a-o;if("s"===e)return 100*(s>.5?c/(2-a-o):c/(a+o));switch(a){case n:return 60*((r-i)/c+(r1?e:"0"+e},dec2hex:function(t){var e=Math.round(t).toString(16);return e.length>1?e:"0"+e}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(75),a=n(177),o=function(){function t(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a.default}return t.prototype.set=function(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.TYPE.ALL,this},t.prototype._ensureHSL=function(){void 0===this.data.h&&(this.data.h=r.default.channel.rgb2hsl(this.data,"h")),void 0===this.data.s&&(this.data.s=r.default.channel.rgb2hsl(this.data,"s")),void 0===this.data.l&&(this.data.l=r.default.channel.rgb2hsl(this.data,"l"))},t.prototype._ensureRGB=function(){void 0===this.data.r&&(this.data.r=r.default.channel.hsl2rgb(this.data,"r")),void 0===this.data.g&&(this.data.g=r.default.channel.hsl2rgb(this.data,"g")),void 0===this.data.b&&(this.data.b=r.default.channel.hsl2rgb(this.data,"b"))},Object.defineProperty(t.prototype,"r",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.r?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"r")):this.data.r},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.r=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.g?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"g")):this.data.g},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.b?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"b")):this.data.b},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"h",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.h?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"h")):this.data.h},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"s",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.s?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"s")):this.data.s},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.s=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"l",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.l?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"l")):this.data.l},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.l=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.data.a},set:function(t){this.changed=!0,this.data.a=t},enumerable:!0,configurable:!0}),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(75),i=function(){function t(){this.type=r.TYPE.ALL}return t.prototype.get=function(){return this.type},t.prototype.set=function(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t},t.prototype.reset=function(){this.type=r.TYPE.ALL},t.prototype.is=function(t){return this.type===t},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i={};e.DEC2HEX=i;for(var a=0;a<=255;a++)i[a]=r.default.unit.dec2hex(a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(t){t=t.toLowerCase();var e=i.colors[t];if(e)return r.default.parse(e)},stringify:function(t){var e=r.default.stringify(t);for(var n in i.colors)if(i.colors[n]===e)return n}};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(t){var e=t.charCodeAt(0);if(114===e||82===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],u=n[4],l=n[5],h=n[6],f=n[7],d=n[8];return i.default.set({r:r.default.channel.clamp.r(s?2.55*parseFloat(o):parseFloat(o)),g:r.default.channel.clamp.g(u?2.55*parseFloat(c):parseFloat(c)),b:r.default.channel.clamp.b(h?2.55*parseFloat(l):parseFloat(l)),a:f?r.default.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)}}},stringify:function(t){return t.a<1?"rgba("+r.default.lang.round(t.r)+", "+r.default.lang.round(t.g)+", "+r.default.lang.round(t.b)+", "+r.default.lang.round(t.a)+")":"rgb("+r.default.lang.round(t.r)+", "+r.default.lang.round(t.g)+", "+r.default.lang.round(t.b)+")"}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(t){var e=t.match(a.hueRe);if(e){var n=e[1];switch(e[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(t))},parse:function(t){var e=t.charCodeAt(0);if(104===e||72===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],u=n[4],l=n[5];return i.default.set({h:a._hue2deg(o),s:r.default.channel.clamp.s(parseFloat(s)),l:r.default.channel.clamp.l(parseFloat(c)),a:u?r.default.channel.clamp.a(l?parseFloat(u)/100:parseFloat(u)):1},t)}}},stringify:function(t){return t.a<1?"hsla("+r.default.lang.round(t.h)+", "+r.default.lang.round(t.s)+"%, "+r.default.lang.round(t.l)+"%, "+t.a+")":"hsl("+r.default.lang.round(t.h)+", "+r.default.lang.round(t.s)+"%, "+r.default.lang.round(t.l)+"%)"}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"r")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"g")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"b")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"h")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"s")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"l")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(103);e.default=function(t){return!r.default(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t){try{return r.default.parse(t),!0}catch(t){return!1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"s",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"s",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"l",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t,e){return r.default(t,"l",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);e.default=function(t){return r.default(t,"h",180)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=function(t){return r.default(t,{s:0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(107);e.default=function(t,e){void 0===e&&(e=100);var n=r.default.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15),a=n(106);e.default=function(t,e){var n,o,s,c=i.default.parse(t),u={};for(var l in e)u[l]=(n=c[l],o=e[l],s=r.default.channel.max[l],o>0?(s-n)*o/100:n*o/100);return a.default(t,u)}},function(t,e,n){t.exports={Graph:n(76),version:n(300)}},function(t,e,n){var r=n(108);t.exports=function(t){return r(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(55),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(55);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(55);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(54);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(54),i=n(77),a=n(78);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(37),i=n(214),a=n(11),o=n(110),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,f=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?f:s).test(o(t))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(38),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(215),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},function(t,e,n){var r=n(16)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(218),i=n(54),a=n(77);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(t,e,n){var r=n(219),i=n(220),a=n(221),o=n(222),s=n(223);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(131),i=n(292),a=n(296),o=n(132),s=n(297),c=n(90);t.exports=function(t,e,n){var u=-1,l=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,l=a;else if(h>=200){var g=e?null:s(t);if(g)return c(g);f=!1,l=o,p=new r}else p=e?[]:d;t:for(;++u-1}},function(t,e,n){var r=n(145),i=n(294),a=n(295);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s0;){if(n=c.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(u)}return o}},function(t,e,n){var r;try{r=n(3)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){"use strict";var r=n(4),i=n(345),a=n(348),o=n(349),s=n(8).normalizeRanks,c=n(351),u=n(8).removeEmptyRanks,l=n(352),h=n(353),f=n(354),d=n(355),p=n(364),g=n(8),y=n(17).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new y({multigraph:!0,compound:!0}),n=A(t.graph());return e.setGraph(r.merge({},m,T(n,v),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=A(t.node(n));e.setNode(n,r.defaults(T(i,x),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=A(t.edge(n));e.setEdge(n,r.merge({},k,T(i,w),r.pick(i,E)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function u(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],_={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function T(t,e){return r.mapValues(r.pick(t,e),Number)}function A(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(108);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(315)(n(316));t.exports=r},function(t,e,n){var r=n(25),i=n(24),a=n(30);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var c=r(n,3);e=a(e),n=function(t){return c(s[t],t,s)}}var u=t(e,n,o);return u>-1?s[c?e[u]:u]:void 0}}},function(t,e,n){var r=n(145),i=n(25),a=n(317),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(t,i(e,3),c)}},function(t,e,n){var r=n(155);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(11),i=n(42),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}},function(t,e,n){var r=n(89),i=n(127),a=n(40);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(59),i=n(88),a=n(25);t.exports=function(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}},function(t,e,n){var r=n(95),i=n(323),a=n(35);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(325),i=n(328)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(53),i=n(157),a=n(89),o=n(326),s=n(11),c=n(40),u=n(159);t.exports=function t(e,n,l,h,f){e!==n&&a(n,(function(a,c){if(f||(f=new r),s(a))o(e,n,c,l,t,h,f);else{var d=h?h(u(e,c),a,c+"",e,n,f):void 0;void 0===d&&(d=a),i(e,c,d)}}),c)}},function(t,e,n){var r=n(157),i=n(114),a=n(123),o=n(115),s=n(124),c=n(47),u=n(5),l=n(146),h=n(39),f=n(37),d=n(11),p=n(158),g=n(48),y=n(159),v=n(327);t.exports=function(t,e,n,m,b,x,_){var w=y(t,n),k=y(e,n),E=_.get(k);if(E)r(t,n,E);else{var T=x?x(w,k,n+"",t,e,_):void 0,A=void 0===T;if(A){var S=u(k),C=!S&&h(k),M=!S&&!C&&g(k);T=k,S||C||M?u(w)?T=w:l(w)?T=o(w):C?(A=!1,T=i(k,!0)):M?(A=!1,T=a(k,!0)):T=[]:p(k)||c(k)?(T=w,c(w)?T=v(w):d(w)&&!f(w)||(T=s(k))):A=!1}A&&(_.set(k,T),b(T,k,m,x,_),_.delete(k)),r(t,n,T)}}},function(t,e,n){var r=n(46),i=n(40);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(67),i=n(68);t.exports=function(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(66),i=n(25),a=n(141),o=n(340),s=n(61),c=n(341),u=n(35);t.exports=function(t,e,n){var l=-1;e=r(e.length?e:[u],s(i));var h=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++l,value:t}}));return o(h,(function(t,e){return c(t,e,n)}))}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(342);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,c=n.length;++i=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(42);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,c=null===e,u=e==e,l=r(e);if(!c&&!l&&!o&&t>e||o&&s&&u&&!c&&!l||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!l&&t0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var r=n(4),i=n(8);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,u=t.node(c).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(u===s+1)return;for(t.removeEdge(e),a=0,++s;sc.lim&&(u=c,l=!0);var h=r.filter(e.edges(),(function(e){return l===m(t,t.node(e.v),u)&&l!==m(t,t.node(e.w),u)}));return r.minBy(h,(function(t){return a(e,t)}))}function v(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=y,l.exchangeEdges=v},function(t,e,n){var r=n(4);t.exports=function(t){var e=function(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||u>e[i].lim));a=i,i=r;for(;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,u=o[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(u=o[c])!==s&&t.node(u).maxRank=2),s=l.buildLayerMatrix(t);var y=a(t,s);y0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(4),i=n(8);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),o=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],u=0,l=0,h=0;o.sort((f=!!e,function(t,e){return t.barycentere.barycenter?1:f?e.i-t.i:t.i-e.i})),h=a(c,s,h),r.forEach(o,(function(t){h+=t.vs.length,c.push(t.vs),u+=t.barycenter*t.weight,l+=t.weight,h=a(c,s,h)}));var f;var d={vs:r.flatten(c,!0)};l&&(d.barycenter=u/l,d.weight=l);return d}},function(t,e,n){var r=n(4),i=n(17).Graph;t.exports=function(t,e,n){var a=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},function(t,e,n){var r=n(4);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},function(t,e,n){"use strict";var r=n(4),i=n(8),a=n(365).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){"use strict";var r=n(4),i=n(17).Graph,a=n(8);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,u=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===u)&&(r.forEach(i.slice(o,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&c(n,e,u)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(a=t.node(u[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length)for(var l=((c=r.sortBy(c,(function(t){return s[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=c[h];o[t]===t&&e0}t.exports=function(t,e,r,i){var a,o,s,c,u,l,h,f,d,p,g,y,v;if(a=e.y-t.y,s=t.x-e.x,u=e.x*t.y-t.x*e.y,d=a*r.x+s*r.y+u,p=a*i.x+s*i.y+u,0!==d&&0!==p&&n(d,p))return;if(o=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,h=o*t.x+c*t.y+l,f=o*e.x+c*e.y+l,0!==h&&0!==f&&n(h,f))return;if(0===(g=a*c-o*s))return;return y=Math.abs(g/2),{x:(v=s*l-c*u)<0?(v-y)/g:(v+y)/g,y:(v=o*u-a*l)<0?(v-y)/g:(v+y)/g}}},function(t,e,n){var r=n(43),i=n(31),a=n(153).layout;t.exports=function(){var t=n(371),e=n(374),i=n(375),u=n(376),l=n(377),h=n(378),f=n(379),d=n(380),p=n(381),g=function(n,g){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(g);var y=c(n,"output"),v=c(y,"clusters"),m=c(y,"edgePaths"),b=i(c(y,"edgeLabels"),g),x=t(c(y,"nodes"),g,d);a(g),l(x,g),h(b,g),u(m,g,p);var _=e(v,g);f(_,g),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(e){return arguments.length?(t=e,g):t},g.createClusters=function(t){return arguments.length?(e=t,g):e},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(u=t,g):u},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},function(t,e,n){"use strict";var r=n(43),i=n(97),a=n(12),o=n(31);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),u=t.selectAll("g.node").data(c,(function(t){return t})).classed("update",!0);u.exit().remove(),u.enter().append("g").attr("class","node").style("opacity",0),(u=t.selectAll("g.node")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var u=c.append("g").attr("class","label"),l=i(u,s),h=n[s.shape],f=r.pick(l.node().getBBox(),"width","height");s.elem=this,s.id&&c.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),r.has(s,"width")&&(f.width=s.width),r.has(s,"height")&&(f.height=s.height),f.width+=s.paddingLeft+s.paddingRight,f.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var d=o.select(this);d.select(".label-container").remove();var p=h(d,f,s).classed("label-container",!0);a.applyStyle(p,s.style);var g=p.node().getBBox();s.width=g.width,s.height=g.height})),s=u.exit?u.exit():u.selectAll(null);return a.applyTransition(s,e).style("opacity",0).remove(),u}},function(t,e,n){var r=n(12);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==h[t]&&(t=h[t])),f.trace=function(){},f.debug=function(){},f.info=function(){},f.warn=function(){},f.error=function(){},f.fatal=function(){},t<=h.fatal&&(f.fatal=console.error?console.error.bind(console,p("FATAL"),"color: orange"):console.log.bind(console,"",p("FATAL"))),t<=h.error&&(f.error=console.error?console.error.bind(console,p("ERROR"),"color: orange"):console.log.bind(console,"",p("ERROR"))),t<=h.warn&&(f.warn=console.warn?console.warn.bind(console,p("WARN"),"color: orange"):console.log.bind(console,"",p("WARN"))),t<=h.info&&(f.info=console.info?console.info.bind(console,p("INFO"),"color: lightblue"):console.log.bind(console,"",p("INFO"))),t<=h.debug&&(f.debug=console.debug?console.debug.bind(console,p("DEBUG"),"color: lightgreen"):console.log.bind(console,"",p("DEBUG")))},p=function(t){var e=l()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")},g=n(70),y=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}return e},v=//gi,m=function(t){return t.replace(v,"#br#")},b=function(t){return t.replace(/#br#/g,"
")},x={getRows:function(t){if(!t)return 1;var e=m(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:function(t,e){var n=t,r=!0;if(!e.flowchart||!1!==e.flowchart.htmlLabels&&"false"!==e.flowchart.htmlLabels||(r=!1),r){var i=e.securityLevel;"antiscript"===i?n=y(n):"loose"!==i&&(n=(n=(n=m(n)).replace(//g,">")).replace(/=/g,"="),n=b(n))}return n},hasBreaks:function(t){return//gi.test(t)},splitBreaks:function(t){return t.split(//gi)},lineBreakRegex:v,removeScript:y};function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(T.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),f.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var r,i=[];null!==(r=E.exec(t));)if(r.index===E.lastIndex&&E.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:o})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(n){return f.error("ERROR: ".concat(n.message," - Unable to parse directive").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},C=function(t){return t=t.replace(E,"").replace(A,"\n"),f.debug("Detecting diagram type based on the text "+t),t.match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":"flowchart"},M=function(t,e){var n={};return function(){for(var r=arguments.length,i=new Array(r),a=0;a"},n),x.lineBreakRegex.test(t))return t;var r=t.split(" "),i=[],a="";return r.forEach((function(t,o){var s=Y("".concat(t," "),n),c=Y(a,n);if(s>e){var u=R(t,e,"-",n),l=u.hyphenatedStrings,h=u.remainingWord;i.push.apply(i,[a].concat(w(l))),a=h}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(n.joinWith)}),(function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),R=M((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=t.split(""),a=[],o="";return i.forEach((function(t,s){var c="".concat(o).concat(t);if(Y(c,r)>=e){var u=s+1,l=i.length===u,h="".concat(c).concat(n);a.push(l?c:h),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),Y=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),z(t,e).width},z=M((function(t,e){var n=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r=n.fontSize,i=n.fontFamily,a=n.fontWeight;if(!t)return{width:0,height:0};var o=["sans-serif",i],c=t.split(x.lineBreakRegex),u=[],l=Object(s.select)("body");if(!l.remove)return{width:0,height:0,lineHeight:0};for(var h=l.append("svg"),f=0,d=o;fu[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),U={assignWithDepth:P,wrapLabel:j,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),z(t,e).height},calculateTextWidth:Y,calculateTextDimensions:z,detectInit:function(t){var e=S(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(e)){var r=e.map((function(t){return t.args}));n=P(n,w(r))}else n=e.args;if(n){var i=C(t);["config"].forEach((function(t){void 0!==n[t]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[t],delete n[t])}))}return n},detectDirective:S,detectType:C,isSubstringInArray:function(t,e){for(var n=0;n=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,n){var r;e[0]!==n&&(e=e.reverse()),e.forEach((function(t){N(t,r),r=t}));var i,a=25;r=void 0,e.forEach((function(t){if(r&&!i){var e=N(t,r);if(e=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(s)*o+(e[0].x+i.x)/2,c.y=-Math.cos(s)*o+(e[0].y+i.y)/2,c},formatUrl:function(t,e){var n=t.trim();if(n)return"loose"!==e.securityLevel?Object(g.sanitizeUrl)(n):n},getStylesFromArray:D,generateId:L,random:F,memoize:M,runFunc:function(t){for(var e,n=t.split("."),r=n.length-1,i=n[r],a=window,o=0;o1?s-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:ft();Object.keys(ut).forEach((function(t){return delete ut[t]})),Object.keys(lt).forEach((function(t){return delete lt[t]})),P(ut,t,{clobber:!0}),P(lt,t,{clobber:!0})},defaultConfig:ct}),vt=n(3),mt=n.n(vt);function bt(t){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var xt,_t=pt(),wt={},kt=[],Et=[],Tt=[],At={},St={},Ct=0,Mt=!0,Ot=[],Nt=function(t,e,n,r){var i=t,a=e;i[0].match(/\d/)&&(i=""+i),a[0].match(/\d/)&&(a=""+a);var o={start:i,end:a,type:void 0,text:""};void 0!==(r=n.text)&&(o.text=x.sanitizeText(r.trim(),_t),'"'===o.text[0]&&'"'===o.text[o.text.length-1]&&(o.text=o.text.substring(1,o.text.length-1))),void 0!==n&&(o.type=n.type,o.stroke=n.stroke),kt.push(o)},Dt=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=""+n),void 0!==wt[n]&&wt[n].classes.push(e),void 0!==At[n]&&At[n].classes.push(e)}))},Bt=function(t,e){t.split(",").forEach((function(t){void 0!==e&&(St[t]=x.sanitizeText(e,_t))}))},Lt=function(t){var e=Object(s.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(s.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(s.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(s.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(s.select)(this).classed("hover",!1)}))};Ot.push(Lt);var Ft=function(t){for(var e=0;e/)&&(xt="LR"),xt.match(/.*v/)&&(xt="TB")},setClass:Dt,getTooltip:function(t){return St[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e){var n=t;t[0].match(/\d/)&&(n=""+n),"loose"===pt().securityLevel&&void 0!==e&&void 0!==wt[n]&&Ot.push((function(){var t=document.querySelector('[id="'.concat(n,'"]'));null!==t&&t.addEventListener("click",(function(){U.runFunc(e,n)}),!1)}))}(t,e)})),Bt(t,n),Dt(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=""+n),void 0!==wt[n]&&(wt[n].link=U.formatUrl(e,_t))})),Bt(t,n),Dt(t,"clickable")},bindFunctions:function(t){Ot.forEach((function(e){e(t)}))},getDirection:function(){return xt.trim()},getVertices:function(){return wt},getEdges:function(){return kt},getClasses:function(){return Et},clear:function(){wt={},Et={},kt=[],(Ot=[]).push(Lt),Tt=[],At={},Ct=0,St=[],Mt=!0},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){var r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);var a,o,s,c=[];a=c.concat.apply(c,e),o={boolean:{},number:{},string:{}},s=[],c=a.filter((function(t){var e=bt(t);return""!==t.trim()&&(e in o?!o[e].hasOwnProperty(t)&&(o[e][t]=!0):!(s.indexOf(t)>=0)&&s.push(t))}));for(var u=0;u0&&function t(e,n){var r=Tt[n].nodes;if(!((Pt+=1)>2e3)){if(It[Pt]=n,Tt[n].id===e)return{result:!0,count:0};for(var i=0,a=1;i=0){var s=t(e,o);if(s.result)return{result:!0,count:a+s.count};a+=s.count}i+=1}return{result:!1,count:a}}}("none",Tt.length-1)},getSubGraphs:function(){return Tt},destructLink:function(t,e){var n,r=function(t){switch(t.trim()){case"--x":return{type:"arrow_cross",stroke:"normal"};case"--\x3e":return{type:"arrow_point",stroke:"normal"};case"<--\x3e":return{type:"double_arrow_point",stroke:"normal"};case"x--x":return{type:"double_arrow_cross",stroke:"normal"};case"o--o":return{type:"double_arrow_circle",stroke:"normal"};case"o.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"<==>":return{type:"double_arrow_point",stroke:"thick"};case"o==o":return{type:"double_arrow_circle",stroke:"thick"};case"x==x":return{type:"double_arrow_cross",stroke:"thick"};case"x.-x":case"x-.-x":return{type:"double_arrow_cross",stroke:"dotted"};case"<.->":case"<-.->":return{type:"double_arrow_point",stroke:"dotted"};case"o-.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"--o":return{type:"arrow_circle",stroke:"normal"};case"---":return{type:"arrow_open",stroke:"normal"};case"-.-x":return{type:"arrow_cross",stroke:"dotted"};case"-.->":return{type:"arrow_point",stroke:"dotted"};case"-.-o":return{type:"arrow_circle",stroke:"dotted"};case"-.-":return{type:"arrow_open",stroke:"dotted"};case".-x":return{type:"arrow_cross",stroke:"dotted"};case".->":return{type:"arrow_point",stroke:"dotted"};case".-o":return{type:"arrow_circle",stroke:"dotted"};case".-":return{type:"arrow_open",stroke:"dotted"};case"==x":return{type:"arrow_cross",stroke:"thick"};case"==>":return{type:"arrow_point",stroke:"thick"};case"==o":return{type:"arrow_circle",stroke:"thick"};case"===":return{type:"arrow_open",stroke:"thick"}}}(t);if(e){if((n=function(t){switch(t.trim()){case"<--":return{type:"arrow_point",stroke:"normal"};case"x--":return{type:"arrow_cross",stroke:"normal"};case"o--":return{type:"arrow_circle",stroke:"normal"};case"<-.":return{type:"arrow_point",stroke:"dotted"};case"x-.":return{type:"arrow_cross",stroke:"dotted"};case"o-.":return{type:"arrow_circle",stroke:"dotted"};case"<==":return{type:"arrow_point",stroke:"thick"};case"x==":return{type:"arrow_cross",stroke:"thick"};case"o==":return{type:"arrow_circle",stroke:"thick"};case"--":return{type:"arrow_open",stroke:"normal"};case"==":return{type:"arrow_open",stroke:"thick"};case"-.":return{type:"arrow_open",stroke:"dotted"}}}(e)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n}return r},lex:{firstGraph:function(){return!!Mt&&(Mt=!1,!0)}}},Rt=n(26),Yt=n.n(Rt),zt=n(6),Ut=n.n(zt),$t=n(50),Wt=n.n($t);function Ht(t,e,n){var r=.9*(e.width+e.height),i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],a=ne(t,r,r,i);return n.intersect=function(t){return Ut.a.intersect.polygon(n,i,t)},a}function Vt(t,e,n){var r=e.height,i=r/4,a=e.width+2*i,o=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-r/2},{x:a-i,y:-r},{x:i,y:-r},{x:0,y:-r/2}],s=ne(t,a,r,o);return n.intersect=function(t){return Ut.a.intersect.polygon(n,o,t)},s}function Gt(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function qt(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:i/6,y:-i}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function Xt(t,e,n){var r=e.width,i=e.height,a=[{x:2*i/6,y:0},{x:r+i/6,y:0},{x:r-2*i/6,y:-i},{x:-i/6,y:-i}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function Zt(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r+2*i/6,y:0},{x:r-i/6,y:-i},{x:i/6,y:-i}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function Jt(t,e,n){var r=e.width,i=e.height,a=[{x:i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function Qt(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function Kt(t,e,n){var r=e.height,i=e.width+r/4,a=t.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-i/2).attr("y",-r/2).attr("width",i).attr("height",r);return n.intersect=function(t){return Ut.a.intersect.rect(n,t)},a}function te(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=ne(t,r,i,a);return n.intersect=function(t){return Ut.a.intersect.polygon(n,a,t)},o}function ee(t,e,n){var r=e.width,i=r/2,a=i/(2.5+r/50),o=e.height+a,s="M 0,"+a+" a "+i+","+a+" 0,0,0 "+r+" 0 a "+i+","+a+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+i+","+a+" 0,0,0 "+r+" 0 l 0,"+-o,c=t.attr("label-offset-y",a).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+a)+")");return n.intersect=function(t){var e=Ut.a.intersect.rect(n,t),r=e.x-n.x;if(0!=i&&(Math.abs(r)n.height/2-a)){var o=a*a*(1-r*r/(i*i));0!=o&&(o=Math.sqrt(o)),o=a-o,t.y-n.y>0&&(o=-o),e.y+=o}return e},c}function ne(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}var re={addToRender:function(t){t.shapes().question=Ht,t.shapes().hexagon=Vt,t.shapes().stadium=Kt,t.shapes().subroutine=te,t.shapes().cylinder=ee,t.shapes().rect_left_inv_arrow=Gt,t.shapes().lean_right=qt,t.shapes().lean_left=Xt,t.shapes().trapezoid=Zt,t.shapes().inv_trapezoid=Jt,t.shapes().rect_right_inv_arrow=Qt},addToRenderV2:function(t){t({question:Ht}),t({hexagon:Vt}),t({stadium:Kt}),t({subroutine:te}),t({cylinder:ee}),t({rect_left_inv_arrow:Gt}),t({lean_right:qt}),t({lean_left:Xt}),t({trapezoid:Zt}),t({inv_trapezoid:Jt}),t({rect_right_inv_arrow:Qt})}},ie={},ae=function(t,e,n){var r=Object(s.select)('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var o,s=D(i.styles),c=void 0!==i.text?i.text:i.id;if(pt().flowchart.htmlLabels){var u={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))};(o=Wt()(r,u).node()).parentNode.removeChild(o)}else{var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",s.labelStyle.replace("color:","fill:"));for(var h=c.split(x.lineBreakRegex),f=0;f').concat(a.text,"")):(l.labelType="text",l.label=a.text.replace(x.lineBreakRegex,"\n"),void 0===a.style&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+u,e.setEdge(a.start,a.end,l,i)}))},se=function(t){for(var e=Object.keys(t),n=0;n=0;h--)i=l[h],jt.addVertex(i.id,i.title,"group",void 0,i.classes);var d=jt.getVertices(),p=jt.getEdges(),g=0;for(g=l.length-1;g>=0;g--){i=l[g],Object(s.selectAll)("cluster").append("text");for(var y=0;y"),f.info("vertexText"+i),function(t){var e,n,r=Object(s.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=r.append("xhtml:div"),a=t.label,o=t.isNode?"nodeLabel":"edgeLabel";return i.html(''+a+""),e=i,(n=t.labelStyle)&&e.attr("style",n),i.style("display","inline-block"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:r,label:i.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))});var a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));var o=[];o="string"==typeof i?i.split(/\\n|\n|/gi):Array.isArray(i)?i:[];for(var c=0;c0)t(a,n,r,i);else{var o=n.node(a);f.info("cp ",a," to ",i," with parent ",e),r.setNode(a,o),f.debug("Setting parent",a,n.parent(a)),i!==n.parent(a)&&r.setParent(a,n.parent(a)),e!==i&&a!==e?(f.debug("Setting parent",a,e),r.setParent(a,e)):(f.info("In copy ",e,"root",i,"data",n.node(e),i),f.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));var s=n.edges(a);f.debug("Copying Edges",s),s.forEach((function(t){f.info("Edge",t);var a=n.edge(t.v,t.w,t.name);f.info("Edge data",a,i);try{!function(t,e){return f.info("Decendants of ",e," is ",be[e]),f.info("Edge is ",t),t.v!==e&&(t.w!==e&&(be[e]?(f.info("Here "),be[e].indexOf(t.v)>=0||(!!_e(t.v,e)||(!!_e(t.w,e)||be[e].indexOf(t.w)>=0))):(f.debug("Tilt, ",e,",not in decendants"),!1)))}(t,i)?f.info("Skipping copy of edge ",t.v,"--\x3e",t.w," rootId: ",i," clusterId:",e):(f.info("Copying as ",t.v,t.w,a,t.name),r.setEdge(t.v,t.w,a,t.name),f.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(t){f.error(t)}}))}f.debug("Removing node",a),n.removeNode(a)}))},ke=function t(e,n){f.trace("Searching",e);var r=n.children(e);if(f.trace("Searching children of id ",e,r),r.length<1)return f.trace("This is a valid node",e),e;for(var i=0;i ",a),a}},Ee=function(t){return me[t]&&me[t].externalConnections&&me[t]?me[t].id:t},Te=function(t,e){!t||e>10?f.debug("Opting out, no graph "):(f.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(f.warn("Cluster identified",e," Replacement id in edges: ",ke(e,t)),be[e]=function t(e,n){for(var r=n.children(e),i=[].concat(r),a=0;a0&&(f.debug("Cluster identified",e,be),r.forEach((function(t){t.v!==e&&t.w!==e&&(_e(t.v,e)^_e(t.w,e)&&(f.debug("Edge: ",t," leaves cluster ",e),f.debug("Decendants of ",e,": ",be[e]),me[e].externalConnections=!0))})))})),Ae(t,0),t.edges().forEach((function(e){var n=t.edge(e);f.trace("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.trace("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var r=e.v,i=e.w;f.trace("Fix",me,"ids:",e.v,e.w,"Translateing: ",me[e.v],me[e.w]),(me[e.v]||me[e.w])&&(f.warn("Fixing and trixing - removing",e.v,e.w,e.name),r=Ee(e.v),i=Ee(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),f.warn("Replacing with",r,i,e.name),t.setEdge(r,i,n,e.name))})),f.warn("Adjusted Graph",mt.a.json.write(t)),f.trace(me))},Ae=function t(e,n){if(f.debug("extractor - ",n,mt.a.json.write(e),e.children("D")),n>10)f.error("Bailing out");else{for(var r=e.nodes(),i=!1,a=0;a0}if(i){f.debug("Nodes = ",r,n);for(var c=0;c0){f.debug("Cluster without external connections, without a parent and with children",u,n);var l=e.graph(),h=new mt.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===l.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));f.debug("Old graph before copy",mt.a.json.write(e)),we(u,e,h,u),e.setNode(u,{clusterNode:!0,id:u,clusterData:me[u].clusterData,labelText:me[u].labelText,graph:h}),f.debug("New graph after copy",mt.a.json.write(h)),f.debug("Old graph after copy",mt.a.json.write(e))}else f.debug("Cluster ** ",u," **not meeting the criteria !externalConnections:",!me[u].externalConnections," no parent: ",!e.parent(u)," children ",e.children(u)&&e.children(u).length>0,e.children("D"),n),f.debug(me);else f.debug("Not a cluster",u,n)}r=e.nodes(),f.debug("New list of nodes",r);for(var d=0;d0}var Ne=function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,g,y;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,f=i*n.x+o*n.y+c,d=i*r.x+o*r.y+c,!(0!==f&&0!==d&&Oe(f,d)||(a=r.y-n.y,s=n.x-r.x,u=r.x*n.y-n.x*r.y,l=a*t.x+s*t.y+u,h=a*e.x+s*e.y+u,0!==l&&0!==h&&Oe(l,h)||0==(p=i*s-a*o))))return g=Math.abs(p/2),{x:(y=o*u-s*c)<0?(y-g)/p:(y+g)/p,y:(y=a*c-i*u)<0?(y-g)/p:(y+g)/p}},De=function(t,e,n){var r=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=r-t.width/2-o,u=i-t.height/2-s,l=0;l1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return aMath.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}},Le={node:n.n(Se).a,circle:Me,ellipse:Ce,polygon:De,rect:Be},Fe=function(t,e,n){var r=t.insert("g").attr("class","node default").attr("id",e.id),i=70,a=10;"LR"===n&&(i=10,a=70);var o=r.append("rect").style("stroke","black").style("fill","black").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return ye(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Le.rect(e,t)},r},Pe={question:function(t,e){var n=ge(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding+(i.height+e.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];f.info("Question main (Circle)");var s=ve(r,a,a,o);return ye(e,s),e.intersect=function(t){return f.warn("Intersect called"),Le.polygon(e,o,t)},r},rect:function(t,e){var n=ge(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;f.trace("Classes = ",e.classes);var o=r.insert("rect",":first-child");return o.attr("class","basic label-container").attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),ye(e,o),e.intersect=function(t){return Le.rect(e,t)},r},rectWithTitle:function(t,e){var n;n=e.classes?"node "+e.classes:"node default";var r=t.insert("g").attr("class",n).attr("id",e.id),i=r.insert("rect",":first-child"),a=r.insert("line"),o=r.insert("g").attr("class","label"),c=e.labelText.flat();f.info("Label text",c[0]);var u,l=o.node().appendChild(pe(c[0],e.labelStyle,!0,!0));if(pt().flowchart.htmlLabels){var h=l.children[0],d=Object(s.select)(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}f.info("Text 2",c);var p=c.slice(1,c.length),g=l.getBBox(),y=o.node().appendChild(pe(p.join("
"),e.labelStyle,!0,!0));if(pt().flowchart.htmlLabels){var v=y.children[0],m=Object(s.select)(y);u=v.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}var b=e.padding/2;return Object(s.select)(y).attr("transform","translate( "+(u.width>g.width?0:(g.width-u.width)/2)+", "+(g.height+b+5)+")"),Object(s.select)(l).attr("transform","translate( "+(u.widthe.height/2-s)){var i=s*s*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},r},start:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ye(e,r),e.intersect=function(t){return Le.circle(e,7,t)},n},end:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ye(e,i),e.intersect=function(t){return Le.circle(e,7,t)},n},note:function(t,e){var n=ge(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;f.info("Classes = ",e.classes);var o=r.insert("rect",":first-child");return o.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),ye(e,o),e.intersect=function(t){return Le.rect(e,t)},r},subroutine:function(t,e){var n=ge(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=ve(r,a,o,[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}]);return ye(e,s),e.intersect=function(t){return Le.polygon(e,t)},r},fork:Fe,join:Fe,class_box:function(t,e){var n,r=e.padding/2;n=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",n).attr("id",e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),c=i.insert("line"),u=0,l=4,h=i.insert("g").attr("class","label"),f=0,d=e.classData.annotations&&e.classData.annotations[0],p=h.node().appendChild(pe(e.classData.annotations[0],e.labelStyle,!0,!0)),g=p.getBBox();e.classData.annotations[0]&&(l+=g.height+4,u+=g.width);var y=h.node().appendChild(pe(e.labelText,e.labelStyle,!0,!0)),v=y.getBBox();l+=v.height+4,v.width>u&&(u=v.width);var m=[];e.classData.members.forEach((function(t){var n=h.node().appendChild(pe(t,e.labelStyle,!0,!0)),r=n.getBBox();r.width>u&&(u=r.width),l+=r.height+4,m.push(n)}));var b=[];e.classData.methods.forEach((function(t){var n=h.node().appendChild(pe(t,e.labelStyle,!0,!0)),r=n.getBBox();r.width>u&&(u=r.width),l+=r.height+4,b.push(n)})),l+=8,d&&(Object(s.select)(p).attr("transform","translate( "+-(u+e.padding-g.width/2)/2+", "+-1*l/2+")"),f=g.height+4);var x,_=(u-v.width)/2;if(Object(s.select)(y).attr("transform","translate( "+(-1*u/2+_)+", "+(-1*l/2+f)+")"),f+=v.height+4,o.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-l/2-r+8+f).attr("y2",-l/2-r+8+f),f+=8,m.forEach((function(t){Object(s.select)(t).attr("transform","translate( "+-u/2+", "+(-1*l/2+f+4)+")"),f+=v.height+4})),c.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-l/2-r+8+f).attr("y2",-l/2-r+8+f),f+=8,b.forEach((function(t){Object(s.select)(t).attr("transform","translate( "+-u/2+", "+(-1*l/2+f)+")"),f+=v.height+4})),pt().flowchart.htmlLabels){var w=p.children[0],k=Object(s.select)(p);x=w.getBoundingClientRect(),k.attr("width",x.width),k.attr("height",x.height)}return a.attr("class","outer title-state").attr("x",-u/2-r).attr("y",-l/2-r).attr("width",u+e.padding).attr("height",l+e.padding),ye(e,a),e.intersect=function(t){return Le.rect(e,t)},i}},Ie={},je=function(t){var e=Ie[t.id];f.trace("Transforming node",t,"translate("+(t.x-t.width/2-5)+", "+(t.y-t.height/2-5)+")");t.clusterNode?e.attr("transform","translate("+(t.x-t.width/2-8)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")")},Re={rect:function(t,e){f.trace("Creating subgraph rect for ",e.id,e);var n=t.insert("g").attr("class","cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(pe(e.labelText,e.labelStyle,void 0,!0)),o=a.getBBox();if(pt().flowchart.htmlLabels){var c=a.children[0],u=Object(s.select)(a);o=c.getBoundingClientRect(),u.attr("width",o.width),u.attr("height",o.height)}var l=0*e.padding,h=l/2;f.trace("Data ",e,JSON.stringify(e)),r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-h).attr("y",e.y-e.height/2-h).attr("width",e.width+l).attr("height",e.height+l),i.attr("transform","translate("+(e.x-o.width/2)+", "+(e.y-e.height/2-e.padding/3+3)+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Be(e,t)},n},roundedWithTitle:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(pe(e.labelText,e.labelStyle,void 0,!0)),c=o.getBBox();if(pt().flowchart.htmlLabels){var u=o.children[0],l=Object(s.select)(o);c=u.getBoundingClientRect(),l.attr("width",c.width),l.attr("height",c.height)}c=o.getBBox();var h=0*e.padding,f=h/2;r.attr("class","outer").attr("x",e.x-e.width/2-f).attr("y",e.y-e.height/2-f).attr("width",e.width+h).attr("height",e.height+h),a.attr("class","inner").attr("x",e.x-e.width/2-f).attr("y",e.y-e.height/2-f+c.height-1).attr("width",e.width+h).attr("height",e.height+h-c.height-3),i.attr("transform","translate("+(e.x-c.width/2)+", "+(e.y-e.height/2-e.padding/3+(pt().flowchart.htmlLabels?5:3))+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Be(e,t)},n},noteGroup:function(t,e){var n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Be(e,t)},n},divider:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Be(e,t)},n}},Ye={},ze={},Ue=function(t,e){var n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s},$e=function(t,e,n){f.warn("intersection calc o:",e," i:",n,t);var r=t.x,i=t.y,a=Math.abs(r-n.x),o=t.width/2,s=n.xMath.abs(r-e.x)*c){var y=n.y0&&f.info("Recursive edges",n.edge(n.edges()[0]));var c=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),l=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");return n.nodes().forEach((function(e){var o=n.node(e);if(void 0!==i){var s=JSON.parse(JSON.stringify(i.clusterData));f.info("Setting data for cluster",s),n.setNode(i.id,s),n.setParent(e,i.id,s)}if(f.info("(Insert) Node "+e+": "+JSON.stringify(n.node(e))),o&&o.clusterNode){f.info("Cluster identified",e,o,n.node(e));var c=t(h,o.graph,r,n.node(e));ye(o,c),function(t,e){Ie[e.id]=t}(c,o),f.warn("Recursive render complete",c,o)}else n.children(e).length>0?(f.info("Cluster - the non recursive path",e,o.id,o,n),f.info(ke(o.id,n)),me[o.id]={id:ke(o.id,n),node:o}):(f.info("Node - the non recursive path",e,o.id,o),function(t,e,n){Ie[e.id]=Pe[e.shape](t,e,n)}(h,n.node(e),a))})),n.edges().forEach((function(t){var e=n.edge(t.v,t.w,t.name);f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),f.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),f.info("Fix",me,"ids:",t.v,t.w,"Translateing: ",me[t.v],me[t.w]),function(t,e){var n=pe(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);var a=n.getBBox();if(pt().flowchart.htmlLabels){var o=n.children[0],c=Object(s.select)(n);a=o.getBoundingClientRect(),c.attr("width",a.width),c.attr("height",a.height)}i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),ze[e.id]=r,e.width=a.width,e.height=a.height}(l,e)})),n.edges().forEach((function(t){f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),f.info("#############################################"),f.info("### Layout ###"),f.info("#############################################"),f.info(n),he.a.layout(n),f.info("Graph after layout:",mt.a.json.write(n)),n.nodes().forEach((function(t){var e=n.node(t);f.info("Position "+t+": "+JSON.stringify(n.node(t))),f.info("Position "+t+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e&&e.clusterNode?je(e):n.children(t).length>0?(!function(t,e){f.trace("Inserting cluster");var n=e.shape||"rect";Ye[e.id]=Re[n](t,e)}(c,e),me[e.id].node=e):je(e)})),n.edges().forEach((function(t){var e=n.edge(t);f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e);var i=function(t,e,n,r,i,a){var o=n.points,c=!1,u=a.node(e.v),l=a.node(e.w);if(l.intersect&&u.intersect&&((o=o.slice(1,n.points.length-1)).unshift(u.intersect(o[0])),f.info("Last point",o[o.length-1],l,l.intersect(o[o.length-1])),o.push(l.intersect(o[o.length-1]))),n.toCluster){var h;f.trace("edge",n),f.trace("to cluster",r[n.toCluster]),o=[];var d=!1;n.points.forEach((function(t){var e=r[n.toCluster].node;if(Ue(e,t)||d)d||o.push(t);else{f.trace("inside",n.toCluster,t,h);var i=$e(e,h,t),a=!1;o.forEach((function(t){a=a||t.x===i.x&&t.y===i.y})),o.find((function(t){return t.x===i.x&&t.y===i.y}))?f.warn("no intersect",i,o):o.push(i),d=!0}h=t})),c=!0}if(n.fromCluster){f.trace("edge",n),f.warn("from cluster",r[n.fromCluster]);for(var p,g=[],y=!1,v=o.length-1;v>=0;v--){var m=o[v],b=r[n.fromCluster].node;if(Ue(b,m)||y)f.trace("Outside point",m),y||g.unshift(m);else{f.warn("inside",n.fromCluster,m,b);var x=$e(b,p,m);g.unshift(x),y=!0}p=m}o=g,c=!0}var _,w=o.filter((function(t){return!Number.isNaN(t.y)})),k=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis);switch(n.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;default:_=""}switch(n.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed"}var E=t.append("path").attr("d",k(w)).attr("id",n.id).attr("class"," "+_+(n.classes?" "+n.classes:"")),T="";switch(pt().state.arrowMarkerAbsolute&&(T=(T=(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),f.info("arrowTypeStart",n.arrowTypeStart),f.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":E.attr("marker-start","url("+T+"#"+i+"-crossStart)");break;case"arrow_point":E.attr("marker-start","url("+T+"#"+i+"-pointStart)");break;case"arrow_barb":E.attr("marker-start","url("+T+"#"+i+"-barbStart)");break;case"arrow_circle":E.attr("marker-start","url("+T+"#"+i+"-circleStart)");break;case"aggregation":E.attr("marker-start","url("+T+"#"+i+"-aggregationStart)");break;case"extension":E.attr("marker-start","url("+T+"#"+i+"-extensionStart)");break;case"composition":E.attr("marker-start","url("+T+"#"+i+"-compositionStart)");break;case"dependency":E.attr("marker-start","url("+T+"#"+i+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":E.attr("marker-end","url("+T+"#"+i+"-crossEnd)");break;case"arrow_point":E.attr("marker-end","url("+T+"#"+i+"-pointEnd)");break;case"arrow_barb":E.attr("marker-end","url("+T+"#"+i+"-barbEnd)");break;case"arrow_circle":E.attr("marker-end","url("+T+"#"+i+"-circleEnd)");break;case"aggregation":E.attr("marker-end","url("+T+"#"+i+"-aggregationEnd)");break;case"extension":E.attr("marker-end","url("+T+"#"+i+"-extensionEnd)");break;case"composition":E.attr("marker-end","url("+T+"#"+i+"-compositionEnd)");break;case"dependency":E.attr("marker-end","url("+T+"#"+i+"-dependencyEnd)")}if(c)return o}(u,t,e,me,r,n);!function(t,e){if(f.info("Moving label",t.id,t.label,ze[t.id]),t.label){var n=ze[t.id],r=t.x,i=t.y;if(e){var a=U.calcLabelPosition(e);r=a.x,i=a.y}n.attr("transform","translate("+r+", "+i+")")}}(e,i)})),o},He=function(t,e,n,r,i){de(t,n,r,i),Ie={},ze={},Ye={},be={},xe={},me={},f.warn("Graph before:",mt.a.json.write(e)),Te(e),f.warn("Graph after:",mt.a.json.write(e)),f.warn("Graph ever after:",e.graph()),We(t,e,r)},Ve={},Ge=function(t,e,n){var r=Object(s.select)('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var o,s=D(i.styles),c=void 0!==i.text?i.text:i.id;if(pt().flowchart.htmlLabels){var u={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))};(o=Wt()(r,u).node()).parentNode.removeChild(o)}else{var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",s.labelStyle.replace("color:","fill:"));for(var h=c.split(x.lineBreakRegex),d=0;d=0;h--)i=l[h],f.info("Subgraph - ",i),jt.addVertex(i.id,i.title,"group",void 0,i.classes);var d=jt.getVertices(),p=jt.getEdges();f.info(p);var g=0;for(g=l.length-1;g>=0;g--){i=l[g],Object(s.selectAll)("cluster").append("text");for(var y=0;y0)switch(e.valign){case"top":case"start":s=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":s=function(){return Math.round(e.y+(n+r+e.textMargin)/2)};break;case"bottom":case"end":s=function(){return Math.round(e.y+(n+r+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var c=0;c0&&(r+=(l._groups||l)[0][0].getBBox().height,n=r),a.push(l)}return a},Ke=function(t,e){var n,r,i,a,o,s=t.append("polygon");return s.attr("points",(n=e.x,r=e.y,i=e.width,a=e.height,n+","+r+" "+(n+i)+","+r+" "+(n+i)+","+(r+a-(o=7))+" "+(n+i-1.2*o)+","+(r+a)+" "+n+","+(r+a))),s.attr("class","labelBox"),e.y=e.y+e.height/2,Qe(t,e),s},tn=-1,en=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},nn=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},rn=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var u=c.actorFontSize,l=c.actorFontFamily,h=c.actorFontWeight,f=t.split(x.lineBreakRegex),d=0;d2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===xn.ACTIVE_END){var i=vn(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return ln.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&bn()||!!n.wrap,type:r}),!0},bn=function(){return gn},xn={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},_n=function(t,e,n){var r={actor:t,placement:e,message:n.text,wrap:void 0===n.wrap&&bn()||!!n.wrap},i=[].concat(t,t);hn.push(r),ln.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&bn()||!!n.wrap,type:xn.NOTE,placement:e})},wn=function(t){fn=t.text,dn=void 0===t.wrap&&bn()||!!t.wrap},kn={addActor:yn,addMessage:function(t,e,n,r){ln.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&bn()||!!n.wrap,answer:r})},addSignal:mn,autoWrap:bn,setWrap:function(t){gn=t},enableSequenceNumbers:function(){pn=!0},showSequenceNumbers:function(){return pn},getMessages:function(){return ln},getActors:function(){return un},getActor:function(t){return un[t]},getActorKeys:function(){return Object.keys(un)},getTitle:function(){return fn},parseDirective:function(t,e,n){Co.parseDirective(t,e,n)},getConfig:function(){return yt.getConfig().sequence},getTitleWrapped:function(){return dn},clear:function(){un={},ln=[]},parseMessage:function(t){var e=t.trim(),n={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===e.match(/^[:]?(?:no)?wrap:/)?x.hasBreaks(e)||bn():null!==e.match(/^[:]?wrap:/)||null===e.match(/^[:]?nowrap:/)&&bn()};return f.debug("parseMessage:",n),n},LINETYPE:xn,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:_n,setTitle:wn,apply:function t(e){if(e instanceof Array)e.forEach((function(e){t(e)}));else switch(e.type){case"addActor":yn(e.actor,e.actor,e.description);break;case"activeStart":case"activeEnd":mn(e.actor,void 0,void 0,e.signalType);break;case"addNote":_n(e.actor,e.placement,e.text);break;case"addMessage":mn(e.from,e.to,e.msg,e.signalType);break;case"loopStart":mn(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":mn(void 0,void 0,void 0,e.signalType);break;case"rectStart":mn(void 0,void 0,e.color,e.signalType);break;case"rectEnd":mn(void 0,void 0,void 0,e.signalType);break;case"optStart":mn(void 0,void 0,e.optText,e.signalType);break;case"optEnd":mn(void 0,void 0,void 0,e.signalType);break;case"altStart":case"else":mn(void 0,void 0,e.altText,e.signalType);break;case"altEnd":mn(void 0,void 0,void 0,e.signalType);break;case"setTitle":wn(e.text);break;case"parStart":case"and":mn(void 0,void 0,e.parText,e.signalType);break;case"parEnd":mn(void 0,void 0,void 0,e.signalType)}}};on.parser.yy=kn;var En={},Tn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Sn(on.parser.yy.getConfig())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=this,a=0;function o(o){return function(s){a++;var c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*En.boxMargin,Math.min),i.updateVal(s,"stopy",r+c*En.boxMargin,Math.max),i.updateVal(Tn.data,"startx",t-c*En.boxMargin,Math.min),i.updateVal(Tn.data,"stopx",n+c*En.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*En.boxMargin,Math.min),i.updateVal(s,"stopx",n+c*En.boxMargin,Math.max),i.updateVal(Tn.data,"starty",e-c*En.boxMargin,Math.min),i.updateVal(Tn.data,"stopy",r+c*En.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(Tn.data,"startx",i,Math.min),this.updateVal(Tn.data,"starty",o,Math.min),this.updateVal(Tn.data,"stopx",a,Math.max),this.updateVal(Tn.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){var r=n[t.from.actor],i=Cn(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*En.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+En.activationWidth,stopy:void 0,actor:t.from.actor,anchored:an.anchorElement(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Tn.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},An=function(t,e,n,r){for(var i=0,a=0,o=0;o0&&o.forEach((function(r){if(n=r,i.startx===i.stopx){var a=e[t.from],o=e[t.to];n.from=Math.min(a.x-i.width/2,a.x-a.width/2,n.from),n.to=Math.max(o.x+i.width/2,o.x+a.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-En.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-En.labelBoxWidth})))})),Tn.activations=[],f.debug("Loop type widths:",a),a},Ln={bounds:Tn,drawActors:An,setConf:Sn,draw:function(t,e){on.parser.yy.clear(),on.parser.yy.setWrap(En.wrap),on.parser.parse(t+"\n"),Tn.init(),f.debug("C:".concat(JSON.stringify(En,null,2)));var n=Object(s.select)('[id="'.concat(e,'"]')),r=on.parser.yy.getActors(),i=on.parser.yy.getActorKeys(),a=on.parser.yy.getMessages(),o=on.parser.yy.getTitle(),c=Nn(r,a);En.height=Dn(r,c),An(n,r,i,0);var u=Bn(a,r,c);an.insertArrowHead(n),an.insertArrowCrossHead(n),an.insertSequenceNumber(n);var l=1;a.forEach((function(t){var e,i,a;switch(t.type){case on.parser.yy.LINETYPE.NOTE:i=t.noteModel,function(t,e){Tn.bumpVerticalPos(En.boxMargin),e.height=En.boxMargin,e.starty=Tn.getVerticalPos();var n=an.getNoteRect();n.x=e.startx,n.y=e.starty,n.width=e.width||En.width,n.class="note";var r=t.append("g"),i=an.drawRect(r,n),a=an.getTextObj();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=En.noteFontFamily,a.fontSize=En.noteFontSize,a.fontWeight=En.noteFontWeight,a.anchor=En.noteAlign,a.textMargin=En.noteMargin,a.valign=En.noteAlign,a.wrap=!0;var o=Qe(r,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*En.noteMargin),e.height+=s+2*En.noteMargin,Tn.bumpVerticalPos(s+2*En.noteMargin),e.stopy=e.starty+s+2*En.noteMargin,e.stopx=e.startx+n.width,Tn.insert(e.startx,e.starty,e.stopx,e.stopy),Tn.models.addNote(e)}(n,i);break;case on.parser.yy.LINETYPE.ACTIVE_START:Tn.newActivation(t,n,r);break;case on.parser.yy.LINETYPE.ACTIVE_END:!function(t,e){var r=Tn.endActivation(t);r.starty+18>e&&(r.starty=e-6,e+=12),an.drawActivation(n,r,e,En,Cn(t.from.actor).length),Tn.insert(r.startx,e-10,r.stopx,e)}(t,Tn.getVerticalPos());break;case on.parser.yy.LINETYPE.LOOP_START:On(u,t,En.boxMargin,En.boxMargin+En.boxTextMargin,(function(t){return Tn.newLoop(t)}));break;case on.parser.yy.LINETYPE.LOOP_END:e=Tn.endLoop(),an.drawLoop(n,e,"loop",En),Tn.bumpVerticalPos(e.stopy-Tn.getVerticalPos()),Tn.models.addLoop(e);break;case on.parser.yy.LINETYPE.RECT_START:On(u,t,En.boxMargin,En.boxMargin,(function(t){return Tn.newLoop(void 0,t.message)}));break;case on.parser.yy.LINETYPE.RECT_END:e=Tn.endLoop(),an.drawBackgroundRect(n,e),Tn.models.addLoop(e),Tn.bumpVerticalPos(e.stopy-Tn.getVerticalPos());break;case on.parser.yy.LINETYPE.OPT_START:On(u,t,En.boxMargin,En.boxMargin+En.boxTextMargin,(function(t){return Tn.newLoop(t)}));break;case on.parser.yy.LINETYPE.OPT_END:e=Tn.endLoop(),an.drawLoop(n,e,"opt",En),Tn.bumpVerticalPos(e.stopy-Tn.getVerticalPos()),Tn.models.addLoop(e);break;case on.parser.yy.LINETYPE.ALT_START:On(u,t,En.boxMargin,En.boxMargin+En.boxTextMargin,(function(t){return Tn.newLoop(t)}));break;case on.parser.yy.LINETYPE.ALT_ELSE:On(u,t,En.boxMargin+En.boxTextMargin,En.boxMargin,(function(t){return Tn.addSectionToLoop(t)}));break;case on.parser.yy.LINETYPE.ALT_END:e=Tn.endLoop(),an.drawLoop(n,e,"alt",En),Tn.bumpVerticalPos(e.stopy-Tn.getVerticalPos()),Tn.models.addLoop(e);break;case on.parser.yy.LINETYPE.PAR_START:On(u,t,En.boxMargin,En.boxMargin+En.boxTextMargin,(function(t){return Tn.newLoop(t)}));break;case on.parser.yy.LINETYPE.PAR_AND:On(u,t,En.boxMargin+En.boxTextMargin,En.boxMargin,(function(t){return Tn.addSectionToLoop(t)}));break;case on.parser.yy.LINETYPE.PAR_END:e=Tn.endLoop(),an.drawLoop(n,e,"par",En),Tn.bumpVerticalPos(e.stopy-Tn.getVerticalPos()),Tn.models.addLoop(e);break;default:try{(a=t.msgModel).starty=Tn.getVerticalPos(),a.sequenceIndex=l,function(t,e){Tn.bumpVerticalPos(10);var n=e.startx,r=e.stopx,i=e.starty,a=e.message,o=e.type,s=e.sequenceIndex,c=e.wrap,u=x.splitBreaks(a).length,l=U.calculateTextDimensions(a,En.messageFont()),h=l.height/u;e.height+=h,Tn.bumpVerticalPos(h);var f=an.getTextObj();f.x=n,f.y=i+10,f.width=r-n,f.class="messageText",f.dy="1em",f.text=a,f.fontFamily=En.messageFontFamily,f.fontSize=En.messageFontSize,f.fontWeight=En.messageFontWeight,f.anchor=En.messageAlign,f.valign=En.messageAlign,f.textMargin=En.wrapPadding,f.tspan=!1,f.wrap=c,Qe(t,f);var d,p,g=l.height-10,y=l.width;if(n===r){p=Tn.getVerticalPos()+g,En.rightAngles?d=t.append("path").attr("d","M ".concat(n,",").concat(p," H ").concat(n+Math.max(En.width/2,y/2)," V ").concat(p+25," H ").concat(n)):(g+=En.boxMargin,p=Tn.getVerticalPos()+g,d=t.append("path").attr("d","M "+n+","+p+" C "+(n+60)+","+(p-10)+" "+(n+60)+","+(p+30)+" "+n+","+(p+20))),g+=30;var v=Math.max(y/2,En.width/2);Tn.insert(n-v,Tn.getVerticalPos()-10+g,r+v,Tn.getVerticalPos()+30+g)}else g+=En.boxMargin,p=Tn.getVerticalPos()+g,(d=t.append("line")).attr("x1",n),d.attr("y1",p),d.attr("x2",r),d.attr("y2",p),Tn.insert(n,p-10,r,p);o===on.parser.yy.LINETYPE.DOTTED||o===on.parser.yy.LINETYPE.DOTTED_CROSS||o===on.parser.yy.LINETYPE.DOTTED_OPEN?(d.style("stroke-dasharray","3, 3"),d.attr("class","messageLine1")):d.attr("class","messageLine0");var m="";En.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),d.attr("stroke-width",2),d.attr("stroke","none"),d.style("fill","none"),o!==on.parser.yy.LINETYPE.SOLID&&o!==on.parser.yy.LINETYPE.DOTTED||d.attr("marker-end","url("+m+"#arrowhead)"),o!==on.parser.yy.LINETYPE.SOLID_CROSS&&o!==on.parser.yy.LINETYPE.DOTTED_CROSS||d.attr("marker-end","url("+m+"#crosshead)"),(kn.showSequenceNumbers()||En.showSequenceNumbers)&&(d.attr("marker-start","url("+m+"#sequencenumber)"),t.append("text").attr("x",n).attr("y",p+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(s)),Tn.bumpVerticalPos(g),e.height+=g,e.stopy=e.starty+e.height,Tn.insert(e.fromBounds,e.starty,e.toBounds,e.stopy)}(n,a),Tn.models.addMessage(a)}catch(t){f.error("error while drawing message",t)}}[on.parser.yy.LINETYPE.SOLID_OPEN,on.parser.yy.LINETYPE.DOTTED_OPEN,on.parser.yy.LINETYPE.SOLID,on.parser.yy.LINETYPE.DOTTED,on.parser.yy.LINETYPE.SOLID_CROSS,on.parser.yy.LINETYPE.DOTTED_CROSS].includes(t.type)&&l++})),En.mirrorActors&&(Tn.bumpVerticalPos(2*En.boxMargin),An(n,r,i,Tn.getVerticalPos()));var h=Tn.getBounds().bounds;f.debug("For line height fix Querying: #"+e+" .actor-line"),Object(s.selectAll)("#"+e+" .actor-line").attr("y2",h.stopy);var d=h.stopy-h.starty+2*En.diagramMarginY;En.mirrorActors&&(d=d-En.boxMargin+En.bottomMarginAdj);var p=h.stopx-h.startx+2*En.diagramMarginX;o&&n.append("text").text(o).attr("x",(h.stopx-h.startx)/2-2*En.diagramMarginX).attr("y",-25),En.useMaxWidth?(n.attr("height","100%"),n.attr("width","100%"),n.attr("style","max-width:"+p+"px;")):(n.attr("height",d),n.attr("width",p));var g=o?40:0;n.attr("viewBox",h.startx-En.diagramMarginX+" -"+(En.diagramMarginY+g)+" "+p+" "+(d+g)),f.debug("models:",Tn.models)}},Fn=n(27),Pn=n.n(Fn);function In(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=6&&n.indexOf("weekends")>=0||(n.indexOf(t.format("dddd").toLowerCase())>=0||n.indexOf(t.format(e.trim()))>=0)},Kn=function(t,e,n){if(n.length&&!t.manualEndTime){var r=l()(t.startTime,e,!0);r.add(1,"d");var i=l()(t.endTime,e,!0),a=tr(r,i,e,n);t.endTime=i.toDate(),t.renderEndTime=a}},tr=function(t,e,n,r){for(var i=!1,a=null;t<=e;)i||(a=e.toDate()),(i=Qn(t,n,r))&&e.add(1,"d"),t.add(1,"d");return a},er=function(t,e,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var i=null;if(r[1].split(" ").forEach((function(t){var e=cr(t);void 0!==e&&(i?e.endTime>i.endTime&&(i=e):i=e)})),i)return i.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var o=l()(n,e.trim(),!0);return o.isValid()?o.toDate():(f.debug("Invalid date:"+n),f.debug("With date format:"+e.trim()),new Date)},nr=function(t,e){if(null!==t)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},rr=function(t,e,n,r){r=r||!1,n=n.trim();var i=l()(n,e.trim(),!0);return i.isValid()?(r&&i.add(1,"d"),i.toDate()):nr(/^([\d]+)([wdhms])/.exec(n.trim()),l()(t))},ir=0,ar=function(t){return void 0===t?"task"+(ir+=1):t},or=[],sr={},cr=function(t){var e=sr[t];return or[e]},ur=function(){for(var t=function(t){var e=or[t],n="";switch(or[t].raw.startTime.type){case"prevTaskEnd":var r=cr(e.prevTaskId);e.startTime=r.endTime;break;case"getStartDate":(n=er(0,Yn,or[t].raw.startTime.startData))&&(or[t].startTime=n)}return or[t].startTime&&(or[t].endTime=rr(or[t].startTime,Yn,or[t].raw.endTime.data,Zn),or[t].endTime&&(or[t].processed=!0,or[t].manualEndTime=l()(or[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Kn(or[t],Yn,$n))),or[t].processed},e=!0,n=0;nr?i=1:n0&&(e=t.classes.join(" "));for(var n=0,r=0;rn-e?n+a+1.5*gr.leftPadding>u?e+r-5:n+r+5:(n-e)/2+e+r})).attr("y",(function(t,r){return t.order*e+gr.barHeight/2+(gr.fontSize/2-2)+n})).attr("text-height",i).attr("class",(function(t){var e=o(t.startTime),n=o(t.endTime);t.milestone&&(n=e+i);var r=this.getBBox().width,a="";t.classes.length>0&&(a=t.classes.join(" "));var s=0;console.log(gr);for(var l=0;ln-e?n+r+1.5*gr.leftPadding>u?a+" taskTextOutsideLeft taskTextOutside"+s+" "+h:a+" taskTextOutsideRight taskTextOutside"+s+" "+h+" width-"+r:a+" taskText taskText"+s+" "+h+" width-"+r}))}(t,i,u,f,r,0,e),function(t,e){for(var n=[],r=0,i=0;i0&&a.setAttribute("dy","1em"),a.textContent=e[i],r.appendChild(a)}return r})).attr("x",10).attr("y",(function(i,a){if(!(a>0))return i[1]*t/2+e;for(var o=0;o0){var r=t.split("~");n=r[0],e=r[1]}return{className:n,type:e}},Er=function(t){var e=kr(t);void 0===xr[e.className]&&(xr[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+e.className+"-"+_r},_r++)},Tr=function(t){for(var e=Object.keys(xr),n=0;n>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},Sr=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n="classid-"+n),void 0!==xr[n]&&xr[n].cssClasses.push(e)}))},Cr=function(t,e,n){var r=t,i=Tr(r);"loose"===mr.securityLevel&&void 0!==e&&void 0!==xr[r]&&(n&&(xr[r].tooltip=x.sanitizeText(n,mr)),wr.push((function(){var t=document.querySelector('[id="'.concat(i,'"]'));null!==t&&t.addEventListener("click",(function(){U.runFunc(e,i)}),!1)})))},Mr={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Or=function(t){var e=Object(s.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(s.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(s.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(s.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(s.select)(this).classed("hover",!1)}))};wr.push(Or);var Nr={parseDirective:function(t,e,n){Co.parseDirective(t,e,n)},addClass:Er,bindFunctions:function(t){wr.forEach((function(e){e(t)}))},clear:function(){br=[],xr={},(wr=[]).push(Or)},getClass:function(t){return xr[t]},getClasses:function(){return xr},addAnnotation:function(t,e){var n=kr(t).className;xr[n].annotations.push(e)},getRelations:function(){return br},addRelation:function(t){f.debug("Adding relation: "+JSON.stringify(t)),Er(t.id1),Er(t.id2),t.id1=kr(t.id1).className,t.id2=kr(t.id2).className,br.push(t)},addMember:Ar,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return Ar(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(1).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:Mr,setClickEvent:function(t,e,n){t.split(",").forEach((function(t){Cr(t,e,n)})),Sr(t,"clickable")},setCssClass:Sr,setLink:function(t,e,n){t.split(",").forEach((function(t){var r=t;t[0].match(/\d/)&&(r="classid-"+r),void 0!==xr[r]&&(xr[r].link=U.formatUrl(e,mr),n&&(xr[r].tooltip=x.sanitizeText(n,mr)))})),Sr(t,"clickable")},lookUpDomId:Tr},Dr=n(13),Br=n.n(Dr),Lr=0,Fr=function(t){var e=t.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!n?Pr(e):n?Ir(n):jr(t)},Pr=function(t){var e="";try{e=(t[1]?t[1].trim():"")+(t[2]?t[2].trim():"")+(t[3]?Yr(t[3].trim()):"")+" "+(t[4]?t[4].trim():"")}catch(n){e=t}return{displayText:e,cssStyle:""}},Ir=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?Yr(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+Yr(t[5]).trim():""),e=zr(o)}catch(e){n=t}return{displayText:n,cssStyle:e}},jr=function(t){var e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/\+|-|~|#/)&&(o=c),s=t.substring(1,i).trim());var u=t.substring(i+1,a),l=t.substring(a+1,1);n=zr(l),e=o+s+"("+Yr(u.trim())+")",a<"".length&&""!==(r=t.substring(a+2).trim())&&(r=" : "+Yr(r))}else e=Yr(t);return{displayText:e,cssStyle:n}},Rr=function(t,e,n,r){var i=Fr(e),a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},Yr=function t(e){var n=e;return-1!=e.indexOf("~")?t(n=(n=n.replace("~","<")).replace("~",">")):n},zr=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},Ur=function(t,e,n){f.info("Rendering class "+e);var r="classGroup ";e.cssClasses.length>0&&(r+=e.cssClasses.join(" "));var i,a=e.id,o={id:a,label:e.id,width:0,height:0},s=t.append("g").attr("id",Tr(a)).attr("class",r);i=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var c=!0;e.annotations.forEach((function(t){var e=i.append("tspan").text("«"+t+"»");c||e.attr("dy",n.textHeight),c=!1}));var u=e.id;void 0!==e.type&&""!==e.type&&(u+="<"+e.type+">");var l=i.append("tspan").text(u).attr("class","title");c||l.attr("dy",n.textHeight);var h=i.node().getBBox().height,d=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),p=s.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){Rr(p,t,c,n),c=!1}));var g=p.node().getBBox(),y=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+g.height).attr("y2",n.padding+h+n.dividerMargin+g.height),v=s.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+g.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){Rr(v,t,c,n),c=!1}));var m=s.node().getBBox(),b=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*n.padding).attr("height",m.height+n.padding+.5*n.dividerMargin).node().getBBox().width;return i.node().childNodes.forEach((function(t){t.setAttribute("x",(b-t.getBBox().width)/2)})),e.tooltip&&i.insert("title").text(e.tooltip),d.attr("x2",b),y.attr("x2",b),o.width=b,o.height=m.height+n.padding+.5*n.dividerMargin,o},$r=function(t,e,n,r){var i=function(t){switch(t){case Mr.AGGREGATION:return"aggregation";case Mr.EXTENSION:return"extension";case Mr.COMPOSITION:return"composition";case Mr.DEPENDENCY:return"dependency"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var a,o,c=e.points,u=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis),l=t.append("path").attr("d",u(c)).attr("id","edge"+Lr).attr("class","relation"),h="";r.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&l.attr("class","relation dashed-line"),"none"!==n.relation.type1&&l.attr("marker-start","url("+h+"#"+i(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&l.attr("marker-end","url("+h+"#"+i(n.relation.type2)+"End)");var d,p,g,y,v=e.points.length,m=U.calcLabelPosition(e.points);if(a=m.x,o=m.y,v%2!=0&&v>1){var b=U.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),x=U.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[v-1]);f.debug("cardinality_1_point "+JSON.stringify(b)),f.debug("cardinality_2_point "+JSON.stringify(x)),d=b.x,p=b.y,g=x.x,y=x.y}if(void 0!==n.title){var _=t.append("g").attr("class","classLabel"),w=_.append("text").attr("class","label").attr("x",a).attr("y",o).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=w;var k=w.node().getBBox();_.insert("rect",":first-child").attr("class","box").attr("x",k.x-r.padding/2).attr("y",k.y-r.padding/2).attr("width",k.width+r.padding).attr("height",k.height+r.padding)}(f.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1)&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",d).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1);void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",g).attr("y",y).attr("fill","black").attr("font-size","6").text(n.relationTitle2);Lr++};Dr.parser.yy=Nr;var Wr={},Hr={dividerMargin:10,padding:5,textHeight:10},Vr=function(t){for(var e=Object.keys(Wr),n=0;n "+t.w+": "+JSON.stringify(i.edge(t))),$r(r,i.edge(t),i.edge(t).relation,Hr))}));var h=r.node().getBBox(),d=h.width+40,p=h.height+40;Hr.useMaxWidth?(r.attr("width","100%"),r.attr("style","max-width: ".concat(d,"px;"))):(r.attr("height",p),r.attr("width",d));var g="".concat(h.x-20," ").concat(h.y-20," ").concat(d," ").concat(p);f.debug("viewBox ".concat(g)),r.attr("viewBox",g)};Dr.parser.yy=Nr;var Xr={dividerMargin:10,padding:5,textHeight:10},Zr=function(t){Object.keys(t).forEach((function(e){Xr[e]=t[e]}))},Jr=function(t,e){f.info("Drawing class"),Nr.clear(),Dr.parser.parse(t);var n=pt().flowchart;f.info("config:",n);var r=n.nodeSpacing||50,i=n.rankSpacing||50,a=new mt.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TD",nodesep:r,ranksep:i,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),o=Nr.getClasses(),c=Nr.getRelations();f.info(c),function(t,e){var n=Object.keys(t);f.info("keys:",n),f.info(t),n.forEach((function(n){var r=t[n],i={labelStyle:""},a=void 0!==r.text?r.text:r.id,o="";switch(r.type){case"class":o="class_box";break;default:o="class_box"}e.setNode(r.id,{labelStyle:i.labelStyle,shape:o,labelText:a,classData:r,rx:0,ry:0,class:"default",style:i.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:pt().flowchart.padding}),f.info("setNode",{labelStyle:i.labelStyle,shape:o,labelText:a,rx:0,ry:0,class:"default",style:i.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:pt().flowchart.padding})}))}(o,a),function(t,e){var n=0;t.forEach((function(r){n++;var i={classes:"relation"};i.pattern=1==r.relation.lineType?"dashed":"solid",i.id="id"+n,"arrow_open"===r.type?i.arrowhead="none":i.arrowhead="normal",f.info(i,r),i.arrowTypeStart=Qr(r.relation.type1),i.arrowTypeEnd=Qr(r.relation.type2);var a="",o="";if(void 0!==r.style){var c=D(r.style);a=c.style,o=c.labelStyle}else a="fill:none";i.style=a,i.labelStyle=o,void 0!==r.interpolate?i.curve=O(r.interpolate,s.curveLinear):void 0!==t.defaultInterpolate?i.curve=O(t.defaultInterpolate,s.curveLinear):i.curve=O(Xr.curve,s.curveLinear),r.text=r.title,void 0===r.text?void 0!==r.style&&(i.arrowheadStyle="fill: #333"):(i.arrowheadStyle="fill: #333",i.labelpos="c",pt().flowchart.htmlLabels,i.labelType="text",i.label=r.text.replace(x.lineBreakRegex,"\n"),void 0===r.style&&(i.style=i.style||"stroke: #333; stroke-width: 1.5px;fill:none"),i.labelStyle=i.labelStyle.replace("color:","fill:")),e.setEdge(r.id1,r.id2,i,n)}))}(c,a);var u=Object(s.select)('[id="'.concat(e,'"]')),l=Object(s.select)("#"+e+" g");He(l,a,["aggregation","extension","composition","dependency"],"classDiagram",e);var h=u.node().getBBox(),d=h.width+16,p=h.height+16;if(f.debug("new ViewBox 0 0 ".concat(d," ").concat(p),"translate(".concat(8-a._label.marginx,", ").concat(8-a._label.marginy,")")),n.useMaxWidth?(u.attr("width","100%"),u.attr("style","max-width: ".concat(d,"px;"))):(u.attr("height",p),u.attr("width",d)),u.attr("viewBox","0 0 ".concat(d," ").concat(p)),u.select("g").attr("transform","translate(".concat(8-a._label.marginx,", ").concat(8-h.y,")")),!n.htmlLabels)for(var g=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),y=0;y0&&o.length>0){var c={stmt:"state",id:L(),type:"divider",doc:ei(o)};i.push(ei(c)),n.doc=i}n.doc.forEach((function(e){return t(n,e,!0)}))}}({id:"root"},{id:"root",doc:ni},!0),{id:"root",doc:ni}},extract:function(t){var e;e=t.doc?t.doc:t,f.info(e),si(),f.info("Extract",e),e.forEach((function(t){"state"===t.stmt&&oi(t.id,t.type,t.doc,t.description,t.note),"relation"===t.stmt&&ci(t.state1.id,t.state2.id,t.description)}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()}},di=n(22),pi=n.n(di),gi={},yi=function(t,e){gi[t]=e},vi=function(t,e){var n=t.append("text").attr("x",2*pt().state.padding).attr("y",pt().state.textHeight+1.3*pt().state.padding).attr("font-size",pt().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",pt().state.padding).attr("y",r+.4*pt().state.padding+pt().state.dividerMargin+pt().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(!function(t,e,n){var r=t.append("tspan").attr("x",2*pt().state.padding).text(e);n||r.attr("dy",pt().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",pt().state.padding).attr("y1",pt().state.padding+r+pt().state.dividerMargin/2).attr("y2",pt().state.padding+r+pt().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),u=Math.max(c.width,n.width);return s.attr("x2",u+3*pt().state.padding),t.insert("rect",":first-child").attr("x",pt().state.padding).attr("y",pt().state.padding).attr("width",u+2*pt().state.padding).attr("height",c.height+r+2*pt().state.padding).attr("rx",pt().state.radius),t},mi=function(t,e,n){var r,i=pt().state.padding,a=2*pt().state.padding,o=t.node().getBBox(),s=o.width,c=o.x,u=t.append("text").attr("x",0).attr("y",pt().state.titleShift).attr("font-size",pt().state.fontSize).attr("class","state-title").text(e.id),l=u.node().getBBox().width+a,h=Math.max(l,s);h===s&&(h+=a);var f=t.node().getBBox();e.doc,r=c-i,l>s&&(r=(s-h)/2+i),Math.abs(c-f.x)s&&(r=c-(l-s)/2);var d=1-pt().state.textHeight;return t.insert("rect",":first-child").attr("x",r).attr("y",d).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+pt().state.textHeight+pt().state.titleShift+1).attr("rx","0"),u.attr("x",r+i),l<=s&&u.attr("x",c+(h-a)/2-l/2+i),t.insert("rect",":first-child").attr("x",r).attr("y",pt().state.titleShift-pt().state.textHeight-pt().state.padding).attr("width",h).attr("height",3*pt().state.textHeight).attr("rx",pt().state.radius),t.insert("rect",":first-child").attr("x",r).attr("y",pt().state.titleShift-pt().state.textHeight-pt().state.padding).attr("width",h).attr("height",f.height+3+2*pt().state.textHeight).attr("rx",pt().state.radius),t},bi=function(t,e){e.attr("class","state-note");var n=e.append("rect").attr("x",0).attr("y",pt().state.padding),r=function(t,e,n,r){var i=0,a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o=t.replace(/\r\n/g,"
"),s=(o=o.replace(/\n/g,"
")).split(x.lineBreakRegex),c=1.25*pt().state.noteMargin,u=!0,l=!1,h=void 0;try{for(var f,d=s[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value.trim();if(p.length>0){var g=a.append("tspan");if(g.text(p),0===c)c+=g.node().getBBox().height;i+=c,g.attr("x",e+pt().state.noteMargin),g.attr("y",n+i+1.25*pt().state.noteMargin)}}}catch(t){l=!0,h=t}finally{try{u||null==d.return||d.return()}finally{if(l)throw h}}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=r.textWidth,a=r.textHeight;return n.attr("height",a+2*pt().state.noteMargin),n.attr("width",i+2*pt().state.noteMargin),n},xi=function(t,e){var n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").style("stroke","black").style("fill","black").attr("r",pt().state.sizeUnit).attr("cx",pt().state.padding+pt().state.sizeUnit).attr("cy",pt().state.padding+pt().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").style("stroke","black").style("fill","white").attr("r",pt().state.sizeUnit+pt().state.miniPadding).attr("cx",pt().state.padding+pt().state.sizeUnit+pt().state.miniPadding).attr("cy",pt().state.padding+pt().state.sizeUnit+pt().state.miniPadding),t.append("circle").style("stroke","black").style("fill","black").attr("r",pt().state.sizeUnit).attr("cx",pt().state.padding+pt().state.sizeUnit+2).attr("cy",pt().state.padding+pt().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var n=pt().state.forkWidth,r=pt().state.forkHeight;if(e.parentId){var i=n;n=r,r=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",pt().state.padding).attr("y",pt().state.padding)}(i,e),"note"===e.type&&bi(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",pt().state.textHeight).attr("class","divider").attr("x2",2*pt().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var n=t.append("text").attr("x",2*pt().state.padding).attr("y",pt().state.textHeight+2*pt().state.padding).attr("font-size",pt().state.fontSize).attr("class","state-title").text(e.id),r=n.node().getBBox();t.insert("rect",":first-child").attr("x",pt().state.padding).attr("y",pt().state.padding).attr("width",r.width+2*pt().state.padding).attr("height",r.height+2*pt().state.padding).attr("rx",pt().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&vi(i,e);var a=i.node().getBBox();return r.width=a.width+2*pt().state.padding,r.height=a.height+2*pt().state.padding,yi(n,r),r},_i=0;di.parser.yy=fi;var wi={},ki=function t(e,n,r,i){var a,o=new mt.a.Graph({compound:!0,multigraph:!0}),c=!0;for(a=0;a "+t.w+": "+JSON.stringify(o.edge(t))),function(t,e,n){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var r=e.points,i=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis),a=t.append("path").attr("d",i(r)).attr("id","edge"+_i).attr("class","transition"),o="";if(pt().state.arrowMarkerAbsolute&&(o=(o=(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+o+"#"+function(t){switch(t){case fi.relationType.AGGREGATION:return"aggregation";case fi.relationType.EXTENSION:return"extension";case fi.relationType.COMPOSITION:return"composition";case fi.relationType.DEPENDENCY:return"dependency"}}(fi.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var c=t.append("g").attr("class","stateLabel"),u=U.calcLabelPosition(e.points),l=u.x,h=u.y,d=x.getRows(n.title),p=0,g=[],y=0,v=0,m=0;m<=d.length;m++){var b=c.append("text").attr("text-anchor","middle").text(d[m]).attr("x",l).attr("y",h+p),_=b.node().getBBox();if(y=Math.max(y,_.width),v=Math.min(v,_.x),f.info(_.x,l,h+p),0===p){var w=b.node().getBBox();p=w.height,f.info("Title height",p,h)}g.push(b)}var k=p*d.length;if(d.length>1){var E=(d.length-1)*p*.5;g.forEach((function(t,e){return t.attr("y",h+e*p-E)})),k=p*d.length}var T=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",l-y/2-pt().state.padding/2).attr("y",h-k/2-pt().state.padding/2-3.5).attr("width",y+pt().state.padding).attr("height",k+pt().state.padding),f.info(T)}_i++}(n,o.edge(t),o.edge(t).relation))})),k=w.getBBox();var E={id:r||"root",label:r||"root",width:0,height:0};return E.width=k.width+2*ti.padding,E.height=k.height+2*ti.padding,f.debug("Doc rendered",E,o),E},Ei=function(){},Ti=function(t,e){ti=pt().state,di.parser.yy.clear(),di.parser.parse(t),f.debug("Rendering diagram "+t);var n=Object(s.select)("[id='".concat(e,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new mt.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var r=fi.getRootDoc();ki(r,n,void 0,!1);var i=ti.padding,a=n.node().getBBox(),o=a.width+2*i,c=a.height+2*i;ti.useMaxWidth?(n.attr("width","100%"),n.attr("style","max-width: ".concat(1.75*o,"px;"))):n.attr("width",1.75*o),n.attr("viewBox","".concat(a.x-ti.padding," ").concat(a.y-ti.padding," ")+o+" "+c)},Ai={},Si={},Ci=function(t,e,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),Si[n.id]||(Si[n.id]={id:n.id,shape:i,description:n.id,classes:"statediagram-state"}),n.description&&(Array.isArray(Si[n.id].description)?(Si[n.id].shape="rectWithTitle",Si[n.id].description.push(n.description)):Si[n.id].description.length>0?(Si[n.id].shape="rectWithTitle",Si[n.id].description===n.id?Si[n.id].description=[n.description]:Si[n.id].description=[Si[n.id].description,n.description]):(Si[n.id].shape="rect",Si[n.id].description=n.description)),!Si[n.id].type&&n.doc&&(f.info("Setting cluser for ",n.id),Si[n.id].type="group",Si[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",Si[n.id].classes=Si[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var a={labelStyle:"",shape:Si[n.id].shape,labelText:Si[n.id].description,classes:Si[n.id].classes,style:"",id:n.id,type:Si[n.id].type,padding:15};if(n.note){var o={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",type:Si[n.id].type,padding:15},s={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:Si[n.id].classes,style:"",id:n.id+"----parent",type:"group",padding:0};t.setNode(n.id+"----parent",s),t.setNode(o.id,o),t.setNode(n.id,a),t.setParent(n.id,n.id+"----parent"),t.setParent(o.id,n.id+"----parent");var c=n.id,u=o.id;"left of"===n.note.position&&(c=o.id,u=n.id),t.setEdge(c,u,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(n.id,a)}e&&"root"!==e.id&&(f.info("Setting node ",n.id," to be child of its parent ",e.id),t.setParent(n.id,e.id)),n.doc&&(f.info("Adding nodes children "),Oi(t,n,n.doc,!r))},Mi=0,Oi=function(t,e,n,r){f.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)Ci(t,e,n,r);else if("relation"===n.stmt){Ci(t,e,n.state1,r),Ci(t,e,n.state2,r);var i={id:"edge"+Mi,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},a=n.state1.id,o=n.state2.id;t.setEdge(a,o,i,Mi),Mi++}}))},Ni=function(t){for(var e=Object.keys(t),n=0;ne.seq?t:e}),t[0]),n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));var r,i,a,o=[n,e.id,e.seq];for(var s in Fi)Fi[s]===e.id&&o.push(s);if(f.debug(o.join(" ")),Array.isArray(e.parent)){var c=Bi[e.parent[0]];Ui(t,e,c),t.push(Bi[e.parent[1]])}else{if(null==e.parent)return;var u=Bi[e.parent];Ui(t,e,u)}r=t,i=function(t){return t.id},a=Object.create(null),$i(t=r.reduce((function(t,e){var n=i(e);return a[n]||(a[n]=!0,t.push(e)),t}),[]))}var Wi,Hi=function(){var t=Object.keys(Bi).map((function(t){return Bi[t]}));return t.forEach((function(t){f.debug(t.id)})),t.sort((function(t,e){return e.seq-t.seq})),t},Vi={setDirection:function(t){Ii=t},setOptions:function(t){f.debug("options str",t),t=(t=t&&t.trim())||"{}";try{zi=JSON.parse(t)}catch(t){f.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return zi},commit:function(t){var e={id:Ri(),message:t,seq:ji++,parent:null==Li?null:Li.id};Li=e,Bi[e.id]=e,Fi[Pi]=e.id,f.debug("in pushCommit "+e.id)},branch:function(t){Fi[t]=null!=Li?Li.id:null,f.debug("in createBranch")},merge:function(t){var e=Bi[Fi[Pi]],n=Bi[Fi[t]];if(function(t,e){return t.seq>e.seq&&Yi(e,t)}(e,n))f.debug("Already merged");else{if(Yi(e,n))Fi[Pi]=Fi[t],Li=Bi[Fi[Pi]];else{var r={id:Ri(),message:"merged branch "+t+" into "+Pi,seq:ji++,parent:[null==Li?null:Li.id,Fi[t]]};Li=r,Bi[r.id]=r,Fi[Pi]=r.id}f.debug(Fi),f.debug("in mergeBranch")}},checkout:function(t){f.debug("in checkout");var e=Fi[Pi=t];Li=Bi[e]},reset:function(t){f.debug("in reset",t);var e=t.split(":")[0],n=parseInt(t.split(":")[1]),r="HEAD"===e?Li:Bi[Fi[e]];for(f.debug(r,n);n>0;)if(n--,!(r=Bi[r.parent])){var i="Critical error - unique parent commit not found during reset";throw f.error(i),i}Li=r,Fi[Pi]=r.id},prettyPrint:function(){f.debug(Bi),$i([Hi()[0]])},clear:function(){Bi={},Fi={master:Li=null},Pi="master",ji=0},getBranchesAsObjArray:function(){var t=[];for(var e in Fi)t.push({name:e,commit:Bi[Fi[e]]});return t},getBranches:function(){return Fi},getCommits:function(){return Bi},getCommitsArray:Hi,getCurrentBranch:function(){return Pi},getDirection:function(){return Ii},getHead:function(){return Li}},Gi=n(71),qi=n.n(Gi),Xi={},Zi={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},Ji={};function Qi(t,e,n,r){var i=O(r,s.curveBasis),a=Zi.branchColors[n%Zi.branchColors.length],o=Object(s.line)().x((function(t){return Math.round(t.x)})).y((function(t){return Math.round(t.y)})).curve(i);t.append("svg:path").attr("d",o(e)).style("stroke",a).style("stroke-width",Zi.lineStrokeWidth).style("fill","none")}function Ki(t,e){e=e||t.node().getBBox();var n=t.node().getCTM();return{left:n.e+e.x*n.a,top:n.f+e.y*n.d,width:e.width,height:e.height}}function ta(t,e,n,r,i){f.debug("svgDrawLineForCommits: ",e,n);var a=Ki(t.select("#node-"+e+" circle")),o=Ki(t.select("#node-"+n+" circle"));switch(r){case"LR":if(a.left-o.left>Zi.nodeSpacing){var s={x:a.left-Zi.nodeSpacing,y:o.top+o.height/2};Qi(t,[s,{x:o.left+o.width,y:o.top+o.height/2}],i,"linear"),Qi(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-Zi.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-Zi.nodeSpacing/2,y:s.y},s],i)}else Qi(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-Zi.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-Zi.nodeSpacing/2,y:o.top+o.height/2},{x:o.left+o.width,y:o.top+o.height/2}],i);break;case"BT":if(o.top-a.top>Zi.nodeSpacing){var c={x:o.left+o.width/2,y:a.top+a.height+Zi.nodeSpacing};Qi(t,[c,{x:o.left+o.width/2,y:o.top}],i,"linear"),Qi(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+a.height+Zi.nodeSpacing/2},{x:o.left+o.width/2,y:c.y-Zi.nodeSpacing/2},c],i)}else Qi(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+Zi.nodeSpacing/2},{x:o.left+o.width/2,y:o.top-Zi.nodeSpacing/2},{x:o.left+o.width/2,y:o.top}],i)}}function ea(t,e){return t.select(e).node().cloneNode(!0)}function na(t,e,n,r){var i,a=Object.keys(Xi).length;if("string"==typeof e)do{if(i=Xi[e],f.debug("in renderCommitHistory",i.id,i.seq),t.select("#node-"+e).size()>0)return;t.append((function(){return ea(t,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+i.id})).attr("transform",(function(){switch(r){case"LR":return"translate("+(i.seq*Zi.nodeSpacing+Zi.leftMargin)+", "+Wi*Zi.branchOffset+")";case"BT":return"translate("+(Wi*Zi.branchOffset+Zi.leftMargin)+", "+(a-i.seq)*Zi.nodeSpacing+")"}})).attr("fill",Zi.nodeFillColor).attr("stroke",Zi.nodeStrokeColor).attr("stroke-width",Zi.nodeStrokeWidth);var o=void 0;for(var s in n)if(n[s].commit===i){o=n[s];break}o&&(f.debug("found branch ",o.name),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","branch-label").text(o.name+", ")),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-id").text(i.id),""!==i.message&&"BT"===r&&t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+i.message),e=i.parent}while(e&&Xi[e]);Array.isArray(e)&&(f.debug("found merge commmit",e),na(t,e[0],n,r),Wi++,na(t,e[1],n,r),Wi--)}function ra(t,e,n,r){for(r=r||0;e.seq>0&&!e.lineDrawn;)"string"==typeof e.parent?(ta(t,e.id,e.parent,n,r),e.lineDrawn=!0,e=Xi[e.parent]):Array.isArray(e.parent)&&(ta(t,e.id,e.parent[0],n,r),ta(t,e.id,e.parent[1],n,r+1),ra(t,Xi[e.parent[1]],n,r+1),e.lineDrawn=!0,e=Xi[e.parent[0]])}var ia,aa=function(t){Ji=t},oa=function(t,e,n){try{var r=qi.a.parser;r.yy=Vi,r.yy.clear(),f.debug("in gitgraph renderer",t+"\n","id:",e,n),r.parse(t+"\n"),Zi=Object.assign(Zi,Ji,Vi.getOptions()),f.debug("effective options",Zi);var i=Vi.getDirection();Xi=Vi.getCommits();var a=Vi.getBranchesAsObjArray();"BT"===i&&(Zi.nodeLabel.x=a.length*Zi.branchOffset,Zi.nodeLabel.width="100%",Zi.nodeLabel.y=-2*Zi.nodeRadius);var o=Object(s.select)('[id="'.concat(e,'"]'));for(var c in function(t){t.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",Zi.nodeRadius).attr("cx",0).attr("cy",0),t.select("#def-commit").append("foreignObject").attr("width",Zi.nodeLabel.width).attr("height",Zi.nodeLabel.height).attr("x",Zi.nodeLabel.x).attr("y",Zi.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(o),Wi=1,a){var u=a[c];na(o,u.commit.id,a,i),ra(o,u.commit,i),Wi++}o.attr("height",(function(){return"BT"===i?Object.keys(Xi).length*Zi.nodeSpacing:(a.length+1)*Zi.branchOffset}))}catch(t){f.error("Error while rendering gitgraph"),f.error(t.message)}},sa="",ca=!1,ua={setMessage:function(t){f.debug("Setting message to: "+t),sa=t},getMessage:function(){return sa},setInfo:function(t){ca=t},getInfo:function(){return ca}},la=n(72),ha=n.n(la),fa={},da=function(t){Object.keys(t).forEach((function(e){fa[e]=t[e]}))},pa=function(t,e,n){try{var r=ha.a.parser;r.yy=ua,f.debug("Renering info diagram\n"+t),r.parse(t),f.debug("Parsed info diagram");var i=Object(s.select)("#"+e);i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),i.attr("height",100),i.attr("width",400)}catch(t){f.error("Error while rendering info diagram"),f.error(t.message)}},ga={},ya=function(t){Object.keys(t).forEach((function(e){ga[e]=t[e]}))},va=function(t,e){try{f.debug("Renering svg for syntax error\n");var n=Object(s.select)("#"+t),r=n.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+e),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(t){f.error("Error while rendering info diagram"),f.error(t.message)}},ma={},ba="",xa={addSection:function(t,e){void 0===ma[t]&&(ma[t]=e,f.debug("Added new section :",t))},getSections:function(){return ma},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){ma={},ba=""},setTitle:function(t){ba=t},getTitle:function(){return ba}},_a=n(73),wa=n.n(_a),ka={},Ea=function(t){Object.keys(t).forEach((function(e){ka[e]=t[e]}))},Ta=function(t,e){try{var n=wa.a.parser;n.yy=xa,f.debug("Rendering info diagram\n"+t),n.yy.clear(),n.parse(t),f.debug("Parsed info diagram");var r=document.getElementById(e);void 0===(ia=r.parentElement.offsetWidth)&&(ia=1200),void 0!==ka.useWidth&&(ia=ka.useWidth);r.setAttribute("height","100%"),r.setAttribute("viewBox","0 0 "+ia+" 450");var i=ia,a=Math.min(i,450)/2-40,o=Object(s.select)("#"+e).append("svg").attr("width",i).attr("height",450).append("g").attr("transform","translate("+i/2+",225)"),c=xa.getSections(),u=0;Object.keys(c).forEach((function(t){u+=c[t]})),f.info(c);var l=Object(s.scaleOrdinal)().domain(c).range(s.schemeSet2),h=Object(s.pie)().value((function(t){return t.value}))(Object(s.entries)(c)),d=Object(s.arc)().innerRadius(0).outerRadius(a);o.selectAll("mySlices").data(h).enter().append("path").attr("d",d).attr("fill",(function(t){return l(t.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),o.selectAll("mySlices").data(h).enter().append("text").text((function(t){return(t.data.value/u*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+d.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),o.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var p=o.selectAll(".legend").data(l.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*l.domain().length/2)+")"}));p.append("rect").attr("width",18).attr("height",18).style("fill",l).style("stroke",l),p.append("text").attr("x",22).attr("y",14).text((function(t){return t}))}catch(t){f.error("Error while rendering info diagram"),f.error(t.message)}},Aa={},Sa=[],Ca="",Ma={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){Co.parseDirective(t,e,n)},addEntity:function(t){void 0===Aa[t]&&(Aa[t]=t,f.debug("Added new entity :",t))},getEntities:function(){return Aa},addRelationship:function(t,e,n,r){var i={entityA:t,roleA:e,entityB:n,relSpec:r};Sa.push(i),f.debug("Added new relationship :",i)},getRelationships:function(){return Sa},clear:function(){Aa={},Sa=[],Ca=""},setTitle:function(t){Ca=t},getTitle:function(){return Ca}},Oa=n(74),Na=n.n(Oa),Da={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},Ba=Da,La=function(t,e){var n;t.append("defs").append("marker").attr("id",Da.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",Da.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Da.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Da.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",Da.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",Da.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=t.append("defs").append("marker").attr("id",Da.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=t.append("defs").append("marker").attr("id",Da.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},Fa={},Pa=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},Ia=0,ja=function(t){for(var e=Object.keys(t),n=0;n/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},Ka=-1,to=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},eo=function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,u){for(var l=c.taskFontSize,h=c.taskFontFamily,f=t.split(//gi),d=0;d3?function(t){var e=Object(s.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+o.cx+","+(o.cy+2)+")")}(c):o.score<3?function(t){var e=Object(s.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+o.cx+","+(o.cy+7)+")")}(c):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",o.cx-5).attr("y1",o.cy+7).attr("x2",o.cx+5).attr("y2",o.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(c);var u=to();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=n.width,u.height=n.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,Za(i,u);var l=e.x+14;e.people.forEach((function(t){var n=e.actors[t],r={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t};Ja(i,r),l+=10})),eo(n)(e.task,i,u.x,u.y,u.width,u.height,{class:"task"},n,e.colour)},oo=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};Ya.parser.yy=Xa;var so={leftMargin:150,diagramMarginX:50,diagramMarginY:20,taskMargin:50,width:150,height:50,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},co={};var uo=so.leftMargin,lo={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i,a=this,o=0;this.sequenceItems.forEach((function(s){o++;var c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*so.boxMargin,Math.min),a.updateVal(s,"stopy",r+c*so.boxMargin,Math.max),a.updateVal(lo.data,"startx",t-c*so.boxMargin,Math.min),a.updateVal(lo.data,"stopx",n+c*so.boxMargin,Math.max),"activation"!==i&&(a.updateVal(s,"startx",t-c*so.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*so.boxMargin,Math.max),a.updateVal(lo.data,"starty",e-c*so.boxMargin,Math.min),a.updateVal(lo.data,"stopy",r+c*so.boxMargin,Math.max))}))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(lo.data,"startx",i,Math.min),this.updateVal(lo.data,"starty",o,Math.min),this.updateVal(lo.data,"stopx",a,Math.max),this.updateVal(lo.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},ho=so.sectionFills,fo=so.sectionColours,po=function(t,e,n){for(var r="",i=n+(2*so.height+so.diagramMarginY),a=0,o="#CCC",s="black",c=0,u=0;u tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: ").concat(t.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n")},gantt:function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: '.concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.taskTextDarkColor," ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n")},classDiagram:vo,"classDiagram-v2":vo,class:vo,stateDiagram:bo,state:bo,git:function(){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"},info:function(){return""},pie:function(t){return".pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ".concat(t.taskTextDarkColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.taskTextDarkColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: 17px;\n }\n")},er:function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.edgeLabelBackground,";\n fillopactity: 0;\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n")},journey:function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.secondBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.secondBkg,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n")}},_o=function(t,e,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(xo[t](n),"\n\n ").concat(e,"\n\n ").concat(t," { fill: apa;}\n")};function wo(t){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ko={},Eo=function(t,e){switch(f.debug("Directive type=".concat(t.type," with args:"),t.args),t.type){case"init":case"initialize":["config"].forEach((function(n){void 0!==t.args[n]&&("flowchart-v2"===e&&(e="flowchart"),t.args[e]=t.args[n],delete t.args[n])})),Ao(t.args);break;case"wrap":case"nowrap":t.args={config:{wrap:"wrap"===t.type}},["config"].forEach((function(n){void 0!==t.args[n]&&("flowchart-v2"===e&&(e="flowchart"),t.args[e]=t.args[n],delete t.args[n])})),Ao(t.args);break;default:f.warn("Unhandled directive: source: '%%{".concat(t.type,": ").concat(JSON.stringify(t.args?t.args:{}),"}%%"),t)}};function To(t){aa(t.git),se(t.flowchart),Xe(t.flowchart),void 0!==t.sequenceDiagram&&Ln.setConf(P(t.sequence,t.sequenceDiagram)),Ln.setConf(t.sequence),yr(t.gantt),Gr(t.class),Ei(t.state),Ni(t.state),da(t.class),Ea(t.class),ja(t.er),go(t.journey),ya(t.class)}function Ao(t){t.theme&&at[t.theme]&&(t.themeVariables=t.theme);var e="object"===wo(t)?dt(t):ft();To(e),d(e.logLevel),f.debug("mermaidAPI.reinitialize: ",e)}var So=Object.freeze({render:function(t,e,n,r){var i=e,a=U.detectInit(i);a?Ao(a):(yt.reset(),To(ft()));var u=pt();if(e.length>u.maxTextSize&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==r)r.innerHTML="",Object(s.select)(r).append("div").attr("id","d"+t).attr("style","font-family: "+u.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var l=document.getElementById(t);l&&l.remove();var h=document.querySelector("#d"+t);h&&h.remove(),Object(s.select)("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=i,i=function(t){var e=t;return e=(e=(e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}))}(i);var d=Object(s.select)("#d"+t).node(),p=U.detectType(i),g=d.firstChild,y=g.firstChild,v="";if(void 0!==u.themeCSS&&(v+="\n".concat(u.themeCSS)),void 0!==u.fontFamily&&(v+="\n:root { --mermaid-font-family: ".concat(u.fontFamily,"}")),void 0!==u.altFontFamily&&(v+="\n:root { --mermaid-alt-font-family: ".concat(u.altFontFamily,"}")),"flowchart"===p||"flowchart-v2"===p||"graph"===p){var m=ce(i);for(var b in m)v+="\n.".concat(b," > * { ").concat(m[b].styles.join(" !important; ")," !important; }"),m[b].textStyles&&(v+="\n.".concat(b," tspan { ").concat(m[b].textStyles.join(" !important; ")," !important; }"))}var x=(new o.a)("#".concat(t),_o(p,v,u.themeVariables)),_=document.createElement("style");_.innerHTML=x,g.insertBefore(_,y);try{switch(p){case"git":u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,aa(u.git),oa(i,t,!1);break;case"flowchart":u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,se(u.flowchart),ue(i,t,!1);break;case"flowchart-v2":u.flowchart.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Xe(u.flowchart),Ze(i,t,!1);break;case"sequence":u.sequence.arrowMarkerAbsolute=u.arrowMarkerAbsolute,u.sequenceDiagram?(Ln.setConf(Object.assign(u.sequence,u.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):Ln.setConf(u.sequence),Ln.draw(i,t);break;case"gantt":u.gantt.arrowMarkerAbsolute=u.arrowMarkerAbsolute,yr(u.gantt),vr(i,t);break;case"class":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Gr(u.class),qr(i,t);break;case"classDiagram":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Zr(u.class),Jr(i,t);break;case"state":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Ei(u.state),Ti(i,t);break;case"stateDiagram":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Ni(u.state),Di(i,t);break;case"info":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,da(u.class),pa(i,t,c.version);break;case"pie":u.class.arrowMarkerAbsolute=u.arrowMarkerAbsolute,Ea(u.class),Ta(i,t,c.version);break;case"er":ja(u.er),Ra(i,t,c.version);break;case"journey":go(u.journey),yo(i,t,c.version)}}catch(e){throw va(t,c.version),e}Object(s.select)('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var w=Object(s.select)("#d"+t).node().innerHTML;if(f.debug("cnf.arrowMarkerAbsolute",u.arrowMarkerAbsolute),u.arrowMarkerAbsolute&&"false"!==u.arrowMarkerAbsolute||(w=w.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),w=function(t){var e=t;return e=(e=(e=e.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))}(w),void 0!==n)switch(p){case"flowchart":case"flowchart-v2":n(w,jt.bindFunctions);break;case"gantt":n(w,fr.bindFunctions);break;case"class":n(w,Nr.bindFunctions);break;default:n(w)}else f.debug("CB = undefined!");var k=Object(s.select)("#d"+t).node();return null!==k&&"function"==typeof k.remove&&Object(s.select)("#d"+t).node().remove(),w},parse:function(t){var e=U.detectInit(t);e&&(Ao(e),f.debug("reinit ",e));var n,r=U.detectType(t);switch(f.debug("Type "+r),r){case"git":(n=qi.a).parser.yy=Vi;break;case"flowchart":case"flowchart-v2":jt.clear(),(n=Yt.a).parser.yy=jt;break;case"sequence":(n=sn.a).parser.yy=kn;break;case"gantt":(n=Pn.a).parser.yy=fr;break;case"class":case"classDiagram":(n=Br.a).parser.yy=Nr;break;case"state":case"stateDiagram":(n=pi.a).parser.yy=fi;break;case"info":f.debug("info info info"),(n=ha.a).parser.yy=ua;break;case"pie":f.debug("pie"),(n=wa.a).parser.yy=xa;break;case"er":f.debug("er"),(n=Na.a).parser.yy=Ma;break;case"journey":f.debug("Journey"),(n=za.a).parser.yy=Xa}return n.parser.yy.graphType=r,n.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},n.parse(t),n},parseDirective:function(t,e,n){try{if(void 0!==t)switch(t=t.trim(),e){case"open_directive":ko={};break;case"type_directive":ko.type=t.toLowerCase();break;case"arg_directive":ko.args=JSON.parse(t);break;case"close_directive":Eo(ko,n),ko=null}}catch(n){f.error("Error while rendering sequenceDiagram directive: ".concat(t," jison context: ").concat(e)),f.error(n.message)}},initialize:function(t){t&&t.theme&&at[t.theme]?t.themeVariables=at[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=at.default.getThemeVariables());var e="object"===wo(t)?ht(t):ft();To(e),d(e.logLevel),f.debug("mermaidAPI.initialize: ",e)},reinitialize:Ao,getConfig:pt,getSiteConfig:ft,reset:function(){yt.reset(),To(ft())},globalReset:function(){yt.reset(yt.defaultConfig),To(pt())},defaultConfig:yt.defaultConfig});d(pt().logLevel),yt.reset(pt());var Co=So,Mo=function(){Oo.startOnLoad?Co.getConfig().startOnLoad&&Oo.init():void 0===Oo.startOnLoad&&(f.debug("In start, no config"),Co.getConfig().startOnLoad&&Oo.init())};"undefined"!=typeof document&& +t.exports={graphlib:n(311),dagre:n(153),intersect:n(368),render:n(370),util:n(12),version:n(382)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(4),i=n(17).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,r=u):(o<0&&(c=-c),n=c,r=c*s/o);return{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(173),i=n(174),a=n(175),o={channel:r.default,lang:i.default,unit:a.default};e.default=o},function(t,e,n){var r;try{r={clone:n(199),constant:n(86),each:n(87),filter:n(128),has:n(93),isArray:n(5),isEmpty:n(276),isFunction:n(38),isUndefined:n(139),keys:n(30),map:n(140),reduce:n(142),size:n(279),transform:n(285),union:n(286),values:n(147)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(44);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,7],n=[1,6],r=[1,14],i=[1,24],a=[1,27],o=[1,25],s=[1,26],c=[1,28],u=[1,29],l=[1,31],h=[1,32],f=[1,33],d=[10,19],p=[1,45],y=[1,46],g=[1,47],v=[1,48],m=[1,49],b=[1,50],_=[10,19,25,31,39,42,43,44,45,46,47],x=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],w=[10,13,17,19],k=[39,63,64,65],E=[39,46,47,63,64,65],T=[39,42,43,44,45,63,64,65],A=[10,19,25],C=[1,75],S={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,graphConfig:6,openDirective:7,typeDirective:8,closeDirective:9,NEWLINE:10,":":11,argDirective:12,open_directive:13,type_directive:14,arg_directive:15,close_directive:16,CLASS_DIAGRAM:17,statements:18,EOF:19,statement:20,className:21,alphaNumToken:22,GENERICTYPE:23,relationStatement:24,LABEL:25,classStatement:26,methodStatement:27,annotationStatement:28,clickStatement:29,CLASS:30,STRUCT_START:31,members:32,STRUCT_STOP:33,ANNOTATION_START:34,ANNOTATION_END:35,MEMBER:36,SEPARATOR:37,relation:38,STR:39,relationType:40,lineType:41,AGGREGATION:42,EXTENSION:43,COMPOSITION:44,DEPENDENCY:45,LINE:46,DOTTED_LINE:47,CALLBACK:48,LINK:49,commentToken:50,textToken:51,graphCodeTokens:52,textNoTagsToken:53,TAGSTART:54,TAGEND:55,"==":56,"--":57,PCT:58,DEFAULT:59,SPACE:60,MINUS:61,keywords:62,UNICODE_TEXT:63,NUM:64,ALPHA:65,$accept:0,$end:1},terminals_:{2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",30:"CLASS",31:"STRUCT_START",33:"STRUCT_STOP",34:"ANNOTATION_START",35:"ANNOTATION_END",36:"MEMBER",37:"SEPARATOR",39:"STR",42:"AGGREGATION",43:"EXTENSION",44:"COMPOSITION",45:"DEPENDENCY",46:"LINE",47:"DOTTED_LINE",48:"CALLBACK",49:"LINK",52:"graphCodeTokens",54:"TAGSTART",55:"TAGEND",56:"==",57:"--",58:"PCT",59:"DEFAULT",60:"SPACE",61:"MINUS",62:"keywords",63:"UNICODE_TEXT",64:"NUM",65:"ALPHA"},productions_:[0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(a[s],"type_directive");break;case 8:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","class");break;case 14:this.$=a[s-1]+a[s];break;case 15:this.$=a[s];break;case 16:this.$=a[s-2]+"~"+a[s-1]+a[s];break;case 17:this.$=a[s-1]+"~"+a[s];break;case 18:r.addRelation(a[s]);break;case 19:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 25:r.addClass(a[s]);break;case 26:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 27:r.addAnnotation(a[s],a[s-2]);break;case 28:this.$=[a[s]];break;case 29:a[s].push(a[s-1]),this.$=a[s];break;case 30:break;case 31:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 32:case 33:break;case 34:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 35:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 36:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 37:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 38:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 39:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 40:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 41:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 42:this.$=r.relationType.AGGREGATION;break;case 43:this.$=r.relationType.EXTENSION;break;case 44:this.$=r.relationType.COMPOSITION;break;case 45:this.$=r.relationType.DEPENDENCY;break;case 46:this.$=r.lineType.LINE;break;case 47:this.$=r.lineType.DOTTED_LINE;break;case 48:this.$=a[s-2],r.setClickEvent(a[s-1],a[s],void 0);break;case 49:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 50:this.$=a[s-2],r.setLink(a[s-1],a[s],void 0);break;case 51:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s])}},table:[{3:1,4:2,5:3,6:4,7:5,13:e,17:n},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:e,17:n},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:r},t([11,16],[2,7]),{5:22,7:5,13:e,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:i,34:a,36:o,37:s,48:c,49:u,63:l,64:h,65:f},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},t(d,[2,18],{25:[1,39]}),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(d,[2,23]),t(d,[2,24]),t(d,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:p,43:y,44:g,45:v,46:m,47:b}),{21:51,22:30,63:l,64:h,65:f},t(d,[2,32]),t(d,[2,33]),{22:52,63:l,64:h,65:f},{21:53,22:30,63:l,64:h,65:f},{21:54,22:30,63:l,64:h,65:f},t(_,[2,15],{22:30,21:55,23:[1,56],63:l,64:h,65:f}),t(x,[2,65]),t(x,[2,66]),t(x,[2,67]),t(w,[2,4]),{9:57,16:r},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:e,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:i,34:a,36:o,37:s,48:c,49:u,63:l,64:h,65:f},t(d,[2,19]),{21:59,22:30,39:[1,60],63:l,64:h,65:f},{38:61,40:43,41:44,42:p,43:y,44:g,45:v,46:m,47:b},t(d,[2,31]),{41:62,46:m,47:b},t(k,[2,41],{40:63,42:p,43:y,44:g,45:v}),t(E,[2,42]),t(E,[2,43]),t(E,[2,44]),t(E,[2,45]),t(T,[2,46]),t(T,[2,47]),t(d,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},t(_,[2,14]),t(_,[2,17],{22:30,21:68,63:l,64:h,65:f}),{10:[1,69]},{19:[2,13]},t(A,[2,34]),{21:70,22:30,63:l,64:h,65:f},{21:71,22:30,39:[1,72],63:l,64:h,65:f},t(k,[2,40],{40:73,42:p,43:y,44:g,45:v}),t(k,[2,39]),{32:74,36:C},{21:76,22:30,63:l,64:h,65:f},t(d,[2,48],{39:[1,77]}),t(d,[2,50],{39:[1,78]}),t(_,[2,16]),t(w,[2,5]),t(A,[2,36]),t(A,[2,35]),{21:79,22:30,63:l,64:h,65:f},t(k,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:C},t(d,[2,27]),t(d,[2,49]),t(d,[2,51]),t(A,[2,37]),t(d,[2,26]),{33:[2,29]}],defaultActions:{2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},M={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),13;case 1:return this.begin("type_directive"),14;case 2:return this.popState(),this.begin("arg_directive"),11;case 3:return this.popState(),this.popState(),16;case 4:return 15;case 5:case 6:break;case 7:return 10;case 8:break;case 9:case 10:return 17;case 11:return this.begin("struct"),31;case 12:return"EOF_IN_STRUCT";case 13:return"OPEN_IN_STRUCT";case 14:return this.popState(),33;case 15:break;case 16:return"MEMBER";case 17:return 30;case 18:return 48;case 19:return 49;case 20:return 34;case 21:return 35;case 22:this.begin("generic");break;case 23:this.popState();break;case 24:return"GENERICTYPE";case 25:this.begin("string");break;case 26:this.popState();break;case 27:return"STR";case 28:case 29:return 43;case 30:case 31:return 45;case 32:return 44;case 33:return 42;case 34:return 46;case 35:return 47;case 36:return 25;case 37:return 61;case 38:return"DOT";case 39:return"PLUS";case 40:return 58;case 41:case 42:return"EQUALS";case 43:return 65;case 44:return"PUNCTUATION";case 45:return 64;case 46:return 63;case 47:return 60;case 48:return 19}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::[^\n;]+)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[26,27],inclusive:!1},generic:{rules:[23,24],inclusive:!1},struct:{rules:[12,13,14,15,16],inclusive:!1},open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};function O(){this.yy={}}return S.lexer=M,O.prototype=S,S.Parser=O,new O}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var c,u=[],l=!1,h=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):h=-1,u.length&&d())}function d(){if(!l){var t=s(f);l=!0;for(var e=u.length;e;){for(c=u,u=[];++h1)for(var n=1;n=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return(i?"/":"")+(e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var a=e.isAbsolute(t),o="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!a).join("/"))||a||(t="."),t&&o&&(t+="/"),(a?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c=1;--a)if(47===(e=t.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(14))},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],u=[1,20],l=[1,21],h=[1,22],f=[1,28],d=[1,23],p=[1,24],y=[1,25],g=[1,26],v=[1,29],m=[1,32],b=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],_=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],x=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],w=[4,5,14,15,17,19,20,22,23,24,25,26,36,39],k={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CONCURRENT:25,note:26,notePosition:27,NOTE_TEXT:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,eol:34,";":35,EDGE_STATE:36,left_of:37,right_of:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:this.$=a[s];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 18:var c=a[s],u=a[s-2].trim();if(a[s].match(":")){var l=a[s].split(":");c=l[0],u=[u,l[1]]}this.$={stmt:"state",id:c,type:"default",description:u};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:"state",id:a[s],type:"fork"};break;case 21:this.$={stmt:"state",id:a[s],type:"join"};break;case 22:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 23:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 30:case 31:this.$=a[s];break;case 34:r.parseDirective("%%{","open_directive");break;case 35:r.parseDirective(a[s],"type_directive");break;case 36:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 37:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:r,29:6,39:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,29:6,39:i},{3:9,4:e,5:n,6:4,7:r,29:6,39:i},{3:10,4:e,5:n,6:4,7:r,29:6,39:i},t([1,4,5,14,15,17,20,22,23,24,25,26,36,39],a,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:27,9:14,10:16,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:y,26:g,29:6,36:v,39:i},{31:30,32:[1,31],42:m},t([32,42],[2,35]),t(b,[2,6]),{6:27,10:33,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:y,26:g,29:6,36:v,39:i},t(b,[2,8]),t(b,[2,9]),t(b,[2,10],{12:[1,34],13:[1,35]}),t(b,[2,14]),{16:[1,36]},t(b,[2,16],{18:[1,37]}),{21:[1,38]},t(b,[2,20]),t(b,[2,21]),t(b,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},t(b,[2,25]),t(_,[2,30]),t(_,[2,31]),t(x,[2,26]),{33:43,41:[1,44]},t(x,[2,37]),t(b,[2,7]),t(b,[2,11]),{11:45,22:f,36:v},t(b,[2,15]),t(w,a,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:m},{42:[2,36]},t(b,[2,12],{12:[1,51]}),{4:o,5:s,6:27,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,52],20:h,22:f,23:d,24:p,25:y,26:g,29:6,36:v,39:i},t(b,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},t(x,[2,27]),t(b,[2,13]),t(b,[2,17]),t(w,a,{8:56}),t(b,[2,23]),t(b,[2,24]),{4:o,5:s,6:27,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,57],20:h,22:f,23:d,24:p,25:y,26:g,29:6,36:v,39:i},t(b,[2,19])],defaultActions:{7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:break;case 6:console.log("Crap after close");break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),15;case 13:return 16;case 14:this.popState();break;case 15:this.pushState("STATE");break;case 16:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 17:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 18:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 19:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 20:this.begin("STATE_STRING");break;case 21:return this.popState(),this.pushState("STATE_ID"),"AS";case 22:return this.popState(),"ID";case 23:this.popState();break;case 24:return"STATE_DESCR";case 25:return 17;case 26:this.popState();break;case 27:return this.popState(),this.pushState("struct"),18;case 28:return this.popState(),19;case 29:break;case 30:return this.begin("NOTE"),26;case 31:return this.popState(),this.pushState("NOTE_ID"),37;case 32:return this.popState(),this.pushState("NOTE_ID"),38;case 33:this.popState(),this.pushState("FLOATING_NOTE");break;case 34:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 35:break;case 36:return"NOTE_TEXT";case 37:return this.popState(),"ID";case 38:return this.popState(),this.pushState("NOTE_TEXT"),22;case 39:return this.popState(),e.yytext=e.yytext.substr(2).trim(),28;case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),28;case 41:case 42:return 7;case 43:return 14;case 44:return 36;case 45:return 22;case 46:return e.yytext=e.yytext.trim(),12;case 47:return 13;case 48:return 25;case 49:return 5;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:\s*[^:;]+end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},close_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[3,4,9,10],inclusive:!1},type_directive:{rules:[2,3,9,10],inclusive:!1},open_directive:{rules:[1,9,10],inclusive:!1},struct:{rules:[9,10,15,28,29,30,44,45,46,47,48],inclusive:!1},FLOATING_NOTE_ID:{rules:[37],inclusive:!1},FLOATING_NOTE:{rules:[34,35,36],inclusive:!1},NOTE_TEXT:{rules:[39,40],inclusive:!1},NOTE_ID:{rules:[38],inclusive:!1},NOTE:{rules:[31,32,33],inclusive:!1},SCALE:{rules:[13,14],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[22],inclusive:!1},STATE_STRING:{rules:[23,24],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,16,17,18,19,20,21,25,26,27],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],inclusive:!0}}};function T(){this.yy={}}return k.lexer=E,T.prototype=k,k.Parser=T,new T}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,r=[];for(n=0;n>>0,r=0;rgt(t)?(a=t+1,s-gt(t)):(a=t,s),{year:a,dayOfYear:o}}function Pt(t,e,n){var r,i,a=Bt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+Ft(i=t.year()-1,e,n):o>Ft(t.year(),e,n)?(r=o-Ft(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Ft(t,e,n){var r=Bt(t,e,n),i=Bt(t+1,e,n);return(gt(t)-r+i)/7}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),j("week",5),j("isoWeek",5),lt("w",Q),lt("ww",Q,q),lt("W",Q),lt("WW",Q,q),yt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=k(t)})),W("d",0,"do","day"),W("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),W("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),W("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),yt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t})),yt(["d","e","E"],(function(t,e,n,r){e[r]=k(t)}));var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=ct,Ut=ct,$t=ct;function Wt(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],c=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),c.push(a),u.push(r),u.push(i),u.push(a);for(o.sort(t),s.sort(t),c.sort(t),u.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),c[e]=ft(c[e]),u[e]=ft(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ht(){return this.hours()%12||12}function Vt(t,e){W(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Gt(t,e){return e._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ht),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Ht.apply(this)+R(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Ht.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Vt("a",!0),Vt("A",!1),L("hour","h"),j("hour",13),lt("a",Gt),lt("A",Gt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,q),lt("hh",Q,q),lt("kk",Q,q),lt("hmm",K),lt("hmmss",tt),lt("Hmm",K),lt("Hmmss",tt),pt(["H","HH"],3),pt(["k","kk"],(function(t,e,n){var r=k(t);e[3]=24===r?0:r})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[3]=k(t),p(n).bigHour=!0})),pt("hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r)),p(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i)),p(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r))})),pt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=k(t.substr(0,r)),e[4]=k(t.substr(r,2)),e[5]=k(t.substr(i))}));var qt,Xt=_t("Hours",!0),Zt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Tt,monthsShort:At,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:Yt,weekdaysShort:Rt,meridiemParse:/[ap]\.?m?\.?/i},Jt={},Qt={};function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function te(e){var r=null;if(!Jt[e]&&void 0!==t&&t&&t.exports)try{r=qt._abbr,n(171)("./"+e),ee(r)}catch(e){}return Jt[e]}function ee(t,e){var n;return t&&((n=s(e)?re(t):ne(t,e))?qt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function ne(t,e){if(null===e)return delete Jt[t],null;var n,r=Zt;if(e.abbr=t,null!=Jt[t])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Jt[t]._config;else if(null!=e.parentLocale)if(null!=Jt[e.parentLocale])r=Jt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Qt[e.parentLocale]||(Qt[e.parentLocale]=[]),Qt[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Jt[t]=new N(D(r,e)),Qt[t]&&Qt[t].forEach((function(t){ne(t.name,t.config)})),ee(t),Jt[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!a(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a=e&&E(i,n,!0)>=e-1)break;e--}a++}return qt}(t)}function ie(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[1]<0||11kt(n[0],n[1])?2:n[3]<0||24Ft(n,a,o)?p(t)._overflowWeeks=!0:null!=c?p(t)._overflowWeekday=!0:(s=Lt(n,r,i,a,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=ae(t._a[0],r[0]),(t._dayOfYear>gt(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Nt(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Nt:function(t,e,n,r,i,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(p(t).weekdayMismatch=!0)}}var se=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ue=/Z|[+-]\d\d(?::?\d\d)?/,le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],he=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],fe=/^\/?Date\((\-?\d+)/i;function de(t){var e,n,r,i,a,o,s=t._i,c=se.exec(s)||ce.exec(s);if(c){for(p(t).iso=!0,e=0,n=le.length;en.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Be,on.isUTC=Be,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=A("dates accessor is deprecated. Use date instead.",Ke),on.months=A("months accessor is deprecated. Use month instead",St),on.years=A("years accessor is deprecated. Use year instead",bt),on.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),on.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),(t=me(t))._a){var e=t._isUTC?d(t._a):_e(t._a);this._isDSTShifted=this.isValid()&&0h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},qt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 75;case 11:return 84;case 12:return 76;case 13:return 89;case 14:return 77;case 15:return 78;case 16:return 79;case 17:case 18:return t.lex.firstGraph()&&this.begin("dir"),24;case 19:return 38;case 20:return 42;case 21:return this.popState(),25;case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 29:case 30:case 31:return this.popState(),26;case 32:return 90;case 33:return 98;case 34:return 47;case 35:return 95;case 36:return 46;case 37:return 20;case 38:return 91;case 39:return 109;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 65:case 66:case 67:return 70;case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:return 69;case 80:return 51;case 81:return 52;case 82:return 53;case 83:return 54;case 84:return 55;case 85:return 56;case 86:return 57;case 87:return 58;case 88:return 96;case 89:return 99;case 90:return 110;case 91:return 107;case 92:return 100;case 93:case 94:return 108;case 95:return 101;case 96:return 61;case 97:return 81;case 98:return"SEP";case 99:return 80;case 100:return 94;case 101:return 63;case 102:return 62;case 103:return 65;case 104:return 64;case 105:return 105;case 106:return 106;case 107:return 71;case 108:return 49;case 109:return 50;case 110:return 40;case 111:return 41;case 112:return 59;case 113:return 60;case 114:return 116;case 115:return 21;case 116:return 22;case 117:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*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)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[21,22,23,24,25,26,27,28,29,30,31],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],inclusive:!0}}};function Xt(){this.yy={}}return Gt.lexer=qt,Xt.prototype=Gt,Gt.Parser=Xt,new Xt}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,20,27,32],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,20],l=[1,21],h=[1,23],f=[1,25],d=[1,28],p=[5,7,9,11,12,13,14,15,16,17,18,20,27,32],y={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,axisFormat:14,excludes:15,todayMarker:16,title:17,section:18,clickStatement:19,taskTxt:20,taskData:21,openDirective:22,typeDirective:23,closeDirective:24,":":25,argDirective:26,click:27,callbackname:28,callbackargs:29,href:30,clickStatementDebug:31,open_directive:32,type_directive:33,arg_directive:34,close_directive:35,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 12:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 13:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 14:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 17:r.addTask(a[s-1],a[s]),this.$="task";break;case 21:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 22:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 23:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 24:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 25:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 26:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 27:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 28:case 34:this.$=a[s-1]+" "+a[s];break;case 29:case 30:case 32:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 31:case 33:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 35:r.parseDirective("%%{","open_directive");break;case 36:r.parseDirective(a[s],"type_directive");break;case 37:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 38:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,22:4,32:n},{1:[3]},{3:6,4:2,5:e,22:4,32:n},t(r,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:22,20:h,22:4,27:f,32:n},{24:26,25:[1,27],35:d},t([25,35],[2,36]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:24,10:29,12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:22,20:h,22:4,27:f,32:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{21:[1,30]},t(r,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},t(r,[2,5]),t(r,[2,17]),t(r,[2,21],{29:[1,36],30:[1,37]}),t(r,[2,27],{28:[1,38]}),t(p,[2,19]),{24:39,35:d},{35:[2,37]},t(r,[2,22],{30:[1,40]}),t(r,[2,23]),t(r,[2,25],{29:[1,41]}),{11:[1,42]},t(r,[2,24]),t(r,[2,26]),t(p,[2,20])],defaultActions:{5:[2,35],6:[2,1],28:[2,38],35:[2,37]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},g={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),32;case 1:return this.begin("type_directive"),33;case 2:return this.popState(),this.begin("arg_directive"),25;case 3:return this.popState(),this.popState(),35;case 4:return 34;case 5:case 6:case 7:break;case 8:return 11;case 9:case 10:case 11:break;case 12:this.begin("href");break;case 13:this.popState();break;case 14:return 30;case 15:this.begin("callbackname");break;case 16:this.popState();break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 28;case 19:this.popState();break;case 20:return 29;case 21:this.begin("click");break;case 22:this.popState();break;case 23:return 27;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 16;case 30:return"date";case 31:return 17;case 32:return 18;case 33:return 20;case 34:return 21;case 35:return 25;case 36:return 7;case 37:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function v(){this.yy={}}return y.lexer=g,v.prototype=y,y.Parser=v,new v}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],a=[1,16],o=[1,17],s=[1,21],c=[4,6,9,11,17,18,19,21],u={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(a[s],"type_directive");break;case 17:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,21:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,19:o,21:n},{1:[2,2]},{14:19,15:[1,20],24:s},t([15,24],[2,16]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:18,10:22,12:4,17:i,18:a,19:o,21:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,12]),{20:[1,23]},t(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},t(r,[2,5]),t(r,[2,13]),t(c,[2,9]),{14:27,24:s},{24:[2,17]},{11:[1,28]},t(c,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function h(){this.yy={}}return u.lexer=l,h.prototype=u,u.Parser=h,new h}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t,e){return r.default.lang.round(i.default.parse(t)[e])}},function(t,e,n){var r=n(112),i=n(82),a=n(24);t.exports=function(t){return a(t)?r(t):i(t)}},function(t,e,n){var r;if(!r)try{r=n(0)}catch(t){}r||(r=window.d3),t.exports=r},function(t){t.exports=JSON.parse('{"name":"mermaid","version":"8.6.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test && yarn e2e","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","babel-eslint":"^10.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t,e,n){var a=i.default.parse(t),o=a[e],s=r.default.channel.clamp[e](o+n);return o!==s&&(a[e]=s),i.default.stringify(a)}},function(t,e,n){var r=n(210),i=n(216);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(39),i=n(212),a=n(213),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(35),i=n(11);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(16).Symbol;t.exports=r},function(t,e,n){(function(t){var r=n(16),i=n(232),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,n(7)(t))},function(t,e,n){var r=n(112),i=n(236),a=n(24);t.exports=function(t){return a(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(241),i=n(77),a=n(242),o=n(121),s=n(243),c=n(35),u=n(110),l=u(r),h=u(i),f=u(a),d=u(o),p=u(s),y=c;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=y(new i)||a&&"[object Promise]"!=y(a.resolve())||o&&"[object Set]"!=y(new o)||s&&"[object WeakMap]"!=y(new s))&&(y=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case h:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,n){var r=n(35),i=n(21);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r;try{r={defaults:n(154),each:n(87),isFunction:n(38),isPlainObject:n(158),pick:n(161),has:n(93),range:n(162),uniqueId:n(163)}}catch(t){}r||(r=window._),t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new(n(176).default)({r:0,g:0,b:0,a:0},"transparent");e.default=r},function(t,e,n){var r=n(58),i=n(59);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,c=e.length;++s-1&&t%1==0&&t-1}(s)?s:(n=s.match(a))?(e=n[0],r.test(e)?"about:blank":s):"about:blank"}}},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],a=[2,20],o=[1,32],s={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:return r.setDirection(a[s-3]),a[s-1];case 4:r.setOptions(a[s-1]),this.$=a[s];break;case 5:a[s-1]+=a[s],this.$=a[s-1];break;case 7:this.$=[];break;case 8:a[s-1].push(a[s]),this.$=a[s-1];break;case 9:this.$=a[s-1];break;case 11:r.commit(a[s]);break;case 12:r.branch(a[s]);break;case 13:r.checkout(a[s]);break;case 14:r.merge(a[s]);break;case 15:r.reset(a[s]);break;case 16:this.$="";break;case 17:this.$=a[s];break;case 18:this.$=a[s-1]+":"+a[s];break;case 19:this.$=a[s-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:e,9:6,12:n},{5:[1,8]},{7:[1,9]},t(r,[2,7],{10:10,11:[1,11]}),t(i,[2,6]),{6:12,7:e,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},t(i,[2,5]),{7:[1,21]},t(r,[2,8]),{12:[1,22]},t(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},t(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:a,25:31,26:o},{12:a,25:33,26:o},{12:[2,18]},{12:a,25:34,26:o},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},c={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function u(){this.yy={}}return s.lexer=c,u.prototype=s,s.Parser=u,new u}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){a.length;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,10,12,19,20,21,22],s=[1,6,10,12,19,20,21,22],c=[19,20,21],u=[1,22],l=[6,19,20,21,22],h={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,NEWLINE:19,";":20,EOF:21,open_directive:22,type_directive:23,arg_directive:24,close_directive:25,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:this.$=a[s-1];break;case 8:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 9:this.$=a[s].trim(),r.setTitle(this.$);break;case 16:r.parseDirective("%%{","open_directive");break;case 17:r.parseDirective(a[s],"type_directive");break;case 18:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 19:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,14:8,19:n,20:r,21:i,22:a},{1:[3]},{3:10,4:2,5:3,6:e,14:8,19:n,20:r,21:i,22:a},{3:11,4:2,5:3,6:e,14:8,19:n,20:r,21:i,22:a},t(o,[2,4],{7:12}),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},t(c,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:a}),{16:20,17:[1,21],25:u},t([17,25],[2,17]),t(o,[2,5]),{4:23,19:n,20:r,21:i},{11:[1,24]},{13:[1,25]},t(c,[2,10]),t(l,[2,11]),{18:26,24:[1,27]},t(l,[2,19]),t(o,[2,6]),t(c,[2,8]),t(c,[2,9]),{16:28,25:u},{25:[2,18]},t(l,[2,12])],defaultActions:{9:[2,16],10:[2,1],11:[2,2],27:[2,18]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),22;case 1:return this.begin("type_directive"),23;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),25;case 4:return 24;case 5:break;case 6:console.log("Crap after close");break;case 7:return 19;case 8:case 9:break;case 10:return this.begin("title"),12;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return"value";case 17:return 21}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17],inclusive:!0}}};function d(){this.yy={}}return h.lexer=f,d.prototype=h,h.Parser=d,new d}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){(function(t,r){var i=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,20,30],i=[1,17],a=[1,20],o=[1,24],s=[1,25],c=[1,26],u=[1,27],l=[20,27,28],h=[4,6,9,11,20,30],f=[23,24,25,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,ALPHANUM:20,cardinality:21,relType:22,ZERO_OR_ONE:23,ZERO_OR_MORE:24,ONE_OR_MORE:25,ONLY_ONE:26,NON_IDENTIFYING:27,IDENTIFYING:28,WORD:29,open_directive:30,type_directive:31,arg_directive:32,close_directive:33,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"ALPHANUM",23:"ZERO_OR_ONE",24:"ZERO_OR_MORE",25:"ONE_OR_MORE",26:"ONLY_ONE",27:"NON_IDENTIFYING",28:"IDENTIFYING",29:"WORD",30:"open_directive",31:"type_directive",32:"arg_directive",33:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 7:case 8:this.$=[];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:this.$=a[s];break;case 14:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 15:this.$=r.Cardinality.ZERO_OR_ONE;break;case 16:this.$=r.Cardinality.ZERO_OR_MORE;break;case 17:this.$=r.Cardinality.ONE_OR_MORE;break;case 18:this.$=r.Cardinality.ONLY_ONE;break;case 19:this.$=r.Identification.NON_IDENTIFYING;break;case 20:this.$=r.Identification.IDENTIFYING;break;case 21:this.$=a[s].replace(/"/g,"");break;case 22:this.$=a[s];break;case 23:r.parseDirective("%%{","open_directive");break;case 24:r.parseDirective(a[s],"type_directive");break;case 25:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 26:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,30:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,30:n},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:i,30:n},{1:[2,2]},{14:18,15:[1,19],33:a},t([15,33],[2,24]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:21,12:4,17:16,20:i,30:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),{18:22,21:23,23:o,24:s,25:c,26:u},t([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},t(r,[2,5]),{17:31,20:i},{22:32,27:[1,33],28:[1,34]},t(l,[2,15]),t(l,[2,16]),t(l,[2,17]),t(l,[2,18]),t(h,[2,9]),{14:35,33:a},{33:[2,25]},{15:[1,36]},{21:37,23:o,24:s,25:c,26:u},t(f,[2,19]),t(f,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},t(h,[2,10]),t(r,[2,12]),t(r,[2,21]),t(r,[2,22])],defaultActions:{5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var v=p.yylloc;a.push(v);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,E,T,A,C,S,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var O="";for(T in S=[],o[w])this.terminals_[T]&&T>h&&S.push("'"+this.terminals_[T]+"'");O=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:v,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,v=p.yylloc,l>0&&l--);break;case 2:if(A=this.productions_[k[1]][1],M.$=i[i.length-A],M._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},m&&(M._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(M,[s,u,c,y.yy,k[1],i,a].concat(d))))return E;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),C=o[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),30;case 1:return this.begin("type_directive"),31;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),33;case 4:return 32;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 29;case 11:return 4;case 12:return 23;case 13:return 24;case 14:return 25;case 15:return 26;case 16:return 23;case 17:return 24;case 18:return 25;case 19:return 27;case 20:return 28;case 21:case 22:return 27;case 23:return 20;case 24:return e.yytext[0];case 25:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};function y(){this.yy={}}return d.lexer=p,y.prototype=d,d.Parser=y,new y}();e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),t.exit(1));var i=n(19).readFileSync(n(20).normalize(r[1]),"utf8");return e.parser.parse(i)},n.c[n.s]===r&&e.main(t.argv.slice(1))}).call(this,n(14),n(7)(t))},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.ALL=0]="ALL",t[t.RGB=1]="RGB",t[t.HSL=2]="HSL"}(r||(r={})),e.TYPE=r},function(t,e,n){"use strict";var r=n(10);t.exports=i;function i(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(t,e){t[e]?t[e]++:t[e]=1}function o(t,e){--t[e]||delete t[e]}function s(t,e,n,i){var a=""+e,o=""+n;if(!t&&a>o){var s=a;a=o,o=s}return a+""+o+""+(r.isUndefined(i)?"\0":i)}function c(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function u(t,e){return s(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},i.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return r.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},i.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var a=n.parent(r);return void 0===a||e.hasNode(a)?(i[r]=a,a):a in i?i[a]:t(a)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},i.prototype.setEdge=function(){var t,e,n,i,o=!1,u=arguments[0];"object"==typeof u&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return o&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=o?i:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,a(this._preds[e],t),a(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},i.prototype.edge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?u(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],o(this._preds[e],t),o(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},i.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},i.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){var r=n(34)(n(16),"Map");t.exports=r},function(t,e,n){var r=n(217),i=n(224),a=n(226),o=n(227),s=n(228);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){var r=n(109),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{var t=a&&a.require&&a.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}).call(this,n(7)(t))},function(t,e,n){var r=n(62),i=n(234),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(116),i=n(117),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n0&&a(l)?n>1?t(l,n-1,a,o,s):r(s,l):o||(s[s.length]=l)}return s}},function(t,e,n){var r=n(43);t.exports=function(t,e,n){for(var i=-1,a=t.length;++i4,u=c?1:17,l=c?8:4,h=s?0:-1,f=c?255:15;return i.default.set({r:(r>>l*(h+3)&f)*u,g:(r>>l*(h+2)&f)*u,b:(r>>l*(h+1)&f)*u,a:s?(r&f)*u/255:1},t)}}},stringify:function(t){return t.a<1?"#"+a.DEC2HEX[Math.round(t.r)]+a.DEC2HEX[Math.round(t.g)]+a.DEC2HEX[Math.round(t.b)]+r.default.unit.frac2hex(t.a):"#"+a.DEC2HEX[Math.round(t.r)]+a.DEC2HEX[Math.round(t.g)]+a.DEC2HEX[Math.round(t.b)]}};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a=n(15);e.default=function(t,e,n,o){void 0===o&&(o=1);var s=i.default.set({h:r.default.channel.clamp.h(t),s:r.default.channel.clamp.s(e),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(o)});return a.default.stringify(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"a")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15);e.default=function(t){var e=i.default.parse(t),n=e.r,a=e.g,o=e.b,s=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(a)+.0722*r.default.channel.toLinear(o);return r.default.lang.round(s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(102);e.default=function(t){return r.default(t)>=.5}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"a",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"a",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(52);e.default=function(t,e){var n=r.default.parse(t),a={};for(var o in e)e[o]&&(a[o]=n[o]+e[o]);return i.default(t,a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(51);e.default=function(t,e,n){void 0===n&&(n=50);var a=r.default.parse(t),o=a.r,s=a.g,c=a.b,u=a.a,l=r.default.parse(e),h=l.r,f=l.g,d=l.b,p=l.a,y=n/100,g=2*y-1,v=u-p,m=((g*v==-1?g:(g+v)/(1+g*v))+1)/2,b=1-m,_=o*m+h*b,x=s*m+f*b,w=c*m+d*b,k=u*y+p*(1-y);return i.default(_,x,w,k)}},function(t,e,n){var r=n(53),i=n(79),a=n(58),o=n(229),s=n(235),c=n(114),u=n(115),l=n(238),h=n(239),f=n(119),d=n(240),p=n(42),y=n(244),g=n(245),v=n(124),m=n(5),b=n(40),_=n(249),x=n(11),w=n(251),k=n(30),E={};E["[object Arguments]"]=E["[object Array]"]=E["[object ArrayBuffer]"]=E["[object DataView]"]=E["[object Boolean]"]=E["[object Date]"]=E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Map]"]=E["[object Number]"]=E["[object Object]"]=E["[object RegExp]"]=E["[object Set]"]=E["[object String]"]=E["[object Symbol]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E["[object Error]"]=E["[object Function]"]=E["[object WeakMap]"]=!1,t.exports=function t(e,n,T,A,C,S){var M,O=1&n,D=2&n,N=4&n;if(T&&(M=C?T(e,A,C,S):T(e)),void 0!==M)return M;if(!x(e))return e;var B=m(e);if(B){if(M=y(e),!O)return u(e,M)}else{var L=p(e),P="[object Function]"==L||"[object GeneratorFunction]"==L;if(b(e))return c(e,O);if("[object Object]"==L||"[object Arguments]"==L||P&&!C){if(M=D||P?{}:v(e),!O)return D?h(e,s(M,e)):l(e,o(M,e))}else{if(!E[L])return C?e:{};M=g(e,L,O)}}S||(S=new r);var F=S.get(e);if(F)return F;S.set(e,M),w(e)?e.forEach((function(r){M.add(t(r,n,T,r,e,S))})):_(e)&&e.forEach((function(r,i){M.set(i,t(r,n,T,i,e,S))}));var I=N?D?d:f:D?keysIn:k,j=B?void 0:I(e);return i(j||e,(function(r,i){j&&(r=e[i=r]),a(M,i,t(r,n,T,i,e,S))})),M}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(211))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(34),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(230),i=n(47),a=n(5),o=n(40),s=n(60),c=n(48),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),l=!n&&i(t),h=!n&&!l&&o(t),f=!n&&!l&&!h&&c(t),d=n||l||h||f,p=d?r(t.length,String):[],y=p.length;for(var g in t)!e&&!u.call(t,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,y))||p.push(g);return p}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){var r=n(16),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(7)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++nl))return!1;var f=c.get(t);if(f&&c.get(e))return f==e;var d=-1,p=!0,y=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d0&&(a=c.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(u);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},function(t,e,n){var r=n(10);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority2?e[2]:void 0;for(u&&a(e[0],e[1],u)&&(r=1);++n1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return aMath.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o);return{x:i+n,y:a+r}}},function(t,e,n){t.exports=function t(e){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,c=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,l=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,g=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,m=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,_=/\s{2,}/g,x=/([^\(])(:+) */g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,T=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,M="-webkit-",O="-moz-",D="-ms-",N=1,B=1,L=0,P=1,F=1,I=1,j=0,R=0,Y=0,z=[],U=[],$=0,W=null,H=0,V=1,G="",q="",X="";function Z(t,e,i,a,o){for(var s,c,l=0,h=0,f=0,d=0,v=0,m=0,b=0,_=0,w=0,E=0,T=0,A=0,C=0,S=0,O=0,D=0,j=0,U=0,W=0,Q=i.length,it=Q-1,at="",ot="",st="",ct="",ut="",lt="";O0&&(ot=ot.replace(r,"")),ot.trim().length>0)){switch(b){case 32:case 9:case 59:case 13:case 10:break;default:ot+=i.charAt(O)}b=59}if(1===j)switch(b){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:j=0;case 9:case 13:case 10:case 32:break;default:for(j=0,W=O,v=b,O--,b=59;W0&&(++O,b=v);case 123:W=Q}}switch(b){case 123:for(v=(ot=ot.trim()).charCodeAt(0),T=1,W=++O;O0&&(ot=ot.replace(r,"")),m=ot.charCodeAt(1)){case 100:case 109:case 115:case 45:s=e;break;default:s=z}if(W=(st=Z(e,s,st,m,o+1)).length,Y>0&&0===W&&(W=ot.length),$>0&&(c=nt(3,st,s=J(z,ot,U),e,B,N,W,m,o,a),ot=s.join(""),void 0!==c&&0===(W=(st=c.trim()).length)&&(m=0,st="")),W>0)switch(m){case 115:ot=ot.replace(k,et);case 100:case 109:case 45:st=ot+"{"+st+"}";break;case 107:st=(ot=ot.replace(p,"$1 $2"+(V>0?G:"")))+"{"+st+"}",st=1===F||2===F&&tt("@"+st,3)?"@"+M+st+"@"+st:"@"+st;break;default:st=ot+st,112===a&&(ct+=st,st="")}else st="";break;default:st=Z(e,J(e,ot,U),st,a,o+1)}ut+=st,A=0,j=0,S=0,D=0,U=0,C=0,ot="",st="",b=i.charCodeAt(++O);break;case 125:case 59:if((W=(ot=(D>0?ot.replace(r,""):ot).trim()).length)>1)switch(0===S&&(45===(v=ot.charCodeAt(0))||v>96&&v<123)&&(W=(ot=ot.replace(" ",":")).length),$>0&&void 0!==(c=nt(1,ot,e,t,B,N,ct.length,a,o,a))&&0===(W=(ot=c.trim()).length)&&(ot="\0\0"),v=ot.charCodeAt(0),m=ot.charCodeAt(1),v){case 0:break;case 64:if(105===m||99===m){lt+=ot+i.charAt(O);break}default:if(58===ot.charCodeAt(W-1))break;ct+=K(ot,v,m,ot.charCodeAt(2))}A=0,j=0,S=0,D=0,U=0,ot="",b=i.charCodeAt(++O)}}switch(b){case 13:case 10:if(h+d+f+l+R===0)switch(E){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:S>0&&(j=1)}47===h?h=0:P+A===0&&107!==a&&ot.length>0&&(D=1,ot+="\0"),$*H>0&&nt(0,ot,e,t,B,N,ct.length,a,o,a),N=1,B++;break;case 59:case 125:if(h+d+f+l===0){N++;break}default:switch(N++,at=i.charAt(O),b){case 9:case 32:if(d+l+h===0)switch(_){case 44:case 58:case 9:case 32:at="";break;default:32!==b&&(at=" ")}break;case 0:at="\\0";break;case 12:at="\\f";break;case 11:at="\\v";break;case 38:d+h+l===0&&P>0&&(U=1,D=1,at="\f"+at);break;case 108:if(d+h+l+L===0&&S>0)switch(O-S){case 2:112===_&&58===i.charCodeAt(O-3)&&(L=_);case 8:111===w&&(L=w)}break;case 58:d+h+l===0&&(S=O);break;case 44:h+f+d+l===0&&(D=1,at+="\r");break;case 34:case 39:0===h&&(d=d===b?0:0===d?b:d);break;case 91:d+h+f===0&&l++;break;case 93:d+h+f===0&&l--;break;case 41:d+h+l===0&&f--;break;case 40:if(d+h+l===0){if(0===A)switch(2*_+3*w){case 533:break;default:T=0,A=1}f++}break;case 64:h+f+d+l+S+C===0&&(C=1);break;case 42:case 47:if(d+l+f>0)break;switch(h){case 0:switch(2*b+3*i.charCodeAt(O+1)){case 235:h=47;break;case 220:W=O,h=42}break;case 42:47===b&&42===_&&W+2!==O&&(33===i.charCodeAt(W+2)&&(ct+=i.substring(W,O+1)),at="",h=0)}}if(0===h){if(P+d+l+C===0&&107!==a&&59!==b)switch(b){case 44:case 126:case 62:case 43:case 41:case 40:if(0===A){switch(_){case 9:case 32:case 10:case 13:at+="\0";break;default:at="\0"+at+(44===b?"":"\0")}D=1}else switch(b){case 40:S+7===O&&108===_&&(S=0),A=++T;break;case 41:0==(A=--T)&&(D=1,at+="\0")}break;case 9:case 32:switch(_){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===A&&(D=1,at+="\0")}}ot+=at,32!==b&&9!==b&&(E=b)}}w=_,_=b,O++}if(W=ct.length,Y>0&&0===W&&0===ut.length&&0===e[0].length==0&&(109!==a||1===e.length&&(P>0?q:X)===e[0])&&(W=e.join(",").length+2),W>0){if(s=0===P&&107!==a?function(t){for(var e,n,i=0,a=t.length,o=Array(a);i1)){if(f=c.charCodeAt(c.length-1),d=n.charCodeAt(0),e="",0!==l)switch(f){case 42:case 126:case 62:case 43:case 32:case 40:break;default:e=" "}switch(d){case 38:n=e+q;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:n=e+n+q;break;case 58:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(I>0){n=e+n.substring(8,h-1);break}default:(l<1||s[l-1].length<1)&&(n=e+q+n)}break;case 44:e="";default:n=h>1&&n.indexOf(":")>0?e+n.replace(x,"$1"+q+"$2"):e+n+q}c+=n}o[i]=c.replace(r,"").trim()}return o}(e):e,$>0&&void 0!==(c=nt(2,ct,s,t,B,N,W,a,o,a))&&0===(ct=c).length)return lt+ct+ut;if(ct=s.join(",")+"{"+ct+"}",F*L!=0){switch(2!==F||tt(ct,2)||(L=0),L){case 111:ct=ct.replace(g,":-moz-$1")+ct;break;case 112:ct=ct.replace(y,"::-webkit-input-$1")+ct.replace(y,"::-moz-$1")+ct.replace(y,":-ms-input-$1")+ct}L=0}}return lt+ct+ut}function J(t,e,n){var r=e.trim().split(l),i=r,a=r.length,o=t.length;switch(o){case 0:case 1:for(var s=0,c=0===o?"":t[0]+" ";s0&&P>0)return i.replace(f,"$1").replace(h,"$1"+X);break;default:return t.trim()+i.replace(h,"$1"+t.trim())}default:if(n*P>0&&i.indexOf("\f")>0)return i.replace(h,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+i}function K(t,e,n,r){var u,l=0,h=t+";",f=2*e+3*n+4*r;if(944===f)return function(t){var e=t.length,n=t.indexOf(":",9)+1,r=t.substring(0,n).trim(),i=t.substring(n,e-1).trim();switch(t.charCodeAt(9)*V){case 0:break;case 45:if(110!==t.charCodeAt(10))break;default:var a=i.split((i="",s)),o=0;for(n=0,e=a.length;o64&&h<90||h>96&&h<123||95===h||45===h&&45!==u.charCodeAt(1)))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=G}}l[n++]=u}i+=(0===o?"":",")+l.join(" ")}}return i=r+i+";",1===F||2===F&&tt(i,1)?M+i+i:i}(h);if(0===F||2===F&&!tt(h,1))return h;switch(f){case 1015:return 97===h.charCodeAt(10)?M+h+h:h;case 951:return 116===h.charCodeAt(3)?M+h+h:h;case 963:return 110===h.charCodeAt(5)?M+h+h:h;case 1009:if(100!==h.charCodeAt(4))break;case 969:case 942:return M+h+h;case 978:return M+h+O+h+h;case 1019:case 983:return M+h+O+h+D+h+h;case 883:return 45===h.charCodeAt(8)?M+h+h:h.indexOf("image-set(",11)>0?h.replace(S,"$1-webkit-$2")+h:h;case 932:if(45===h.charCodeAt(4))switch(h.charCodeAt(5)){case 103:return M+"box-"+h.replace("-grow","")+M+h+D+h.replace("grow","positive")+h;case 115:return M+h+D+h.replace("shrink","negative")+h;case 98:return M+h+D+h.replace("basis","preferred-size")+h}return M+h+D+h+h;case 964:return M+h+D+"flex-"+h+h;case 1023:if(99!==h.charCodeAt(8))break;return u=h.substring(h.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),M+"box-pack"+u+M+h+D+"flex-pack"+u+h;case 1005:return a.test(h)?h.replace(i,":"+M)+h.replace(i,":"+O)+h:h;case 1e3:switch(l=(u=h.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(l)){case 226:u=h.replace(w,"tb");break;case 232:u=h.replace(w,"tb-rl");break;case 220:u=h.replace(w,"lr");break;default:return h}return M+h+D+u+h;case 1017:if(-1===h.indexOf("sticky",9))return h;case 975:switch(l=(h=t).length-10,f=(u=(33===h.charCodeAt(l)?h.substring(0,l):h).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:h=h.replace(u,M+u)+";"+h;break;case 207:case 102:h=h.replace(u,M+(f>102?"inline-":"")+"box")+";"+h.replace(u,M+u)+";"+h.replace(u,D+u+"box")+";"+h}return h+";";case 938:if(45===h.charCodeAt(5))switch(h.charCodeAt(6)){case 105:return u=h.replace("-items",""),M+h+M+"box-"+u+D+"flex-"+u+h;case 115:return M+h+D+"flex-item-"+h.replace(T,"")+h;default:return M+h+D+"flex-line-pack"+h.replace("align-content","").replace(T,"")+h}break;case 973:case 989:if(45!==h.charCodeAt(3)||122===h.charCodeAt(4))break;case 931:case 953:if(!0===C.test(t))return 115===(u=t.substring(t.indexOf(":")+1)).charCodeAt(0)?K(t.replace("stretch","fill-available"),e,n,r).replace(":fill-available",":stretch"):h.replace(u,M+u)+h.replace(u,O+u.replace("fill-",""))+h;break;case 962:if(h=M+h+(102===h.charCodeAt(5)?D+h:"")+h,n+r===211&&105===h.charCodeAt(13)&&h.indexOf("transform",10)>0)return h.substring(0,h.indexOf(";",27)+1).replace(o,"$1-webkit-$2")+h}return h}function tt(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10),i=t.substring(n+1,t.length-1);return W(2!==e?r:r.replace(A,"$1"),i,e)}function et(t,e){var n=K(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(E," or ($1)").substring(4):"("+e+")"}function nt(t,e,n,r,i,a,o,s,c,u){for(var l,h=0,f=e;h<$;++h)switch(l=U[h].call(at,t,f,n,r,i,a,o,s,c,u)){case void 0:case!1:case!0:case null:break;default:f=l}if(f!==e)return f}function rt(t,e,n,r){for(var i=e+1;i0&&(G=i.replace(d,91===a?"":"-")),a=1,1===P?X=i:q=i;var o,s=[X];$>0&&void 0!==(o=nt(-1,n,s,s,B,N,0,0,0,0))&&"string"==typeof o&&(n=o);var c=Z(z,s,n,0,0);return $>0&&void 0!==(o=nt(-2,c,s,s,B,N,c.length,0,0,0))&&"string"!=typeof(c=o)&&(a=0),G="",X="",q="",L=0,B=1,N=1,j*a==0?c:function(t){return t.replace(r,"").replace(v,"").replace(m,"$1").replace(b,"$1").replace(_," ")}(c)}return at.use=function t(e){switch(e){case void 0:case null:$=U.length=0;break;default:if("function"==typeof e)U[$++]=e;else if("object"==typeof e)for(var n=0,r=e.length;n=255?255:t<0?0:t},g:function(t){return t>=255?255:t<0?0:t},b:function(t){return t>=255?255:t<0?0:t},h:function(t){return t%360},s:function(t){return t>=100?100:t<0?0:t},l:function(t){return t>=100?100:t<0?0:t},a:function(t){return t>=1?1:t<0?0:t}},toLinear:function(t){var e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},hsl2rgb:function(t,e){var n=t.h,i=t.s,a=t.l;if(100===i)return 2.55*a;n/=360,i/=100;var o=(a/=100)<.5?a*(1+i):a+i-a*i,s=2*a-o;switch(e){case"r":return 255*r.hue2rgb(s,o,n+1/3);case"g":return 255*r.hue2rgb(s,o,n);case"b":return 255*r.hue2rgb(s,o,n-1/3)}},rgb2hsl:function(t,e){var n=t.r,r=t.g,i=t.b;n/=255,r/=255,i/=255;var a=Math.max(n,r,i),o=Math.min(n,r,i),s=(a+o)/2;if("l"===e)return 100*s;if(a===o)return 0;var c=a-o;if("s"===e)return 100*(s>.5?c/(2-a-o):c/(a+o));switch(a){case n:return 60*((r-i)/c+(r1?e:"0"+e},dec2hex:function(t){var e=Math.round(t).toString(16);return e.length>1?e:"0"+e}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(75),a=n(177),o=function(){function t(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a.default}return t.prototype.set=function(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.TYPE.ALL,this},t.prototype._ensureHSL=function(){void 0===this.data.h&&(this.data.h=r.default.channel.rgb2hsl(this.data,"h")),void 0===this.data.s&&(this.data.s=r.default.channel.rgb2hsl(this.data,"s")),void 0===this.data.l&&(this.data.l=r.default.channel.rgb2hsl(this.data,"l"))},t.prototype._ensureRGB=function(){void 0===this.data.r&&(this.data.r=r.default.channel.hsl2rgb(this.data,"r")),void 0===this.data.g&&(this.data.g=r.default.channel.hsl2rgb(this.data,"g")),void 0===this.data.b&&(this.data.b=r.default.channel.hsl2rgb(this.data,"b"))},Object.defineProperty(t.prototype,"r",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.r?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"r")):this.data.r},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.r=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.g?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"g")):this.data.g},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.b?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"b")):this.data.b},set:function(t){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.b=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"h",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.h?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"h")):this.data.h},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.h=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"s",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.s?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"s")):this.data.s},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.s=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"l",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.l?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"l")):this.data.l},set:function(t){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.l=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.data.a},set:function(t){this.changed=!0,this.data.a=t},enumerable:!0,configurable:!0}),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(75),i=function(){function t(){this.type=r.TYPE.ALL}return t.prototype.get=function(){return this.type},t.prototype.set=function(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t},t.prototype.reset=function(){this.type=r.TYPE.ALL},t.prototype.is=function(t){return this.type===t},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i={};e.DEC2HEX=i;for(var a=0;a<=255;a++)i[a]=r.default.unit.dec2hex(a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(t){t=t.toLowerCase();var e=i.colors[t];if(e)return r.default.parse(e)},stringify:function(t){var e=r.default.stringify(t);for(var n in i.colors)if(i.colors[n]===e)return n}};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(t){var e=t.charCodeAt(0);if(114===e||82===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],u=n[4],l=n[5],h=n[6],f=n[7],d=n[8];return i.default.set({r:r.default.channel.clamp.r(s?2.55*parseFloat(o):parseFloat(o)),g:r.default.channel.clamp.g(u?2.55*parseFloat(c):parseFloat(c)),b:r.default.channel.clamp.b(h?2.55*parseFloat(l):parseFloat(l)),a:f?r.default.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)}}},stringify:function(t){return t.a<1?"rgba("+r.default.lang.round(t.r)+", "+r.default.lang.round(t.g)+", "+r.default.lang.round(t.b)+", "+r.default.lang.round(t.a)+")":"rgb("+r.default.lang.round(t.r)+", "+r.default.lang.round(t.g)+", "+r.default.lang.round(t.b)+")"}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(45),a={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(t){var e=t.match(a.hueRe);if(e){var n=e[1];switch(e[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(t))},parse:function(t){var e=t.charCodeAt(0);if(104===e||72===e){var n=t.match(a.re);if(n){var o=n[1],s=n[2],c=n[3],u=n[4],l=n[5];return i.default.set({h:a._hue2deg(o),s:r.default.channel.clamp.s(parseFloat(s)),l:r.default.channel.clamp.l(parseFloat(c)),a:u?r.default.channel.clamp.a(l?parseFloat(u)/100:parseFloat(u)):1},t)}}},stringify:function(t){return t.a<1?"hsla("+r.default.lang.round(t.h)+", "+r.default.lang.round(t.s)+"%, "+r.default.lang.round(t.l)+"%, "+t.a+")":"hsl("+r.default.lang.round(t.h)+", "+r.default.lang.round(t.s)+"%, "+r.default.lang.round(t.l)+"%)"}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"r")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"g")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"b")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"h")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"s")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);e.default=function(t){return r.default(t,"l")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(103);e.default=function(t){return!r.default(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t){try{return r.default.parse(t),!0}catch(t){return!1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"s",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"s",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"l",e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t,e){return r.default(t,"l",-e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33);e.default=function(t){return r.default(t,"h",180)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=function(t){return r.default(t,{s:0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15),i=n(107);e.default=function(t,e){void 0===e&&(e=100);var n=r.default.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(9),i=n(15),a=n(106);e.default=function(t,e){var n,o,s,c=i.default.parse(t),u={};for(var l in e)u[l]=(n=c[l],o=e[l],s=r.default.channel.max[l],o>0?(s-n)*o/100:n*o/100);return a.default(t,u)}},function(t,e,n){t.exports={Graph:n(76),version:n(300)}},function(t,e,n){var r=n(108);t.exports=function(t){return r(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(55),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(55);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(55);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(54);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(54),i=n(77),a=n(78);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(38),i=n(214),a=n(11),o=n(110),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,f=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?f:s).test(o(t))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(39),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(215),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},function(t,e,n){var r=n(16)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(218),i=n(54),a=n(77);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(t,e,n){var r=n(219),i=n(220),a=n(221),o=n(222),s=n(223);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(131),i=n(292),a=n(296),o=n(132),s=n(297),c=n(90);t.exports=function(t,e,n){var u=-1,l=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,l=a;else if(h>=200){var y=e?null:s(t);if(y)return c(y);f=!1,l=o,p=new r}else p=e?[]:d;t:for(;++u-1}},function(t,e,n){var r=n(145),i=n(294),a=n(295);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(10);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s0;){if(n=c.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(u)}return o}},function(t,e,n){var r;try{r=n(3)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){"use strict";var r=n(4),i=n(345),a=n(348),o=n(349),s=n(8).normalizeRanks,c=n(351),u=n(8).removeEmptyRanks,l=n(352),h=n(353),f=n(354),d=n(355),p=n(364),y=n(8),g=n(17).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?y.time:y.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=A(t.graph());return e.setGraph(r.merge({},m,T(n,v),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=A(t.node(n));e.setNode(n,r.defaults(T(i,_),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=A(t.edge(n));e.setEdge(n,r.merge({},k,T(i,w),r.pick(i,E)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){o(y.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};y.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=y.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){y.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function u(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&u(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(y.intersectRect(a,n)),i.points.push(y.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],_=["width","height"],x={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function T(t,e){return r.mapValues(r.pick(t,e),Number)}function A(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(108);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(315)(n(316));t.exports=r},function(t,e,n){var r=n(25),i=n(24),a=n(30);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var c=r(n,3);e=a(e),n=function(t){return c(s[t],t,s)}}var u=t(e,n,o);return u>-1?s[c?e[u]:u]:void 0}}},function(t,e,n){var r=n(145),i=n(25),a=n(317),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(t,i(e,3),c)}},function(t,e,n){var r=n(155);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(11),i=n(43),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=s.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}},function(t,e,n){var r=n(89),i=n(127),a=n(41);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(59),i=n(88),a=n(25);t.exports=function(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}},function(t,e,n){var r=n(95),i=n(323),a=n(36);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(325),i=n(328)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(53),i=n(157),a=n(89),o=n(326),s=n(11),c=n(41),u=n(159);t.exports=function t(e,n,l,h,f){e!==n&&a(n,(function(a,c){if(f||(f=new r),s(a))o(e,n,c,l,t,h,f);else{var d=h?h(u(e,c),a,c+"",e,n,f):void 0;void 0===d&&(d=a),i(e,c,d)}}),c)}},function(t,e,n){var r=n(157),i=n(114),a=n(123),o=n(115),s=n(124),c=n(47),u=n(5),l=n(146),h=n(40),f=n(38),d=n(11),p=n(158),y=n(48),g=n(159),v=n(327);t.exports=function(t,e,n,m,b,_,x){var w=g(t,n),k=g(e,n),E=x.get(k);if(E)r(t,n,E);else{var T=_?_(w,k,n+"",t,e,x):void 0,A=void 0===T;if(A){var C=u(k),S=!C&&h(k),M=!C&&!S&&y(k);T=k,C||S||M?u(w)?T=w:l(w)?T=o(w):S?(A=!1,T=i(k,!0)):M?(A=!1,T=a(k,!0)):T=[]:p(k)||c(k)?(T=w,c(w)?T=v(w):d(w)&&!f(w)||(T=s(k))):A=!1}A&&(x.set(k,T),b(T,k,m,_,x),x.delete(k)),r(t,n,T)}}},function(t,e,n){var r=n(46),i=n(41);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(67),i=n(68);t.exports=function(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(66),i=n(25),a=n(141),o=n(340),s=n(61),c=n(341),u=n(36);t.exports=function(t,e,n){var l=-1;e=r(e.length?e:[u],s(i));var h=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++l,value:t}}));return o(h,(function(t,e){return c(t,e,n)}))}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(342);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,c=n.length;++i=c?u:u*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(43);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,c=null===e,u=e==e,l=r(e);if(!c&&!l&&!o&&t>e||o&&s&&u&&!c&&!l||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!l&&t0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var r=n(4),i=n(8);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,u=t.node(c).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(u===s+1)return;for(t.removeEdge(e),a=0,++s;sc.lim&&(u=c,l=!0);var h=r.filter(e.edges(),(function(e){return l===m(t,t.node(e.v),u)&&l!==m(t,t.node(e.w),u)}));return r.minBy(h,(function(t){return a(e,t)}))}function v(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=y,l.enterEdge=g,l.exchangeEdges=v},function(t,e,n){var r=n(4);t.exports=function(t){var e=function(t){var e={},n=0;function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||u>e[i].lim));a=i,i=r;for(;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,u=o[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(u=o[c])!==s&&t.node(u).maxRank=2),s=l.buildLayerMatrix(t);var g=a(t,s);g0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(4),i=n(8);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),o=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],u=0,l=0,h=0;o.sort((f=!!e,function(t,e){return t.barycentere.barycenter?1:f?e.i-t.i:t.i-e.i})),h=a(c,s,h),r.forEach(o,(function(t){h+=t.vs.length,c.push(t.vs),u+=t.barycenter*t.weight,l+=t.weight,h=a(c,s,h)}));var f;var d={vs:r.flatten(c,!0)};l&&(d.barycenter=u/l,d.weight=l);return d}},function(t,e,n){var r=n(4),i=n(17).Graph;t.exports=function(t,e,n){var a=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},function(t,e,n){var r=n(4);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},function(t,e,n){"use strict";var r=n(4),i=n(8),a=n(365).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){"use strict";var r=n(4),i=n(17).Graph,a=n(8);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,u=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===u)&&(r.forEach(i.slice(o,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&c(n,e,u)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(a=t.node(u[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length)for(var l=((c=r.sortBy(c,(function(t){return s[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=c[h];o[t]===t&&e0}t.exports=function(t,e,r,i){var a,o,s,c,u,l,h,f,d,p,y,g,v;if(a=e.y-t.y,s=t.x-e.x,u=e.x*t.y-t.x*e.y,d=a*r.x+s*r.y+u,p=a*i.x+s*i.y+u,0!==d&&0!==p&&n(d,p))return;if(o=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,h=o*t.x+c*t.y+l,f=o*e.x+c*e.y+l,0!==h&&0!==f&&n(h,f))return;if(0===(y=a*c-o*s))return;return g=Math.abs(y/2),{x:(v=s*l-c*u)<0?(v-g)/y:(v+g)/y,y:(v=o*u-a*l)<0?(v-g)/y:(v+g)/y}}},function(t,e,n){var r=n(44),i=n(31),a=n(153).layout;t.exports=function(){var t=n(371),e=n(374),i=n(375),u=n(376),l=n(377),h=n(378),f=n(379),d=n(380),p=n(381),y=function(n,y){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(y);var g=c(n,"output"),v=c(g,"clusters"),m=c(g,"edgePaths"),b=i(c(g,"edgeLabels"),y),_=t(c(g,"nodes"),y,d);a(y),l(_,y),h(b,y),u(m,y,p);var x=e(v,y);f(x,y),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(y)};return y.createNodes=function(e){return arguments.length?(t=e,y):t},y.createClusters=function(t){return arguments.length?(e=t,y):e},y.createEdgeLabels=function(t){return arguments.length?(i=t,y):i},y.createEdgePaths=function(t){return arguments.length?(u=t,y):u},y.shapes=function(t){return arguments.length?(d=t,y):d},y.arrows=function(t){return arguments.length?(p=t,y):p},y};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},function(t,e,n){"use strict";var r=n(44),i=n(97),a=n(12),o=n(31);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),u=t.selectAll("g.node").data(c,(function(t){return t})).classed("update",!0);u.exit().remove(),u.enter().append("g").attr("class","node").style("opacity",0),(u=t.selectAll("g.node")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var u=c.append("g").attr("class","label"),l=i(u,s),h=n[s.shape],f=r.pick(l.node().getBBox(),"width","height");s.elem=this,s.id&&c.attr("id",s.id),s.labelId&&u.attr("id",s.labelId),r.has(s,"width")&&(f.width=s.width),r.has(s,"height")&&(f.height=s.height),f.width+=s.paddingLeft+s.paddingRight,f.height+=s.paddingTop+s.paddingBottom,u.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var d=o.select(this);d.select(".label-container").remove();var p=h(d,f,s).classed("label-container",!0);a.applyStyle(p,s.style);var y=p.node().getBBox();s.width=y.width,s.height=y.height})),s=u.exit?u.exit():u.selectAll(null);return a.applyTransition(s,e).style("opacity",0).remove(),u}},function(t,e,n){var r=n(12);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==h[t]&&(t=h[t])),f.trace=function(){},f.debug=function(){},f.info=function(){},f.warn=function(){},f.error=function(){},f.fatal=function(){},t<=h.fatal&&(f.fatal=console.error?console.error.bind(console,p("FATAL"),"color: orange"):console.log.bind(console,"",p("FATAL"))),t<=h.error&&(f.error=console.error?console.error.bind(console,p("ERROR"),"color: orange"):console.log.bind(console,"",p("ERROR"))),t<=h.warn&&(f.warn=console.warn?console.warn.bind(console,p("WARN"),"color: orange"):console.log.bind(console,"",p("WARN"))),t<=h.info&&(f.info=console.info?console.info.bind(console,p("INFO"),"color: lightblue"):console.log.bind(console,"",p("INFO"))),t<=h.debug&&(f.debug=console.debug?console.debug.bind(console,p("DEBUG"),"color: lightgreen"):console.log.bind(console,"",p("DEBUG")))},p=function(t){var e=l()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")},y=n(70),g=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}return e},v=//gi,m=function(t){return t.replace(v,"#br#")},b=function(t){return t.replace(/#br#/g,"
")},_={getRows:function(t){if(!t)return 1;var e=m(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:function(t,e){var n=t,r=!0;if(!e.flowchart||!1!==e.flowchart.htmlLabels&&"false"!==e.flowchart.htmlLabels||(r=!1),r){var i=e.securityLevel;"antiscript"===i?n=g(n):"loose"!==i&&(n=(n=(n=m(n)).replace(//g,">")).replace(/=/g,"="),n=b(n))}return n},hasBreaks:function(t){return//gi.test(t)},splitBreaks:function(t){return t.split(//gi)},lineBreakRegex:v,removeScript:g};function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(T.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),f.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var r,i=[];null!==(r=E.exec(t));)if(r.index===E.lastIndex&&E.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:o})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(n){return f.error("ERROR: ".concat(n.message," - Unable to parse directive").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},S=function(t){return t=t.replace(E,"").replace(A,"\n"),f.debug("Detecting diagram type based on the text "+t),t.match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?"state":t.match(/^\s*gitGraph/)?"git":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":"flowchart"},M=function(t,e){var n={};return function(){for(var r=arguments.length,i=new Array(r),a=0;a"},n),_.lineBreakRegex.test(t))return t;var r=t.split(" "),i=[],a="";return r.forEach((function(t,o){var s=Y("".concat(t," "),n),c=Y(a,n);if(s>e){var u=R(t,e,"-",n),l=u.hyphenatedStrings,h=u.remainingWord;i.push.apply(i,[a].concat(w(l))),a=h}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(n.joinWith)}),(function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),R=M((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=t.split(""),a=[],o="";return i.forEach((function(t,s){var c="".concat(o).concat(t);if(Y(c,r)>=e){var u=s+1,l=i.length===u,h="".concat(c).concat(n);a.push(l?c:h),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),Y=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),z(t,e).width},z=M((function(t,e){var n=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r=n.fontSize,i=n.fontFamily,a=n.fontWeight;if(!t)return{width:0,height:0};var o=["sans-serif",i],c=t.split(_.lineBreakRegex),u=[],l=Object(s.select)("body");if(!l.remove)return{width:0,height:0,lineHeight:0};for(var h=l.append("svg"),f=0,d=o;fu[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),U={assignWithDepth:F,wrapLabel:j,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),z(t,e).height},calculateTextWidth:Y,calculateTextDimensions:z,detectInit:function(t){var e=C(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(e)){var r=e.map((function(t){return t.args}));n=F(n,w(r))}else n=e.args;if(n){var i=S(t);["config"].forEach((function(t){void 0!==n[t]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[t],delete n[t])}))}return n},detectDirective:C,detectType:S,isSubstringInArray:function(t,e){for(var n=0;n=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,n){var r;e[0]!==n&&(e=e.reverse()),e.forEach((function(t){D(t,r),r=t}));var i,a=25;r=void 0,e.forEach((function(t){if(r&&!i){var e=D(t,r);if(e=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(s)*o+(e[0].x+i.x)/2,c.y=-Math.cos(s)*o+(e[0].y+i.y)/2,c},formatUrl:function(t,e){var n=t.trim();if(n)return"loose"!==e.securityLevel?Object(y.sanitizeUrl)(n):n},getStylesFromArray:N,generateId:L,random:P,memoize:M,runFunc:function(t){for(var e,n=t.split("."),r=n.length-1,i=n[r],a=window,o=0;o1?s-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:bt();gt=[],mt()};function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Et,Tt=pt,At={},Ct=[],St=[],Mt=[],Ot={},Dt={},Nt=0,Bt=!0,Lt=[],Pt=function(t,e,n,r){var i=t,a=e;i[0].match(/\d/)&&(i=""+i),a[0].match(/\d/)&&(a=""+a);var o={start:i,end:a,type:void 0,text:""};void 0!==(r=n.text)&&(o.text=_.sanitizeText(r.trim(),Tt),'"'===o.text[0]&&'"'===o.text[o.text.length-1]&&(o.text=o.text.substring(1,o.text.length-1))),void 0!==n&&(o.type=n.type,o.stroke=n.stroke),Ct.push(o)},Ft=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=""+n),void 0!==At[n]&&At[n].classes.push(e),void 0!==Ot[n]&&Ot[n].classes.push(e)}))},It=function(t,e){t.split(",").forEach((function(t){void 0!==e&&(Dt[t]=_.sanitizeText(e,Tt))}))},jt=function(t){var e=Object(s.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(s.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(s.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(s.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(s.select)(this).classed("hover",!1)}))};Lt.push(jt);var Rt=function(t){for(var e=0;e/)&&(Et="LR"),Et.match(/.*v/)&&(Et="TB")},setClass:Ft,getTooltip:function(t){return Dt[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e){var n=t;t[0].match(/\d/)&&(n=""+n),"loose"===pt.securityLevel&&void 0!==e&&void 0!==At[n]&&Lt.push((function(){var t=document.querySelector('[id="'.concat(n,'"]'));null!==t&&t.addEventListener("click",(function(){U.runFunc(e,n)}),!1)}))}(t,e)})),It(t,n),Ft(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=""+n),void 0!==At[n]&&(At[n].link=U.formatUrl(e,Tt))})),It(t,n),Ft(t,"clickable")},bindFunctions:function(t){Lt.forEach((function(e){e(t)}))},getDirection:function(){return Et.trim()},getVertices:function(){return At},getEdges:function(){return Ct},getClasses:function(){return St},clear:function(){At={},St={},Ct=[],(Lt=[]).push(jt),Mt=[],Ot={},Nt=0,Dt=[],Bt=!0},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){var r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);var a,o,s,c=[];a=c.concat.apply(c,e),o={boolean:{},number:{},string:{}},s=[],c=a.filter((function(t){var e=kt(t);return""!==t.trim()&&(e in o?!o[e].hasOwnProperty(t)&&(o[e][t]=!0):!(s.indexOf(t)>=0)&&s.push(t))}));for(var u=0;u0&&function t(e,n){var r=Mt[n].nodes;if(!((Yt+=1)>2e3)){if(zt[Yt]=n,Mt[n].id===e)return{result:!0,count:0};for(var i=0,a=1;i=0){var s=t(e,o);if(s.result)return{result:!0,count:a+s.count};a+=s.count}i+=1}return{result:!1,count:a}}}("none",Mt.length-1)},getSubGraphs:function(){return Mt},destructLink:function(t,e){var n,r=function(t){switch(t.trim()){case"--x":return{type:"arrow_cross",stroke:"normal"};case"--\x3e":return{type:"arrow_point",stroke:"normal"};case"<--\x3e":return{type:"double_arrow_point",stroke:"normal"};case"x--x":return{type:"double_arrow_cross",stroke:"normal"};case"o--o":return{type:"double_arrow_circle",stroke:"normal"};case"o.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"<==>":return{type:"double_arrow_point",stroke:"thick"};case"o==o":return{type:"double_arrow_circle",stroke:"thick"};case"x==x":return{type:"double_arrow_cross",stroke:"thick"};case"x.-x":case"x-.-x":return{type:"double_arrow_cross",stroke:"dotted"};case"<.->":case"<-.->":return{type:"double_arrow_point",stroke:"dotted"};case"o-.-o":return{type:"double_arrow_circle",stroke:"dotted"};case"--o":return{type:"arrow_circle",stroke:"normal"};case"---":return{type:"arrow_open",stroke:"normal"};case"-.-x":return{type:"arrow_cross",stroke:"dotted"};case"-.->":return{type:"arrow_point",stroke:"dotted"};case"-.-o":return{type:"arrow_circle",stroke:"dotted"};case"-.-":return{type:"arrow_open",stroke:"dotted"};case".-x":return{type:"arrow_cross",stroke:"dotted"};case".->":return{type:"arrow_point",stroke:"dotted"};case".-o":return{type:"arrow_circle",stroke:"dotted"};case".-":return{type:"arrow_open",stroke:"dotted"};case"==x":return{type:"arrow_cross",stroke:"thick"};case"==>":return{type:"arrow_point",stroke:"thick"};case"==o":return{type:"arrow_circle",stroke:"thick"};case"===":return{type:"arrow_open",stroke:"thick"}}}(t);if(e){if((n=function(t){switch(t.trim()){case"<--":return{type:"arrow_point",stroke:"normal"};case"x--":return{type:"arrow_cross",stroke:"normal"};case"o--":return{type:"arrow_circle",stroke:"normal"};case"<-.":return{type:"arrow_point",stroke:"dotted"};case"x-.":return{type:"arrow_cross",stroke:"dotted"};case"o-.":return{type:"arrow_circle",stroke:"dotted"};case"<==":return{type:"arrow_point",stroke:"thick"};case"x==":return{type:"arrow_cross",stroke:"thick"};case"o==":return{type:"arrow_circle",stroke:"thick"};case"--":return{type:"arrow_open",stroke:"normal"};case"==":return{type:"arrow_open",stroke:"thick"};case"-.":return{type:"arrow_open",stroke:"dotted"}}}(e)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n}return r},lex:{firstGraph:function(){return!!Bt&&(Bt=!1,!0)}}},$t=n(26),Wt=n.n($t),Ht=n(6),Vt=n.n(Ht),Gt=n(50),qt=n.n(Gt);function Xt(t,e,n){var r=.9*(e.width+e.height),i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],a=oe(t,r,r,i);return n.intersect=function(t){return Vt.a.intersect.polygon(n,i,t)},a}function Zt(t,e,n){var r=e.height,i=r/4,a=e.width+2*i,o=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-r/2},{x:a-i,y:-r},{x:i,y:-r},{x:0,y:-r/2}],s=oe(t,a,r,o);return n.intersect=function(t){return Vt.a.intersect.polygon(n,o,t)},s}function Jt(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function Qt(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:i/6,y:-i}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function Kt(t,e,n){var r=e.width,i=e.height,a=[{x:2*i/6,y:0},{x:r+i/6,y:0},{x:r-2*i/6,y:-i},{x:-i/6,y:-i}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function te(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r+2*i/6,y:0},{x:r-i/6,y:-i},{x:i/6,y:-i}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function ee(t,e,n){var r=e.width,i=e.height,a=[{x:i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function ne(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function re(t,e,n){var r=e.height,i=e.width+r/4,a=t.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-i/2).attr("y",-r/2).attr("width",i).attr("height",r);return n.intersect=function(t){return Vt.a.intersect.rect(n,t)},a}function ie(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=oe(t,r,i,a);return n.intersect=function(t){return Vt.a.intersect.polygon(n,a,t)},o}function ae(t,e,n){var r=e.width,i=r/2,a=i/(2.5+r/50),o=e.height+a,s="M 0,"+a+" a "+i+","+a+" 0,0,0 "+r+" 0 a "+i+","+a+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+i+","+a+" 0,0,0 "+r+" 0 l 0,"+-o,c=t.attr("label-offset-y",a).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+a)+")");return n.intersect=function(t){var e=Vt.a.intersect.rect(n,t),r=e.x-n.x;if(0!=i&&(Math.abs(r)n.height/2-a)){var o=a*a*(1-r*r/(i*i));0!=o&&(o=Math.sqrt(o)),o=a-o,t.y-n.y>0&&(o=-o),e.y+=o}return e},c}function oe(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}var se={addToRender:function(t){t.shapes().question=Xt,t.shapes().hexagon=Zt,t.shapes().stadium=re,t.shapes().subroutine=ie,t.shapes().cylinder=ae,t.shapes().rect_left_inv_arrow=Jt,t.shapes().lean_right=Qt,t.shapes().lean_left=Kt,t.shapes().trapezoid=te,t.shapes().inv_trapezoid=ee,t.shapes().rect_right_inv_arrow=ne},addToRenderV2:function(t){t({question:Xt}),t({hexagon:Zt}),t({stadium:re}),t({subroutine:ie}),t({cylinder:ae}),t({rect_left_inv_arrow:Jt}),t({lean_right:Qt}),t({lean_left:Kt}),t({trapezoid:te}),t({inv_trapezoid:ee}),t({rect_right_inv_arrow:ne})}},ce={},ue=function(t,e,n){var r=Object(s.select)('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var o,s=N(i.styles),c=void 0!==i.text?i.text:i.id;if(_t().flowchart.htmlLabels){var u={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))};(o=qt()(r,u).node()).parentNode.removeChild(o)}else{var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",s.labelStyle.replace("color:","fill:"));for(var h=c.split(_.lineBreakRegex),f=0;f').concat(a.text,"")):(l.labelType="text",l.label=a.text.replace(_.lineBreakRegex,"\n"),void 0===a.style&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+u,e.setEdge(a.start,a.end,l,i)}))},he=function(t){for(var e=Object.keys(t),n=0;n=0;h--)i=l[h],Ut.addVertex(i.id,i.title,"group",void 0,i.classes);var d=Ut.getVertices(),p=Ut.getEdges(),y=0;for(y=l.length-1;y>=0;y--){i=l[y],Object(s.selectAll)("cluster").append("text");for(var g=0;g"),f.info("vertexText"+i),function(t){var e,n,r=Object(s.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=r.append("xhtml:div"),a=t.label,o=t.isNode?"nodeLabel":"edgeLabel";return i.html(''+a+""),e=i,(n=t.labelStyle)&&e.attr("style",n),i.style("display","inline-block"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:r,label:i.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))});var a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));var o=[];o="string"==typeof i?i.split(/\\n|\n|/gi):Array.isArray(i)?i:[];for(var c=0;c0)t(a,n,r,i);else{var o=n.node(a);f.info("cp ",a," to ",i," with parent ",e),r.setNode(a,o),f.debug("Setting parent",a,n.parent(a)),i!==n.parent(a)&&r.setParent(a,n.parent(a)),e!==i&&a!==e?(f.debug("Setting parent",a,e),r.setParent(a,e)):(f.info("In copy ",e,"root",i,"data",n.node(e),i),f.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));var s=n.edges(a);f.debug("Copying Edges",s),s.forEach((function(t){f.info("Edge",t);var a=n.edge(t.v,t.w,t.name);f.info("Edge data",a,i);try{!function(t,e){return f.info("Decendants of ",e," is ",ke[e]),f.info("Edge is ",t),t.v!==e&&(t.w!==e&&(ke[e]?(f.info("Here "),ke[e].indexOf(t.v)>=0||(!!Te(t.v,e)||(!!Te(t.w,e)||ke[e].indexOf(t.w)>=0))):(f.debug("Tilt, ",e,",not in decendants"),!1)))}(t,i)?f.info("Skipping copy of edge ",t.v,"--\x3e",t.w," rootId: ",i," clusterId:",e):(f.info("Copying as ",t.v,t.w,a,t.name),r.setEdge(t.v,t.w,a,t.name),f.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(t){f.error(t)}}))}f.debug("Removing node",a),n.removeNode(a)}))},Ce=function t(e,n){f.trace("Searching",e);var r=n.children(e);if(f.trace("Searching children of id ",e,r),r.length<1)return f.trace("This is a valid node",e),e;for(var i=0;i ",a),a}},Se=function(t){return we[t]&&we[t].externalConnections&&we[t]?we[t].id:t},Me=function(t,e){!t||e>10?f.debug("Opting out, no graph "):(f.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(f.warn("Cluster identified",e," Replacement id in edges: ",Ce(e,t)),ke[e]=function t(e,n){for(var r=n.children(e),i=[].concat(r),a=0;a0&&(f.debug("Cluster identified",e,ke),r.forEach((function(t){t.v!==e&&t.w!==e&&(Te(t.v,e)^Te(t.w,e)&&(f.debug("Edge: ",t," leaves cluster ",e),f.debug("Decendants of ",e,": ",ke[e]),we[e].externalConnections=!0))})))})),Oe(t,0),t.edges().forEach((function(e){var n=t.edge(e);f.trace("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.trace("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var r=e.v,i=e.w;f.trace("Fix",we,"ids:",e.v,e.w,"Translateing: ",we[e.v],we[e.w]),(we[e.v]||we[e.w])&&(f.warn("Fixing and trixing - removing",e.v,e.w,e.name),r=Se(e.v),i=Se(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),f.warn("Replacing with",r,i,e.name),t.setEdge(r,i,n,e.name))})),f.warn("Adjusted Graph",W.a.json.write(t)),f.trace(we))},Oe=function t(e,n){if(f.debug("extractor - ",n,W.a.json.write(e),e.children("D")),n>10)f.error("Bailing out");else{for(var r=e.nodes(),i=!1,a=0;a0}if(i){f.debug("Nodes = ",r,n);for(var c=0;c0){f.debug("Cluster without external connections, without a parent and with children",u,n);var l=e.graph(),h=new W.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===l.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));f.debug("Old graph before copy",W.a.json.write(e)),Ae(u,e,h,u),e.setNode(u,{clusterNode:!0,id:u,clusterData:we[u].clusterData,labelText:we[u].labelText,graph:h}),f.debug("New graph after copy",W.a.json.write(h)),f.debug("Old graph after copy",W.a.json.write(e))}else f.debug("Cluster ** ",u," **not meeting the criteria !externalConnections:",!we[u].externalConnections," no parent: ",!e.parent(u)," children ",e.children(u)&&e.children(u).length>0,e.children("D"),n),f.debug(we);else f.debug("Not a cluster",u,n)}r=e.nodes(),f.debug("New list of nodes",r);for(var d=0;d0}var Pe=function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,y,g;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,f=i*n.x+o*n.y+c,d=i*r.x+o*r.y+c,!(0!==f&&0!==d&&Le(f,d)||(a=r.y-n.y,s=n.x-r.x,u=r.x*n.y-n.x*r.y,l=a*t.x+s*t.y+u,h=a*e.x+s*e.y+u,0!==l&&0!==h&&Le(l,h)||0==(p=i*s-a*o))))return y=Math.abs(p/2),{x:(g=o*u-s*c)<0?(g-y)/p:(g+y)/p,y:(g=a*c-i*u)<0?(g-y)/p:(g+y)/p}},Fe=function(t,e,n){var r=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=r-t.width/2-o,u=i-t.height/2-s,l=0;l1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return aMath.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}},je={node:n.n(De).a,circle:Be,ellipse:Ne,polygon:Fe,rect:Ie},Re=function(t,e,n){var r=t.insert("g").attr("class","node default").attr("id",e.id),i=70,a=10;"LR"===n&&(i=10,a=70);var o=r.append("rect").style("stroke","black").style("fill","black").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return _e(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return je.rect(e,t)},r},Ye={question:function(t,e){var n=be(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding+(i.height+e.padding),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];f.info("Question main (Circle)");var s=xe(r,a,a,o);return _e(e,s),e.intersect=function(t){return f.warn("Intersect called"),je.polygon(e,o,t)},r},rect:function(t,e){var n=be(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;f.trace("Classes = ",e.classes);var o=r.insert("rect",":first-child");return o.attr("class","basic label-container").attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),_e(e,o),e.intersect=function(t){return je.rect(e,t)},r},rectWithTitle:function(t,e){var n;n=e.classes?"node "+e.classes:"node default";var r=t.insert("g").attr("class",n).attr("id",e.id),i=r.insert("rect",":first-child"),a=r.insert("line"),o=r.insert("g").attr("class","label"),c=e.labelText.flat();f.info("Label text",c[0]);var u,l=o.node().appendChild(me(c[0],e.labelStyle,!0,!0));if(_t().flowchart.htmlLabels){var h=l.children[0],d=Object(s.select)(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}f.info("Text 2",c);var p=c.slice(1,c.length),y=l.getBBox(),g=o.node().appendChild(me(p.join("
"),e.labelStyle,!0,!0));if(_t().flowchart.htmlLabels){var v=g.children[0],m=Object(s.select)(g);u=v.getBoundingClientRect(),m.attr("width",u.width),m.attr("height",u.height)}var b=e.padding/2;return Object(s.select)(g).attr("transform","translate( "+(u.width>y.width?0:(y.width-u.width)/2)+", "+(y.height+b+5)+")"),Object(s.select)(l).attr("transform","translate( "+(u.widthe.height/2-s)){var i=s*s*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},r},start:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),_e(e,r),e.intersect=function(t){return je.circle(e,7,t)},n},end:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),_e(e,i),e.intersect=function(t){return je.circle(e,7,t)},n},note:function(t,e){var n=be(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;f.info("Classes = ",e.classes);var o=r.insert("rect",":first-child");return o.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),_e(e,o),e.intersect=function(t){return je.rect(e,t)},r},subroutine:function(t,e){var n=be(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=xe(r,a,o,[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}]);return _e(e,s),e.intersect=function(t){return je.polygon(e,t)},r},fork:Re,join:Re,class_box:function(t,e){var n,r=e.padding/2;n=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",n).attr("id",e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),c=i.insert("line"),u=0,l=4,h=i.insert("g").attr("class","label"),f=0,d=e.classData.annotations&&e.classData.annotations[0],p=h.node().appendChild(me(e.classData.annotations[0],e.labelStyle,!0,!0)),y=p.getBBox();e.classData.annotations[0]&&(l+=y.height+4,u+=y.width);var g=h.node().appendChild(me(e.labelText,e.labelStyle,!0,!0)),v=g.getBBox();l+=v.height+4,v.width>u&&(u=v.width);var m=[];e.classData.members.forEach((function(t){var n=h.node().appendChild(me(t,e.labelStyle,!0,!0)),r=n.getBBox();r.width>u&&(u=r.width),l+=r.height+4,m.push(n)}));var b=[];e.classData.methods.forEach((function(t){var n=h.node().appendChild(me(t,e.labelStyle,!0,!0)),r=n.getBBox();r.width>u&&(u=r.width),l+=r.height+4,b.push(n)})),l+=8,d&&(Object(s.select)(p).attr("transform","translate( "+-(u+e.padding-y.width/2)/2+", "+-1*l/2+")"),f=y.height+4);var _,x=(u-v.width)/2;if(Object(s.select)(g).attr("transform","translate( "+(-1*u/2+x)+", "+(-1*l/2+f)+")"),f+=v.height+4,o.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-l/2-r+8+f).attr("y2",-l/2-r+8+f),f+=8,m.forEach((function(t){Object(s.select)(t).attr("transform","translate( "+-u/2+", "+(-1*l/2+f+4)+")"),f+=v.height+4})),c.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-l/2-r+8+f).attr("y2",-l/2-r+8+f),f+=8,b.forEach((function(t){Object(s.select)(t).attr("transform","translate( "+-u/2+", "+(-1*l/2+f)+")"),f+=v.height+4})),_t().flowchart.htmlLabels){var w=p.children[0],k=Object(s.select)(p);_=w.getBoundingClientRect(),k.attr("width",_.width),k.attr("height",_.height)}return a.attr("class","outer title-state").attr("x",-u/2-r).attr("y",-l/2-r).attr("width",u+e.padding).attr("height",l+e.padding),_e(e,a),e.intersect=function(t){return je.rect(e,t)},i}},ze={},Ue=function(t){var e=ze[t.id];f.trace("Transforming node",t,"translate("+(t.x-t.width/2-5)+", "+(t.y-t.height/2-5)+")");t.clusterNode?e.attr("transform","translate("+(t.x-t.width/2-8)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")")},$e={rect:function(t,e){f.trace("Creating subgraph rect for ",e.id,e);var n=t.insert("g").attr("class","cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(me(e.labelText,e.labelStyle,void 0,!0)),o=a.getBBox();if(_t().flowchart.htmlLabels){var c=a.children[0],u=Object(s.select)(a);o=c.getBoundingClientRect(),u.attr("width",o.width),u.attr("height",o.height)}var l=0*e.padding,h=l/2;f.trace("Data ",e,JSON.stringify(e)),r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-h).attr("y",e.y-e.height/2-h).attr("width",e.width+l).attr("height",e.height+l),i.attr("transform","translate("+(e.x-o.width/2)+", "+(e.y-e.height/2-e.padding/3+3)+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Ie(e,t)},n},roundedWithTitle:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(me(e.labelText,e.labelStyle,void 0,!0)),c=o.getBBox();if(_t().flowchart.htmlLabels){var u=o.children[0],l=Object(s.select)(o);c=u.getBoundingClientRect(),l.attr("width",c.width),l.attr("height",c.height)}c=o.getBBox();var h=0*e.padding,f=h/2;r.attr("class","outer").attr("x",e.x-e.width/2-f).attr("y",e.y-e.height/2-f).attr("width",e.width+h).attr("height",e.height+h),a.attr("class","inner").attr("x",e.x-e.width/2-f).attr("y",e.y-e.height/2-f+c.height-1).attr("width",e.width+h).attr("height",e.height+h-c.height-3),i.attr("transform","translate("+(e.x-c.width/2)+", "+(e.y-e.height/2-e.padding/3+(_t().flowchart.htmlLabels?5:3))+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Ie(e,t)},n},noteGroup:function(t,e){var n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Ie(e,t)},n},divider:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Ie(e,t)},n}},We={},He={},Ve=function(t,e){var n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s},Ge=function(t,e,n){f.warn("intersection calc o:",e," i:",n,t);var r=t.x,i=t.y,a=Math.abs(r-n.x),o=t.width/2,s=n.xMath.abs(r-e.x)*c){var g=n.y0&&f.info("Recursive edges",n.edge(n.edges()[0]));var c=o.insert("g").attr("class","clusters"),u=o.insert("g").attr("class","edgePaths"),l=o.insert("g").attr("class","edgeLabels"),h=o.insert("g").attr("class","nodes");return n.nodes().forEach((function(e){var o=n.node(e);if(void 0!==i){var s=JSON.parse(JSON.stringify(i.clusterData));f.info("Setting data for cluster",s),n.setNode(i.id,s),n.setParent(e,i.id,s)}if(f.info("(Insert) Node "+e+": "+JSON.stringify(n.node(e))),o&&o.clusterNode){f.info("Cluster identified",e,o,n.node(e));var c=t(h,o.graph,r,n.node(e));_e(o,c),function(t,e){ze[e.id]=t}(c,o),f.warn("Recursive render complete",c,o)}else n.children(e).length>0?(f.info("Cluster - the non recursive path",e,o.id,o,n),f.info(Ce(o.id,n)),we[o.id]={id:Ce(o.id,n),node:o}):(f.info("Node - the non recursive path",e,o.id,o),function(t,e,n){ze[e.id]=Ye[e.shape](t,e,n)}(h,n.node(e),a))})),n.edges().forEach((function(t){var e=n.edge(t.v,t.w,t.name);f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),f.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),f.info("Fix",we,"ids:",t.v,t.w,"Translateing: ",we[t.v],we[t.w]),function(t,e){var n=me(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);var a=n.getBBox();if(_t().flowchart.htmlLabels){var o=n.children[0],c=Object(s.select)(n);a=o.getBoundingClientRect(),c.attr("width",a.width),c.attr("height",a.height)}i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),He[e.id]=r,e.width=a.width,e.height=a.height}(l,e)})),n.edges().forEach((function(t){f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),f.info("#############################################"),f.info("### Layout ###"),f.info("#############################################"),f.info(n),ye.a.layout(n),f.info("Graph after layout:",W.a.json.write(n)),n.nodes().forEach((function(t){var e=n.node(t);f.info("Position "+t+": "+JSON.stringify(n.node(t))),f.info("Position "+t+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e&&e.clusterNode?Ue(e):n.children(t).length>0?(!function(t,e){f.trace("Inserting cluster");var n=e.shape||"rect";We[e.id]=$e[n](t,e)}(c,e),we[e.id].node=e):Ue(e)})),n.edges().forEach((function(t){var e=n.edge(t);f.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e);var i=function(t,e,n,r,i,a){var o=n.points,c=!1,u=a.node(e.v),l=a.node(e.w);if(l.intersect&&u.intersect&&((o=o.slice(1,n.points.length-1)).unshift(u.intersect(o[0])),f.info("Last point",o[o.length-1],l,l.intersect(o[o.length-1])),o.push(l.intersect(o[o.length-1]))),n.toCluster){var h;f.trace("edge",n),f.trace("to cluster",r[n.toCluster]),o=[];var d=!1;n.points.forEach((function(t){var e=r[n.toCluster].node;if(Ve(e,t)||d)d||o.push(t);else{f.trace("inside",n.toCluster,t,h);var i=Ge(e,h,t),a=!1;o.forEach((function(t){a=a||t.x===i.x&&t.y===i.y})),o.find((function(t){return t.x===i.x&&t.y===i.y}))?f.warn("no intersect",i,o):o.push(i),d=!0}h=t})),c=!0}if(n.fromCluster){f.trace("edge",n),f.warn("from cluster",r[n.fromCluster]);for(var p,y=[],g=!1,v=o.length-1;v>=0;v--){var m=o[v],b=r[n.fromCluster].node;if(Ve(b,m)||g)f.trace("Outside point",m),g||y.unshift(m);else{f.warn("inside",n.fromCluster,m,b);var _=Ge(b,p,m);y.unshift(_),g=!0}p=m}o=y,c=!0}var x,w=o.filter((function(t){return!Number.isNaN(t.y)})),k=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis);switch(n.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;default:x=""}switch(n.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed"}var E=t.append("path").attr("d",k(w)).attr("id",n.id).attr("class"," "+x+(n.classes?" "+n.classes:"")),T="";switch(_t().state.arrowMarkerAbsolute&&(T=(T=(T=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),f.info("arrowTypeStart",n.arrowTypeStart),f.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":E.attr("marker-start","url("+T+"#"+i+"-crossStart)");break;case"arrow_point":E.attr("marker-start","url("+T+"#"+i+"-pointStart)");break;case"arrow_barb":E.attr("marker-start","url("+T+"#"+i+"-barbStart)");break;case"arrow_circle":E.attr("marker-start","url("+T+"#"+i+"-circleStart)");break;case"aggregation":E.attr("marker-start","url("+T+"#"+i+"-aggregationStart)");break;case"extension":E.attr("marker-start","url("+T+"#"+i+"-extensionStart)");break;case"composition":E.attr("marker-start","url("+T+"#"+i+"-compositionStart)");break;case"dependency":E.attr("marker-start","url("+T+"#"+i+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":E.attr("marker-end","url("+T+"#"+i+"-crossEnd)");break;case"arrow_point":E.attr("marker-end","url("+T+"#"+i+"-pointEnd)");break;case"arrow_barb":E.attr("marker-end","url("+T+"#"+i+"-barbEnd)");break;case"arrow_circle":E.attr("marker-end","url("+T+"#"+i+"-circleEnd)");break;case"aggregation":E.attr("marker-end","url("+T+"#"+i+"-aggregationEnd)");break;case"extension":E.attr("marker-end","url("+T+"#"+i+"-extensionEnd)");break;case"composition":E.attr("marker-end","url("+T+"#"+i+"-compositionEnd)");break;case"dependency":E.attr("marker-end","url("+T+"#"+i+"-dependencyEnd)")}if(c)return o}(u,t,e,we,r,n);!function(t,e){if(f.info("Moving label",t.id,t.label,He[t.id]),t.label){var n=He[t.id],r=t.x,i=t.y;if(e){var a=U.calcLabelPosition(e);r=a.x,i=a.y}n.attr("transform","translate("+r+", "+i+")")}}(e,i)})),o},Xe=function(t,e,n,r,i){ve(t,n,r,i),ze={},He={},We={},ke={},Ee={},we={},f.warn("Graph before:",W.a.json.write(e)),Me(e),f.warn("Graph after:",W.a.json.write(e)),f.warn("Graph ever after:",e.graph()),qe(t,e,r)},Ze={},Je=function(t,e,n){var r=Object(s.select)('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var i=t[n],a="default";i.classes.length>0&&(a=i.classes.join(" "));var o,s=N(i.styles),c=void 0!==i.text?i.text:i.id;if(_t().flowchart.htmlLabels){var u={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"")}))};(o=qt()(r,u).node()).parentNode.removeChild(o)}else{var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",s.labelStyle.replace("color:","fill:"));for(var h=c.split(_.lineBreakRegex),d=0;d=0;h--)i=l[h],f.info("Subgraph - ",i),Ut.addVertex(i.id,i.title,"group",void 0,i.classes);var d=Ut.getVertices(),p=Ut.getEdges();f.info(p);var y=0;for(y=l.length-1;y>=0;y--){i=l[y],Object(s.selectAll)("cluster").append("text");for(var g=0;g0)switch(e.valign){case"top":case"start":s=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":s=function(){return Math.round(e.y+(n+r+e.textMargin)/2)};break;case"bottom":case"end":s=function(){return Math.round(e.y+(n+r+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var c=0;c0&&(r+=(l._groups||l)[0][0].getBBox().height,n=r),a.push(l)}return a},rn=function(t,e){var n,r,i,a,o,s=t.append("polygon");return s.attr("points",(n=e.x,r=e.y,i=e.width,a=e.height,n+","+r+" "+(n+i)+","+r+" "+(n+i)+","+(r+a-(o=7))+" "+(n+i-1.2*o)+","+(r+a)+" "+n+","+(r+a))),s.attr("class","labelBox"),e.y=e.y+e.height/2,nn(t,e),s},an=-1,on=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},sn=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},cn=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var u=c.actorFontSize,l=c.actorFontFamily,h=c.actorFontWeight,f=t.split(_.lineBreakRegex),d=0;d2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===En.ACTIVE_END){var i=xn(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return pn.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&kn()||!!n.wrap,type:r}),!0},kn=function(){return bn},En={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},Tn=function(t,e,n){var r={actor:t,placement:e,message:n.text,wrap:void 0===n.wrap&&kn()||!!n.wrap},i=[].concat(t,t);yn.push(r),pn.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&kn()||!!n.wrap,type:En.NOTE,placement:e})},An=function(t){gn=t.text,vn=void 0===t.wrap&&kn()||!!t.wrap},Cn={addActor:_n,addMessage:function(t,e,n,r){pn.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&kn()||!!n.wrap,answer:r})},addSignal:wn,autoWrap:kn,setWrap:function(t){bn=t},enableSequenceNumbers:function(){mn=!0},showSequenceNumbers:function(){return mn},getMessages:function(){return pn},getActors:function(){return dn},getActor:function(t){return dn[t]},getActorKeys:function(){return Object.keys(dn)},getTitle:function(){return gn},parseDirective:function(t,e,n){No.parseDirective(this,t,e,n)},getConfig:function(){return _t().sequence},getTitleWrapped:function(){return vn},clear:function(){dn={},pn=[]},parseMessage:function(t){var e=t.trim(),n={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===e.match(/^[:]?(?:no)?wrap:/)?_.hasBreaks(e)||void 0:null!==e.match(/^[:]?wrap:/)||null===e.match(/^[:]?nowrap:/)&&void 0};return f.debug("parseMessage:",n),n},LINETYPE:En,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Tn,setTitle:An,apply:function t(e){if(e instanceof Array)e.forEach((function(e){t(e)}));else switch(e.type){case"addActor":_n(e.actor,e.actor,e.description);break;case"activeStart":case"activeEnd":wn(e.actor,void 0,void 0,e.signalType);break;case"addNote":Tn(e.actor,e.placement,e.text);break;case"addMessage":wn(e.from,e.to,e.msg,e.signalType);break;case"loopStart":wn(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":wn(void 0,void 0,void 0,e.signalType);break;case"rectStart":wn(void 0,void 0,e.color,e.signalType);break;case"rectEnd":wn(void 0,void 0,void 0,e.signalType);break;case"optStart":wn(void 0,void 0,e.optText,e.signalType);break;case"optEnd":wn(void 0,void 0,void 0,e.signalType);break;case"altStart":case"else":wn(void 0,void 0,e.altText,e.signalType);break;case"altEnd":wn(void 0,void 0,void 0,e.signalType);break;case"setTitle":An(e.text);break;case"parStart":case"and":wn(void 0,void 0,e.parText,e.signalType);break;case"parEnd":wn(void 0,void 0,void 0,e.signalType)}}};ln.parser.yy=Cn;var Sn={},Mn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Dn(ln.parser.yy.getConfig())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=this,a=0;function o(o){return function(s){a++;var c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*Sn.boxMargin,Math.min),i.updateVal(s,"stopy",r+c*Sn.boxMargin,Math.max),i.updateVal(Mn.data,"startx",t-c*Sn.boxMargin,Math.min),i.updateVal(Mn.data,"stopx",n+c*Sn.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*Sn.boxMargin,Math.min),i.updateVal(s,"stopx",n+c*Sn.boxMargin,Math.max),i.updateVal(Mn.data,"starty",e-c*Sn.boxMargin,Math.min),i.updateVal(Mn.data,"stopy",r+c*Sn.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(Mn.data,"startx",i,Math.min),this.updateVal(Mn.data,"starty",o,Math.min),this.updateVal(Mn.data,"stopx",a,Math.max),this.updateVal(Mn.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){var r=n[t.from.actor],i=Nn(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*Sn.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Sn.activationWidth,stopy:void 0,actor:t.from.actor,anchored:un.anchorElement(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Mn.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},On=function(t,e,n,r){for(var i=0,a=0,o=0;o0&&o.forEach((function(r){if(n=r,i.startx===i.stopx){var a=e[t.from],o=e[t.to];n.from=Math.min(a.x-i.width/2,a.x-a.width/2,n.from),n.to=Math.max(o.x+i.width/2,o.x+a.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-Sn.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-Sn.labelBoxWidth})))})),Mn.activations=[],f.debug("Loop type widths:",a),a},jn={bounds:Mn,drawActors:On,setConf:Dn,draw:function(t,e){ln.parser.yy.clear(),ln.parser.yy.setWrap(Sn.wrap),ln.parser.parse(t+"\n"),Mn.init(),f.debug("C:".concat(JSON.stringify(Sn,null,2)));var n=Object(s.select)('[id="'.concat(e,'"]')),r=ln.parser.yy.getActors(),i=ln.parser.yy.getActorKeys(),a=ln.parser.yy.getMessages(),o=ln.parser.yy.getTitle(),c=Pn(r,a);Sn.height=Fn(r,c),On(n,r,i,0);var u=In(a,r,c);un.insertArrowHead(n),un.insertArrowCrossHead(n),un.insertSequenceNumber(n);var l=1;a.forEach((function(t){var e,i,a;switch(t.type){case ln.parser.yy.LINETYPE.NOTE:i=t.noteModel,function(t,e){Mn.bumpVerticalPos(Sn.boxMargin),e.height=Sn.boxMargin,e.starty=Mn.getVerticalPos();var n=un.getNoteRect();n.x=e.startx,n.y=e.starty,n.width=e.width||Sn.width,n.class="note";var r=t.append("g"),i=un.drawRect(r,n),a=un.getTextObj();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=Sn.noteFontFamily,a.fontSize=Sn.noteFontSize,a.fontWeight=Sn.noteFontWeight,a.anchor=Sn.noteAlign,a.textMargin=Sn.noteMargin,a.valign=Sn.noteAlign,a.wrap=!0;var o=nn(r,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*Sn.noteMargin),e.height+=s+2*Sn.noteMargin,Mn.bumpVerticalPos(s+2*Sn.noteMargin),e.stopy=e.starty+s+2*Sn.noteMargin,e.stopx=e.startx+n.width,Mn.insert(e.startx,e.starty,e.stopx,e.stopy),Mn.models.addNote(e)}(n,i);break;case ln.parser.yy.LINETYPE.ACTIVE_START:Mn.newActivation(t,n,r);break;case ln.parser.yy.LINETYPE.ACTIVE_END:!function(t,e){var r=Mn.endActivation(t);r.starty+18>e&&(r.starty=e-6,e+=12),un.drawActivation(n,r,e,Sn,Nn(t.from.actor).length),Mn.insert(r.startx,e-10,r.stopx,e)}(t,Mn.getVerticalPos());break;case ln.parser.yy.LINETYPE.LOOP_START:Ln(u,t,Sn.boxMargin,Sn.boxMargin+Sn.boxTextMargin,(function(t){return Mn.newLoop(t)}));break;case ln.parser.yy.LINETYPE.LOOP_END:e=Mn.endLoop(),un.drawLoop(n,e,"loop",Sn),Mn.bumpVerticalPos(e.stopy-Mn.getVerticalPos()),Mn.models.addLoop(e);break;case ln.parser.yy.LINETYPE.RECT_START:Ln(u,t,Sn.boxMargin,Sn.boxMargin,(function(t){return Mn.newLoop(void 0,t.message)}));break;case ln.parser.yy.LINETYPE.RECT_END:e=Mn.endLoop(),un.drawBackgroundRect(n,e),Mn.models.addLoop(e),Mn.bumpVerticalPos(e.stopy-Mn.getVerticalPos());break;case ln.parser.yy.LINETYPE.OPT_START:Ln(u,t,Sn.boxMargin,Sn.boxMargin+Sn.boxTextMargin,(function(t){return Mn.newLoop(t)}));break;case ln.parser.yy.LINETYPE.OPT_END:e=Mn.endLoop(),un.drawLoop(n,e,"opt",Sn),Mn.bumpVerticalPos(e.stopy-Mn.getVerticalPos()),Mn.models.addLoop(e);break;case ln.parser.yy.LINETYPE.ALT_START:Ln(u,t,Sn.boxMargin,Sn.boxMargin+Sn.boxTextMargin,(function(t){return Mn.newLoop(t)}));break;case ln.parser.yy.LINETYPE.ALT_ELSE:Ln(u,t,Sn.boxMargin+Sn.boxTextMargin,Sn.boxMargin,(function(t){return Mn.addSectionToLoop(t)}));break;case ln.parser.yy.LINETYPE.ALT_END:e=Mn.endLoop(),un.drawLoop(n,e,"alt",Sn),Mn.bumpVerticalPos(e.stopy-Mn.getVerticalPos()),Mn.models.addLoop(e);break;case ln.parser.yy.LINETYPE.PAR_START:Ln(u,t,Sn.boxMargin,Sn.boxMargin+Sn.boxTextMargin,(function(t){return Mn.newLoop(t)}));break;case ln.parser.yy.LINETYPE.PAR_AND:Ln(u,t,Sn.boxMargin+Sn.boxTextMargin,Sn.boxMargin,(function(t){return Mn.addSectionToLoop(t)}));break;case ln.parser.yy.LINETYPE.PAR_END:e=Mn.endLoop(),un.drawLoop(n,e,"par",Sn),Mn.bumpVerticalPos(e.stopy-Mn.getVerticalPos()),Mn.models.addLoop(e);break;default:try{(a=t.msgModel).starty=Mn.getVerticalPos(),a.sequenceIndex=l,function(t,e){Mn.bumpVerticalPos(10);var n=e.startx,r=e.stopx,i=e.starty,a=e.message,o=e.type,s=e.sequenceIndex,c=e.wrap,u=_.splitBreaks(a).length,l=U.calculateTextDimensions(a,Sn.messageFont()),h=l.height/u;e.height+=h,Mn.bumpVerticalPos(h);var f=un.getTextObj();f.x=n,f.y=i+10,f.width=r-n,f.class="messageText",f.dy="1em",f.text=a,f.fontFamily=Sn.messageFontFamily,f.fontSize=Sn.messageFontSize,f.fontWeight=Sn.messageFontWeight,f.anchor=Sn.messageAlign,f.valign=Sn.messageAlign,f.textMargin=Sn.wrapPadding,f.tspan=!1,f.wrap=c,nn(t,f);var d,p,y=l.height-10,g=l.width;if(n===r){p=Mn.getVerticalPos()+y,Sn.rightAngles?d=t.append("path").attr("d","M ".concat(n,",").concat(p," H ").concat(n+Math.max(Sn.width/2,g/2)," V ").concat(p+25," H ").concat(n)):(y+=Sn.boxMargin,p=Mn.getVerticalPos()+y,d=t.append("path").attr("d","M "+n+","+p+" C "+(n+60)+","+(p-10)+" "+(n+60)+","+(p+30)+" "+n+","+(p+20))),y+=30;var v=Math.max(g/2,Sn.width/2);Mn.insert(n-v,Mn.getVerticalPos()-10+y,r+v,Mn.getVerticalPos()+30+y)}else y+=Sn.boxMargin,p=Mn.getVerticalPos()+y,(d=t.append("line")).attr("x1",n),d.attr("y1",p),d.attr("x2",r),d.attr("y2",p),Mn.insert(n,p-10,r,p);o===ln.parser.yy.LINETYPE.DOTTED||o===ln.parser.yy.LINETYPE.DOTTED_CROSS||o===ln.parser.yy.LINETYPE.DOTTED_OPEN?(d.style("stroke-dasharray","3, 3"),d.attr("class","messageLine1")):d.attr("class","messageLine0");var m="";Sn.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),d.attr("stroke-width",2),d.attr("stroke","none"),d.style("fill","none"),o!==ln.parser.yy.LINETYPE.SOLID&&o!==ln.parser.yy.LINETYPE.DOTTED||d.attr("marker-end","url("+m+"#arrowhead)"),o!==ln.parser.yy.LINETYPE.SOLID_CROSS&&o!==ln.parser.yy.LINETYPE.DOTTED_CROSS||d.attr("marker-end","url("+m+"#crosshead)"),(Cn.showSequenceNumbers()||Sn.showSequenceNumbers)&&(d.attr("marker-start","url("+m+"#sequencenumber)"),t.append("text").attr("x",n).attr("y",p+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(s)),Mn.bumpVerticalPos(y),e.height+=y,e.stopy=e.starty+e.height,Mn.insert(e.fromBounds,e.starty,e.toBounds,e.stopy)}(n,a),Mn.models.addMessage(a)}catch(t){f.error("error while drawing message",t)}}[ln.parser.yy.LINETYPE.SOLID_OPEN,ln.parser.yy.LINETYPE.DOTTED_OPEN,ln.parser.yy.LINETYPE.SOLID,ln.parser.yy.LINETYPE.DOTTED,ln.parser.yy.LINETYPE.SOLID_CROSS,ln.parser.yy.LINETYPE.DOTTED_CROSS].includes(t.type)&&l++})),Sn.mirrorActors&&(Mn.bumpVerticalPos(2*Sn.boxMargin),On(n,r,i,Mn.getVerticalPos()));var h=Mn.getBounds().bounds;f.debug("For line height fix Querying: #"+e+" .actor-line"),Object(s.selectAll)("#"+e+" .actor-line").attr("y2",h.stopy);var d=h.stopy-h.starty+2*Sn.diagramMarginY;Sn.mirrorActors&&(d=d-Sn.boxMargin+Sn.bottomMarginAdj);var p=h.stopx-h.startx+2*Sn.diagramMarginX;o&&n.append("text").text(o).attr("x",(h.stopx-h.startx)/2-2*Sn.diagramMarginX).attr("y",-25),Sn.useMaxWidth?(n.attr("height","100%"),n.attr("width","100%"),n.attr("style","max-width:"+p+"px;")):(n.attr("height",d),n.attr("width",p));var y=o?40:0;n.attr("viewBox",h.startx-Sn.diagramMarginX+" -"+(Sn.diagramMarginY+y)+" "+p+" "+(d+y)),f.debug("models:",Mn.models)}},Rn=n(27),Yn=n.n(Rn);function zn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e=6&&n.indexOf("weekends")>=0||(n.indexOf(t.format("dddd").toLowerCase())>=0||n.indexOf(t.format(e.trim()))>=0)},rr=function(t,e,n){if(n.length&&!t.manualEndTime){var r=l()(t.startTime,e,!0);r.add(1,"d");var i=l()(t.endTime,e,!0),a=ir(r,i,e,n);t.endTime=i.toDate(),t.renderEndTime=a}},ir=function(t,e,n,r){for(var i=!1,a=null;t<=e;)i||(a=e.toDate()),(i=nr(t,n,r))&&e.add(1,"d"),t.add(1,"d");return a},ar=function(t,e,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var i=null;if(r[1].split(" ").forEach((function(t){var e=fr(t);void 0!==e&&(i?e.endTime>i.endTime&&(i=e):i=e)})),i)return i.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var o=l()(n,e.trim(),!0);return o.isValid()?o.toDate():(f.debug("Invalid date:"+n),f.debug("With date format:"+e.trim()),new Date)},or=function(t,e){if(null!==t)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},sr=function(t,e,n,r){r=r||!1,n=n.trim();var i=l()(n,e.trim(),!0);return i.isValid()?(r&&i.add(1,"d"),i.toDate()):or(/^([\d]+)([wdhms])/.exec(n.trim()),l()(t))},cr=0,ur=function(t){return void 0===t?"task"+(cr+=1):t},lr=[],hr={},fr=function(t){var e=hr[t];return lr[e]},dr=function(){for(var t=function(t){var e=lr[t],n="";switch(lr[t].raw.startTime.type){case"prevTaskEnd":var r=fr(e.prevTaskId);e.startTime=r.endTime;break;case"getStartDate":(n=ar(0,Wn,lr[t].raw.startTime.startData))&&(lr[t].startTime=n)}return lr[t].startTime&&(lr[t].endTime=sr(lr[t].startTime,Wn,lr[t].raw.endTime.data,tr),lr[t].endTime&&(lr[t].processed=!0,lr[t].manualEndTime=l()(lr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),rr(lr[t],Wn,Gn))),lr[t].processed},e=!0,n=0;nr?i=1:n0&&(e=t.classes.join(" "));for(var n=0,r=0;rn-e?n+a+1.5*br.leftPadding>u?e+r-5:n+r+5:(n-e)/2+e+r})).attr("y",(function(t,r){return t.order*e+br.barHeight/2+(br.fontSize/2-2)+n})).attr("text-height",i).attr("class",(function(t){var e=o(t.startTime),n=o(t.endTime);t.milestone&&(n=e+i);var r=this.getBBox().width,a="";t.classes.length>0&&(a=t.classes.join(" "));var s=0;console.log(br);for(var l=0;ln-e?n+r+1.5*br.leftPadding>u?a+" taskTextOutsideLeft taskTextOutside"+s+" "+h:a+" taskTextOutsideRight taskTextOutside"+s+" "+h+" width-"+r:a+" taskText taskText"+s+" "+h+" width-"+r}))}(t,i,u,f,r,0,e),function(t,e){for(var n=[],r=0,i=0;i0&&a.setAttribute("dy","1em"),a.textContent=e[i],r.appendChild(a)}return r})).attr("x",10).attr("y",(function(i,a){if(!(a>0))return i[1]*t/2+e;for(var o=0;o0){var r=t.split("~");n=r[0],e=r[1]}return{className:n,type:e}},Sr=function(t){var e=Cr(t);void 0===Er[e.className]&&(Er[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+e.className+"-"+Tr},Tr++)},Mr=function(t){for(var e=Object.keys(Er),n=0;n>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},Dr=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n="classid-"+n),void 0!==Er[n]&&Er[n].cssClasses.push(e)}))},Nr=function(t,e,n){var r=t,i=Mr(r);"loose"===wr.securityLevel&&void 0!==e&&void 0!==Er[r]&&(n&&(Er[r].tooltip=_.sanitizeText(n,wr)),Ar.push((function(){var t=document.querySelector('[id="'.concat(i,'"]'));null!==t&&t.addEventListener("click",(function(){U.runFunc(e,i)}),!1)})))},Br={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Lr=function(t){var e=Object(s.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=Object(s.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(s.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=Object(s.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),Object(s.select)(this).classed("hover",!1)}))};Ar.push(Lr);var Pr={parseDirective:function(t,e,n){No.parseDirective(this,t,e,n)},getConfig:function(){return _t().class},addClass:Sr,bindFunctions:function(t){Ar.forEach((function(e){e(t)}))},clear:function(){kr=[],Er={},(Ar=[]).push(Lr)},getClass:function(t){return Er[t]},getClasses:function(){return Er},addAnnotation:function(t,e){var n=Cr(t).className;Er[n].annotations.push(e)},getRelations:function(){return kr},addRelation:function(t){f.debug("Adding relation: "+JSON.stringify(t)),Sr(t.id1),Sr(t.id2),t.id1=Cr(t.id1).className,t.id2=Cr(t.id2).className,kr.push(t)},addMember:Or,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return Or(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(1).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:Br,setClickEvent:function(t,e,n){t.split(",").forEach((function(t){Nr(t,e,n)})),Dr(t,"clickable")},setCssClass:Dr,setLink:function(t,e,n){t.split(",").forEach((function(t){var r=t;t[0].match(/\d/)&&(r="classid-"+r),void 0!==Er[r]&&(Er[r].link=U.formatUrl(e,wr),n&&(Er[r].tooltip=_.sanitizeText(n,wr)))})),Dr(t,"clickable")},lookUpDomId:Mr},Fr=n(13),Ir=n.n(Fr),jr=0,Rr=function(t){var e=t.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!n?Yr(e):n?zr(n):Ur(t)},Yr=function(t){var e="";try{e=(t[1]?t[1].trim():"")+(t[2]?t[2].trim():"")+(t[3]?Wr(t[3].trim()):"")+" "+(t[4]?t[4].trim():"")}catch(n){e=t}return{displayText:e,cssStyle:""}},zr=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?Wr(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+Wr(t[5]).trim():""),e=Hr(o)}catch(e){n=t}return{displayText:n,cssStyle:e}},Ur=function(t){var e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/\+|-|~|#/)&&(o=c),s=t.substring(1,i).trim());var u=t.substring(i+1,a),l=t.substring(a+1,1);n=Hr(l),e=o+s+"("+Wr(u.trim())+")",a<"".length&&""!==(r=t.substring(a+2).trim())&&(r=" : "+Wr(r))}else e=Wr(t);return{displayText:e,cssStyle:n}},$r=function(t,e,n,r){var i=Rr(e),a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},Wr=function t(e){var n=e;return-1!=e.indexOf("~")?t(n=(n=n.replace("~","<")).replace("~",">")):n},Hr=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},Vr=function(t,e,n){f.info("Rendering class "+e);var r="classGroup ";e.cssClasses.length>0&&(r+=e.cssClasses.join(" "));var i,a=e.id,o={id:a,label:e.id,width:0,height:0},s=t.append("g").attr("id",Mr(a)).attr("class",r);i=e.link?s.append("svg:a").attr("xlink:href",e.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):s.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var c=!0;e.annotations.forEach((function(t){var e=i.append("tspan").text("«"+t+"»");c||e.attr("dy",n.textHeight),c=!1}));var u=e.id;void 0!==e.type&&""!==e.type&&(u+="<"+e.type+">");var l=i.append("tspan").text(u).attr("class","title");c||l.attr("dy",n.textHeight);var h=i.node().getBBox().height,d=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),p=s.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){$r(p,t,c,n),c=!1}));var y=p.node().getBBox(),g=s.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+y.height).attr("y2",n.padding+h+n.dividerMargin+y.height),v=s.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+y.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){$r(v,t,c,n),c=!1}));var m=s.node().getBBox(),b=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*n.padding).attr("height",m.height+n.padding+.5*n.dividerMargin).node().getBBox().width;return i.node().childNodes.forEach((function(t){t.setAttribute("x",(b-t.getBBox().width)/2)})),e.tooltip&&i.insert("title").text(e.tooltip),d.attr("x2",b),g.attr("x2",b),o.width=b,o.height=m.height+n.padding+.5*n.dividerMargin,o},Gr=function(t,e,n,r){var i=function(t){switch(t){case Br.AGGREGATION:return"aggregation";case Br.EXTENSION:return"extension";case Br.COMPOSITION:return"composition";case Br.DEPENDENCY:return"dependency"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var a,o,c=e.points,u=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis),l=t.append("path").attr("d",u(c)).attr("id","edge"+jr).attr("class","relation"),h="";r.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&l.attr("class","relation dashed-line"),"none"!==n.relation.type1&&l.attr("marker-start","url("+h+"#"+i(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&l.attr("marker-end","url("+h+"#"+i(n.relation.type2)+"End)");var d,p,y,g,v=e.points.length,m=U.calcLabelPosition(e.points);if(a=m.x,o=m.y,v%2!=0&&v>1){var b=U.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),_=U.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[v-1]);f.debug("cardinality_1_point "+JSON.stringify(b)),f.debug("cardinality_2_point "+JSON.stringify(_)),d=b.x,p=b.y,y=_.x,g=_.y}if(void 0!==n.title){var x=t.append("g").attr("class","classLabel"),w=x.append("text").attr("class","label").attr("x",a).attr("y",o).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=w;var k=w.node().getBBox();x.insert("rect",":first-child").attr("class","box").attr("x",k.x-r.padding/2).attr("y",k.y-r.padding/2).attr("width",k.width+r.padding).attr("height",k.height+r.padding)}(f.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1)&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",d).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1);void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",y).attr("y",g).attr("fill","black").attr("font-size","6").text(n.relationTitle2);jr++};Fr.parser.yy=Pr;var qr={},Xr={dividerMargin:10,padding:5,textHeight:10},Zr=function(t){for(var e=Object.keys(qr),n=0;n "+t.w+": "+JSON.stringify(i.edge(t))),Gr(r,i.edge(t),i.edge(t).relation,Xr))}));var h=r.node().getBBox(),d=h.width+40,p=h.height+40;Xr.useMaxWidth?(r.attr("width","100%"),r.attr("style","max-width: ".concat(d,"px;"))):(r.attr("height",p),r.attr("width",d));var y="".concat(h.x-20," ").concat(h.y-20," ").concat(d," ").concat(p);f.debug("viewBox ".concat(y)),r.attr("viewBox",y)};Fr.parser.yy=Pr;var Kr={dividerMargin:10,padding:5,textHeight:10},ti=function(t){Object.keys(t).forEach((function(e){Kr[e]=t[e]}))},ei=function(t,e){f.info("Drawing class"),Pr.clear(),Fr.parser.parse(t);var n=_t().flowchart;f.info("config:",n);var r=n.nodeSpacing||50,i=n.rankSpacing||50,a=new W.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TD",nodesep:r,ranksep:i,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),o=Pr.getClasses(),c=Pr.getRelations();f.info(c),function(t,e){var n=Object.keys(t);f.info("keys:",n),f.info(t),n.forEach((function(n){var r=t[n],i={labelStyle:""},a=void 0!==r.text?r.text:r.id,o="";switch(r.type){case"class":o="class_box";break;default:o="class_box"}e.setNode(r.id,{labelStyle:i.labelStyle,shape:o,labelText:a,classData:r,rx:0,ry:0,class:"default",style:i.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:_t().flowchart.padding}),f.info("setNode",{labelStyle:i.labelStyle,shape:o,labelText:a,rx:0,ry:0,class:"default",style:i.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:_t().flowchart.padding})}))}(o,a),function(t,e){var n=0;t.forEach((function(r){n++;var i={classes:"relation"};i.pattern=1==r.relation.lineType?"dashed":"solid",i.id="id"+n,"arrow_open"===r.type?i.arrowhead="none":i.arrowhead="normal",f.info(i,r),i.arrowTypeStart=ni(r.relation.type1),i.arrowTypeEnd=ni(r.relation.type2);var a="",o="";if(void 0!==r.style){var c=N(r.style);a=c.style,o=c.labelStyle}else a="fill:none";i.style=a,i.labelStyle=o,void 0!==r.interpolate?i.curve=O(r.interpolate,s.curveLinear):void 0!==t.defaultInterpolate?i.curve=O(t.defaultInterpolate,s.curveLinear):i.curve=O(Kr.curve,s.curveLinear),r.text=r.title,void 0===r.text?void 0!==r.style&&(i.arrowheadStyle="fill: #333"):(i.arrowheadStyle="fill: #333",i.labelpos="c",_t().flowchart.htmlLabels,i.labelType="text",i.label=r.text.replace(_.lineBreakRegex,"\n"),void 0===r.style&&(i.style=i.style||"stroke: #333; stroke-width: 1.5px;fill:none"),i.labelStyle=i.labelStyle.replace("color:","fill:")),e.setEdge(r.id1,r.id2,i,n)}))}(c,a);var u=Object(s.select)('[id="'.concat(e,'"]')),l=Object(s.select)("#"+e+" g");Xe(l,a,["aggregation","extension","composition","dependency"],"classDiagram",e);var h=u.node().getBBox(),d=h.width+16,p=h.height+16;if(f.debug("new ViewBox 0 0 ".concat(d," ").concat(p),"translate(".concat(8-a._label.marginx,", ").concat(8-a._label.marginy,")")),n.useMaxWidth?(u.attr("width","100%"),u.attr("style","max-width: ".concat(d,"px;"))):(u.attr("height",p),u.attr("width",d)),u.attr("viewBox","0 0 ".concat(d," ").concat(p)),u.select("g").attr("transform","translate(".concat(8-a._label.marginx,", ").concat(8-h.y,")")),!n.htmlLabels)for(var y=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),g=0;g0&&o.length>0){var c={stmt:"state",id:L(),type:"divider",doc:ai(o)};i.push(ai(c)),n.doc=i}n.doc.forEach((function(e){return t(n,e,!0)}))}}({id:"root"},{id:"root",doc:oi},!0),{id:"root",doc:oi}},extract:function(t){var e;e=t.doc?t.doc:t,f.info(e),hi(),f.info("Extract",e),e.forEach((function(t){"state"===t.stmt&&li(t.id,t.type,t.doc,t.description,t.note),"relation"===t.stmt&&fi(t.state1.id,t.state2.id,t.description)}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()}},vi=n(22),mi=n.n(vi),bi={},_i=function(t,e){bi[t]=e},xi=function(t,e){var n=t.append("text").attr("x",2*_t().state.padding).attr("y",_t().state.textHeight+1.3*_t().state.padding).attr("font-size",_t().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",_t().state.padding).attr("y",r+.4*_t().state.padding+_t().state.dividerMargin+_t().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(!function(t,e,n){var r=t.append("tspan").attr("x",2*_t().state.padding).text(e);n||r.attr("dy",_t().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",_t().state.padding).attr("y1",_t().state.padding+r+_t().state.dividerMargin/2).attr("y2",_t().state.padding+r+_t().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),u=Math.max(c.width,n.width);return s.attr("x2",u+3*_t().state.padding),t.insert("rect",":first-child").attr("x",_t().state.padding).attr("y",_t().state.padding).attr("width",u+2*_t().state.padding).attr("height",c.height+r+2*_t().state.padding).attr("rx",_t().state.radius),t},wi=function(t,e,n){var r,i=_t().state.padding,a=2*_t().state.padding,o=t.node().getBBox(),s=o.width,c=o.x,u=t.append("text").attr("x",0).attr("y",_t().state.titleShift).attr("font-size",_t().state.fontSize).attr("class","state-title").text(e.id),l=u.node().getBBox().width+a,h=Math.max(l,s);h===s&&(h+=a);var f=t.node().getBBox();e.doc,r=c-i,l>s&&(r=(s-h)/2+i),Math.abs(c-f.x)s&&(r=c-(l-s)/2);var d=1-_t().state.textHeight;return t.insert("rect",":first-child").attr("x",r).attr("y",d).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+_t().state.textHeight+_t().state.titleShift+1).attr("rx","0"),u.attr("x",r+i),l<=s&&u.attr("x",c+(h-a)/2-l/2+i),t.insert("rect",":first-child").attr("x",r).attr("y",_t().state.titleShift-_t().state.textHeight-_t().state.padding).attr("width",h).attr("height",3*_t().state.textHeight).attr("rx",_t().state.radius),t.insert("rect",":first-child").attr("x",r).attr("y",_t().state.titleShift-_t().state.textHeight-_t().state.padding).attr("width",h).attr("height",f.height+3+2*_t().state.textHeight).attr("rx",_t().state.radius),t},ki=function(t,e){e.attr("class","state-note");var n=e.append("rect").attr("x",0).attr("y",_t().state.padding),r=function(t,e,n,r){var i=0,a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o=t.replace(/\r\n/g,"
"),s=(o=o.replace(/\n/g,"
")).split(_.lineBreakRegex),c=1.25*_t().state.noteMargin,u=!0,l=!1,h=void 0;try{for(var f,d=s[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value.trim();if(p.length>0){var y=a.append("tspan");if(y.text(p),0===c)c+=y.node().getBBox().height;i+=c,y.attr("x",e+_t().state.noteMargin),y.attr("y",n+i+1.25*_t().state.noteMargin)}}}catch(t){l=!0,h=t}finally{try{u||null==d.return||d.return()}finally{if(l)throw h}}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=r.textWidth,a=r.textHeight;return n.attr("height",a+2*_t().state.noteMargin),n.attr("width",i+2*_t().state.noteMargin),n},Ei=function(t,e){var n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").style("stroke","black").style("fill","black").attr("r",_t().state.sizeUnit).attr("cx",_t().state.padding+_t().state.sizeUnit).attr("cy",_t().state.padding+_t().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").style("stroke","black").style("fill","white").attr("r",_t().state.sizeUnit+_t().state.miniPadding).attr("cx",_t().state.padding+_t().state.sizeUnit+_t().state.miniPadding).attr("cy",_t().state.padding+_t().state.sizeUnit+_t().state.miniPadding),t.append("circle").style("stroke","black").style("fill","black").attr("r",_t().state.sizeUnit).attr("cx",_t().state.padding+_t().state.sizeUnit+2).attr("cy",_t().state.padding+_t().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var n=_t().state.forkWidth,r=_t().state.forkHeight;if(e.parentId){var i=n;n=r,r=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",_t().state.padding).attr("y",_t().state.padding)}(i,e),"note"===e.type&&ki(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",_t().state.textHeight).attr("class","divider").attr("x2",2*_t().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var n=t.append("text").attr("x",2*_t().state.padding).attr("y",_t().state.textHeight+2*_t().state.padding).attr("font-size",_t().state.fontSize).attr("class","state-title").text(e.id),r=n.node().getBBox();t.insert("rect",":first-child").attr("x",_t().state.padding).attr("y",_t().state.padding).attr("width",r.width+2*_t().state.padding).attr("height",r.height+2*_t().state.padding).attr("rx",_t().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&xi(i,e);var a=i.node().getBBox();return r.width=a.width+2*_t().state.padding,r.height=a.height+2*_t().state.padding,_i(n,r),r},Ti=0;vi.parser.yy=gi;var Ai={},Ci=function t(e,n,r,i){var a,o=new W.a.Graph({compound:!0,multigraph:!0}),c=!0;for(a=0;a "+t.w+": "+JSON.stringify(o.edge(t))),function(t,e,n){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var r=e.points,i=Object(s.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.curveBasis),a=t.append("path").attr("d",i(r)).attr("id","edge"+Ti).attr("class","transition"),o="";if(_t().state.arrowMarkerAbsolute&&(o=(o=(o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+o+"#"+function(t){switch(t){case gi.relationType.AGGREGATION:return"aggregation";case gi.relationType.EXTENSION:return"extension";case gi.relationType.COMPOSITION:return"composition";case gi.relationType.DEPENDENCY:return"dependency"}}(gi.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var c=t.append("g").attr("class","stateLabel"),u=U.calcLabelPosition(e.points),l=u.x,h=u.y,d=_.getRows(n.title),p=0,y=[],g=0,v=0,m=0;m<=d.length;m++){var b=c.append("text").attr("text-anchor","middle").text(d[m]).attr("x",l).attr("y",h+p),x=b.node().getBBox();if(g=Math.max(g,x.width),v=Math.min(v,x.x),f.info(x.x,l,h+p),0===p){var w=b.node().getBBox();p=w.height,f.info("Title height",p,h)}y.push(b)}var k=p*d.length;if(d.length>1){var E=(d.length-1)*p*.5;y.forEach((function(t,e){return t.attr("y",h+e*p-E)})),k=p*d.length}var T=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",l-g/2-_t().state.padding/2).attr("y",h-k/2-_t().state.padding/2-3.5).attr("width",g+_t().state.padding).attr("height",k+_t().state.padding),f.info(T)}Ti++}(n,o.edge(t),o.edge(t).relation))})),k=w.getBBox();var E={id:r||"root",label:r||"root",width:0,height:0};return E.width=k.width+2*ii.padding,E.height=k.height+2*ii.padding,f.debug("Doc rendered",E,o),E},Si=function(){},Mi=function(t,e){ii=_t().state,vi.parser.yy.clear(),vi.parser.parse(t),f.debug("Rendering diagram "+t);var n=Object(s.select)("[id='".concat(e,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new W.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var r=gi.getRootDoc();Ci(r,n,void 0,!1);var i=ii.padding,a=n.node().getBBox(),o=a.width+2*i,c=a.height+2*i;ii.useMaxWidth?(n.attr("width","100%"),n.attr("style","max-width: ".concat(1.75*o,"px;"))):n.attr("width",1.75*o),n.attr("viewBox","".concat(a.x-ii.padding," ").concat(a.y-ii.padding," ")+o+" "+c)},Oi={},Di={},Ni=function(t,e,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),Di[n.id]||(Di[n.id]={id:n.id,shape:i,description:n.id,classes:"statediagram-state"}),n.description&&(Array.isArray(Di[n.id].description)?(Di[n.id].shape="rectWithTitle",Di[n.id].description.push(n.description)):Di[n.id].description.length>0?(Di[n.id].shape="rectWithTitle",Di[n.id].description===n.id?Di[n.id].description=[n.description]:Di[n.id].description=[Di[n.id].description,n.description]):(Di[n.id].shape="rect",Di[n.id].description=n.description)),!Di[n.id].type&&n.doc&&(f.info("Setting cluser for ",n.id),Di[n.id].type="group",Di[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",Di[n.id].classes=Di[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var a={labelStyle:"",shape:Di[n.id].shape,labelText:Di[n.id].description,classes:Di[n.id].classes,style:"",id:n.id,type:Di[n.id].type,padding:15};if(n.note){var o={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",type:Di[n.id].type,padding:15},s={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:Di[n.id].classes,style:"",id:n.id+"----parent",type:"group",padding:0};t.setNode(n.id+"----parent",s),t.setNode(o.id,o),t.setNode(n.id,a),t.setParent(n.id,n.id+"----parent"),t.setParent(o.id,n.id+"----parent");var c=n.id,u=o.id;"left of"===n.note.position&&(c=o.id,u=n.id),t.setEdge(c,u,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(n.id,a)}e&&"root"!==e.id&&(f.info("Setting node ",n.id," to be child of its parent ",e.id),t.setParent(n.id,e.id)),n.doc&&(f.info("Adding nodes children "),Li(t,n,n.doc,!r))},Bi=0,Li=function(t,e,n,r){f.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)Ni(t,e,n,r);else if("relation"===n.stmt){Ni(t,e,n.state1,r),Ni(t,e,n.state2,r);var i={id:"edge"+Bi,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},a=n.state1.id,o=n.state2.id;t.setEdge(a,o,i,Bi),Bi++}}))},Pi=function(t){for(var e=Object.keys(t),n=0;ne.seq?t:e}),t[0]),n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));var r,i,a,o=[n,e.id,e.seq];for(var s in Ri)Ri[s]===e.id&&o.push(s);if(f.debug(o.join(" ")),Array.isArray(e.parent)){var c=Ii[e.parent[0]];Vi(t,e,c),t.push(Ii[e.parent[1]])}else{if(null==e.parent)return;var u=Ii[e.parent];Vi(t,e,u)}r=t,i=function(t){return t.id},a=Object.create(null),Gi(t=r.reduce((function(t,e){var n=i(e);return a[n]||(a[n]=!0,t.push(e)),t}),[]))}var qi,Xi=function(){var t=Object.keys(Ii).map((function(t){return Ii[t]}));return t.forEach((function(t){f.debug(t.id)})),t.sort((function(t,e){return e.seq-t.seq})),t},Zi={setDirection:function(t){zi=t},setOptions:function(t){f.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Hi=JSON.parse(t)}catch(t){f.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return Hi},commit:function(t){var e={id:$i(),message:t,seq:Ui++,parent:null==ji?null:ji.id};ji=e,Ii[e.id]=e,Ri[Yi]=e.id,f.debug("in pushCommit "+e.id)},branch:function(t){Ri[t]=null!=ji?ji.id:null,f.debug("in createBranch")},merge:function(t){var e=Ii[Ri[Yi]],n=Ii[Ri[t]];if(function(t,e){return t.seq>e.seq&&Wi(e,t)}(e,n))f.debug("Already merged");else{if(Wi(e,n))Ri[Yi]=Ri[t],ji=Ii[Ri[Yi]];else{var r={id:$i(),message:"merged branch "+t+" into "+Yi,seq:Ui++,parent:[null==ji?null:ji.id,Ri[t]]};ji=r,Ii[r.id]=r,Ri[Yi]=r.id}f.debug(Ri),f.debug("in mergeBranch")}},checkout:function(t){f.debug("in checkout");var e=Ri[Yi=t];ji=Ii[e]},reset:function(t){f.debug("in reset",t);var e=t.split(":")[0],n=parseInt(t.split(":")[1]),r="HEAD"===e?ji:Ii[Ri[e]];for(f.debug(r,n);n>0;)if(n--,!(r=Ii[r.parent])){var i="Critical error - unique parent commit not found during reset";throw f.error(i),i}ji=r,Ri[Yi]=r.id},prettyPrint:function(){f.debug(Ii),Gi([Xi()[0]])},clear:function(){Ii={},Ri={master:ji=null},Yi="master",Ui=0},getBranchesAsObjArray:function(){var t=[];for(var e in Ri)t.push({name:e,commit:Ii[Ri[e]]});return t},getBranches:function(){return Ri},getCommits:function(){return Ii},getCommitsArray:Xi,getCurrentBranch:function(){return Yi},getDirection:function(){return zi},getHead:function(){return ji}},Ji=n(71),Qi=n.n(Ji),Ki={},ta={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},ea={};function na(t,e,n,r){var i=O(r,s.curveBasis),a=ta.branchColors[n%ta.branchColors.length],o=Object(s.line)().x((function(t){return Math.round(t.x)})).y((function(t){return Math.round(t.y)})).curve(i);t.append("svg:path").attr("d",o(e)).style("stroke",a).style("stroke-width",ta.lineStrokeWidth).style("fill","none")}function ra(t,e){e=e||t.node().getBBox();var n=t.node().getCTM();return{left:n.e+e.x*n.a,top:n.f+e.y*n.d,width:e.width,height:e.height}}function ia(t,e,n,r,i){f.debug("svgDrawLineForCommits: ",e,n);var a=ra(t.select("#node-"+e+" circle")),o=ra(t.select("#node-"+n+" circle"));switch(r){case"LR":if(a.left-o.left>ta.nodeSpacing){var s={x:a.left-ta.nodeSpacing,y:o.top+o.height/2};na(t,[s,{x:o.left+o.width,y:o.top+o.height/2}],i,"linear"),na(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-ta.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-ta.nodeSpacing/2,y:s.y},s],i)}else na(t,[{x:a.left,y:a.top+a.height/2},{x:a.left-ta.nodeSpacing/2,y:a.top+a.height/2},{x:a.left-ta.nodeSpacing/2,y:o.top+o.height/2},{x:o.left+o.width,y:o.top+o.height/2}],i);break;case"BT":if(o.top-a.top>ta.nodeSpacing){var c={x:o.left+o.width/2,y:a.top+a.height+ta.nodeSpacing};na(t,[c,{x:o.left+o.width/2,y:o.top}],i,"linear"),na(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+a.height+ta.nodeSpacing/2},{x:o.left+o.width/2,y:c.y-ta.nodeSpacing/2},c],i)}else na(t,[{x:a.left+a.width/2,y:a.top+a.height},{x:a.left+a.width/2,y:a.top+ta.nodeSpacing/2},{x:o.left+o.width/2,y:o.top-ta.nodeSpacing/2},{x:o.left+o.width/2,y:o.top}],i)}}function aa(t,e){return t.select(e).node().cloneNode(!0)}function oa(t,e,n,r){var i,a=Object.keys(Ki).length;if("string"==typeof e)do{if(i=Ki[e],f.debug("in renderCommitHistory",i.id,i.seq),t.select("#node-"+e).size()>0)return;t.append((function(){return aa(t,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+i.id})).attr("transform",(function(){switch(r){case"LR":return"translate("+(i.seq*ta.nodeSpacing+ta.leftMargin)+", "+qi*ta.branchOffset+")";case"BT":return"translate("+(qi*ta.branchOffset+ta.leftMargin)+", "+(a-i.seq)*ta.nodeSpacing+")"}})).attr("fill",ta.nodeFillColor).attr("stroke",ta.nodeStrokeColor).attr("stroke-width",ta.nodeStrokeWidth);var o=void 0;for(var s in n)if(n[s].commit===i){o=n[s];break}o&&(f.debug("found branch ",o.name),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","branch-label").text(o.name+", ")),t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-id").text(i.id),""!==i.message&&"BT"===r&&t.select("#node-"+i.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+i.message),e=i.parent}while(e&&Ki[e]);Array.isArray(e)&&(f.debug("found merge commmit",e),oa(t,e[0],n,r),qi++,oa(t,e[1],n,r),qi--)}function sa(t,e,n,r){for(r=r||0;e.seq>0&&!e.lineDrawn;)"string"==typeof e.parent?(ia(t,e.id,e.parent,n,r),e.lineDrawn=!0,e=Ki[e.parent]):Array.isArray(e.parent)&&(ia(t,e.id,e.parent[0],n,r),ia(t,e.id,e.parent[1],n,r+1),sa(t,Ki[e.parent[1]],n,r+1),e.lineDrawn=!0,e=Ki[e.parent[0]])}var ca,ua=function(t){ea=t},la=function(t,e,n){try{var r=Qi.a.parser;r.yy=Zi,r.yy.clear(),f.debug("in gitgraph renderer",t+"\n","id:",e,n),r.parse(t+"\n"),ta=Object.assign(ta,ea,Zi.getOptions()),f.debug("effective options",ta);var i=Zi.getDirection();Ki=Zi.getCommits();var a=Zi.getBranchesAsObjArray();"BT"===i&&(ta.nodeLabel.x=a.length*ta.branchOffset,ta.nodeLabel.width="100%",ta.nodeLabel.y=-2*ta.nodeRadius);var o=Object(s.select)('[id="'.concat(e,'"]'));for(var c in function(t){t.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",ta.nodeRadius).attr("cx",0).attr("cy",0),t.select("#def-commit").append("foreignObject").attr("width",ta.nodeLabel.width).attr("height",ta.nodeLabel.height).attr("x",ta.nodeLabel.x).attr("y",ta.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(o),qi=1,a){var u=a[c];oa(o,u.commit.id,a,i),sa(o,u.commit,i),qi++}o.attr("height",(function(){return"BT"===i?Object.keys(Ki).length*ta.nodeSpacing:(a.length+1)*ta.branchOffset}))}catch(t){f.error("Error while rendering gitgraph"),f.error(t.message)}},ha="",fa=!1,da={setMessage:function(t){f.debug("Setting message to: "+t),ha=t},getMessage:function(){return ha},setInfo:function(t){fa=t},getInfo:function(){return fa}},pa=n(72),ya=n.n(pa),ga={},va=function(t){Object.keys(t).forEach((function(e){ga[e]=t[e]}))},ma=function(t,e,n){try{var r=ya.a.parser;r.yy=da,f.debug("Renering info diagram\n"+t),r.parse(t),f.debug("Parsed info diagram");var i=Object(s.select)("#"+e);i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),i.attr("height",100),i.attr("width",400)}catch(t){f.error("Error while rendering info diagram"),f.error(t.message)}},ba={},_a=function(t){Object.keys(t).forEach((function(e){ba[e]=t[e]}))},xa=function(t,e){try{f.debug("Renering svg for syntax error\n");var n=Object(s.select)("#"+t),r=n.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+e),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(t){f.error("Error while rendering info diagram"),f.error(t.message)}},wa={},ka="",Ea={parseDirective:function(t,e,n){No.parseDirective(this,t,e,n)},getConfig:function(){return _t().pie},addSection:function(t,e){void 0===wa[t]&&(wa[t]=e,f.debug("Added new section :",t))},getSections:function(){return wa},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){wa={},ka=""},setTitle:function(t){ka=t},getTitle:function(){return ka}},Ta=n(73),Aa=n.n(Ta),Ca={},Sa=function(t){Object.keys(t).forEach((function(e){Ca[e]=t[e]}))},Ma=function(t,e){try{var n=Aa.a.parser;n.yy=Ea,f.debug("Rendering info diagram\n"+t),n.yy.clear(),n.parse(t),f.debug("Parsed info diagram");var r=document.getElementById(e);void 0===(ca=r.parentElement.offsetWidth)&&(ca=1200),void 0!==Ca.useWidth&&(ca=Ca.useWidth);r.setAttribute("height","100%"),r.setAttribute("viewBox","0 0 "+ca+" 450");var i=ca,a=Math.min(i,450)/2-40,o=Object(s.select)("#"+e).append("svg").attr("width",i).attr("height",450).append("g").attr("transform","translate("+i/2+",225)"),c=Ea.getSections(),u=0;Object.keys(c).forEach((function(t){u+=c[t]})),f.info(c);var l=Object(s.scaleOrdinal)().domain(c).range(s.schemeSet2),h=Object(s.pie)().value((function(t){return t.value}))(Object(s.entries)(c)),d=Object(s.arc)().innerRadius(0).outerRadius(a);o.selectAll("mySlices").data(h).enter().append("path").attr("d",d).attr("fill",(function(t){return l(t.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),o.selectAll("mySlices").data(h).enter().append("text").text((function(t){return(t.data.value/u*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+d.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),o.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var p=o.selectAll(".legend").data(l.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*l.domain().length/2)+")"}));p.append("rect").attr("width",18).attr("height",18).style("fill",l).style("stroke",l),p.append("text").attr("x",22).attr("y",14).text((function(t){return t}))}catch(t){f.error("Error while rendering info diagram"),f.error(t)}},Oa={},Da=[],Na="",Ba={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){No.parseDirective(this,t,e,n)},getConfig:function(){return _t().er},addEntity:function(t){void 0===Oa[t]&&(Oa[t]=t,f.debug("Added new entity :",t))},getEntities:function(){return Oa},addRelationship:function(t,e,n,r){var i={entityA:t,roleA:e,entityB:n,relSpec:r};Da.push(i),f.debug("Added new relationship :",i)},getRelationships:function(){return Da},clear:function(){Oa={},Da=[],Na=""},setTitle:function(t){Na=t},getTitle:function(){return Na}},La=n(74),Pa=n.n(La),Fa={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},Ia=Fa,ja=function(t,e){var n;t.append("defs").append("marker").attr("id",Fa.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",Fa.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Fa.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",Fa.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",Fa.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",Fa.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=t.append("defs").append("marker").attr("id",Fa.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=t.append("defs").append("marker").attr("id",Fa.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},Ra={},Ya=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},za=0,Ua=function(t){for(var e=Object.keys(t),n=0;n/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},ro=-1,io=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ao=function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,u){for(var l=c.taskFontSize,h=c.taskFontFamily,f=t.split(//gi),d=0;d3?function(t){var e=Object(s.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+o.cx+","+(o.cy+2)+")")}(c):o.score<3?function(t){var e=Object(s.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+o.cx+","+(o.cy+7)+")")}(c):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",o.cx-5).attr("y1",o.cy+7).attr("x2",o.cx+5).attr("y2",o.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(c);var u=io();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=n.width,u.height=n.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,to(i,u);var l=e.x+14;e.people.forEach((function(t){var n=e.actors[t],r={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t};eo(i,r),l+=10})),ao(n)(e.task,i,u.x,u.y,u.width,u.height,{class:"task"},n,e.colour)},lo=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};Wa.parser.yy=Ka;var ho={leftMargin:150,diagramMarginX:50,diagramMarginY:20,taskMargin:50,width:150,height:50,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},fo={};var po=ho.leftMargin,yo={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i,a=this,o=0;this.sequenceItems.forEach((function(s){o++;var c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*ho.boxMargin,Math.min),a.updateVal(s,"stopy",r+c*ho.boxMargin,Math.max),a.updateVal(yo.data,"startx",t-c*ho.boxMargin,Math.min),a.updateVal(yo.data,"stopx",n+c*ho.boxMargin,Math.max),"activation"!==i&&(a.updateVal(s,"startx",t-c*ho.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*ho.boxMargin,Math.max),a.updateVal(yo.data,"starty",e-c*ho.boxMargin,Math.min),a.updateVal(yo.data,"stopy",r+c*ho.boxMargin,Math.max))}))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(yo.data,"startx",i,Math.min),this.updateVal(yo.data,"starty",o,Math.min),this.updateVal(yo.data,"stopx",a,Math.max),this.updateVal(yo.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},go=ho.sectionFills,vo=ho.sectionColours,mo=function(t,e,n){for(var r="",i=n+(2*ho.height+ho.diagramMarginY),a=0,o="#CCC",s="black",c=0,u=0;u tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: ").concat(t.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n")},gantt:function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: '.concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor," ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n")},classDiagram:xo,"classDiagram-v2":xo,class:xo,stateDiagram:ko,state:ko,git:function(){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n"},info:function(){return""},pie:function(t){return".pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ".concat(t.taskTextDarkColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.taskTextDarkColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: 17px;\n }\n")},er:function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.3;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n")},journey:function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.secondBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.secondBkg,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n")}},To=function(t,e,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(Eo[t](n),"\n\n ").concat(e,"\n\n ").concat(t," { fill: apa;}\n")};function Ao(t){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Co={},So=function(t,e,n){switch(f.debug("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),Oo(e.args),xt(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;default:f.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}};function Mo(t){ua(t.git),he(t.flowchart),Ke(t.flowchart),void 0!==t.sequenceDiagram&&jn.setConf(F(t.sequence,t.sequenceDiagram)),jn.setConf(t.sequence),_r(t.gantt),Jr(t.class),Si(t.state),Pi(t.state),va(t.class),Sa(t.class),Ua(t.er),bo(t.journey),_a(t.class)}function Oo(t){"mermaidAPI.reinitialize: v".concat(c.version),JSON.stringify(t),t.themeVariables.primaryColor}var Do=Object.freeze({render:function(t,e,n,r){wt();var i=e,a=U.detectInit(i);if(a)xt(a);else{wt();var u=bt();xt(u)}var l=_t();if(console.log("Render",l),e.length>l.maxTextSize&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==r)r.innerHTML="",Object(s.select)(r).append("div").attr("id","d"+t).attr("style","font-family: "+l.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var h=document.getElementById(t);h&&h.remove();var d=document.querySelector("#d"+t);d&&d.remove(),Object(s.select)("body").append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=i,i=function(t){var e=t;return e=(e=(e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}))).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}))}(i);var p=Object(s.select)("#d"+t).node(),y=U.detectType(i),g=p.firstChild,v=g.firstChild,m="";if(void 0!==l.themeCSS&&(m+="\n".concat(l.themeCSS)),void 0!==l.fontFamily&&(m+="\n:root { --mermaid-font-family: ".concat(l.fontFamily,"}")),void 0!==l.altFontFamily&&(m+="\n:root { --mermaid-alt-font-family: ".concat(l.altFontFamily,"}")),"flowchart"===y||"flowchart-v2"===y||"graph"===y){var b=fe(i);for(var _ in b)m+="\n.".concat(_," > * { ").concat(b[_].styles.join(" !important; ")," !important; }"),b[_].textStyles&&(m+="\n.".concat(_," tspan { ").concat(b[_].textStyles.join(" !important; ")," !important; }"))}var x=(new o.a)("#".concat(t),To(y,m,l.themeVariables)),w=document.createElement("style");w.innerHTML=x,g.insertBefore(w,v);try{switch(y){case"git":l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ua(l.git),la(i,t,!1);break;case"flowchart":l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,he(l.flowchart),de(i,t,!1);break;case"flowchart-v2":l.flowchart.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Ke(l.flowchart),tn(i,t,!1);break;case"sequence":l.sequence.arrowMarkerAbsolute=l.arrowMarkerAbsolute,l.sequenceDiagram?(jn.setConf(Object.assign(l.sequence,l.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):jn.setConf(l.sequence),jn.draw(i,t);break;case"gantt":l.gantt.arrowMarkerAbsolute=l.arrowMarkerAbsolute,_r(l.gantt),xr(i,t);break;case"class":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Jr(l.class),Qr(i,t);break;case"classDiagram":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,ti(l.class),ei(i,t);break;case"state":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Si(l.state),Mi(i,t);break;case"stateDiagram":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Pi(l.state),Fi(i,t);break;case"info":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,va(l.class),ma(i,t,c.version);break;case"pie":l.class.arrowMarkerAbsolute=l.arrowMarkerAbsolute,Sa(l.class),Ma(i,t,c.version);break;case"er":Ua(l.er),$a(i,t,c.version);break;case"journey":bo(l.journey),_o(i,t,c.version)}}catch(e){throw xa(t,c.version),e}Object(s.select)('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var k=Object(s.select)("#d"+t).node().innerHTML;if(f.debug("cnf.arrowMarkerAbsolute",l.arrowMarkerAbsolute),l.arrowMarkerAbsolute&&"false"!==l.arrowMarkerAbsolute||(k=k.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),k=function(t){var e=t;return e=(e=(e=e.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))}(k),void 0!==n)switch(y){case"flowchart":case"flowchart-v2":n(k,Ut.bindFunctions);break;case"gantt":n(k,gr.bindFunctions);break;case"class":n(k,Pr.bindFunctions);break;default:n(k)}else f.debug("CB = undefined!");var E=Object(s.select)("#d"+t).node();return null!==E&&"function"==typeof E.remove&&Object(s.select)("#d"+t).node().remove(),k},parse:function(t){var e=U.detectInit(t);e&&(Oo(e),f.debug("reinit ",e));var n,r=U.detectType(t);switch(f.debug("Type "+r),r){case"git":(n=Qi.a).parser.yy=Zi;break;case"flowchart":case"flowchart-v2":Ut.clear(),(n=Wt.a).parser.yy=Ut;break;case"sequence":(n=hn.a).parser.yy=Cn;break;case"gantt":(n=Yn.a).parser.yy=gr;break;case"class":case"classDiagram":(n=Ir.a).parser.yy=Pr;break;case"state":case"stateDiagram":(n=mi.a).parser.yy=gi;break;case"info":f.debug("info info info"),(n=ya.a).parser.yy=da;break;case"pie":f.debug("pie"),(n=Aa.a).parser.yy=Ea;break;case"er":f.debug("er"),(n=Pa.a).parser.yy=Ba;break;case"journey":f.debug("Journey"),(n=Ha.a).parser.yy=Ka}return n.parser.yy.graphType=r,n.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},n.parse(t),n},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":Co={};break;case"type_directive":Co.type=e.toLowerCase();break;case"arg_directive":Co.args=JSON.parse(e);break;case"close_directive":So(t,Co,r),Co=null}}catch(t){f.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(n)),f.error(t.message)}},initialize:function(t){console.trace("mermaidAPI.initialize: v".concat(c.version," ").concat(t)),t&&t.theme&&ct[t.theme]?t.themeVariables=ct[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ct.default.getThemeVariables());var e="object"===Ao(t)?yt=ft({},pt,{},t):bt();Mo(e),d(e.logLevel),f.debug("mermaidAPI.initialize: ",e)},reinitialize:Oo,getConfig:_t,getSiteConfig:bt,updateSiteConfig:function(t){return console.log("setSiteConfig"),yt=ft({},yt,{},t)},reset:function(){console.warn("reset"),wt(),Mo(bt())},globalReset:function(){wt(pt),Mo(_t())},defaultConfig:pt});d(_t().logLevel),wt(_t());var No=Do,Bo=function(){Lo.startOnLoad?No.getConfig().startOnLoad&&Lo.init():void 0===Lo.startOnLoad&&(f.debug("In start, no config"),No.getConfig().startOnLoad&&Lo.init())};"undefined"!=typeof document&& /*! * Wait for document loaded before starting the execution */ -window.addEventListener("load",(function(){Mo()}),!1);var Oo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:Co,parse:Co.parse,render:Co.render,init:function(){var t,e,n,r=this,a=Co.getConfig();arguments.length>=2?( +window.addEventListener("load",(function(){Bo()}),!1);var Lo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:No,parse:No.parse,render:No.render,init:function(){var t,e,n,r=this,a=No.getConfig();console.log("Starting rendering diagrams (init) - mermaid.init",a),arguments.length>=2?( /*! sequence config was passed as #1 */ -void 0!==arguments[0]&&(Oo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],f.debug("Callback function found")):void 0!==a.mermaid&&("function"==typeof a.mermaid.callback?(e=a.mermaid.callback,f.debug("Callback function found")):f.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,f.debug("Start On Load before: "+Oo.startOnLoad),void 0!==Oo.startOnLoad&&(f.debug("Start On Load inner: "+Oo.startOnLoad),Co.initialize({startOnLoad:Oo.startOnLoad})),void 0!==Oo.ganttConfig&&Co.initialize({gantt:Oo.ganttConfig});for(var o=function(a){var o=t[a]; -/*! Check if previously processed */if(o.getAttribute("data-processed"))return"continue";o.setAttribute("data-processed",!0);var s="mermaid-".concat(Date.now());n=i(n=o.innerHTML).trim().replace(//gi,"
");var c=U.detectInit(n);c&&f.debug("Detected early reinit: ",c);try{Co.render(s,n,(function(t,n){o.innerHTML=t,void 0!==e&&e(s),n&&n(o)}),o)}catch(t){f.warn("Syntax Error rendering"),f.warn(t),r.parseError&&r.parseError(t)}},s=0;s/gi,"
");var c=U.detectInit(n);c&&f.debug("Detected early reinit: ",c);try{No.render(s,n,(function(t,n){o.innerHTML=t,void 0!==e&&e(s),n&&n(o)}),o)}catch(t){f.warn("Syntax Error rendering"),f.warn(t),r.parseError&&r.parseError(t)}},s=0;s dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n","export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n","import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n","export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n","import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(x) {\n return x === null ? NaN : +x;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n","import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n","var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(x) {\n return x;\n}\n","export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n","var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n","export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n","import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n","import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n","import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n","import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n","import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n","export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n","export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n","import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n","export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n","import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n","import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return x;\n}\n","import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n","var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","export default function() {\n return !this.node();\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n","export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n","import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n","import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n","import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n","var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n","import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n","import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n","import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n","import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n","import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n","import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n","import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n","function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n","import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n","import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n","function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n","function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n","import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n","export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n","import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n","import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n","import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n","import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n","import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n","import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n","import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n","import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n","import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n","import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n","import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n","export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n","import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n","import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n","export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n","import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n","import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n","export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n","export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n","export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n","var array = Array.prototype;\n\nexport var slice = array.slice;\n","export default function(a, b) {\n return a - b;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n","export default function() {}\n","import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n","export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n","// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n","import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n","import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n","var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n","import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n","import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n","export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();","export function linear(t) {\n return +t;\n}\n","export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n","var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n","var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n","export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n","export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n","var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n","var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n","var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n","function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n","function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n","function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n","import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n","export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n","function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n","import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n","export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n","export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n","export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n","export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n","export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n","export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n","import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n","export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n","export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n","import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n","export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n","export default function() {\n return this._root;\n}\n","export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n","// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n","// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n","// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n","import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n","export default function(x) {\n return x;\n}\n","import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n","export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n","export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n","// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n","export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n","export default function noop() {}\n","function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n","import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n","import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n","import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n","import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n","import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n","import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n","import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n","import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n","import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n","import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n","import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n","import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n","import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n","import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n","export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n","import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n","import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n","import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n","import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n","import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n","import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n","import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n","export default function(x) {\n return x;\n}\n","import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n","import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n","import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n","import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n","export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n","import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n","export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n","import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n","import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n","import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n","import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n","import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n","import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n","import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n","import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n","import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n","import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n","import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n","import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n","import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n","import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n","import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n","import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n","import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n","import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n","import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n","import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n","function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n","function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n","export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n","export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n","export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n","export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n","export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n","export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n","export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n","export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n","export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n","import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n","import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n","export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n","export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n","import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n","export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n","import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n","import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n","import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n","import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n","export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n","import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n","var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n","import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n","import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n","import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n","import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n","export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n","import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n","// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n","export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n","export default function() {\n return Math.random();\n}\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n","export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n","var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n","import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(x) {\n return +x;\n}\n","import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n","import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n","import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n","export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n","import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n","import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n","import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n","export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n","import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n","import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n","import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n","import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n","import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n","import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n","import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n","import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n","import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n","import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n","import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n","import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n","export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n","import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n","import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n","import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n","import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n","import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n","var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n","import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n","export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n","export var slice = Array.prototype.slice;\n","import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n","import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n","export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n","var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n","import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n","export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n","var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n","var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n","import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n","import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n","import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n","import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n","function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n","function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n","import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n","import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n","import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n","import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n","function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n","import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n","import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n","import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n","import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n","export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n","export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n","\"use strict\";\n/* EXPORT */\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./methods\"));\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,10],\"inclusive\":false},\"ID\":{\"rules\":[9,10,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[9,10,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[9,10,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\nvar lang_1 = require(\"./lang\");\nvar unit_1 = require(\"./unit\");\n/* UTILS */\nvar Utils = {\n channel: channel_1.default,\n lang: lang_1.default,\n unit: unit_1.default\n};\n/* EXPORT */\nexports.default = Utils;\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,6],$V2=[1,20],$V3=[1,23],$V4=[1,21],$V5=[1,22],$V6=[1,24],$V7=[1,25],$V8=[1,27],$V9=[1,28],$Va=[1,29],$Vb=[1,32],$Vc=[7,9],$Vd=[1,41],$Ve=[1,42],$Vf=[1,43],$Vg=[1,44],$Vh=[1,45],$Vi=[1,46],$Vj=[7,9,20,26,34,37,38,39,40,41,42],$Vk=[7,9,13,20,26,30,34,37,38,39,40,41,42,58,59,60],$Vl=[34,58,59,60],$Vm=[34,41,42,58,59,60],$Vn=[34,37,38,39,40,58,59,60],$Vo=[6,7,9,61],$Vp=[7,9,20],$Vq=[1,73];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"directive\":5,\"CLASS_DIAGRAM\":6,\"NEWLINE\":7,\"statements\":8,\"EOF\":9,\"statement\":10,\"className\":11,\"alphaNumToken\":12,\"GENERICTYPE\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"relationStatement\":19,\"LABEL\":20,\"classStatement\":21,\"methodStatement\":22,\"annotationStatement\":23,\"clickStatement\":24,\"CLASS\":25,\"STRUCT_START\":26,\"members\":27,\"STRUCT_STOP\":28,\"ANNOTATION_START\":29,\"ANNOTATION_END\":30,\"MEMBER\":31,\"SEPARATOR\":32,\"relation\":33,\"STR\":34,\"relationType\":35,\"lineType\":36,\"AGGREGATION\":37,\"EXTENSION\":38,\"COMPOSITION\":39,\"DEPENDENCY\":40,\"LINE\":41,\"DOTTED_LINE\":42,\"CALLBACK\":43,\"LINK\":44,\"commentToken\":45,\"textToken\":46,\"graphCodeTokens\":47,\"textNoTagsToken\":48,\"TAGSTART\":49,\"TAGEND\":50,\"==\":51,\"--\":52,\"PCT\":53,\"DEFAULT\":54,\"SPACE\":55,\"MINUS\":56,\"keywords\":57,\"UNICODE_TEXT\":58,\"NUM\":59,\"ALPHA\":60,\"open_directive\":61,\"type_directive\":62,\"arg_directive\":63,\"close_directive\":64,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"CLASS_DIAGRAM\",7:\"NEWLINE\",9:\"EOF\",13:\"GENERICTYPE\",17:\":\",20:\"LABEL\",25:\"CLASS\",26:\"STRUCT_START\",28:\"STRUCT_STOP\",29:\"ANNOTATION_START\",30:\"ANNOTATION_END\",31:\"MEMBER\",32:\"SEPARATOR\",34:\"STR\",37:\"AGGREGATION\",38:\"EXTENSION\",39:\"COMPOSITION\",40:\"DEPENDENCY\",41:\"LINE\",42:\"DOTTED_LINE\",43:\"CALLBACK\",44:\"LINK\",47:\"graphCodeTokens\",49:\"TAGSTART\",50:\"TAGEND\",51:\"==\",52:\"--\",53:\"PCT\",54:\"DEFAULT\",55:\"SPACE\",56:\"MINUS\",57:\"keywords\",58:\"UNICODE_TEXT\",59:\"NUM\",60:\"ALPHA\",61:\"open_directive\",62:\"type_directive\",63:\"arg_directive\",64:\"close_directive\"},\nproductions_: [0,[3,1],[3,2],[4,4],[8,1],[8,2],[8,3],[11,2],[11,1],[11,3],[11,2],[5,4],[5,6],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[21,2],[21,5],[23,4],[27,1],[27,2],[22,1],[22,2],[22,1],[22,1],[19,3],[19,4],[19,4],[19,5],[33,3],[33,2],[33,2],[33,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[24,3],[24,4],[24,3],[24,4],[45,1],[45,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[48,1],[48,1],[48,1],[48,1],[12,1],[12,1],[12,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 7:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 10:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 13:\n yy.addRelation($$[$0]); \nbreak;\ncase 14:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 20:\nyy.addClass($$[$0]);\nbreak;\ncase 21:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 22:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 23:\n this.$ = [$$[$0]]; \nbreak;\ncase 24:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 25:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 26:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 27:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 28:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 29:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 30:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 31:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 32:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 33:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 34:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 35:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 36:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 37:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 38:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 39:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 40:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 41:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 42:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 43:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 44:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 45:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 46:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 63:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 64:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 65:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 66:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:5,61:$V1},{1:[3]},{1:[2,1]},{3:7,4:2,5:3,6:$V0,14:5,61:$V1},{7:[1,8]},{15:9,62:[1,10]},{62:[2,63]},{1:[2,2]},{5:18,8:11,10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},{16:30,17:[1,31],64:$Vb},o([17,64],[2,64]),{9:[1,33]},{7:[1,34],9:[2,4]},o($Vc,[2,13],{20:[1,35]}),o($Vc,[2,15]),o($Vc,[2,16]),o($Vc,[2,17]),o($Vc,[2,18]),o($Vc,[2,19]),o($Vc,[2,25],{33:36,35:39,36:40,20:[1,38],34:[1,37],37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi}),{11:47,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,27]),o($Vc,[2,28]),{12:48,58:$V8,59:$V9,60:$Va},{11:49,12:26,58:$V8,59:$V9,60:$Va},{11:50,12:26,58:$V8,59:$V9,60:$Va},o($Vj,[2,8],{12:26,11:51,13:[1,52],58:$V8,59:$V9,60:$Va}),o($Vk,[2,60]),o($Vk,[2,61]),o($Vk,[2,62]),{7:[1,53]},{18:54,63:[1,55]},{7:[2,66]},{1:[2,3]},{5:18,8:56,9:[2,5],10:12,11:19,12:26,14:5,19:13,21:14,22:15,23:16,24:17,25:$V2,29:$V3,31:$V4,32:$V5,43:$V6,44:$V7,58:$V8,59:$V9,60:$Va,61:$V1},o($Vc,[2,14]),{11:57,12:26,34:[1,58],58:$V8,59:$V9,60:$Va},{33:59,35:39,36:40,37:$Vd,38:$Ve,39:$Vf,40:$Vg,41:$Vh,42:$Vi},o($Vc,[2,26]),{36:60,41:$Vh,42:$Vi},o($Vl,[2,36],{35:61,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vm,[2,37]),o($Vm,[2,38]),o($Vm,[2,39]),o($Vm,[2,40]),o($Vn,[2,41]),o($Vn,[2,42]),o($Vc,[2,20],{26:[1,62]}),{30:[1,63]},{34:[1,64]},{34:[1,65]},o($Vj,[2,7]),o($Vj,[2,10],{12:26,11:66,58:$V8,59:$V9,60:$Va}),o($Vo,[2,11]),{16:67,64:$Vb},{64:[2,65]},{9:[2,6]},o($Vp,[2,29]),{11:68,12:26,58:$V8,59:$V9,60:$Va},{11:69,12:26,34:[1,70],58:$V8,59:$V9,60:$Va},o($Vl,[2,35],{35:71,37:$Vd,38:$Ve,39:$Vf,40:$Vg}),o($Vl,[2,34]),{27:72,31:$Vq},{11:74,12:26,58:$V8,59:$V9,60:$Va},o($Vc,[2,43],{34:[1,75]}),o($Vc,[2,45],{34:[1,76]}),o($Vj,[2,9]),{7:[1,77]},o($Vp,[2,31]),o($Vp,[2,30]),{11:78,12:26,58:$V8,59:$V9,60:$Va},o($Vl,[2,33]),{28:[1,79]},{27:80,28:[2,23],31:$Vq},o($Vc,[2,22]),o($Vc,[2,44]),o($Vc,[2,46]),o($Vo,[2,12]),o($Vp,[2,32]),o($Vc,[2,21]),{28:[2,24]}],\ndefaultActions: {2:[2,1],6:[2,63],7:[2,2],32:[2,66],33:[2,3],55:[2,65],56:[2,6],80:[2,24]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 61; \nbreak;\ncase 1: this.begin('type_directive'); return 62; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 64; \nbreak;\ncase 4:return 63;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 7;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 6;\nbreak;\ncase 12: this.begin(\"struct\"); /*console.log('Starting struct');*/return 26;\nbreak;\ncase 13:return \"EOF_IN_STRUCT\";\nbreak;\ncase 14:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 15: /*console.log('Ending struct');*/this.popState(); return 28;\nbreak;\ncase 16:/* nothing */\nbreak;\ncase 17: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 43;\nbreak;\ncase 20:return 44;\nbreak;\ncase 21:return 29;\nbreak;\ncase 22:return 30;\nbreak;\ncase 23:this.begin(\"generic\");\nbreak;\ncase 24:this.popState();\nbreak;\ncase 25:return \"GENERICTYPE\";\nbreak;\ncase 26:this.begin(\"string\");\nbreak;\ncase 27:this.popState();\nbreak;\ncase 28:return \"STR\";\nbreak;\ncase 29:return 38;\nbreak;\ncase 30:return 38;\nbreak;\ncase 31:return 40;\nbreak;\ncase 32:return 40;\nbreak;\ncase 33:return 39;\nbreak;\ncase 34:return 37;\nbreak;\ncase 35:return 41;\nbreak;\ncase 36:return 42;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 56;\nbreak;\ncase 39:return 'DOT';\nbreak;\ncase 40:return 'PLUS';\nbreak;\ncase 41:return 53;\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 'EQUALS';\nbreak;\ncase 44:return 60;\nbreak;\ncase 45:return 'PUNCTUATION';\nbreak;\ncase 46:return 59;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 55;\nbreak;\ncase 49:return 9;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0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\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"string\":{\"rules\":[27,28],\"inclusive\":false},\"generic\":{\"rules\":[24,25],\"inclusive\":false},\"struct\":{\"rules\":[13,14,15,16,17],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\nvar hex_1 = require(\"./hex\");\nvar keyword_1 = require(\"./keyword\");\nvar rgb_1 = require(\"./rgb\");\nvar hsl_1 = require(\"./hsl\");\n/* COLOR */\nvar Color = {\n /* VARIABLES */\n format: {\n keyword: keyword_1.default,\n hex: hex_1.default,\n rgb: rgb_1.default,\n rgba: rgb_1.default,\n hsl: hsl_1.default,\n hsla: hsl_1.default\n },\n /* API */\n parse: function (color) {\n if (typeof color !== 'string')\n return color;\n var channels = hex_1.default.parse(color) || rgb_1.default.parse(color) || hsl_1.default.parse(color) || keyword_1.default.parse(color); // Color providers ordered with performance in mind\n if (channels)\n return channels;\n throw new Error(\"Unsupported color format: \\\"\" + color + \"\\\"\");\n },\n stringify: function (channels) {\n // SASS returns a keyword if possible, but we avoid doing that as it's slower and doesn't really add any value\n if (!channels.changed && channels.color)\n return channels.color;\n if (channels.type.is(types_1.TYPE.HSL) || channels.data.r === undefined) {\n return hsl_1.default.stringify(channels);\n }\n else if (channels.a < 1 || !Number.isInteger(channels.r) || !Number.isInteger(channels.g) || !Number.isInteger(channels.b)) {\n return rgb_1.default.stringify(channels);\n }\n else {\n return hex_1.default.stringify(channels);\n }\n }\n};\n/* EXPORT */\nexports.default = Color;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n","// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\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function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,5],$V1=[1,4],$V2=[1,6],$V3=[1,8],$V4=[1,9,10,11,12,32,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$V5=[2,3],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,28],$Vb=[1,53],$Vc=[1,31],$Vd=[1,32],$Ve=[1,33],$Vf=[1,34],$Vg=[1,35],$Vh=[1,47],$Vi=[1,42],$Vj=[1,44],$Vk=[1,39],$Vl=[1,43],$Vm=[1,46],$Vn=[1,50],$Vo=[1,51],$Vp=[1,52],$Vq=[1,41],$Vr=[1,45],$Vs=[1,48],$Vt=[1,49],$Vu=[1,40],$Vv=[1,58],$Vw=[1,61],$Vx=[1,9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Vy=[1,65],$Vz=[1,64],$VA=[1,66],$VB=[9,10,12,63,64],$VC=[9,10,11,12,63,64],$VD=[9,10,11,12,41,63,64],$VE=[9,10,11,12,34,40,41,43,45,47,49,51,53,55,56,58,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VF=[9,10,12,40,63,64,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VG=[9,10,12],$VH=[1,9,10,11,12,19,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$VI=[40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$VJ=[1,114],$VK=[1,135],$VL=[1,136],$VM=[1,137],$VN=[1,138],$VO=[1,118],$VP=[1,109],$VQ=[1,107],$VR=[1,110],$VS=[1,130],$VT=[1,131],$VU=[1,132],$VV=[1,133],$VW=[1,134],$VX=[1,139],$VY=[1,140],$VZ=[1,112],$V_=[1,120],$V$=[1,123],$V01=[1,121],$V11=[1,122],$V21=[1,115],$V31=[1,128],$V41=[1,127],$V51=[1,111],$V61=[1,108],$V71=[1,117],$V81=[1,119],$V91=[1,124],$Va1=[1,125],$Vb1=[1,126],$Vc1=[1,129],$Vd1=[9,10,11,12,32,36,40,68,69,70,71,72,73,83,84,87,88,89,91,92,98,99,100,101,102,103,110],$Ve1=[1,143],$Vf1=[1,147],$Vg1=[1,149],$Vh1=[1,150],$Vi1=[9,10,11,12,19,20,32,34,35,36,40,44,46,48,50,52,54,55,57,59,62,63,64,65,68,69,70,71,72,73,74,77,83,84,87,88,89,91,92,93,94,98,99,100,101,102,103],$Vj1=[9,10,11,12,20,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],$Vk1=[11,84],$Vl1=[1,219],$Vm1=[1,223],$Vn1=[1,220],$Vo1=[1,217],$Vp1=[1,214],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,218],$Vt1=[1,221],$Vu1=[1,222],$Vv1=[1,224],$Vw1=[1,240],$Vx1=[9,10,12,84],$Vy1=[9,10,11,12,68,80,83,84,87,88,89,90,91,92,93];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"directive\":6,\"line\":7,\"statement\":8,\"SEMI\":9,\"NEWLINE\":10,\"SPACE\":11,\"EOF\":12,\"openDirective\":13,\"typeDirective\":14,\"closeDirective\":15,\"separator\":16,\":\":17,\"argDirective\":18,\"GRAPH\":19,\"DIR\":20,\"FirstStmtSeperator\":21,\"ending\":22,\"endToken\":23,\"spaceList\":24,\"spaceListNewline\":25,\"verticeStatement\":26,\"styleStatement\":27,\"linkStyleStatement\":28,\"classDefStatement\":29,\"classStatement\":30,\"clickStatement\":31,\"subgraph\":32,\"text\":33,\"SQS\":34,\"SQE\":35,\"end\":36,\"link\":37,\"node\":38,\"vertex\":39,\"AMP\":40,\"STYLE_SEPARATOR\":41,\"idString\":42,\"PS\":43,\"PE\":44,\"(-\":45,\"-)\":46,\"STADIUMSTART\":47,\"STADIUMEND\":48,\"SUBROUTINESTART\":49,\"SUBROUTINEEND\":50,\"CYLINDERSTART\":51,\"CYLINDEREND\":52,\"DIAMOND_START\":53,\"DIAMOND_STOP\":54,\"TAGEND\":55,\"TRAPSTART\":56,\"TRAPEND\":57,\"INVTRAPSTART\":58,\"INVTRAPEND\":59,\"linkStatement\":60,\"arrowText\":61,\"STR\":62,\"START_LINK\":63,\"LINK\":64,\"PIPE\":65,\"textToken\":66,\"keywords\":67,\"STYLE\":68,\"LINKSTYLE\":69,\"CLASSDEF\":70,\"CLASS\":71,\"CLICK\":72,\"DOWN\":73,\"UP\":74,\"textNoTags\":75,\"textNoTagsToken\":76,\"DEFAULT\":77,\"stylesOpt\":78,\"alphaNum\":79,\"HEX\":80,\"numList\":81,\"INTERPOLATE\":82,\"NUM\":83,\"COMMA\":84,\"style\":85,\"styleComponent\":86,\"ALPHA\":87,\"COLON\":88,\"MINUS\":89,\"UNIT\":90,\"BRKT\":91,\"DOT\":92,\"PCT\":93,\"TAGSTART\":94,\"alphaNumToken\":95,\"idStringToken\":96,\"alphaNumStatement\":97,\"PUNCTUATION\":98,\"UNICODE_TEXT\":99,\"PLUS\":100,\"EQUALS\":101,\"MULT\":102,\"UNDERSCORE\":103,\"graphCodeTokens\":104,\"ARROW_CROSS\":105,\"ARROW_POINT\":106,\"ARROW_CIRCLE\":107,\"ARROW_OPEN\":108,\"QUOTE\":109,\"open_directive\":110,\"type_directive\":111,\"arg_directive\":112,\"close_directive\":113,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",9:\"SEMI\",10:\"NEWLINE\",11:\"SPACE\",12:\"EOF\",17:\":\",19:\"GRAPH\",20:\"DIR\",32:\"subgraph\",34:\"SQS\",35:\"SQE\",36:\"end\",40:\"AMP\",41:\"STYLE_SEPARATOR\",43:\"PS\",44:\"PE\",45:\"(-\",46:\"-)\",47:\"STADIUMSTART\",48:\"STADIUMEND\",49:\"SUBROUTINESTART\",50:\"SUBROUTINEEND\",51:\"CYLINDERSTART\",52:\"CYLINDEREND\",53:\"DIAMOND_START\",54:\"DIAMOND_STOP\",55:\"TAGEND\",56:\"TRAPSTART\",57:\"TRAPEND\",58:\"INVTRAPSTART\",59:\"INVTRAPEND\",62:\"STR\",63:\"START_LINK\",64:\"LINK\",65:\"PIPE\",68:\"STYLE\",69:\"LINKSTYLE\",70:\"CLASSDEF\",71:\"CLASS\",72:\"CLICK\",73:\"DOWN\",74:\"UP\",77:\"DEFAULT\",80:\"HEX\",82:\"INTERPOLATE\",83:\"NUM\",84:\"COMMA\",87:\"ALPHA\",88:\"COLON\",89:\"MINUS\",90:\"UNIT\",91:\"BRKT\",92:\"DOT\",93:\"PCT\",94:\"TAGSTART\",98:\"PUNCTUATION\",99:\"UNICODE_TEXT\",100:\"PLUS\",101:\"EQUALS\",102:\"MULT\",103:\"UNDERSCORE\",105:\"ARROW_CROSS\",106:\"ARROW_POINT\",107:\"ARROW_CIRCLE\",108:\"ARROW_OPEN\",109:\"QUOTE\",110:\"open_directive\",111:\"type_directive\",112:\"arg_directive\",113:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[5,0],[5,2],[7,1],[7,1],[7,1],[7,1],[7,1],[6,4],[6,6],[4,2],[4,2],[4,3],[22,2],[22,1],[23,1],[23,1],[23,1],[21,1],[21,1],[21,2],[25,2],[25,2],[25,1],[25,1],[24,2],[24,1],[8,2],[8,2],[8,2],[8,2],[8,2],[8,2],[8,9],[8,6],[8,4],[8,1],[16,1],[16,1],[16,1],[26,3],[26,4],[26,2],[26,1],[38,1],[38,5],[38,3],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,4],[39,6],[39,4],[39,4],[39,4],[39,4],[39,4],[39,1],[37,2],[37,3],[37,3],[37,1],[37,3],[60,1],[61,3],[33,1],[33,2],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[75,1],[75,2],[29,5],[29,5],[30,5],[31,5],[31,7],[31,5],[31,7],[27,5],[27,5],[28,5],[28,5],[28,9],[28,9],[28,7],[28,7],[81,1],[81,3],[78,1],[78,3],[85,1],[85,2],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[76,1],[76,1],[76,1],[76,1],[42,1],[42,2],[79,1],[79,2],[97,1],[97,1],[97,1],[97,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[95,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[96,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[13,1],[14,1],[18,1],[15,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n this.$ = [];\nbreak;\ncase 4:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 5: case 71: case 84: case 119: case 131: case 133: case 134:\nthis.$=$$[$0];\nbreak;\ncase 14:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 29:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 30: case 31: case 32: case 33: case 34:\nthis.$=[];\nbreak;\ncase 35:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 36:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 37:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 42:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 43:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 44:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 45:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 46:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 47:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 48:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 50:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 53:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 57:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 62:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 63:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 64:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 65: case 66:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 67:\nthis.$ = $$[$0];\nbreak;\ncase 68:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 69:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 70:\nthis.$ = $$[$0-1];\nbreak;\ncase 72: case 85: case 132:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 86: case 87:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 89:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 90:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 91:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 92:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 93:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 94: case 96:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 98:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 99:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 100:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 101: case 103:\nthis.$ = [$$[$0]]\nbreak;\ncase 102: case 104:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 106:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 129:\nthis.$=$$[$0]\nbreak;\ncase 130:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 135:\nthis.$='v';\nbreak;\ncase 136:\nthis.$='-';\nbreak;\ncase 190:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 191:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 192:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 193:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{1:[3]},o($V4,$V5,{5:9}),{3:10,4:2,6:3,10:$V0,11:$V1,13:7,19:$V2,110:$V3},{4:11,10:$V0,11:$V1,19:$V2},{4:12,10:$V0,11:$V1,19:$V2},{20:[1,13]},{14:14,111:[1,15]},{111:[2,190]},{1:[2,1],6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{1:[2,2]},o($V4,[2,12]),o($V4,[2,13]),{9:[1,55],10:[1,56],11:$Vv,21:54,24:57},{15:59,17:[1,60],113:$Vw},o([17,113],[2,191]),o($Vx,[2,4]),o($Vx,[2,5]),o($Vx,[2,6]),o($Vx,[2,7]),o($Vx,[2,8]),o($Vx,[2,9]),{9:$Vy,10:$Vz,12:$VA,16:62,37:63,60:67,63:[1,68],64:[1,69]},{9:$Vy,10:$Vz,12:$VA,16:70},{9:$Vy,10:$Vz,12:$VA,16:71},{9:$Vy,10:$Vz,12:$VA,16:72},{9:$Vy,10:$Vz,12:$VA,16:73},{9:$Vy,10:$Vz,12:$VA,16:74},{9:$Vy,10:$Vz,11:[1,75],12:$VA,16:76},o($Vx,[2,38]),o($VB,[2,45],{24:77,11:$Vv}),{11:[1,78]},{11:[1,79]},{11:[1,80]},{11:[1,81]},{11:[1,82]},o($VC,[2,46],{41:[1,83]}),o($VD,[2,63],{96:94,34:[1,84],40:$Vb,43:[1,85],45:[1,86],47:[1,87],49:[1,88],51:[1,89],53:[1,90],55:[1,91],56:[1,92],58:[1,93],73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),o($VE,[2,129]),o($VE,[2,150]),o($VE,[2,151]),o($VE,[2,152]),o($VE,[2,153]),o($VE,[2,154]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($V4,[2,14]),o($V4,[2,20]),o($V4,[2,21]),{10:[1,95]},o($VF,[2,28],{24:96,11:$Vv}),{9:$Vy,10:$Vz,12:$VA,16:97},{18:98,112:[1,99]},o($VG,[2,193]),o($Vx,[2,29]),{38:100,39:36,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},o($VH,[2,39]),o($VH,[2,40]),o($VH,[2,41]),o($VI,[2,67],{61:101,62:[1,102],65:[1,103]}),{11:$VJ,19:$VK,20:$VL,32:$VM,33:104,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o([40,62,65,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,69]),o($Vx,[2,30]),o($Vx,[2,31]),o($Vx,[2,32]),o($Vx,[2,33]),o($Vx,[2,34]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:141,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:142}),o($VB,[2,44],{40:$Ve1}),{20:$Vf1,40:$VO,73:$Vg1,79:144,80:[1,145],83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{77:[1,151],81:152,83:[1,153]},{20:$Vf1,40:$VO,73:$Vg1,77:[1,154],79:155,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:156,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:157,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{40:$Vb,42:158,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$VJ,19:$VK,20:$VL,32:$VM,33:159,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:161,36:$VN,40:$VO,43:[1,160],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:162,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:163,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:164,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:165,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:166,36:$VN,40:$VO,53:[1,167],55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:168,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:169,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:170,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VE,[2,130]),o($V4,[2,22]),o($VF,[2,27]),o($VH,[2,10]),{15:171,113:$Vw},{113:[2,192]},o($VB,[2,42],{24:172,11:$Vv}),o($VI,[2,64],{11:[1,173]}),{11:[1,174]},{11:$VJ,19:$VK,20:$VL,32:$VM,33:175,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,64:[1,176],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vi1,[2,71]),o($Vi1,[2,118]),o($Vi1,[2,119]),o($Vi1,[2,120]),o($Vi1,[2,121]),o($Vi1,[2,122]),o($Vi1,[2,123]),o($Vi1,[2,124]),o($Vi1,[2,125]),o($Vi1,[2,126]),o($Vi1,[2,127]),o($Vi1,[2,128]),o($Vi1,[2,137]),o($Vi1,[2,138]),o($Vi1,[2,139]),o($Vi1,[2,140]),o($Vi1,[2,141]),o($Vi1,[2,142]),o($Vi1,[2,143]),o($Vi1,[2,144]),o($Vi1,[2,145]),o($Vi1,[2,146]),o($Vi1,[2,147]),o($Vi1,[2,148]),o($Vi1,[2,149]),o($Vi1,[2,73]),o($Vi1,[2,74]),o($Vi1,[2,75]),o($Vi1,[2,76]),o($Vi1,[2,77]),o($Vi1,[2,78]),o($Vi1,[2,79]),o($Vi1,[2,80]),o($Vi1,[2,81]),o($Vi1,[2,82]),o($Vi1,[2,83]),{9:$Vy,10:$Vz,11:$VJ,12:$VA,16:179,19:$VK,20:$VL,32:$VM,34:[1,178],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,180],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vv,24:181},{11:[1,182],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,184]},o($Vj1,[2,131]),o($Vj1,[2,133]),o($Vj1,[2,134]),o($Vj1,[2,135]),o($Vj1,[2,136]),{11:[1,185]},{11:[1,186],84:[1,187]},o($Vk1,[2,101]),{11:[1,188]},{11:[1,189],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,190],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:[1,191],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:183,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VC,[2,48],{96:94,40:$Vb,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu}),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,192],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:193,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,194],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,46:[1,195],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,48:[1,196],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,50:[1,197],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,52:[1,198],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,199],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,33:200,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,201],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,202],59:[1,203],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,57:[1,205],59:[1,204],62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{9:$Vy,10:$Vz,12:$VA,16:206},o($VB,[2,43],{40:$Ve1}),o($VI,[2,66]),o($VI,[2,65]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,65:[1,207],66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VI,[2,68]),o($Vi1,[2,72]),{11:$VJ,19:$VK,20:$VL,32:$VM,33:208,36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:105,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($Vd1,$V5,{5:209}),o($Vx,[2,37]),{39:210,40:$Vb,42:37,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu},{11:$Vl1,68:$Vm1,78:211,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vj1,[2,132]),{11:$Vl1,68:$Vm1,78:225,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:226,80:$Vn1,82:[1,227],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:228,80:$Vn1,82:[1,229],83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{83:[1,230]},{11:$Vl1,68:$Vm1,78:231,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:232,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{20:$Vf1,40:$VO,73:$Vg1,79:233,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,62:[1,235],73:$Vg1,79:234,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,49]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,44:[1,236],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,55]),o($VD,[2,51]),o($VD,[2,52]),o($VD,[2,53]),o($VD,[2,54]),o($VD,[2,56]),{11:$VJ,19:$VK,20:$VL,32:$VM,36:$VN,40:$VO,54:[1,237],55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),o($VD,[2,60]),o($VD,[2,62]),o($VH,[2,11]),o([11,40,73,83,84,87,88,89,91,92,98,99,100,101,102,103],[2,70]),{11:$VJ,19:$VK,20:$VL,32:$VM,35:[1,238],36:$VN,40:$VO,55:$VP,62:$VQ,63:$VR,66:177,67:116,68:$VS,69:$VT,70:$VU,71:$VV,72:$VW,73:$VX,74:$VY,76:106,77:$VZ,83:$V_,84:$V$,87:$V01,88:$V11,89:$V21,91:$V31,92:$V41,93:$V51,94:$V61,95:113,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,239],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},o($VC,[2,47]),o($VG,[2,93],{84:$Vw1}),o($Vx1,[2,103],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($Vy1,[2,105]),o($Vy1,[2,107]),o($Vy1,[2,108]),o($Vy1,[2,109]),o($Vy1,[2,110]),o($Vy1,[2,111]),o($Vy1,[2,112]),o($Vy1,[2,113]),o($Vy1,[2,114]),o($Vy1,[2,115]),o($Vy1,[2,116]),o($Vy1,[2,117]),o($VG,[2,94],{84:$Vw1}),o($VG,[2,95],{84:$Vw1}),{11:[1,242]},o($VG,[2,96],{84:$Vw1}),{11:[1,243]},o($Vk1,[2,102]),o($VG,[2,86],{84:$Vw1}),o($VG,[2,87],{84:$Vw1}),o($VG,[2,88],{95:148,97:183,20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,89],{95:148,97:183,11:[1,244],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,91],{11:[1,245]}),{44:[1,246]},{54:[1,247]},{9:$Vy,10:$Vz,12:$VA,16:248},o($Vx,[2,36]),{11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,85:249,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vy1,[2,106]),{20:$Vf1,40:$VO,73:$Vg1,79:250,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{20:$Vf1,40:$VO,73:$Vg1,79:251,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,95:148,97:146,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1},{62:[1,252]},{62:[1,253]},o($VD,[2,50]),o($VD,[2,57]),o($Vd1,$V5,{5:254}),o($Vx1,[2,104],{86:241,11:$Vl1,68:$Vm1,80:$Vn1,83:$Vo1,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1}),o($VG,[2,99],{95:148,97:183,11:[1,255],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,100],{95:148,97:183,11:[1,256],20:$Vf1,40:$VO,73:$Vg1,83:$V_,84:$V$,87:$V01,88:$V11,89:$Vh1,91:$V31,92:$V41,98:$V71,99:$V81,100:$V91,101:$Va1,102:$Vb1,103:$Vc1}),o($VG,[2,90]),o($VG,[2,92]),{6:29,7:16,8:17,9:$V6,10:$V7,11:$V8,12:$V9,13:7,26:22,27:23,28:24,29:25,30:26,31:27,32:$Va,36:[1,257],38:30,39:36,40:$Vb,42:37,68:$Vc,69:$Vd,70:$Ve,71:$Vf,72:$Vg,73:$Vh,83:$Vi,84:$Vj,87:$Vk,88:$Vl,89:$Vm,91:$Vn,92:$Vo,96:38,98:$Vp,99:$Vq,100:$Vr,101:$Vs,102:$Vt,103:$Vu,110:$V3},{11:$Vl1,68:$Vm1,78:258,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},{11:$Vl1,68:$Vm1,78:259,80:$Vn1,83:$Vo1,85:212,86:213,87:$Vp1,88:$Vq1,89:$Vr1,90:$Vs1,91:$Vt1,92:$Vu1,93:$Vv1},o($Vx,[2,35]),o($VG,[2,97],{84:$Vw1}),o($VG,[2,98],{84:$Vw1})],\ndefaultActions: {8:[2,190],10:[2,2],99:[2,192]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 110; \nbreak;\ncase 1: this.begin('type_directive'); return 111; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 113; \nbreak;\ncase 4:return 112;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 68;\nbreak;\ncase 11:return 77;\nbreak;\ncase 12:return 69;\nbreak;\ncase 13:return 82;\nbreak;\ncase 14:return 70;\nbreak;\ncase 15:return 71;\nbreak;\ncase 16:return 72;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 19;\nbreak;\ncase 19:return 32;\nbreak;\ncase 20:return 36;\nbreak;\ncase 21: this.popState(); return 20; \nbreak;\ncase 22: this.popState(); return 20; \nbreak;\ncase 23: this.popState(); return 20; \nbreak;\ncase 24: this.popState(); return 20; \nbreak;\ncase 25: this.popState(); return 20; \nbreak;\ncase 26: this.popState(); return 20; \nbreak;\ncase 27: this.popState(); return 20; \nbreak;\ncase 28: this.popState(); return 20; \nbreak;\ncase 29: this.popState(); return 20; \nbreak;\ncase 30: this.popState(); return 20; \nbreak;\ncase 31: return 83;\nbreak;\ncase 32:return 91;\nbreak;\ncase 33:return 41;\nbreak;\ncase 34:return 88;\nbreak;\ncase 35:return 40;\nbreak;\ncase 36:return 9;\nbreak;\ncase 37:return 84;\nbreak;\ncase 38:return 102;\nbreak;\ncase 39:return 64;\nbreak;\ncase 40:return 64;\nbreak;\ncase 41:return 64;\nbreak;\ncase 42:return 64;\nbreak;\ncase 43:return 64;\nbreak;\ncase 44:return 64;\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 64;\nbreak;\ncase 47:return 64;\nbreak;\ncase 48:return 64;\nbreak;\ncase 49:return 64;\nbreak;\ncase 50:return 64;\nbreak;\ncase 51:return 64;\nbreak;\ncase 52:return 64;\nbreak;\ncase 53:return 64;\nbreak;\ncase 54:return 64;\nbreak;\ncase 55:return 64;\nbreak;\ncase 56:return 64;\nbreak;\ncase 57:return 64;\nbreak;\ncase 58:return 64;\nbreak;\ncase 59:return 64;\nbreak;\ncase 60:return 64;\nbreak;\ncase 61:return 64;\nbreak;\ncase 62:return 64;\nbreak;\ncase 63:return 64;\nbreak;\ncase 64:return 64;\nbreak;\ncase 65:return 64;\nbreak;\ncase 66:return 64;\nbreak;\ncase 67:return 63;\nbreak;\ncase 68:return 63;\nbreak;\ncase 69:return 63;\nbreak;\ncase 70:return 63;\nbreak;\ncase 71:return 63;\nbreak;\ncase 72:return 63;\nbreak;\ncase 73:return 63;\nbreak;\ncase 74:return 63;\nbreak;\ncase 75:return 63;\nbreak;\ncase 76:return 63;\nbreak;\ncase 77:return 63;\nbreak;\ncase 78:return 63;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 47;\nbreak;\ncase 82:return 48;\nbreak;\ncase 83:return 49;\nbreak;\ncase 84:return 50;\nbreak;\ncase 85:return 51;\nbreak;\ncase 86:return 52;\nbreak;\ncase 87:return 89;\nbreak;\ncase 88:return 92;\nbreak;\ncase 89:return 103;\nbreak;\ncase 90:return 100;\nbreak;\ncase 91:return 93;\nbreak;\ncase 92:return 101;\nbreak;\ncase 93:return 101;\nbreak;\ncase 94:return 94;\nbreak;\ncase 95:return 55;\nbreak;\ncase 96:return 74;\nbreak;\ncase 97:return 'SEP';\nbreak;\ncase 98:return 73;\nbreak;\ncase 99:return 87;\nbreak;\ncase 100:return 57;\nbreak;\ncase 101:return 56;\nbreak;\ncase 102:return 59;\nbreak;\ncase 103:return 58;\nbreak;\ncase 104:return 98;\nbreak;\ncase 105:return 99;\nbreak;\ncase 106:return 65;\nbreak;\ncase 107:return 43;\nbreak;\ncase 108:return 44;\nbreak;\ncase 109:return 34;\nbreak;\ncase 110:return 35;\nbreak;\ncase 111:return 53\nbreak;\ncase 112:return 54\nbreak;\ncase 113:return 109;\nbreak;\ncase 114:return 10;\nbreak;\ncase 115:return 11;\nbreak;\ncase 116:return 12;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%[^\\n]*)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%(?!\\{)[^\\n]*)/,/^(?:[^\\}]%%[^\\n]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*<-->\\s*)/,/^(?:\\s*[x]--[x]\\s*)/,/^(?:\\s*[o]--[o]\\s*)/,/^(?:\\s*[o]\\.-[o]\\s*)/,/^(?:\\s*<==>\\s*)/,/^(?:\\s*[o]==[o]\\s*)/,/^(?:\\s*[x]==[x]\\s*)/,/^(?:\\s*[x].-[x]\\s*)/,/^(?:\\s*[x]-\\.-[x]\\s*)/,/^(?:\\s*<\\.->\\s*)/,/^(?:\\s*<-\\.->\\s*)/,/^(?:\\s*[o]-\\.-[o]\\s*)/,/^(?:\\s*--[o]\\s*)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\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANNEL */\nfunction channel(color, channel) {\n return utils_1.default.lang.round(color_1.default.parse(color)[channel]);\n}\n/* EXPORT */\nexports.default = channel;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* ADJUST CHANNEL */\nfunction adjustChannel(color, channel, amount) {\n var channels = color_1.default.parse(color), amountCurrent = channels[channel], amountNext = utils_1.default.channel.clamp[channel](amountCurrent + amount);\n if (amountCurrent !== amountNext)\n channels[channel] = amountNext;\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = adjustChannel;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _1 = require(\".\");\n/* REUSABLE */\nvar channels = new _1.default({ r: 0, g: 0, b: 0, a: 0 }, 'transparent');\n/* EXPORT */\nexports.default = channels;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\nfunction rgba(r, g, b, a) {\n if (b === void 0) { b = 0; }\n if (a === void 0) { a = 1; }\n if (typeof r !== 'number')\n return change_1.default(r, { a: g });\n var channels = reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(r),\n g: utils_1.default.channel.clamp.g(g),\n b: utils_1.default.channel.clamp.b(b),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = rgba;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANGE */\nfunction change(color, channels) {\n var ch = color_1.default.parse(color);\n for (var c in channels) {\n ch[c] = utils_1.default.channel.clamp[c](channels[c]);\n }\n return color_1.default.stringify(ch);\n}\n/* EXPORT */\nexports.default = change;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n","'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","\"use strict\";\n/* ENUMS */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"ALL\"] = 0] = \"ALL\";\n TYPE[TYPE[\"RGB\"] = 1] = \"RGB\";\n TYPE[TYPE[\"HSL\"] = 2] = \"HSL\";\n})(TYPE || (TYPE = {}));\nexports.TYPE = TYPE;\n;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","module.exports = require('./forEach');\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n","var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar consts_1 = require(\"../consts\");\n/* HEX */\nvar Hex = {\n /* VARIABLES */\n re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,\n /* API */\n parse: function (color) {\n if (color.charCodeAt(0) !== 35)\n return; // '#'\n var match = color.match(Hex.re);\n if (!match)\n return;\n var hex = match[1], dec = parseInt(hex, 16), length = hex.length, hasAlpha = length % 4 === 0, isFullLength = length > 4, multiplier = isFullLength ? 1 : 17, bits = isFullLength ? 8 : 4, bitsOffset = hasAlpha ? 0 : -1, mask = isFullLength ? 255 : 15;\n return reusable_1.default.set({\n r: ((dec >> (bits * (bitsOffset + 3))) & mask) * multiplier,\n g: ((dec >> (bits * (bitsOffset + 2))) & mask) * multiplier,\n b: ((dec >> (bits * (bitsOffset + 1))) & mask) * multiplier,\n a: hasAlpha ? (dec & mask) * multiplier / 255 : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // #RRGGBBAA\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)] + utils_1.default.unit.frac2hex(channels.a);\n }\n else { // #RRGGBB\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)];\n }\n }\n};\n/* EXPORT */\nexports.default = Hex;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\n/* HSLA */\nfunction hsla(h, s, l, a) {\n if (a === void 0) { a = 1; }\n var channels = reusable_1.default.set({\n h: utils_1.default.channel.clamp.h(h),\n s: utils_1.default.channel.clamp.s(s),\n l: utils_1.default.channel.clamp.l(l),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = hsla;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* ALPHA */\nfunction alpha(color) {\n return channel_1.default(color, 'a');\n}\n/* EXPORT */\nexports.default = alpha;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* LUMINANCE */\n//SOURCE: https://planetcalc.com/7779\nfunction luminance(color) {\n var _a = color_1.default.parse(color), r = _a.r, g = _a.g, b = _a.b, luminance = .2126 * utils_1.default.channel.toLinear(r) + .7152 * utils_1.default.channel.toLinear(g) + .0722 * utils_1.default.channel.toLinear(b);\n return utils_1.default.lang.round(luminance);\n}\n/* EXPORT */\nexports.default = luminance;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar luminance_1 = require(\"./luminance\");\n/* IS LIGHT */\nfunction isLight(color) {\n return luminance_1.default(color) >= .5;\n}\n/* EXPORT */\nexports.default = isLight;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* OPACIFY */\nfunction opacify(color, amount) {\n return adjust_channel_1.default(color, 'a', amount);\n}\n/* EXPORT */\nexports.default = opacify;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* TRANSPARENTIZE */\nfunction transparentize(color, amount) {\n return adjust_channel_1.default(color, 'a', -amount);\n}\n/* EXPORT */\nexports.default = transparentize;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\n/* ADJUST */\nfunction adjust(color, channels) {\n var ch = color_1.default.parse(color), changes = {};\n for (var c in channels) {\n if (!channels[c])\n continue;\n changes[c] = ch[c] + channels[c];\n }\n return change_1.default(color, changes);\n}\n/* EXPORT */\nexports.default = adjust;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar rgba_1 = require(\"./rgba\");\n/* MIX */\n//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L756\nfunction mix(color1, color2, weight) {\n if (weight === void 0) { weight = 50; }\n var _a = color_1.default.parse(color1), r1 = _a.r, g1 = _a.g, b1 = _a.b, a1 = _a.a, _b = color_1.default.parse(color2), r2 = _b.r, g2 = _b.g, b2 = _b.b, a2 = _b.a, weightScale = weight / 100, weightNormalized = (weightScale * 2) - 1, alphaDelta = a1 - a2, weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta), weight1 = (weight1combined + 1) / 2, weight2 = 1 - weight1, r = (r1 * weight1) + (r2 * weight2), g = (g1 * weight1) + (g2 * weight2), b = (b1 * weight1) + (b2 * weight2), a = (a1 * weightScale) + (a2 * (1 - weightScale));\n return rgba_1.default(r, g, b, a);\n}\n/* EXPORT */\nexports.default = mix;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing","var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n","/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n","var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n","var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n","/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n","module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n","/*\n * __ ___\n * _____/ /___ __/ (_)____\n * / ___/ __/ / / / / / ___/\n * (__ ) /_/ /_/ / / (__ )\n * /____/\\__/\\__, /_/_/____/\n * /____/\n *\n * light - weight css preprocessor @licence MIT\n */\n(function (factory) {/* eslint-disable */\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory(null)) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory(null)) :\n\t\t\t(window['stylis'] = factory(null))\n}(/** @param {*=} options */function factory (options) {/* eslint-disable */\n\n\t'use strict'\n\n\t/**\n\t * Notes\n\t *\n\t * The [''] pattern is used to support closure compiler\n\t * the jsdoc signatures are also used to the same effect\n\t *\n\t * ----\n\t *\n\t * int + int + int === n4 [faster]\n\t *\n\t * vs\n\t *\n\t * int === n1 && int === n2 && int === n3\n\t *\n\t * ----\n\t *\n\t * switch (int) { case ints...} [faster]\n\t *\n\t * vs\n\t *\n\t * if (int == 1 && int === 2 ...)\n\t *\n\t * ----\n\t *\n\t * The (first*n1 + second*n2 + third*n3) format used in the property parser\n\t * is a simple way to hash the sequence of characters\n\t * taking into account the index they occur in\n\t * since any number of 3 character sequences could produce duplicates.\n\t *\n\t * On the other hand sequences that are directly tied to the index of the character\n\t * resolve a far more accurate measure, it's also faster\n\t * to evaluate one condition in a switch statement\n\t * than three in an if statement regardless of the added math.\n\t *\n\t * This allows the vendor prefixer to be both small and fast.\n\t */\n\n\tvar nullptn = /^\\0+/g /* matches leading null characters */\n\tvar formatptn = /[\\0\\r\\f]/g /* matches new line, null and formfeed characters */\n\tvar colonptn = /: */g /* splits animation rules */\n\tvar cursorptn = /zoo|gra/ /* assert cursor varient */\n\tvar transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */\n\tvar animationptn = /,+\\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */\n\tvar propertiesptn = / +\\s*(?![^(]*[)])/g /* animation properties */\n\tvar elementptn = / *[\\0] */g /* selector elements */\n\tvar selectorptn = /,\\r+?/g /* splits selectors */\n\tvar andptn = /([\\t\\r\\n ])*\\f?&/g /* match & */\n\tvar escapeptn = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g /* matches :global(.*) */\n\tvar invalidptn = /\\W+/g /* removes invalid characters from keyframes */\n\tvar keyframeptn = /@(k\\w+)\\s*(\\S*)\\s*/ /* matches @keyframes $1 */\n\tvar plcholdrptn = /::(place)/g /* match ::placeholder varient */\n\tvar readonlyptn = /:(read-only)/g /* match :read-only varient */\n\tvar beforeptn = /\\s+(?=[{\\];=:>])/g /* matches \\s before ] ; = : */\n\tvar afterptn = /([[}=:>])\\s+/g /* matches \\s after characters [ } = : */\n\tvar tailptn = /(\\{[^{]+?);(?=\\})/g /* matches tail semi-colons ;} */\n\tvar whiteptn = /\\s{2,}/g /* matches repeating whitespace */\n\tvar pseudoptn = /([^\\(])(:+) */g /* pseudo element */\n\tvar writingptn = /[svh]\\w+-[tblr]{2}/ /* match writing mode property values */\n\tvar gradientptn = /([\\w-]+t\\()/g /* match *gradient property */\n\tvar supportsptn = /\\(\\s*(.*)\\s*\\)/g /* match supports (groups) */\n\tvar propertyptn = /([\\s\\S]*?);/g /* match properties leading semicolon */\n\tvar selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */\n\tvar pseudofmt = /[^]*?(:[rp][el]a[\\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */\n\tvar trimptn = /[ \\t]+$/ /* match tail whitspace */\n\tvar dimensionptn = /stretch|:\\s*\\w+\\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */\n\tvar imgsrcptn = /([^-])(image-set\\()/\n\n\t/* vendors */\n\tvar webkit = '-webkit-'\n\tvar moz = '-moz-'\n\tvar ms = '-ms-'\n\n\t/* character codes */\n\tvar SEMICOLON = 59 /* ; */\n\tvar CLOSEBRACES = 125 /* } */\n\tvar OPENBRACES = 123 /* { */\n\tvar OPENPARENTHESES = 40 /* ( */\n\tvar CLOSEPARENTHESES = 41 /* ) */\n\tvar OPENBRACKET = 91 /* [ */\n\tvar CLOSEBRACKET = 93 /* ] */\n\tvar NEWLINE = 10 /* \\n */\n\tvar CARRIAGE = 13 /* \\r */\n\tvar TAB = 9 /* \\t */\n\tvar AT = 64 /* @ */\n\tvar SPACE = 32 /* */\n\tvar AND = 38 /* & */\n\tvar DASH = 45 /* - */\n\tvar UNDERSCORE = 95 /* _ */\n\tvar STAR = 42 /* * */\n\tvar COMMA = 44 /* , */\n\tvar COLON = 58 /* : */\n\tvar SINGLEQUOTE = 39 /* ' */\n\tvar DOUBLEQUOTE = 34 /* \" */\n\tvar FOWARDSLASH = 47 /* / */\n\tvar GREATERTHAN = 62 /* > */\n\tvar PLUS = 43 /* + */\n\tvar TILDE = 126 /* ~ */\n\tvar NULL = 0 /* \\0 */\n\tvar FORMFEED = 12 /* \\f */\n\tvar VERTICALTAB = 11 /* \\v */\n\n\t/* special identifiers */\n\tvar KEYFRAME = 107 /* k */\n\tvar MEDIA = 109 /* m */\n\tvar SUPPORTS = 115 /* s */\n\tvar PLACEHOLDER = 112 /* p */\n\tvar READONLY = 111 /* o */\n\tvar IMPORT = 105 /* i */\n\tvar CHARSET = 99 /* c */\n\tvar DOCUMENT = 100 /* d */\n\tvar PAGE = 112 /* p */\n\n\tvar column = 1 /* current column */\n\tvar line = 1 /* current line numebr */\n\tvar pattern = 0 /* :pattern */\n\n\tvar cascade = 1 /* #id h1 h2 vs h1#id h2#id */\n\tvar prefix = 1 /* vendor prefix */\n\tvar escape = 1 /* escape :global() pattern */\n\tvar compress = 0 /* compress output */\n\tvar semicolon = 0 /* no/semicolon option */\n\tvar preserve = 0 /* preserve empty selectors */\n\n\t/* empty reference */\n\tvar array = []\n\n\t/* plugins */\n\tvar plugins = []\n\tvar plugged = 0\n\tvar should = null\n\n\t/* plugin context */\n\tvar POSTS = -2\n\tvar PREPS = -1\n\tvar UNKWN = 0\n\tvar PROPS = 1\n\tvar BLCKS = 2\n\tvar ATRUL = 3\n\n\t/* plugin newline context */\n\tvar unkwn = 0\n\n\t/* keyframe animation */\n\tvar keyed = 1\n\tvar key = ''\n\n\t/* selector namespace */\n\tvar nscopealt = ''\n\tvar nscope = ''\n\n\t/**\n\t * Compile\n\t *\n\t * @param {Array} parent\n\t * @param {Array} current\n\t * @param {string} body\n\t * @param {number} id\n\t * @param {number} depth\n\t * @return {string}\n\t */\n\tfunction compile (parent, current, body, id, depth) {\n\t\tvar bracket = 0 /* brackets [] */\n\t\tvar comment = 0 /* comments /* // or /* */\n\t\tvar parentheses = 0 /* functions () */\n\t\tvar quote = 0 /* quotes '', \"\" */\n\n\t\tvar first = 0 /* first character code */\n\t\tvar second = 0 /* second character code */\n\t\tvar code = 0 /* current character code */\n\t\tvar tail = 0 /* previous character code */\n\t\tvar trail = 0 /* character before previous code */\n\t\tvar peak = 0 /* previous non-whitespace code */\n\n\t\tvar counter = 0 /* count sequence termination */\n\t\tvar context = 0 /* track current context */\n\t\tvar atrule = 0 /* track @at-rule context */\n\t\tvar pseudo = 0 /* track pseudo token index */\n\t\tvar caret = 0 /* current character index */\n\t\tvar format = 0 /* control character formating context */\n\t\tvar insert = 0 /* auto semicolon insertion */\n\t\tvar invert = 0 /* inverted selector pattern */\n\t\tvar length = 0 /* generic length address */\n\t\tvar eof = body.length /* end of file(length) */\n\t\tvar eol = eof - 1 /* end of file(characters) */\n\n\t\tvar char = '' /* current character */\n\t\tvar chars = '' /* current buffer of characters */\n\t\tvar child = '' /* next buffer of characters */\n\t\tvar out = '' /* compiled body */\n\t\tvar children = '' /* compiled children */\n\t\tvar flat = '' /* compiled leafs */\n\t\tvar selector /* generic selector address */\n\t\tvar result /* generic address */\n\n\t\t// ...build body\n\t\twhile (caret < eof) {\n\t\t\tcode = body.charCodeAt(caret)\n\n\t\t\t// eof varient\n\t\t\tif (caret === eol) {\n\t\t\t\t// last character + noop context, add synthetic padding for noop context to terminate\n\t\t\t\tif (comment + quote + parentheses + bracket !== 0) {\n\t\t\t\t\tif (comment !== 0) {\n\t\t\t\t\t\tcode = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH\n\t\t\t\t\t}\n\n\t\t\t\t\tquote = parentheses = bracket = 0\n\t\t\t\t\teof++\n\t\t\t\t\teol++\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t// eof varient\n\t\t\t\tif (caret === eol) {\n\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chars.trim().length > 0) {\n\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchars += body.charAt(caret)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcode = SEMICOLON\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// auto semicolon insertion\n\t\t\t\tif (insert === 1) {\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t// false flags\n\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\tcase OPENPARENTHESES:\n\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// valid\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\tfirst = code\n\t\t\t\t\t\t\tcaret--\n\t\t\t\t\t\t\tcode = SEMICOLON\n\n\t\t\t\t\t\t\twhile (length < eof) {\n\t\t\t\t\t\t\t\tswitch (body.charCodeAt(length++)) {\n\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// token varient\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\tchars = chars.trim()\n\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\tcounter = 1\n\t\t\t\t\t\tlength = ++caret\n\n\t\t\t\t\t\twhile (caret < eof) {\n\t\t\t\t\t\t\tswitch (code = body.charCodeAt(caret)) {\n\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\tcounter++\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\t\tcounter--\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\tswitch (second = body.charCodeAt(caret + 1)) {\n\t\t\t\t\t\t\t\t\t\t// /*, //\n\t\t\t\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\t\t\tcaret = delimited(second, caret, eol, body)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"[\" === 91 & \"]\" === 93 hence forth 91 + 1 + 1 === 93\n\t\t\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"(\" === 40 & \")\" === 41 hence forth 40 + 1 === 41\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// quote tail delimiter is identical to the head delimiter hence noop,\n\t\t\t\t\t\t\t\t// fallthrough clauses have been shifted to the correct tail delimiter\n\t\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\t\t\twhile (caret++ < eol) {\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(caret) === code) {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (counter === 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcaret++\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchild = body.substring(length, caret)\n\n\t\t\t\t\t\tif (first === NULL) {\n\t\t\t\t\t\t\tfirst = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t// @at-rule\n\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\tcase SUPPORTS:\n\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\tselector = current\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tselector = array\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tchild = compile(current, selector, child, second, depth+1)\n\t\t\t\t\t\t\t\tlength = child.length\n\n\t\t\t\t\t\t\t\t// preserve empty @at-rule\n\t\t\t\t\t\t\t\tif (preserve > 0 && length === 0) {\n\t\t\t\t\t\t\t\t\tlength = chars.length\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// execute plugins, @at-rule context\n\t\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\t\tselector = select(array, chars, invert)\n\t\t\t\t\t\t\t\t\tresult = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)\n\t\t\t\t\t\t\t\t\tchars = selector.join('')\n\n\t\t\t\t\t\t\t\t\tif (result !== void 0) {\n\t\t\t\t\t\t\t\t\t\tif ((length = (child = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\t\tsecond = 0\n\t\t\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (length > 0) {\n\t\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\t\tcase SUPPORTS: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(supportsptn, supports)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase KEYFRAME: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\n\t\t\t\t\t\t\t\t\t\t\tif (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + webkit + child + '@' + child\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + child\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + child\n\n\t\t\t\t\t\t\t\t\t\t\tif (id === PAGE) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = (out += child, '')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// selector\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchild = compile(current, select(current, chars, invert), child, id, depth+1)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchildren += child\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tatrule = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\tchars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()\n\n\t\t\t\t\t\tif ((length = chars.length) > 1) {\n\t\t\t\t\t\t\t// monkey-patch missing colon\n\t\t\t\t\t\t\tif (pseudo === 0) {\n\t\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\n\t\t\t\t\t\t\t\t// first character is a letter or dash, buffer has a space character\n\t\t\t\t\t\t\t\tif ((first === DASH || first > 96 && first < 123)) {\n\t\t\t\t\t\t\t\t\tlength = (chars = chars.replace(' ', ':')).length\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// execute plugins, property context\n\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\tif ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {\n\t\t\t\t\t\t\t\t\tif ((length = (chars = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\tchars = '\\0\\0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\t\tif (second === IMPORT || second === CHARSET) {\n\t\t\t\t\t\t\t\t\t\tflat += chars + body.charAt(caret)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tif (chars.charCodeAt(length-1) === COLON) {\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tout += property(chars, first, second, chars.charCodeAt(2))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// parse characters\n\t\t\tswitch (code) {\n\t\t\t\tcase CARRIAGE:\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t// auto insert semicolon\n\t\t\t\t\tif (comment + quote + parentheses + bracket + semicolon === 0) {\n\t\t\t\t\t\t// valid non-whitespace characters that\n\t\t\t\t\t\t// may precede a newline\n\t\t\t\t\t\tswitch (peak) {\n\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\tcase AT:\n\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\tcase FOWARDSLASH:\n\t\t\t\t\t\t\tcase DASH:\n\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t// current buffer has a colon\n\t\t\t\t\t\t\t\tif (pseudo > 0) {\n\t\t\t\t\t\t\t\t\tinsert = 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// terminate line comment\n\t\t\t\t\tif (comment === FOWARDSLASH) {\n\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t} else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {\n\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\tchars += '\\0'\n\t\t\t\t\t}\n\n\t\t\t\t\t// execute plugins, newline context\n\t\t\t\t\tif (plugged * unkwn > 0) {\n\t\t\t\t\t\tproxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)\n\t\t\t\t\t}\n\n\t\t\t\t\t// next line, reset column position\n\t\t\t\t\tcolumn = 1\n\t\t\t\t\tline++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase SEMICOLON:\n\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t\t\tcolumn++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\t// increment column position\n\t\t\t\t\tcolumn++\n\n\t\t\t\t\t// current character\n\t\t\t\t\tchar = body.charAt(caret)\n\n\t\t\t\t\t// remove comments, escape functions, strings, attributes and prepare selectors\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tif (quote + bracket + comment === 0) {\n\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tif (code !== SPACE) {\n\t\t\t\t\t\t\t\t\t\t\tchar = ' '\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// escape breaking control characters\n\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\tchar = '\\\\0'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FORMFEED: {\n\t\t\t\t\t\t\tchar = '\\\\f'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase VERTICALTAB: {\n\t\t\t\t\t\t\tchar = '\\\\v'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// &\n\t\t\t\t\t\tcase AND: {\n\t\t\t\t\t\t\t// inverted selector pattern i.e html &\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0 && cascade > 0) {\n\t\t\t\t\t\t\t\tinvert = 1\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar = '\\f' + char\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ::paceholder, l\n\t\t\t\t\t\t// :read-ony, l\n\t\t\t\t\t\tcase 108: {\n\t\t\t\t\t\t\tif (quote + comment + bracket + pattern === 0 && pseudo > 0) {\n\t\t\t\t\t\t\t\tswitch (caret - pseudo) {\n\t\t\t\t\t\t\t\t\t// ::placeholder\n\t\t\t\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\t\t\t\tif (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = tail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// :read-only\n\t\t\t\t\t\t\t\t\tcase 8: {\n\t\t\t\t\t\t\t\t\t\tif (trail === READONLY) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = trail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tpseudo = caret\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// selectors\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket === 0) {\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar += '\\r'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// quotes\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// attributes\n\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase CLOSEBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// functions\n\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tparentheses--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\tswitch (tail*2 + trail*3) {\n\t\t\t\t\t\t\t\t\t\t// :matches\n\t\t\t\t\t\t\t\t\t\tcase 533: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// :global, :not, :nth-child etc...\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tcounter = 0\n\t\t\t\t\t\t\t\t\t\t\tcontext = 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tparentheses++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket + pseudo + atrule === 0) {\n\t\t\t\t\t\t\t\tatrule = 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// block/line comments\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\tif (quote + bracket + parentheses > 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch (comment) {\n\t\t\t\t\t\t\t\t// initialize line/block comment context\n\t\t\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\t\t\tswitch (code*2 + body.charCodeAt(caret+1)*3) {\n\t\t\t\t\t\t\t\t\t\t// //\n\t\t\t\t\t\t\t\t\t\tcase 235: {\n\t\t\t\t\t\t\t\t\t\t\tcomment = FOWARDSLASH\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// /*\n\t\t\t\t\t\t\t\t\t\tcase 220: {\n\t\t\t\t\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\t\t\t\t\tcomment = STAR\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// end block comment context\n\t\t\t\t\t\t\t\tcase STAR: {\n\t\t\t\t\t\t\t\t\tif (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {\n\t\t\t\t\t\t\t\t\t\t// /* ... */, !\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(length+2) === 33) {\n\t\t\t\t\t\t\t\t\t\t\tout += body.substring(length, caret+1)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// ignore comment blocks\n\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t// aggressive isolation mode, divide each individual selector\n\t\t\t\t\t\t// including selectors in :not function but excluding selectors in :global function\n\t\t\t\t\t\tif (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {\n\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t// outside of an isolated context i.e nth-child(<...>)\n\t\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = char + '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = '\\0' + char + (code === COMMA ? '' : '\\0')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// within an isolated context, sleep untill it's terminated\n\t\t\t\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\t// :globa(\n\t\t\t\t\t\t\t\t\t\t\t\tif (pseudo + 7 === caret && tail === 108) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcontext = ++counter\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\tif ((context = --counter) === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\tcase NULL:\n\t\t\t\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\t\tcase FORMFEED:\n\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t// ignore in isolated contexts\n\t\t\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// concat buffer of characters\n\t\t\t\t\t\tchars += char\n\n\t\t\t\t\t\t// previous non-whitespace character code\n\t\t\t\t\t\tif (code !== SPACE && code !== TAB) {\n\t\t\t\t\t\t\tpeak = code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// tail character codes\n\t\t\ttrail = tail\n\t\t\ttail = code\n\n\t\t\t// visit every character\n\t\t\tcaret++\n\t\t}\n\n\t\tlength = out.length\n\n\t\t// preserve empty selector\n \t\tif (preserve > 0) {\n \t\t\tif (length === 0 && children.length === 0 && (current[0].length === 0) === false) {\n \t\t\t\tif (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {\n\t\t\t\t\tlength = current.join(',').length + 2\n \t\t\t\t}\n \t\t\t}\n\t\t}\n\n\t\tif (length > 0) {\n\t\t\t// cascade isolation mode?\n\t\t\tselector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current\n\n\t\t\t// execute plugins, block context\n\t\t\tif (plugged > 0) {\n\t\t\t\tresult = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)\n\n\t\t\t\tif (result !== void 0 && (out = result).length === 0) {\n\t\t\t\t\treturn flat + out + children\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout = selector.join(',') + '{' + out + '}'\n\n\t\t\tif (prefix*pattern !== 0) {\n\t\t\t\tif (prefix === 2 && !vendor(out, 2))\n\t\t\t\t\tpattern = 0\n\n\t\t\t\tswitch (pattern) {\n\t\t\t\t\t// ::read-only\n\t\t\t\t\tcase READONLY: {\n\t\t\t\t\t\tout = out.replace(readonlyptn, ':'+moz+'$1')+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// ::placeholder\n\t\t\t\t\tcase PLACEHOLDER: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + webkit + 'input-$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + moz + '$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, ':' + ms + 'input-$1') + out\n\t\t\t\t\t\t)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpattern = 0\n\t\t\t}\n\t\t}\n\n\t\treturn flat + out + children\n\t}\n\n\t/**\n\t * Select\n\t *\n\t * @param {Array} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @return {Array}\n\t */\n\tfunction select (parent, current, invert) {\n\t\tvar selectors = current.trim().split(selectorptn)\n\t\tvar out = selectors\n\n\t\tvar length = selectors.length\n\t\tvar l = parent.length\n\n\t\tswitch (l) {\n\t\t\t// 0-1 parent selectors\n\t\t\tcase 0:\n\t\t\tcase 1: {\n\t\t\t\tfor (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {\n\t\t\t\t\tout[i] = scope(selector, out[i], invert, l).trim()\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// >2 parent selectors, nested\n\t\t\tdefault: {\n\t\t\t\tfor (var i = 0, j = 0, out = []; i < length; ++i) {\n\t\t\t\t\tfor (var k = 0; k < l; ++k) {\n\t\t\t\t\t\tout[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Scope\n\t *\n\t * @param {string} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @param {number} level\n\t * @return {string}\n\t */\n\tfunction scope (parent, current, invert, level) {\n\t\tvar selector = current\n\t\tvar code = selector.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (selector = selector.trim()).charCodeAt(0)\n\t\t}\n\n\t\tswitch (code) {\n\t\t\t// &\n\t\t\tcase AND: {\n\t\t\t\tswitch (cascade + level) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1: {\n\t\t\t\t\t\tif (parent.trim().length === 0) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// :\n\t\t\tcase COLON: {\n\t\t\t\tswitch (selector.charCodeAt(1)) {\n\t\t\t\t\t// g in :global\n\t\t\t\t\tcase 103: {\n\t\t\t\t\t\tif (escape > 0 && cascade > 0) {\n\t\t\t\t\t\t\treturn selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\t// :hover\n\t\t\t\t\t\treturn parent.trim() + selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// html &\n\t\t\t\tif (invert*cascade > 0 && selector.indexOf('\\f') > 0) {\n\t\t\t\t\treturn selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent + selector\n\t}\n\n\t/**\n\t * Property\n\t *\n\t * @param {string} input\n\t * @param {number} first\n\t * @param {number} second\n\t * @param {number} third\n\t * @return {string}\n\t */\n\tfunction property (input, first, second, third) {\n\t\tvar index = 0\n\t\tvar out = input + ';'\n\t\tvar hash = (first*2) + (second*3) + (third*4)\n\t\tvar cache\n\n\t\t// animation: a, n, i characters\n\t\tif (hash === 944) {\n\t\t\treturn animation(out)\n\t\t} else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {\n\t\t\treturn out\n\t\t}\n\n\t\t// vendor prefix\n\t\tswitch (hash) {\n\t\t\t// text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x\n\t\t\tcase 1015: {\n\t\t\t\t// text-shadow/text-align/text-transform, a\n\t\t\t\treturn out.charCodeAt(10) === 97 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// filter/fill f, i, l\n\t\t\tcase 951: {\n\t\t\t\t// filter, t\n\t\t\t\treturn out.charCodeAt(3) === 116 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// color/column, c, o, l\n\t\t\tcase 963: {\n\t\t\t\t// column, n\n\t\t\t\treturn out.charCodeAt(5) === 110 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// box-decoration-break, b, o, x\n\t\t\tcase 1009: {\n\t\t\t\tif (out.charCodeAt(4) !== 100) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// mask, m, a, s\n\t\t\t// clip-path, c, l, i\n\t\t\tcase 969:\n\t\t\tcase 942: {\n\t\t\t\treturn webkit + out + out\n\t\t\t}\n\t\t\t// appearance: a, p, p\n\t\t\tcase 978: {\n\t\t\t\treturn webkit + out + moz + out + out\n\t\t\t}\n\t\t\t// hyphens: h, y, p\n\t\t\t// user-select: u, s, e\n\t\t\tcase 1019:\n\t\t\tcase 983: {\n\t\t\t\treturn webkit + out + moz + out + ms + out + out\n\t\t\t}\n\t\t\t// background/backface-visibility, b, a, c\n\t\t\tcase 883: {\n\t\t\t\t// backface-visibility, -\n\t\t\t\tif (out.charCodeAt(8) === DASH) {\n\t\t\t\t\treturn webkit + out + out\n\t\t\t\t}\n\n\t\t\t\t// image-set(...)\n\t\t\t\tif (out.indexOf('image-set(', 11) > 0) {\n\t\t\t\t\treturn out.replace(imgsrcptn, '$1'+webkit+'$2') + out\n\t\t\t\t}\n\n\t\t\t\treturn out\n\t\t\t}\n\t\t\t// flex: f, l, e\n\t\t\tcase 932: {\n\t\t\t\tif (out.charCodeAt(4) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(5)) {\n\t\t\t\t\t\t// flex-grow, g\n\t\t\t\t\t\tcase 103: {\n\t\t\t\t\t\t\treturn webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-shrink, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('shrink', 'negative') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-basis, b\n\t\t\t\t\t\tcase 98: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('basis', 'preferred-size') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + out + out\n\t\t\t}\n\t\t\t// order: o, r, d\n\t\t\tcase 964: {\n\t\t\t\treturn webkit + out + ms + 'flex' + '-' + out + out\n\t\t\t}\n\t\t\t// justify-items/justify-content, j, u, s\n\t\t\tcase 1023: {\n\t\t\t\t// justify-content, c\n\t\t\t\tif (out.charCodeAt(8) !== 99) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tcache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')\n\t\t\t\treturn webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out\n\t\t\t}\n\t\t\t// cursor, c, u, r\n\t\t\tcase 1005: {\n\t\t\t\treturn cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out\n\t\t\t}\n\t\t\t// writing-mode, w, r, i\n\t\t\tcase 1000: {\n\t\t\t\tcache = out.substring(13).trim()\n\t\t\t\tindex = cache.indexOf('-') + 1\n\n\t\t\t\tswitch (cache.charCodeAt(0)+cache.charCodeAt(index)) {\n\t\t\t\t\t// vertical-lr\n\t\t\t\t\tcase 226: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// vertical-rl\n\t\t\t\t\tcase 232: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb-rl')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// horizontal-tb\n\t\t\t\t\tcase 220: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'lr')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn out\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + cache + out\n\t\t\t}\n\t\t\t// position: sticky\n\t\t\tcase 1017: {\n\t\t\t\tif (out.indexOf('sticky', 9) === -1) {\n\t\t\t\t\treturn out\n\t\t\t\t}\n\t\t\t}\n\t\t\t// display(flex/inline-flex/inline-box): d, i, s\n\t\t\tcase 975: {\n\t\t\t\tindex = (out = input).length - 10\n\t\t\t\tcache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()\n\n\t\t\t\tswitch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {\n\t\t\t\t\t// inline-\n\t\t\t\t\tcase 203: {\n\t\t\t\t\t\t// inline-box\n\t\t\t\t\t\tif (cache.charCodeAt(8) < 111) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// inline-box/sticky\n\t\t\t\t\tcase 115: {\n\t\t\t\t\t\tout = out.replace(cache, webkit+cache)+';'+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// inline-flex\n\t\t\t\t\t// flex\n\t\t\t\t\tcase 207:\n\t\t\t\t\tcase 102: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+\n\t\t\t\t\t\t\tout.replace(cache, webkit+cache)+';'+\n\t\t\t\t\t\t\tout.replace(cache, ms+cache+'box')+';'+\n\t\t\t\t\t\t\tout\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn out + ';'\n\t\t\t}\n\t\t\t// align-items, align-center, align-self: a, l, i, -\n\t\t\tcase 938: {\n\t\t\t\tif (out.charCodeAt(5) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(6)) {\n\t\t\t\t\t\t// align-items, i\n\t\t\t\t\t\tcase 105: {\n\t\t\t\t\t\t\tcache = out.replace('-items', '')\n\t\t\t\t\t\t\treturn webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-self, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-content\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// min/max\n\t\t\tcase 973:\n\t\t\tcase 989: {\n\t\t\t\t// min-/max- height/width/block-size/inline-size\n\t\t\t\tif (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// height/width: min-content / width: max-content\n\t\t\tcase 931:\n\t\t\tcase 953: {\n\t\t\t\tif (dimensionptn.test(input) === true) {\n\t\t\t\t\t// stretch\n\t\t\t\t\tif ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)\n\t\t\t\t\t\treturn property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')\n\t\t\t\t\telse\n\t\t\t\t\t\treturn out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// transform, transition: t, r, a\n\t\t\tcase 962: {\n\t\t\t\tout = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out\n\n\t\t\t\t// transitions\n\t\t\t\tif (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {\n\t\t\t\t\treturn out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Vendor\n\t *\n\t * @param {string} content\n\t * @param {number} context\n\t * @return {boolean}\n\t */\n\tfunction vendor (content, context) {\n\t\tvar index = content.indexOf(context === 1 ? ':' : '{')\n\t\tvar key = content.substring(0, context !== 3 ? index : 10)\n\t\tvar value = content.substring(index + 1, content.length - 1)\n\n\t\treturn should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)\n\t}\n\n\t/**\n\t * Supports\n\t *\n\t * @param {string} match\n\t * @param {string} group\n\t * @return {string}\n\t */\n\tfunction supports (match, group) {\n\t\tvar out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))\n\n\t\treturn out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'\n\t}\n\n\t/**\n\t * Animation\n\t *\n\t * @param {string} input\n\t * @return {string}\n\t */\n\tfunction animation (input) {\n\t\tvar length = input.length\n\t\tvar index = input.indexOf(':', 9) + 1\n\t\tvar declare = input.substring(0, index).trim()\n\t\tvar out = input.substring(index, length-1).trim()\n\n\t\tswitch (input.charCodeAt(9)*keyed) {\n\t\t\tcase 0: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// animation-*, -\n\t\t\tcase DASH: {\n\t\t\t\t// animation-name, n\n\t\t\t\tif (input.charCodeAt(10) !== 110) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// animation/animation-name\n\t\t\tdefault: {\n\t\t\t\t// split in case of multiple animations\n\t\t\t\tvar list = out.split((out = '', animationptn))\n\n\t\t\t\tfor (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {\n\t\t\t\t\tvar value = list[i]\n\t\t\t\t\tvar items = value.split(propertiesptn)\n\n\t\t\t\t\twhile (value = items[index]) {\n\t\t\t\t\t\tvar peak = value.charCodeAt(0)\n\n\t\t\t\t\t\tif (keyed === 1 && (\n\t\t\t\t\t\t\t// letters\n\t\t\t\t\t\t\t(peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||\n\t\t\t\t\t\t\t// dash but not in sequence i.e --\n\t\t\t\t\t\t\t(peak === DASH && value.charCodeAt(1) !== DASH)\n\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t// not a number/function\n\t\t\t\t\t\t\tswitch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {\n\t\t\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\t\t\tswitch (value) {\n\t\t\t\t\t\t\t\t\t\t// not a valid reserved keyword\n\t\t\t\t\t\t\t\t\t\tcase 'infinite': case 'alternate': case 'backwards': case 'running':\n\t\t\t\t\t\t\t\t\t\tcase 'normal': case 'forwards': case 'both': case 'none': case 'linear':\n\t\t\t\t\t\t\t\t\t\tcase 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':\n\t\t\t\t\t\t\t\t\t\tcase 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':\n\t\t\t\t\t\t\t\t\t\tcase 'initial': case 'unset': case 'step-start': case 'step-end': {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tvalue += key\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titems[index++] = value\n\t\t\t\t\t}\n\n\t\t\t\t\tout += (i === 0 ? '' : ',') + items.join(' ')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tout = declare + out + ';'\n\n\t\tif (prefix === 1 || (prefix === 2 && vendor(out, 1)))\n\t\t\treturn webkit + out + out\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Isolate\n\t *\n\t * @param {Array} current\n\t */\n\tfunction isolate (current) {\n\t\tfor (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {\n\t\t\t// split individual elements in a selector i.e h1 h2 === [h1, h2]\n\t\t\tvar elements = current[i].split(elementptn)\n\t\t\tvar out = ''\n\n\t\t\tfor (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {\n\t\t\t\t// empty element\n\t\t\t\tif ((size = (element = elements[j]).length) === 0 && l > 1) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\ttail = out.charCodeAt(out.length-1)\n\t\t\t\tcode = element.charCodeAt(0)\n\t\t\t\tpadding = ''\n\n\t\t\t\tif (j !== 0) {\n\t\t\t\t\t// determine if we need padding\n\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tpadding = ' '\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase AND: {\n\t\t\t\t\t\telement = padding + nscopealt\n\t\t\t\t\t}\n\t\t\t\t\tcase TILDE:\n\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\tcase SPACE:\n\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\tswitch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {\n\t\t\t\t\t\t\t// :global\n\t\t\t\t\t\t\tcase 530: {\n\t\t\t\t\t\t\t\tif (escape > 0) {\n\t\t\t\t\t\t\t\t\telement = padding + element.substring(8, size - 1)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// :hover, :nth-child(), ...\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tif (j < 1 || elements[j-1].length < 1) {\n\t\t\t\t\t\t\t\t\telement = padding + nscopealt + element\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\tpadding = ''\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\tif (size > 1 && element.indexOf(':') > 0) {\n\t\t\t\t\t\t\telement = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout += element\n\t\t\t}\n\n\t\t\tselector[i] = out.replace(formatptn, '').trim()\n\t\t}\n\n\t\treturn selector\n\t}\n\n\t/**\n\t * Proxy\n\t *\n\t * @param {number} context\n\t * @param {string} content\n\t * @param {Array} selectors\n\t * @param {Array} parents\n\t * @param {number} line\n\t * @param {number} column\n\t * @param {number} length\n\t * @param {number} id\n\t * @param {number} depth\n\t * @param {number} at\n\t * @return {(string|void|*)}\n\t */\n\tfunction proxy (context, content, selectors, parents, line, column, length, id, depth, at) {\n\t\tfor (var i = 0, out = content, next; i < plugged; ++i) {\n\t\t\tswitch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {\n\t\t\t\tcase void 0:\n\t\t\t\tcase false:\n\t\t\t\tcase true:\n\t\t\t\tcase null: {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tout = next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (out !== content) {\n\t\t return out\n\t\t}\n\t}\n\n\t/**\n\t * @param {number} code\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction delimited (code, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\t// /*\n\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\tif (code === STAR) {\n\t\t\t\t\t\tif (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {\n\t\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// //\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\tif (code === FOWARDSLASH) {\n\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * @param {number} type\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {number} find\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction match (type, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\tcase type: {\n\t\t\t\t\treturn i\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * Minify\n\t *\n\t * @param {(string|*)} output\n\t * @return {string}\n\t */\n\tfunction minify (output) {\n\t\treturn output\n\t\t\t.replace(formatptn, '')\n\t\t\t.replace(beforeptn, '')\n\t\t\t.replace(afterptn, '$1')\n\t\t\t.replace(tailptn, '$1')\n\t\t\t.replace(whiteptn, ' ')\n\t}\n\n\t/**\n\t * Use\n\t *\n\t * @param {(Array|function(...?)|number|void)?} plugin\n\t */\n\tfunction use (plugin) {\n\t\tswitch (plugin) {\n\t\t\tcase void 0:\n\t\t\tcase null: {\n\t\t\t\tplugged = plugins.length = 0\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tif (typeof plugin === 'function') {\n\t\t\t\t\tplugins[plugged++] = plugin\n\t\t\t\t}\telse if (typeof plugin === 'object') {\n\t\t\t\t\tfor (var i = 0, length = plugin.length; i < length; ++i) {\n\t\t\t\t\t\tuse(plugin[i])\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tunkwn = !!plugin|0\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\n \t\treturn use\n\t}\n\n\t/**\n\t * Set\n\t *\n\t * @param {*} options\n\t */\n\tfunction set (options) {\n\t\tfor (var name in options) {\n\t\t\tvar value = options[name]\n\t\t\tswitch (name) {\n\t\t\t\tcase 'keyframe': keyed = value|0; break\n\t\t\t\tcase 'global': escape = value|0; break\n\t\t\t\tcase 'cascade': cascade = value|0; break\n\t\t\t\tcase 'compress': compress = value|0; break\n\t\t\t\tcase 'semicolon': semicolon = value|0; break\n\t\t\t\tcase 'preserve': preserve = value|0; break\n\t\t\t\tcase 'prefix':\n\t\t\t\t\tshould = null\n\n\t\t\t\t\tif (!value) {\n\t\t\t\t\t\tprefix = 0\n\t\t\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\t\t\tprefix = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprefix = 2\n\t\t\t\t\t\tshould = value\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn set\n\t}\n\n\t/**\n\t * Stylis\n\t *\n\t * @param {string} selector\n\t * @param {string} input\n\t * @return {*}\n\t */\n\tfunction stylis (selector, input) {\n\t\tif (this !== void 0 && this.constructor === stylis) {\n\t\t\treturn factory(selector)\n\t\t}\n\n\t\t// setup\n\t\tvar ns = selector\n\t\tvar code = ns.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (ns = ns.trim()).charCodeAt(0)\n\t\t}\n\n\t\t// keyframe/animation namespace\n\t\tif (keyed > 0) {\n\t\t\tkey = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')\n\t\t}\n\n\t\t// reset, used to assert if a plugin is moneky-patching the return value\n\t\tcode = 1\n\n\t\t// cascade/isolate\n\t\tif (cascade === 1) {\n\t\t\tnscope = ns\n\t\t} else {\n\t\t\tnscopealt = ns\n\t\t}\n\n\t\tvar selectors = [nscope]\n\t\tvar result\n\n\t\t// execute plugins, pre-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)\n\n\t\t\tif (result !== void 0 && typeof result === 'string') {\n\t\t\t\tinput = result\n\t\t\t}\n\t\t}\n\n\t\t// build\n\t\tvar output = compile(array, selectors, input, 0, 0)\n\n\t\t// execute plugins, post-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)\n\n\t\t\t// bypass minification\n\t\t\tif (result !== void 0 && typeof(output = result) !== 'string') {\n\t\t\t\tcode = 0\n\t\t\t}\n\t\t}\n\n\t\t// reset\n\t\tkey = ''\n\t\tnscope = ''\n\t\tnscopealt = ''\n\t\tpattern = 0\n\t\tline = 1\n\t\tcolumn = 1\n\n\t\treturn compress*code === 0 ? output : minify(output)\n\t}\n\n\tstylis['use'] = use\n\tstylis['set'] = set\n\n\tif (options !== void 0) {\n\t\tset(options)\n\t}\n\n\treturn stylis\n}));\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","var map = {\n\t\"./locale\": 98,\n\t\"./locale.js\": 98\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 171;","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar rgba_1 = require(\"./rgba\"); // Alias\nexports.hex = rgba_1.default;\nvar rgba_2 = require(\"./rgba\"); // Alias\nexports.rgb = rgba_2.default;\nvar rgba_3 = require(\"./rgba\");\nexports.rgba = rgba_3.default;\nvar hsla_1 = require(\"./hsla\"); // Alias\nexports.hsl = hsla_1.default;\nvar hsla_2 = require(\"./hsla\");\nexports.hsla = hsla_2.default;\nvar channel_1 = require(\"./channel\");\nexports.channel = channel_1.default;\nvar red_1 = require(\"./red\");\nexports.red = red_1.default;\nvar green_1 = require(\"./green\");\nexports.green = green_1.default;\nvar blue_1 = require(\"./blue\");\nexports.blue = blue_1.default;\nvar hue_1 = require(\"./hue\");\nexports.hue = hue_1.default;\nvar saturation_1 = require(\"./saturation\");\nexports.saturation = saturation_1.default;\nvar lightness_1 = require(\"./lightness\");\nexports.lightness = lightness_1.default;\nvar alpha_1 = require(\"./alpha\");\nexports.alpha = alpha_1.default;\nvar alpha_2 = require(\"./alpha\"); // Alias\nexports.opacity = alpha_2.default;\nvar luminance_1 = require(\"./luminance\");\nexports.luminance = luminance_1.default;\nvar is_dark_1 = require(\"./is_dark\");\nexports.isDark = is_dark_1.default;\nvar is_light_1 = require(\"./is_light\");\nexports.isLight = is_light_1.default;\nvar is_valid_1 = require(\"./is_valid\");\nexports.isValid = is_valid_1.default;\nvar saturate_1 = require(\"./saturate\");\nexports.saturate = saturate_1.default;\nvar desaturate_1 = require(\"./desaturate\");\nexports.desaturate = desaturate_1.default;\nvar lighten_1 = require(\"./lighten\");\nexports.lighten = lighten_1.default;\nvar darken_1 = require(\"./darken\");\nexports.darken = darken_1.default;\nvar opacify_1 = require(\"./opacify\");\nexports.opacify = opacify_1.default;\nvar opacify_2 = require(\"./opacify\"); // Alias\nexports.fadeIn = opacify_2.default;\nvar transparentize_1 = require(\"./transparentize\");\nexports.transparentize = transparentize_1.default;\nvar transparentize_2 = require(\"./transparentize\"); // Alias\nexports.fadeOut = transparentize_2.default;\nvar complement_1 = require(\"./complement\");\nexports.complement = complement_1.default;\nvar grayscale_1 = require(\"./grayscale\");\nexports.grayscale = grayscale_1.default;\nvar adjust_1 = require(\"./adjust\");\nexports.adjust = adjust_1.default;\nvar change_1 = require(\"./change\");\nexports.change = change_1.default;\nvar invert_1 = require(\"./invert\");\nexports.invert = invert_1.default;\nvar mix_1 = require(\"./mix\");\nexports.mix = mix_1.default;\nvar scale_1 = require(\"./scale\");\nexports.scale = scale_1.default;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* CHANNEL */\nvar Channel = {\n /* CLAMP */\n min: {\n r: 0,\n g: 0,\n b: 0,\n s: 0,\n l: 0,\n a: 0\n },\n max: {\n r: 255,\n g: 255,\n b: 255,\n h: 360,\n s: 100,\n l: 100,\n a: 1\n },\n clamp: {\n r: function (r) { return r >= 255 ? 255 : (r < 0 ? 0 : r); },\n g: function (g) { return g >= 255 ? 255 : (g < 0 ? 0 : g); },\n b: function (b) { return b >= 255 ? 255 : (b < 0 ? 0 : b); },\n h: function (h) { return h % 360; },\n s: function (s) { return s >= 100 ? 100 : (s < 0 ? 0 : s); },\n l: function (l) { return l >= 100 ? 100 : (l < 0 ? 0 : l); },\n a: function (a) { return a >= 1 ? 1 : (a < 0 ? 0 : a); }\n },\n /* CONVERSION */\n //SOURCE: https://planetcalc.com/7779\n toLinear: function (c) {\n var n = c / 255;\n return c > .03928 ? Math.pow(((n + .055) / 1.055), 2.4) : n / 12.92;\n },\n //SOURCE: https://gist.github.com/mjackson/5311256\n hue2rgb: function (p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n },\n hsl2rgb: function (_a, channel) {\n var h = _a.h, s = _a.s, l = _a.l;\n if (s === 100)\n return l * 2.55; // Achromatic\n h /= 360;\n s /= 100;\n l /= 100;\n var q = (l < .5) ? l * (1 + s) : (l + s) - (l * s), p = 2 * l - q;\n switch (channel) {\n case 'r': return Channel.hue2rgb(p, q, h + 1 / 3) * 255;\n case 'g': return Channel.hue2rgb(p, q, h) * 255;\n case 'b': return Channel.hue2rgb(p, q, h - 1 / 3) * 255;\n }\n },\n rgb2hsl: function (_a, channel) {\n var r = _a.r, g = _a.g, b = _a.b;\n r /= 255;\n g /= 255;\n b /= 255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;\n if (channel === 'l')\n return l * 100;\n if (max === min)\n return 0; // Achromatic\n var d = max - min, s = (l > .5) ? d / (2 - max - min) : d / (max + min);\n if (channel === 's')\n return s * 100;\n switch (max) {\n case r: return ((g - b) / d + (g < b ? 6 : 0)) * 60;\n case g: return ((b - r) / d + 2) * 60;\n case b: return ((r - g) / d + 4) * 60;\n default: return -1; //TSC: TypeScript is stupid and complains if there isn't this useless default statement\n }\n }\n};\n/* EXPORT */\nexports.default = Channel;\n","\"use strict\";\n/* LANG */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Lang = {\n round: function (number) {\n return Math.round(number * 10000000000) / 10000000000;\n }\n};\n/* EXPORT */\nexports.default = Lang;\n","\"use strict\";\n/* UNIT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Unit = {\n frac2hex: function (frac) {\n var hex = Math.round(frac * 255).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n },\n dec2hex: function (dec) {\n var hex = Math.round(dec).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n }\n};\n/* EXPORT */\nexports.default = Unit;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar types_1 = require(\"../types\");\nvar type_1 = require(\"./type\");\n/* CHANNELS */\nvar Channels = /** @class */ (function () {\n /* CONSTRUCTOR */\n function Channels(data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type = new type_1.default();\n }\n /* API */\n Channels.prototype.set = function (data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type.type = types_1.TYPE.ALL;\n return this;\n };\n /* HELPERS */\n Channels.prototype._ensureHSL = function () {\n if (this.data.h === undefined)\n this.data.h = utils_1.default.channel.rgb2hsl(this.data, 'h');\n if (this.data.s === undefined)\n this.data.s = utils_1.default.channel.rgb2hsl(this.data, 's');\n if (this.data.l === undefined)\n this.data.l = utils_1.default.channel.rgb2hsl(this.data, 'l');\n };\n Channels.prototype._ensureRGB = function () {\n if (this.data.r === undefined)\n this.data.r = utils_1.default.channel.hsl2rgb(this.data, 'r');\n if (this.data.g === undefined)\n this.data.g = utils_1.default.channel.hsl2rgb(this.data, 'g');\n if (this.data.b === undefined)\n this.data.b = utils_1.default.channel.hsl2rgb(this.data, 'b');\n };\n Object.defineProperty(Channels.prototype, \"r\", {\n /* GETTERS */\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.r !== undefined)\n return this.data.r;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'r');\n },\n /* SETTERS */\n set: function (r) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.r = r;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"g\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.g !== undefined)\n return this.data.g;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'g');\n },\n set: function (g) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.g = g;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"b\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.b !== undefined)\n return this.data.b;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'b');\n },\n set: function (b) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.b = b;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"h\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.h !== undefined)\n return this.data.h;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'h');\n },\n set: function (h) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.h = h;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"s\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.s !== undefined)\n return this.data.s;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 's');\n },\n set: function (s) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.s = s;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"l\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.l !== undefined)\n return this.data.l;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'l');\n },\n set: function (l) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.l = l;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"a\", {\n get: function () {\n return this.data.a;\n },\n set: function (a) {\n this.changed = true;\n this.data.a = a;\n },\n enumerable: true,\n configurable: true\n });\n return Channels;\n}());\n/* EXPORT */\nexports.default = Channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\n/* TYPE */\nvar Type = /** @class */ (function () {\n function Type() {\n this.type = types_1.TYPE.ALL;\n }\n Type.prototype.get = function () {\n return this.type;\n };\n Type.prototype.set = function (type) {\n if (this.type && this.type !== type)\n throw new Error('Cannot change both RGB and HSL channels at the same time');\n this.type = type;\n };\n Type.prototype.reset = function () {\n this.type = types_1.TYPE.ALL;\n };\n Type.prototype.is = function (type) {\n return this.type === type;\n };\n return Type;\n}());\n/* EXPORT */\nexports.default = Type;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"./utils\");\n/* CONSTS */\nvar DEC2HEX = {};\nexports.DEC2HEX = DEC2HEX;\nfor (var i = 0; i <= 255; i++)\n DEC2HEX[i] = utils_1.default.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar hex_1 = require(\"./hex\");\n/* KEYWORD */\nvar Keyword = {\n /* VARIABLES */\n colors: {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyanaqua: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n transparent: '#00000000',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n },\n /* API */\n parse: function (color) {\n color = color.toLowerCase();\n var hex = Keyword.colors[color];\n if (!hex)\n return;\n return hex_1.default.parse(hex);\n },\n stringify: function (channels) {\n var hex = hex_1.default.stringify(channels);\n for (var name_1 in Keyword.colors) {\n if (Keyword.colors[name_1] === hex)\n return name_1;\n }\n }\n};\n/* EXPORT */\nexports.default = Keyword;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* RGB */\nvar RGB = {\n /* VARIABLES */\n re: /^rgba?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?)))?\\s*?\\)$/i,\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 114 && charCode !== 82)\n return; // 'r'/'R'\n var match = color.match(RGB.re);\n if (!match)\n return;\n var r = match[1], isRedPercentage = match[2], g = match[3], isGreenPercentage = match[4], b = match[5], isBluePercentage = match[6], a = match[7], isAlphaPercentage = match[8];\n return reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(isRedPercentage ? parseFloat(r) * 2.55 : parseFloat(r)),\n g: utils_1.default.channel.clamp.g(isGreenPercentage ? parseFloat(g) * 2.55 : parseFloat(g)),\n b: utils_1.default.channel.clamp.b(isBluePercentage ? parseFloat(b) * 2.55 : parseFloat(b)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // RGBA\n return \"rgba(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \", \" + utils_1.default.lang.round(channels.a) + \")\";\n }\n else { // RGB\n return \"rgb(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \")\";\n }\n }\n};\n/* EXPORT */\nexports.default = RGB;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* HSL */\nvar HSL = {\n /* VARIABLES */\n re: /^hsla?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(?:deg|grad|rad|turn)?)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(%)?))?\\s*?\\)$/i,\n hueRe: /^(.+?)(deg|grad|rad|turn)$/i,\n /* HELPERS */\n _hue2deg: function (hue) {\n var match = hue.match(HSL.hueRe);\n if (match) {\n var number = match[1], unit = match[2];\n switch (unit) {\n case 'grad': return utils_1.default.channel.clamp.h(parseFloat(number) * .9);\n case 'rad': return utils_1.default.channel.clamp.h(parseFloat(number) * 180 / Math.PI);\n case 'turn': return utils_1.default.channel.clamp.h(parseFloat(number) * 360);\n }\n }\n return utils_1.default.channel.clamp.h(parseFloat(hue));\n },\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 104 && charCode !== 72)\n return; // 'h'/'H'\n var match = color.match(HSL.re);\n if (!match)\n return;\n var h = match[1], s = match[2], l = match[3], a = match[4], isAlphaPercentage = match[5];\n return reusable_1.default.set({\n h: HSL._hue2deg(h),\n s: utils_1.default.channel.clamp.s(parseFloat(s)),\n l: utils_1.default.channel.clamp.l(parseFloat(l)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // HSLA\n return \"hsla(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%, \" + channels.a + \")\";\n }\n else { // HSL\n return \"hsl(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%)\";\n }\n }\n};\n/* EXPORT */\nexports.default = HSL;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* RED */\nfunction red(color) {\n return channel_1.default(color, 'r');\n}\n/* EXPORT */\nexports.default = red;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* GREEN */\nfunction green(color) {\n return channel_1.default(color, 'g');\n}\n/* EXPORT */\nexports.default = green;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* BLUE */\nfunction blue(color) {\n return channel_1.default(color, 'b');\n}\n/* EXPORT */\nexports.default = blue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* HUE */\nfunction hue(color) {\n return channel_1.default(color, 'h');\n}\n/* EXPORT */\nexports.default = hue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* SATURATION */\nfunction saturation(color) {\n return channel_1.default(color, 's');\n}\n/* EXPORT */\nexports.default = saturation;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* LIGHTNESS */\nfunction lightness(color) {\n return channel_1.default(color, 'l');\n}\n/* EXPORT */\nexports.default = lightness;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar is_light_1 = require(\"./is_light\");\n/* IS DARK */\nfunction isDark(color) {\n return !is_light_1.default(color);\n}\n/* EXPORT */\nexports.default = isDark;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\n/* IS VALID */\nfunction isValid(color) {\n try {\n color_1.default.parse(color);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\n/* EXPORT */\nexports.default = isValid;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* SATURATE */\nfunction saturate(color, amount) {\n return adjust_channel_1.default(color, 's', amount);\n}\n/* EXPORT */\nexports.default = saturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DESATURATE */\nfunction desaturate(color, amount) {\n return adjust_channel_1.default(color, 's', -amount);\n}\n/* EXPORT */\nexports.default = desaturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* LIGHTEN */\nfunction lighten(color, amount) {\n return adjust_channel_1.default(color, 'l', amount);\n}\n/* EXPORT */\nexports.default = lighten;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DARKEN */\nfunction darken(color, amount) {\n return adjust_channel_1.default(color, 'l', -amount);\n}\n/* EXPORT */\nexports.default = darken;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* COMPLEMENT */\nfunction complement(color) {\n return adjust_channel_1.default(color, 'h', 180);\n}\n/* EXPORT */\nexports.default = complement;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar change_1 = require(\"./change\");\n/* GRAYSCALE */\nfunction grayscale(color) {\n return change_1.default(color, { s: 0 });\n}\n/* EXPORT */\nexports.default = grayscale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar mix_1 = require(\"./mix\");\n/* INVERT */\nfunction invert(color, weight) {\n if (weight === void 0) { weight = 100; }\n var inverse = color_1.default.parse(color);\n inverse.r = 255 - inverse.r;\n inverse.g = 255 - inverse.g;\n inverse.b = 255 - inverse.b;\n return mix_1.default(inverse, color, weight);\n}\n/* EXPORT */\nexports.default = invert;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\nvar adjust_1 = require(\"./adjust\");\n/* SCALE */\nfunction scale(color, channels) {\n var ch = color_1.default.parse(color), adjustments = {}, delta = function (amount, weight, max) { return weight > 0 ? (max - amount) * weight / 100 : amount * weight / 100; };\n for (var c in channels) {\n adjustments[c] = delta(ch[c], channels[c], utils_1.default.channel.max[c]);\n }\n return adjust_1.default(color, adjustments);\n}\n/* EXPORT */\nexports.default = scale;\n","// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n","var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n","var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","module.exports = '2.1.8';\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n","module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n","var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n","var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n","var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n","/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n","/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n","\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n","var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n","var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n","var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n","module.exports = \"0.8.5\";\n","module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n","module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n","var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n","var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n","\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n","var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n","module.exports = \"0.6.4\";\n","/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n","import { darken, lighten, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#9f33be';\n this.secondaryColor = '#b20238';\n this.tertiaryColor = lighten(this.primaryColor, 30);\n this.relationColor = '#000';\n\n // this.primaryColor = '#fa255e';\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n // this.primaryColor = '#ECECFF';\n // this.secondaryColor = '#ffffde';\n // this.tertiaryColor = '#ffffde';\n\n this.background = 'white';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n this.noteBkgColor = '#fff5ad';\n this.noteBorderColor = '#aaaa33';\n this.updateColors();\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = darken(this.primaryColor, 23); // border 1\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = darken(this.tertiaryColor, 30);\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = lighten(this.primaryColor, 23);\n this.taskBkgColor = this.primaryColor;\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\n\n// import { unflatten } from 'flat';\n// import flatten from 'flat';\n\n// import themeVariables from './theme-default';\n// import themeForestVariables from './theme-forest';\n// import themeNeutralVariables from './theme-neutral';\n\nconst handleThemeVariables = value => {\n return theme[value] ? theme[value].getThemeVariables() : theme.default.getThemeVariables();\n};\n\nconst manipulators = {\n themeVariables: handleThemeVariables\n};\n\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *

\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\n// debugger;\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport const defaultConfig = Object.freeze(config);\n\nconst siteConfig = assignWithDepth({}, defaultConfig);\nconst currentConfig = assignWithDepth({}, defaultConfig);\n\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf, { clobber: true });\n // Set theme variables if user has set the theme option\n assignWithDepth(siteConfig, conf);\n\n return getSiteConfig();\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n sanitize(conf);\n Object.keys(conf).forEach(key => {\n const manipulator = manipulators[key];\n conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n });\n\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n assignWithDepth(siteConfig, conf, { clobber: true });\n assignWithDepth(currentConfig, conf, { clobber: true });\n};\n\nconst configApi = Object.freeze({\n sanitize,\n setSiteConfig,\n getSiteConfig,\n setConfig,\n getConfig,\n reset,\n defaultConfig\n});\nexport default configApi;\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = getConfig();\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = getConfig();\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 0)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || autoWrap()\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\n\nlet sections = {};\nlet title = '';\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","import mermaidAPI from '../../mermaidAPI';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: black;\n stroke: black;\n}\n.node circle.state-end {\n fill: black;\n stroke: white;\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.taskTextDarkColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","const getStyles = () => ``;\n\nexport default getStyles;\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.edgeLabelBackground};\n fillopactity: 0;\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n reinitialize(graphInit);\n } else {\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n }\n\n const cnf = getConfig();\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n directive.args = { config: { wrap: directive.type === 'wrap' } };\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options);\n if (options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = options.theme;\n }\n\n // Set default options\n const config = typeof options === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\n// function getConfig () {\n// console.warn('get config')\n// return config\n// }\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig,\n getSiteConfig,\n reset: () => {\n // console.warn('reset');\n configApi.reset();\n const siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n // console.log('Starting rendering diagrams (init) - mermaid.init');\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://mermaid/webpack/universalModuleDefinition","webpack://mermaid/webpack/bootstrap","webpack://mermaid/./node_modules/d3/dist/package.js","webpack://mermaid/./node_modules/d3-array/src/ascending.js","webpack://mermaid/./node_modules/d3-array/src/bisector.js","webpack://mermaid/./node_modules/d3-array/src/bisect.js","webpack://mermaid/./node_modules/d3-array/src/pairs.js","webpack://mermaid/./node_modules/d3-array/src/cross.js","webpack://mermaid/./node_modules/d3-array/src/descending.js","webpack://mermaid/./node_modules/d3-array/src/number.js","webpack://mermaid/./node_modules/d3-array/src/variance.js","webpack://mermaid/./node_modules/d3-array/src/deviation.js","webpack://mermaid/./node_modules/d3-array/src/extent.js","webpack://mermaid/./node_modules/d3-array/src/array.js","webpack://mermaid/./node_modules/d3-array/src/constant.js","webpack://mermaid/./node_modules/d3-array/src/identity.js","webpack://mermaid/./node_modules/d3-array/src/range.js","webpack://mermaid/./node_modules/d3-array/src/ticks.js","webpack://mermaid/./node_modules/d3-array/src/threshold/sturges.js","webpack://mermaid/./node_modules/d3-array/src/histogram.js","webpack://mermaid/./node_modules/d3-array/src/quantile.js","webpack://mermaid/./node_modules/d3-array/src/threshold/freedmanDiaconis.js","webpack://mermaid/./node_modules/d3-array/src/threshold/scott.js","webpack://mermaid/./node_modules/d3-array/src/max.js","webpack://mermaid/./node_modules/d3-array/src/mean.js","webpack://mermaid/./node_modules/d3-array/src/median.js","webpack://mermaid/./node_modules/d3-array/src/merge.js","webpack://mermaid/./node_modules/d3-array/src/min.js","webpack://mermaid/./node_modules/d3-array/src/permute.js","webpack://mermaid/./node_modules/d3-array/src/scan.js","webpack://mermaid/./node_modules/d3-array/src/shuffle.js","webpack://mermaid/./node_modules/d3-array/src/sum.js","webpack://mermaid/./node_modules/d3-array/src/transpose.js","webpack://mermaid/./node_modules/d3-array/src/zip.js","webpack://mermaid/./node_modules/d3-axis/src/array.js","webpack://mermaid/./node_modules/d3-axis/src/identity.js","webpack://mermaid/./node_modules/d3-axis/src/axis.js","webpack://mermaid/./node_modules/d3-dispatch/src/dispatch.js","webpack://mermaid/./node_modules/d3-selection/src/selector.js","webpack://mermaid/./node_modules/d3-selection/src/selectorAll.js","webpack://mermaid/./node_modules/d3-selection/src/matcher.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sparse.js","webpack://mermaid/./node_modules/d3-selection/src/selection/enter.js","webpack://mermaid/./node_modules/d3-selection/src/selection/data.js","webpack://mermaid/./node_modules/d3-selection/src/selection/sort.js","webpack://mermaid/./node_modules/d3-selection/src/selection/call.js","webpack://mermaid/./node_modules/d3-selection/src/namespaces.js","webpack://mermaid/./node_modules/d3-selection/src/namespace.js","webpack://mermaid/./node_modules/d3-selection/src/selection/attr.js","webpack://mermaid/./node_modules/d3-selection/src/window.js","webpack://mermaid/./node_modules/d3-selection/src/selection/style.js","webpack://mermaid/./node_modules/d3-selection/src/selection/property.js","webpack://mermaid/./node_modules/d3-selection/src/selection/classed.js","webpack://mermaid/./node_modules/d3-selection/src/selection/text.js","webpack://mermaid/./node_modules/d3-selection/src/selection/html.js","webpack://mermaid/./node_modules/d3-selection/src/selection/raise.js","webpack://mermaid/./node_modules/d3-selection/src/selection/lower.js","webpack://mermaid/./node_modules/d3-selection/src/creator.js","webpack://mermaid/./node_modules/d3-selection/src/selection/insert.js","webpack://mermaid/./node_modules/d3-selection/src/selection/remove.js","webpack://mermaid/./node_modules/d3-selection/src/selection/clone.js","webpack://mermaid/./node_modules/d3-selection/src/selection/on.js","webpack://mermaid/./node_modules/d3-selection/src/selection/dispatch.js","webpack://mermaid/./node_modules/d3-selection/src/selection/index.js","webpack://mermaid/./node_modules/d3-selection/src/selection/select.js","webpack://mermaid/./node_modules/d3-selection/src/selection/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/selection/filter.js","webpack://mermaid/./node_modules/d3-selection/src/constant.js","webpack://mermaid/./node_modules/d3-selection/src/selection/exit.js","webpack://mermaid/./node_modules/d3-selection/src/selection/join.js","webpack://mermaid/./node_modules/d3-selection/src/selection/merge.js","webpack://mermaid/./node_modules/d3-selection/src/selection/order.js","webpack://mermaid/./node_modules/d3-selection/src/selection/nodes.js","webpack://mermaid/./node_modules/d3-selection/src/selection/node.js","webpack://mermaid/./node_modules/d3-selection/src/selection/size.js","webpack://mermaid/./node_modules/d3-selection/src/selection/empty.js","webpack://mermaid/./node_modules/d3-selection/src/selection/each.js","webpack://mermaid/./node_modules/d3-selection/src/selection/append.js","webpack://mermaid/./node_modules/d3-selection/src/selection/datum.js","webpack://mermaid/./node_modules/d3-selection/src/select.js","webpack://mermaid/./node_modules/d3-drag/src/noevent.js","webpack://mermaid/./node_modules/d3-drag/src/nodrag.js","webpack://mermaid/./node_modules/d3-color/src/define.js","webpack://mermaid/./node_modules/d3-color/src/color.js","webpack://mermaid/./node_modules/d3-interpolate/src/basis.js","webpack://mermaid/./node_modules/d3-interpolate/src/basisClosed.js","webpack://mermaid/./node_modules/d3-interpolate/src/constant.js","webpack://mermaid/./node_modules/d3-interpolate/src/color.js","webpack://mermaid/./node_modules/d3-interpolate/src/rgb.js","webpack://mermaid/./node_modules/d3-interpolate/src/numberArray.js","webpack://mermaid/./node_modules/d3-interpolate/src/array.js","webpack://mermaid/./node_modules/d3-interpolate/src/date.js","webpack://mermaid/./node_modules/d3-interpolate/src/number.js","webpack://mermaid/./node_modules/d3-interpolate/src/object.js","webpack://mermaid/./node_modules/d3-interpolate/src/string.js","webpack://mermaid/./node_modules/d3-timer/src/timer.js","webpack://mermaid/./node_modules/d3-interpolate/src/value.js","webpack://mermaid/./node_modules/d3-selection/src/sourceEvent.js","webpack://mermaid/./node_modules/d3-selection/src/point.js","webpack://mermaid/./node_modules/d3-selection/src/touch.js","webpack://mermaid/./node_modules/d3-selection/src/mouse.js","webpack://mermaid/./node_modules/d3-timer/src/timeout.js","webpack://mermaid/./node_modules/d3-transition/src/transition/schedule.js","webpack://mermaid/./node_modules/d3-transition/src/interrupt.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/parse.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/decompose.js","webpack://mermaid/./node_modules/d3-interpolate/src/transform/index.js","webpack://mermaid/./node_modules/d3-transition/src/transition/tween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/interpolate.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attr.js","webpack://mermaid/./node_modules/d3-transition/src/transition/attrTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/delay.js","webpack://mermaid/./node_modules/d3-transition/src/transition/duration.js","webpack://mermaid/./node_modules/d3-transition/src/transition/ease.js","webpack://mermaid/./node_modules/d3-transition/src/transition/on.js","webpack://mermaid/./node_modules/d3-transition/src/transition/remove.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selection.js","webpack://mermaid/./node_modules/d3-transition/src/transition/style.js","webpack://mermaid/./node_modules/d3-transition/src/transition/styleTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/textTween.js","webpack://mermaid/./node_modules/d3-transition/src/transition/index.js","webpack://mermaid/./node_modules/d3-ease/src/cubic.js","webpack://mermaid/./node_modules/d3-transition/src/transition/select.js","webpack://mermaid/./node_modules/d3-transition/src/transition/selectAll.js","webpack://mermaid/./node_modules/d3-transition/src/transition/filter.js","webpack://mermaid/./node_modules/d3-transition/src/transition/merge.js","webpack://mermaid/./node_modules/d3-transition/src/transition/transition.js","webpack://mermaid/./node_modules/d3-transition/src/transition/text.js","webpack://mermaid/./node_modules/d3-transition/src/transition/end.js","webpack://mermaid/./node_modules/d3-transition/src/selection/transition.js","webpack://mermaid/./node_modules/d3-transition/src/selection/index.js","webpack://mermaid/./node_modules/d3-transition/src/selection/interrupt.js","webpack://mermaid/./node_modules/d3-transition/src/active.js","webpack://mermaid/./node_modules/d3-brush/src/constant.js","webpack://mermaid/./node_modules/d3-brush/src/event.js","webpack://mermaid/./node_modules/d3-brush/src/noevent.js","webpack://mermaid/./node_modules/d3-brush/src/brush.js","webpack://mermaid/./node_modules/d3-chord/src/math.js","webpack://mermaid/./node_modules/d3-chord/src/chord.js","webpack://mermaid/./node_modules/d3-chord/src/array.js","webpack://mermaid/./node_modules/d3-chord/src/constant.js","webpack://mermaid/./node_modules/d3-path/src/path.js","webpack://mermaid/./node_modules/d3-chord/src/ribbon.js","webpack://mermaid/./node_modules/d3-collection/src/map.js","webpack://mermaid/./node_modules/d3-collection/src/nest.js","webpack://mermaid/./node_modules/d3-collection/src/set.js","webpack://mermaid/./node_modules/d3-collection/src/keys.js","webpack://mermaid/./node_modules/d3-collection/src/values.js","webpack://mermaid/./node_modules/d3-collection/src/entries.js","webpack://mermaid/./node_modules/d3-color/src/math.js","webpack://mermaid/./node_modules/d3-color/src/lab.js","webpack://mermaid/./node_modules/d3-color/src/cubehelix.js","webpack://mermaid/./node_modules/d3-contour/src/array.js","webpack://mermaid/./node_modules/d3-contour/src/ascending.js","webpack://mermaid/./node_modules/d3-contour/src/constant.js","webpack://mermaid/./node_modules/d3-contour/src/contains.js","webpack://mermaid/./node_modules/d3-contour/src/noop.js","webpack://mermaid/./node_modules/d3-contour/src/contours.js","webpack://mermaid/./node_modules/d3-contour/src/area.js","webpack://mermaid/./node_modules/d3-contour/src/blur.js","webpack://mermaid/./node_modules/d3-contour/src/density.js","webpack://mermaid/./node_modules/d3-drag/src/constant.js","webpack://mermaid/./node_modules/d3-drag/src/event.js","webpack://mermaid/./node_modules/d3-drag/src/drag.js","webpack://mermaid/./node_modules/d3-dsv/src/dsv.js","webpack://mermaid/./node_modules/d3-dsv/src/csv.js","webpack://mermaid/./node_modules/d3-dsv/src/tsv.js","webpack://mermaid/./node_modules/d3-dsv/src/autoType.js","webpack://mermaid/./node_modules/d3-ease/src/linear.js","webpack://mermaid/./node_modules/d3-ease/src/quad.js","webpack://mermaid/./node_modules/d3-ease/src/poly.js","webpack://mermaid/./node_modules/d3-ease/src/sin.js","webpack://mermaid/./node_modules/d3-ease/src/exp.js","webpack://mermaid/./node_modules/d3-ease/src/circle.js","webpack://mermaid/./node_modules/d3-ease/src/bounce.js","webpack://mermaid/./node_modules/d3-ease/src/back.js","webpack://mermaid/./node_modules/d3-ease/src/elastic.js","webpack://mermaid/./node_modules/d3-fetch/src/blob.js","webpack://mermaid/./node_modules/d3-fetch/src/buffer.js","webpack://mermaid/./node_modules/d3-fetch/src/text.js","webpack://mermaid/./node_modules/d3-fetch/src/dsv.js","webpack://mermaid/./node_modules/d3-fetch/src/image.js","webpack://mermaid/./node_modules/d3-fetch/src/json.js","webpack://mermaid/./node_modules/d3-fetch/src/xml.js","webpack://mermaid/./node_modules/d3-force/src/center.js","webpack://mermaid/./node_modules/d3-force/src/constant.js","webpack://mermaid/./node_modules/d3-force/src/jiggle.js","webpack://mermaid/./node_modules/d3-quadtree/src/add.js","webpack://mermaid/./node_modules/d3-quadtree/src/cover.js","webpack://mermaid/./node_modules/d3-quadtree/src/quad.js","webpack://mermaid/./node_modules/d3-quadtree/src/x.js","webpack://mermaid/./node_modules/d3-quadtree/src/y.js","webpack://mermaid/./node_modules/d3-quadtree/src/quadtree.js","webpack://mermaid/./node_modules/d3-force/src/collide.js","webpack://mermaid/./node_modules/d3-quadtree/src/data.js","webpack://mermaid/./node_modules/d3-quadtree/src/extent.js","webpack://mermaid/./node_modules/d3-quadtree/src/find.js","webpack://mermaid/./node_modules/d3-quadtree/src/remove.js","webpack://mermaid/./node_modules/d3-quadtree/src/root.js","webpack://mermaid/./node_modules/d3-quadtree/src/size.js","webpack://mermaid/./node_modules/d3-quadtree/src/visit.js","webpack://mermaid/./node_modules/d3-quadtree/src/visitAfter.js","webpack://mermaid/./node_modules/d3-force/src/link.js","webpack://mermaid/./node_modules/d3-force/src/simulation.js","webpack://mermaid/./node_modules/d3-force/src/manyBody.js","webpack://mermaid/./node_modules/d3-force/src/radial.js","webpack://mermaid/./node_modules/d3-force/src/x.js","webpack://mermaid/./node_modules/d3-force/src/y.js","webpack://mermaid/./node_modules/d3-format/src/formatDecimal.js","webpack://mermaid/./node_modules/d3-format/src/exponent.js","webpack://mermaid/./node_modules/d3-format/src/formatSpecifier.js","webpack://mermaid/./node_modules/d3-format/src/formatTrim.js","webpack://mermaid/./node_modules/d3-format/src/formatPrefixAuto.js","webpack://mermaid/./node_modules/d3-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-format/src/formatRounded.js","webpack://mermaid/./node_modules/d3-format/src/formatTypes.js","webpack://mermaid/./node_modules/d3-format/src/identity.js","webpack://mermaid/./node_modules/d3-format/src/locale.js","webpack://mermaid/./node_modules/d3-format/src/formatGroup.js","webpack://mermaid/./node_modules/d3-format/src/formatNumerals.js","webpack://mermaid/./node_modules/d3-format/src/precisionFixed.js","webpack://mermaid/./node_modules/d3-format/src/precisionPrefix.js","webpack://mermaid/./node_modules/d3-format/src/precisionRound.js","webpack://mermaid/./node_modules/d3-geo/src/adder.js","webpack://mermaid/./node_modules/d3-geo/src/math.js","webpack://mermaid/./node_modules/d3-geo/src/noop.js","webpack://mermaid/./node_modules/d3-geo/src/stream.js","webpack://mermaid/./node_modules/d3-geo/src/area.js","webpack://mermaid/./node_modules/d3-geo/src/cartesian.js","webpack://mermaid/./node_modules/d3-geo/src/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/constant.js","webpack://mermaid/./node_modules/d3-geo/src/compose.js","webpack://mermaid/./node_modules/d3-geo/src/rotation.js","webpack://mermaid/./node_modules/d3-geo/src/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/buffer.js","webpack://mermaid/./node_modules/d3-geo/src/pointEqual.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rejoin.js","webpack://mermaid/./node_modules/d3-geo/src/polygonContains.js","webpack://mermaid/./node_modules/d3-geo/src/clip/index.js","webpack://mermaid/./node_modules/d3-geo/src/clip/antimeridian.js","webpack://mermaid/./node_modules/d3-geo/src/clip/circle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/rectangle.js","webpack://mermaid/./node_modules/d3-geo/src/clip/line.js","webpack://mermaid/./node_modules/d3-geo/src/clip/extent.js","webpack://mermaid/./node_modules/d3-geo/src/length.js","webpack://mermaid/./node_modules/d3-geo/src/distance.js","webpack://mermaid/./node_modules/d3-geo/src/contains.js","webpack://mermaid/./node_modules/d3-geo/src/graticule.js","webpack://mermaid/./node_modules/d3-geo/src/interpolate.js","webpack://mermaid/./node_modules/d3-geo/src/path/area.js","webpack://mermaid/./node_modules/d3-geo/src/identity.js","webpack://mermaid/./node_modules/d3-geo/src/path/bounds.js","webpack://mermaid/./node_modules/d3-geo/src/path/centroid.js","webpack://mermaid/./node_modules/d3-geo/src/path/context.js","webpack://mermaid/./node_modules/d3-geo/src/path/measure.js","webpack://mermaid/./node_modules/d3-geo/src/path/string.js","webpack://mermaid/./node_modules/d3-geo/src/path/index.js","webpack://mermaid/./node_modules/d3-geo/src/transform.js","webpack://mermaid/./node_modules/d3-geo/src/projection/fit.js","webpack://mermaid/./node_modules/d3-geo/src/projection/resample.js","webpack://mermaid/./node_modules/d3-geo/src/projection/index.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/cylindricalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albers.js","webpack://mermaid/./node_modules/d3-geo/src/projection/albersUsa.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEqualArea.js","webpack://mermaid/./node_modules/d3-geo/src/projection/azimuthalEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/mercator.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicConformal.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equirectangular.js","webpack://mermaid/./node_modules/d3-geo/src/projection/conicEquidistant.js","webpack://mermaid/./node_modules/d3-geo/src/projection/equalEarth.js","webpack://mermaid/./node_modules/d3-geo/src/projection/gnomonic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/identity.js","webpack://mermaid/./node_modules/d3-geo/src/projection/naturalEarth1.js","webpack://mermaid/./node_modules/d3-geo/src/projection/orthographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/stereographic.js","webpack://mermaid/./node_modules/d3-geo/src/projection/transverseMercator.js","webpack://mermaid/./node_modules/d3-hierarchy/src/cluster.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/count.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/each.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sum.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/sort.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/path.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/ancestors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/descendants.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/leaves.js","webpack://mermaid/./node_modules/d3-hierarchy/src/hierarchy/links.js","webpack://mermaid/./node_modules/d3-hierarchy/src/array.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/enclose.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/siblings.js","webpack://mermaid/./node_modules/d3-hierarchy/src/accessors.js","webpack://mermaid/./node_modules/d3-hierarchy/src/constant.js","webpack://mermaid/./node_modules/d3-hierarchy/src/pack/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/round.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/dice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/partition.js","webpack://mermaid/./node_modules/d3-hierarchy/src/stratify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/tree.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/slice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/squarify.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/index.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/binary.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/sliceDice.js","webpack://mermaid/./node_modules/d3-hierarchy/src/treemap/resquarify.js","webpack://mermaid/./node_modules/d3-interpolate/src/discrete.js","webpack://mermaid/./node_modules/d3-interpolate/src/hue.js","webpack://mermaid/./node_modules/d3-interpolate/src/round.js","webpack://mermaid/./node_modules/d3-interpolate/src/zoom.js","webpack://mermaid/./node_modules/d3-interpolate/src/hsl.js","webpack://mermaid/./node_modules/d3-interpolate/src/lab.js","webpack://mermaid/./node_modules/d3-interpolate/src/hcl.js","webpack://mermaid/./node_modules/d3-interpolate/src/cubehelix.js","webpack://mermaid/./node_modules/d3-interpolate/src/piecewise.js","webpack://mermaid/./node_modules/d3-interpolate/src/quantize.js","webpack://mermaid/./node_modules/d3-polygon/src/area.js","webpack://mermaid/./node_modules/d3-polygon/src/centroid.js","webpack://mermaid/./node_modules/d3-polygon/src/hull.js","webpack://mermaid/./node_modules/d3-polygon/src/cross.js","webpack://mermaid/./node_modules/d3-polygon/src/contains.js","webpack://mermaid/./node_modules/d3-polygon/src/length.js","webpack://mermaid/./node_modules/d3-random/src/defaultSource.js","webpack://mermaid/./node_modules/d3-random/src/uniform.js","webpack://mermaid/./node_modules/d3-random/src/normal.js","webpack://mermaid/./node_modules/d3-random/src/logNormal.js","webpack://mermaid/./node_modules/d3-random/src/irwinHall.js","webpack://mermaid/./node_modules/d3-random/src/bates.js","webpack://mermaid/./node_modules/d3-random/src/exponential.js","webpack://mermaid/./node_modules/d3-scale/src/init.js","webpack://mermaid/./node_modules/d3-scale/src/array.js","webpack://mermaid/./node_modules/d3-scale/src/ordinal.js","webpack://mermaid/./node_modules/d3-scale/src/band.js","webpack://mermaid/./node_modules/d3-scale/src/constant.js","webpack://mermaid/./node_modules/d3-scale/src/number.js","webpack://mermaid/./node_modules/d3-scale/src/continuous.js","webpack://mermaid/./node_modules/d3-scale/src/tickFormat.js","webpack://mermaid/./node_modules/d3-scale/src/linear.js","webpack://mermaid/./node_modules/d3-scale/src/identity.js","webpack://mermaid/./node_modules/d3-scale/src/nice.js","webpack://mermaid/./node_modules/d3-scale/src/log.js","webpack://mermaid/./node_modules/d3-scale/src/symlog.js","webpack://mermaid/./node_modules/d3-scale/src/pow.js","webpack://mermaid/./node_modules/d3-scale/src/quantile.js","webpack://mermaid/./node_modules/d3-scale/src/quantize.js","webpack://mermaid/./node_modules/d3-scale/src/threshold.js","webpack://mermaid/./node_modules/d3-time/src/interval.js","webpack://mermaid/./node_modules/d3-time/src/year.js","webpack://mermaid/./node_modules/d3-time/src/month.js","webpack://mermaid/./node_modules/d3-time/src/week.js","webpack://mermaid/./node_modules/d3-time/src/duration.js","webpack://mermaid/./node_modules/d3-time/src/day.js","webpack://mermaid/./node_modules/d3-time/src/hour.js","webpack://mermaid/./node_modules/d3-time/src/minute.js","webpack://mermaid/./node_modules/d3-time/src/second.js","webpack://mermaid/./node_modules/d3-time/src/millisecond.js","webpack://mermaid/./node_modules/d3-time/src/utcWeek.js","webpack://mermaid/./node_modules/d3-time/src/utcDay.js","webpack://mermaid/./node_modules/d3-time/src/utcYear.js","webpack://mermaid/./node_modules/d3-time-format/src/locale.js","webpack://mermaid/./node_modules/d3-time-format/src/defaultLocale.js","webpack://mermaid/./node_modules/d3-scale/src/time.js","webpack://mermaid/./node_modules/d3-time/src/utcMonth.js","webpack://mermaid/./node_modules/d3-time/src/utcHour.js","webpack://mermaid/./node_modules/d3-time/src/utcMinute.js","webpack://mermaid/./node_modules/d3-scale/src/utcTime.js","webpack://mermaid/./node_modules/d3-scale/src/sequential.js","webpack://mermaid/./node_modules/d3-scale/src/sequentialQuantile.js","webpack://mermaid/./node_modules/d3-scale/src/diverging.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/colors.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/category10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Accent.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Dark2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Paired.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set1.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set2.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Set3.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/ramp.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/BrBG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PRGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PiYG.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/PuOr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdGy.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/diverging/Spectral.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js","webpack://mermaid/./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js","webpack://mermaid/./node_modules/d3-selection/src/create.js","webpack://mermaid/./node_modules/d3-selection/src/local.js","webpack://mermaid/./node_modules/d3-selection/src/selectAll.js","webpack://mermaid/./node_modules/d3-selection/src/touches.js","webpack://mermaid/./node_modules/d3-shape/src/constant.js","webpack://mermaid/./node_modules/d3-shape/src/math.js","webpack://mermaid/./node_modules/d3-shape/src/arc.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linear.js","webpack://mermaid/./node_modules/d3-shape/src/point.js","webpack://mermaid/./node_modules/d3-shape/src/line.js","webpack://mermaid/./node_modules/d3-shape/src/area.js","webpack://mermaid/./node_modules/d3-shape/src/descending.js","webpack://mermaid/./node_modules/d3-shape/src/identity.js","webpack://mermaid/./node_modules/d3-shape/src/pie.js","webpack://mermaid/./node_modules/d3-shape/src/curve/radial.js","webpack://mermaid/./node_modules/d3-shape/src/lineRadial.js","webpack://mermaid/./node_modules/d3-shape/src/areaRadial.js","webpack://mermaid/./node_modules/d3-shape/src/pointRadial.js","webpack://mermaid/./node_modules/d3-shape/src/array.js","webpack://mermaid/./node_modules/d3-shape/src/link/index.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/circle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/cross.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/diamond.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/star.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/square.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/triangle.js","webpack://mermaid/./node_modules/d3-shape/src/symbol/wye.js","webpack://mermaid/./node_modules/d3-shape/src/symbol.js","webpack://mermaid/./node_modules/d3-shape/src/noop.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basis.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/basisOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/bundle.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinal.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/cardinalOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRom.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/catmullRomOpen.js","webpack://mermaid/./node_modules/d3-shape/src/curve/linearClosed.js","webpack://mermaid/./node_modules/d3-shape/src/curve/monotone.js","webpack://mermaid/./node_modules/d3-shape/src/curve/natural.js","webpack://mermaid/./node_modules/d3-shape/src/curve/step.js","webpack://mermaid/./node_modules/d3-shape/src/offset/none.js","webpack://mermaid/./node_modules/d3-shape/src/order/none.js","webpack://mermaid/./node_modules/d3-shape/src/stack.js","webpack://mermaid/./node_modules/d3-shape/src/offset/expand.js","webpack://mermaid/./node_modules/d3-shape/src/offset/diverging.js","webpack://mermaid/./node_modules/d3-shape/src/offset/silhouette.js","webpack://mermaid/./node_modules/d3-shape/src/offset/wiggle.js","webpack://mermaid/./node_modules/d3-shape/src/order/appearance.js","webpack://mermaid/./node_modules/d3-shape/src/order/ascending.js","webpack://mermaid/./node_modules/d3-shape/src/order/descending.js","webpack://mermaid/./node_modules/d3-shape/src/order/insideOut.js","webpack://mermaid/./node_modules/d3-shape/src/order/reverse.js","webpack://mermaid/./node_modules/d3-time-format/src/isoFormat.js","webpack://mermaid/./node_modules/d3-time-format/src/isoParse.js","webpack://mermaid/./node_modules/d3-timer/src/interval.js","webpack://mermaid/./node_modules/d3-voronoi/src/constant.js","webpack://mermaid/./node_modules/d3-voronoi/src/point.js","webpack://mermaid/./node_modules/d3-voronoi/src/RedBlackTree.js","webpack://mermaid/./node_modules/d3-voronoi/src/Edge.js","webpack://mermaid/./node_modules/d3-voronoi/src/Cell.js","webpack://mermaid/./node_modules/d3-voronoi/src/Circle.js","webpack://mermaid/./node_modules/d3-voronoi/src/Beach.js","webpack://mermaid/./node_modules/d3-voronoi/src/Diagram.js","webpack://mermaid/./node_modules/d3-voronoi/src/voronoi.js","webpack://mermaid/./node_modules/d3-zoom/src/constant.js","webpack://mermaid/./node_modules/d3-zoom/src/event.js","webpack://mermaid/./node_modules/d3-zoom/src/transform.js","webpack://mermaid/./node_modules/d3-zoom/src/noevent.js","webpack://mermaid/./node_modules/d3-zoom/src/zoom.js","webpack://mermaid/./node_modules/d3/index.js","webpack://mermaid/./node_modules/khroma/dist/index.js","webpack://mermaid/./src/diagrams/sequence/parser/sequenceDiagram.jison","webpack://mermaid/./node_modules/graphlib/index.js","webpack://mermaid/./node_modules/dagre/lib/lodash.js","webpack://mermaid/./node_modules/lodash/isArray.js","webpack://mermaid/./node_modules/dagre-d3/index.js","webpack://mermaid/(webpack)/buildin/module.js","webpack://mermaid/./node_modules/dagre/lib/util.js","webpack://mermaid/./node_modules/khroma/dist/utils/index.js","webpack://mermaid/./node_modules/graphlib/lib/lodash.js","webpack://mermaid/./node_modules/lodash/isObject.js","webpack://mermaid/./node_modules/dagre-d3/lib/util.js","webpack://mermaid/./src/diagrams/class/parser/classDiagram.jison","webpack://mermaid/./node_modules/process/browser.js","webpack://mermaid/./node_modules/khroma/dist/color/index.js","webpack://mermaid/./node_modules/lodash/_root.js","webpack://mermaid/./node_modules/dagre/lib/graphlib.js","webpack://mermaid/./node_modules/dagre/index.js","webpack://mermaid/./node_modules/path-browserify/index.js","webpack://mermaid/./node_modules/lodash/isObjectLike.js","webpack://mermaid/./src/diagrams/state/parser/stateDiagram.jison","webpack://mermaid/./node_modules/moment-mini/moment.min.js","webpack://mermaid/./node_modules/lodash/isArrayLike.js","webpack://mermaid/./node_modules/lodash/_baseIteratee.js","webpack://mermaid/./src/diagrams/flowchart/parser/flow.jison","webpack://mermaid/./src/diagrams/gantt/parser/gantt.jison","webpack://mermaid/./src/diagrams/user-journey/parser/journey.jison","webpack://mermaid/./node_modules/khroma/dist/methods/channel.js","webpack://mermaid/./node_modules/lodash/keys.js","webpack://mermaid/./node_modules/dagre-d3/lib/d3.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust_channel.js","webpack://mermaid/./node_modules/lodash/_getNative.js","webpack://mermaid/./node_modules/lodash/_baseGetTag.js","webpack://mermaid/./node_modules/lodash/identity.js","webpack://mermaid/./node_modules/lodash/eq.js","webpack://mermaid/./node_modules/lodash/isFunction.js","webpack://mermaid/./node_modules/lodash/_Symbol.js","webpack://mermaid/./node_modules/lodash/isBuffer.js","webpack://mermaid/./node_modules/lodash/keysIn.js","webpack://mermaid/./node_modules/lodash/_getTag.js","webpack://mermaid/./node_modules/lodash/isSymbol.js","webpack://mermaid/./node_modules/dagre-d3/lib/lodash.js","webpack://mermaid/./node_modules/khroma/dist/channels/reusable.js","webpack://mermaid/./node_modules/lodash/_copyObject.js","webpack://mermaid/./node_modules/lodash/isArguments.js","webpack://mermaid/./node_modules/lodash/isTypedArray.js","webpack://mermaid/./node_modules/lodash/_toKey.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-html-label.js","webpack://mermaid/./node_modules/khroma/dist/methods/rgba.js","webpack://mermaid/./node_modules/khroma/dist/methods/change.js","webpack://mermaid/./node_modules/lodash/_Stack.js","webpack://mermaid/./node_modules/lodash/_ListCache.js","webpack://mermaid/./node_modules/lodash/_assocIndexOf.js","webpack://mermaid/./node_modules/lodash/_nativeCreate.js","webpack://mermaid/./node_modules/lodash/_getMapData.js","webpack://mermaid/./node_modules/lodash/_assignValue.js","webpack://mermaid/./node_modules/lodash/_baseAssignValue.js","webpack://mermaid/./node_modules/lodash/_isIndex.js","webpack://mermaid/./node_modules/lodash/_baseUnary.js","webpack://mermaid/./node_modules/lodash/_isPrototype.js","webpack://mermaid/./node_modules/lodash/_getPrototype.js","webpack://mermaid/./node_modules/lodash/_baseEach.js","webpack://mermaid/./node_modules/lodash/_castPath.js","webpack://mermaid/./node_modules/lodash/_arrayMap.js","webpack://mermaid/./node_modules/lodash/_baseRest.js","webpack://mermaid/./node_modules/lodash/_isIterateeCall.js","webpack://mermaid/./node_modules/dagre/lib/rank/util.js","webpack://mermaid/./node_modules/@braintree/sanitize-url/index.js","webpack://mermaid/./src/diagrams/git/parser/gitGraph.jison","webpack://mermaid/./src/diagrams/info/parser/info.jison","webpack://mermaid/./src/diagrams/pie/parser/pie.jison","webpack://mermaid/./src/diagrams/er/parser/erDiagram.jison","webpack://mermaid/./node_modules/khroma/dist/types.js","webpack://mermaid/./node_modules/graphlib/lib/graph.js","webpack://mermaid/./node_modules/lodash/_Map.js","webpack://mermaid/./node_modules/lodash/_MapCache.js","webpack://mermaid/./node_modules/lodash/_arrayEach.js","webpack://mermaid/./node_modules/lodash/isLength.js","webpack://mermaid/./node_modules/lodash/_nodeUtil.js","webpack://mermaid/./node_modules/lodash/_baseKeys.js","webpack://mermaid/./node_modules/lodash/_getSymbols.js","webpack://mermaid/./node_modules/lodash/_arrayPush.js","webpack://mermaid/./node_modules/lodash/_cloneArrayBuffer.js","webpack://mermaid/./node_modules/lodash/constant.js","webpack://mermaid/./node_modules/lodash/each.js","webpack://mermaid/./node_modules/lodash/_baseForOwn.js","webpack://mermaid/./node_modules/lodash/_baseFor.js","webpack://mermaid/./node_modules/lodash/_setToArray.js","webpack://mermaid/./node_modules/lodash/_baseGet.js","webpack://mermaid/./node_modules/lodash/_isKey.js","webpack://mermaid/./node_modules/lodash/has.js","webpack://mermaid/./node_modules/lodash/_baseFlatten.js","webpack://mermaid/./node_modules/lodash/_baseExtremum.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-label.js","webpack://mermaid/./node_modules/khroma/dist/color/hex.js","webpack://mermaid/./node_modules/khroma/dist/methods/hsla.js","webpack://mermaid/./node_modules/khroma/dist/methods/alpha.js","webpack://mermaid/./node_modules/khroma/dist/methods/luminance.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_light.js","webpack://mermaid/./node_modules/khroma/dist/methods/opacify.js","webpack://mermaid/./node_modules/khroma/dist/methods/transparentize.js","webpack://mermaid/./node_modules/khroma/dist/methods/adjust.js","webpack://mermaid/./node_modules/khroma/dist/methods/mix.js","webpack://mermaid/./node_modules/lodash/_baseClone.js","webpack://mermaid/./node_modules/lodash/_freeGlobal.js","webpack://mermaid/./node_modules/lodash/_toSource.js","webpack://mermaid/./node_modules/lodash/_defineProperty.js","webpack://mermaid/./node_modules/lodash/_arrayLikeKeys.js","webpack://mermaid/./node_modules/lodash/_overArg.js","webpack://mermaid/./node_modules/lodash/_cloneBuffer.js","webpack://mermaid/./node_modules/lodash/_copyArray.js","webpack://mermaid/./node_modules/lodash/_arrayFilter.js","webpack://mermaid/./node_modules/lodash/stubArray.js","webpack://mermaid/./node_modules/lodash/_getSymbolsIn.js","webpack://mermaid/./node_modules/lodash/_getAllKeys.js","webpack://mermaid/./node_modules/lodash/_baseGetAllKeys.js","webpack://mermaid/./node_modules/lodash/_Set.js","webpack://mermaid/./node_modules/lodash/_Uint8Array.js","webpack://mermaid/./node_modules/lodash/_cloneTypedArray.js","webpack://mermaid/./node_modules/lodash/_initCloneObject.js","webpack://mermaid/./node_modules/lodash/_baseCreate.js","webpack://mermaid/./node_modules/lodash/forEach.js","webpack://mermaid/./node_modules/lodash/_castFunction.js","webpack://mermaid/./node_modules/lodash/filter.js","webpack://mermaid/./node_modules/lodash/_baseIsEqual.js","webpack://mermaid/./node_modules/lodash/_equalArrays.js","webpack://mermaid/./node_modules/lodash/_SetCache.js","webpack://mermaid/./node_modules/lodash/_cacheHas.js","webpack://mermaid/./node_modules/lodash/_isStrictComparable.js","webpack://mermaid/./node_modules/lodash/_matchesStrictComparable.js","webpack://mermaid/./node_modules/lodash/toString.js","webpack://mermaid/./node_modules/lodash/hasIn.js","webpack://mermaid/./node_modules/lodash/_hasPath.js","webpack://mermaid/./node_modules/lodash/_baseProperty.js","webpack://mermaid/./node_modules/lodash/isUndefined.js","webpack://mermaid/./node_modules/lodash/map.js","webpack://mermaid/./node_modules/lodash/_baseMap.js","webpack://mermaid/./node_modules/lodash/reduce.js","webpack://mermaid/./node_modules/lodash/_overRest.js","webpack://mermaid/./node_modules/lodash/_setToString.js","webpack://mermaid/./node_modules/lodash/_baseFindIndex.js","webpack://mermaid/./node_modules/lodash/isArrayLikeObject.js","webpack://mermaid/./node_modules/lodash/values.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra.js","webpack://mermaid/./node_modules/graphlib/lib/data/priority-queue.js","webpack://mermaid/./node_modules/graphlib/lib/alg/tarjan.js","webpack://mermaid/./node_modules/graphlib/lib/alg/topsort.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dfs.js","webpack://mermaid/./node_modules/dagre-d3/lib/dagre.js","webpack://mermaid/./node_modules/lodash/defaults.js","webpack://mermaid/./node_modules/lodash/toFinite.js","webpack://mermaid/./node_modules/lodash/flatten.js","webpack://mermaid/./node_modules/lodash/_assignMergeValue.js","webpack://mermaid/./node_modules/lodash/isPlainObject.js","webpack://mermaid/./node_modules/lodash/_safeGet.js","webpack://mermaid/./node_modules/lodash/_baseLt.js","webpack://mermaid/./node_modules/lodash/pick.js","webpack://mermaid/./node_modules/lodash/range.js","webpack://mermaid/./node_modules/lodash/uniqueId.js","webpack://mermaid/./node_modules/dagre/lib/rank/feasible-tree.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-node.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-circle.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-polygon.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-rect.js","webpack://mermaid/./node_modules/stylis/stylis.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-node.js","webpack://mermaid/./node_modules/moment-mini/locale sync ^\\.\\/.*$","webpack://mermaid/./node_modules/khroma/dist/methods/index.js","webpack://mermaid/./node_modules/khroma/dist/utils/channel.js","webpack://mermaid/./node_modules/khroma/dist/utils/lang.js","webpack://mermaid/./node_modules/khroma/dist/utils/unit.js","webpack://mermaid/./node_modules/khroma/dist/channels/index.js","webpack://mermaid/./node_modules/khroma/dist/channels/type.js","webpack://mermaid/./node_modules/khroma/dist/consts.js","webpack://mermaid/./node_modules/khroma/dist/color/keyword.js","webpack://mermaid/./node_modules/khroma/dist/color/rgb.js","webpack://mermaid/./node_modules/khroma/dist/color/hsl.js","webpack://mermaid/./node_modules/khroma/dist/methods/red.js","webpack://mermaid/./node_modules/khroma/dist/methods/green.js","webpack://mermaid/./node_modules/khroma/dist/methods/blue.js","webpack://mermaid/./node_modules/khroma/dist/methods/hue.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturation.js","webpack://mermaid/./node_modules/khroma/dist/methods/lightness.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_dark.js","webpack://mermaid/./node_modules/khroma/dist/methods/is_valid.js","webpack://mermaid/./node_modules/khroma/dist/methods/saturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/desaturate.js","webpack://mermaid/./node_modules/khroma/dist/methods/lighten.js","webpack://mermaid/./node_modules/khroma/dist/methods/darken.js","webpack://mermaid/./node_modules/khroma/dist/methods/complement.js","webpack://mermaid/./node_modules/khroma/dist/methods/grayscale.js","webpack://mermaid/./node_modules/khroma/dist/methods/invert.js","webpack://mermaid/./node_modules/khroma/dist/methods/scale.js","webpack://mermaid/./node_modules/graphlib/lib/index.js","webpack://mermaid/./node_modules/lodash/clone.js","webpack://mermaid/./node_modules/lodash/_listCacheClear.js","webpack://mermaid/./node_modules/lodash/_listCacheDelete.js","webpack://mermaid/./node_modules/lodash/_listCacheGet.js","webpack://mermaid/./node_modules/lodash/_listCacheHas.js","webpack://mermaid/./node_modules/lodash/_listCacheSet.js","webpack://mermaid/./node_modules/lodash/_stackClear.js","webpack://mermaid/./node_modules/lodash/_stackDelete.js","webpack://mermaid/./node_modules/lodash/_stackGet.js","webpack://mermaid/./node_modules/lodash/_stackHas.js","webpack://mermaid/./node_modules/lodash/_stackSet.js","webpack://mermaid/./node_modules/lodash/_baseIsNative.js","webpack://mermaid/(webpack)/buildin/global.js","webpack://mermaid/./node_modules/lodash/_getRawTag.js","webpack://mermaid/./node_modules/lodash/_objectToString.js","webpack://mermaid/./node_modules/lodash/_isMasked.js","webpack://mermaid/./node_modules/lodash/_coreJsData.js","webpack://mermaid/./node_modules/lodash/_getValue.js","webpack://mermaid/./node_modules/lodash/_mapCacheClear.js","webpack://mermaid/./node_modules/lodash/_Hash.js","webpack://mermaid/./node_modules/lodash/_hashClear.js","webpack://mermaid/./node_modules/lodash/_hashDelete.js","webpack://mermaid/./node_modules/lodash/_hashGet.js","webpack://mermaid/./node_modules/lodash/_hashHas.js","webpack://mermaid/./node_modules/lodash/_hashSet.js","webpack://mermaid/./node_modules/lodash/_mapCacheDelete.js","webpack://mermaid/./node_modules/lodash/_isKeyable.js","webpack://mermaid/./node_modules/lodash/_mapCacheGet.js","webpack://mermaid/./node_modules/lodash/_mapCacheHas.js","webpack://mermaid/./node_modules/lodash/_mapCacheSet.js","webpack://mermaid/./node_modules/lodash/_baseAssign.js","webpack://mermaid/./node_modules/lodash/_baseTimes.js","webpack://mermaid/./node_modules/lodash/_baseIsArguments.js","webpack://mermaid/./node_modules/lodash/stubFalse.js","webpack://mermaid/./node_modules/lodash/_baseIsTypedArray.js","webpack://mermaid/./node_modules/lodash/_nativeKeys.js","webpack://mermaid/./node_modules/lodash/_baseAssignIn.js","webpack://mermaid/./node_modules/lodash/_baseKeysIn.js","webpack://mermaid/./node_modules/lodash/_nativeKeysIn.js","webpack://mermaid/./node_modules/lodash/_copySymbols.js","webpack://mermaid/./node_modules/lodash/_copySymbolsIn.js","webpack://mermaid/./node_modules/lodash/_getAllKeysIn.js","webpack://mermaid/./node_modules/lodash/_DataView.js","webpack://mermaid/./node_modules/lodash/_Promise.js","webpack://mermaid/./node_modules/lodash/_WeakMap.js","webpack://mermaid/./node_modules/lodash/_initCloneArray.js","webpack://mermaid/./node_modules/lodash/_initCloneByTag.js","webpack://mermaid/./node_modules/lodash/_cloneDataView.js","webpack://mermaid/./node_modules/lodash/_cloneRegExp.js","webpack://mermaid/./node_modules/lodash/_cloneSymbol.js","webpack://mermaid/./node_modules/lodash/isMap.js","webpack://mermaid/./node_modules/lodash/_baseIsMap.js","webpack://mermaid/./node_modules/lodash/isSet.js","webpack://mermaid/./node_modules/lodash/_baseIsSet.js","webpack://mermaid/./node_modules/lodash/_createBaseFor.js","webpack://mermaid/./node_modules/lodash/_createBaseEach.js","webpack://mermaid/./node_modules/lodash/_baseFilter.js","webpack://mermaid/./node_modules/lodash/_baseMatches.js","webpack://mermaid/./node_modules/lodash/_baseIsMatch.js","webpack://mermaid/./node_modules/lodash/_baseIsEqualDeep.js","webpack://mermaid/./node_modules/lodash/_setCacheAdd.js","webpack://mermaid/./node_modules/lodash/_setCacheHas.js","webpack://mermaid/./node_modules/lodash/_arraySome.js","webpack://mermaid/./node_modules/lodash/_equalByTag.js","webpack://mermaid/./node_modules/lodash/_mapToArray.js","webpack://mermaid/./node_modules/lodash/_equalObjects.js","webpack://mermaid/./node_modules/lodash/_getMatchData.js","webpack://mermaid/./node_modules/lodash/_baseMatchesProperty.js","webpack://mermaid/./node_modules/lodash/get.js","webpack://mermaid/./node_modules/lodash/_stringToPath.js","webpack://mermaid/./node_modules/lodash/_memoizeCapped.js","webpack://mermaid/./node_modules/lodash/memoize.js","webpack://mermaid/./node_modules/lodash/_baseToString.js","webpack://mermaid/./node_modules/lodash/_baseHasIn.js","webpack://mermaid/./node_modules/lodash/property.js","webpack://mermaid/./node_modules/lodash/_basePropertyDeep.js","webpack://mermaid/./node_modules/lodash/_baseHas.js","webpack://mermaid/./node_modules/lodash/isEmpty.js","webpack://mermaid/./node_modules/lodash/_arrayReduce.js","webpack://mermaid/./node_modules/lodash/_baseReduce.js","webpack://mermaid/./node_modules/lodash/size.js","webpack://mermaid/./node_modules/lodash/isString.js","webpack://mermaid/./node_modules/lodash/_stringSize.js","webpack://mermaid/./node_modules/lodash/_asciiSize.js","webpack://mermaid/./node_modules/lodash/_hasUnicode.js","webpack://mermaid/./node_modules/lodash/_unicodeSize.js","webpack://mermaid/./node_modules/lodash/transform.js","webpack://mermaid/./node_modules/lodash/union.js","webpack://mermaid/./node_modules/lodash/_isFlattenable.js","webpack://mermaid/./node_modules/lodash/_apply.js","webpack://mermaid/./node_modules/lodash/_baseSetToString.js","webpack://mermaid/./node_modules/lodash/_shortOut.js","webpack://mermaid/./node_modules/lodash/_baseUniq.js","webpack://mermaid/./node_modules/lodash/_arrayIncludes.js","webpack://mermaid/./node_modules/lodash/_baseIndexOf.js","webpack://mermaid/./node_modules/lodash/_baseIsNaN.js","webpack://mermaid/./node_modules/lodash/_strictIndexOf.js","webpack://mermaid/./node_modules/lodash/_arrayIncludesWith.js","webpack://mermaid/./node_modules/lodash/_createSet.js","webpack://mermaid/./node_modules/lodash/noop.js","webpack://mermaid/./node_modules/lodash/_baseValues.js","webpack://mermaid/./node_modules/graphlib/lib/version.js","webpack://mermaid/./node_modules/graphlib/lib/json.js","webpack://mermaid/./node_modules/graphlib/lib/alg/index.js","webpack://mermaid/./node_modules/graphlib/lib/alg/components.js","webpack://mermaid/./node_modules/graphlib/lib/alg/dijkstra-all.js","webpack://mermaid/./node_modules/graphlib/lib/alg/find-cycles.js","webpack://mermaid/./node_modules/graphlib/lib/alg/floyd-warshall.js","webpack://mermaid/./node_modules/graphlib/lib/alg/is-acyclic.js","webpack://mermaid/./node_modules/graphlib/lib/alg/postorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/preorder.js","webpack://mermaid/./node_modules/graphlib/lib/alg/prim.js","webpack://mermaid/./node_modules/dagre-d3/lib/graphlib.js","webpack://mermaid/./node_modules/dagre/lib/layout.js","webpack://mermaid/./node_modules/lodash/cloneDeep.js","webpack://mermaid/./node_modules/lodash/find.js","webpack://mermaid/./node_modules/lodash/_createFind.js","webpack://mermaid/./node_modules/lodash/findIndex.js","webpack://mermaid/./node_modules/lodash/toInteger.js","webpack://mermaid/./node_modules/lodash/toNumber.js","webpack://mermaid/./node_modules/lodash/forIn.js","webpack://mermaid/./node_modules/lodash/last.js","webpack://mermaid/./node_modules/lodash/mapValues.js","webpack://mermaid/./node_modules/lodash/max.js","webpack://mermaid/./node_modules/lodash/_baseGt.js","webpack://mermaid/./node_modules/lodash/merge.js","webpack://mermaid/./node_modules/lodash/_baseMerge.js","webpack://mermaid/./node_modules/lodash/_baseMergeDeep.js","webpack://mermaid/./node_modules/lodash/toPlainObject.js","webpack://mermaid/./node_modules/lodash/_createAssigner.js","webpack://mermaid/./node_modules/lodash/min.js","webpack://mermaid/./node_modules/lodash/minBy.js","webpack://mermaid/./node_modules/lodash/now.js","webpack://mermaid/./node_modules/lodash/_basePick.js","webpack://mermaid/./node_modules/lodash/_basePickBy.js","webpack://mermaid/./node_modules/lodash/_baseSet.js","webpack://mermaid/./node_modules/lodash/_flatRest.js","webpack://mermaid/./node_modules/lodash/_createRange.js","webpack://mermaid/./node_modules/lodash/_baseRange.js","webpack://mermaid/./node_modules/lodash/sortBy.js","webpack://mermaid/./node_modules/lodash/_baseOrderBy.js","webpack://mermaid/./node_modules/lodash/_baseSortBy.js","webpack://mermaid/./node_modules/lodash/_compareMultiple.js","webpack://mermaid/./node_modules/lodash/_compareAscending.js","webpack://mermaid/./node_modules/lodash/zipObject.js","webpack://mermaid/./node_modules/lodash/_baseZipObject.js","webpack://mermaid/./node_modules/dagre/lib/acyclic.js","webpack://mermaid/./node_modules/dagre/lib/greedy-fas.js","webpack://mermaid/./node_modules/dagre/lib/data/list.js","webpack://mermaid/./node_modules/dagre/lib/normalize.js","webpack://mermaid/./node_modules/dagre/lib/rank/index.js","webpack://mermaid/./node_modules/dagre/lib/rank/network-simplex.js","webpack://mermaid/./node_modules/dagre/lib/parent-dummy-chains.js","webpack://mermaid/./node_modules/dagre/lib/nesting-graph.js","webpack://mermaid/./node_modules/dagre/lib/add-border-segments.js","webpack://mermaid/./node_modules/dagre/lib/coordinate-system.js","webpack://mermaid/./node_modules/dagre/lib/order/index.js","webpack://mermaid/./node_modules/dagre/lib/order/init-order.js","webpack://mermaid/./node_modules/dagre/lib/order/cross-count.js","webpack://mermaid/./node_modules/dagre/lib/order/sort-subgraph.js","webpack://mermaid/./node_modules/dagre/lib/order/barycenter.js","webpack://mermaid/./node_modules/dagre/lib/order/resolve-conflicts.js","webpack://mermaid/./node_modules/dagre/lib/order/sort.js","webpack://mermaid/./node_modules/dagre/lib/order/build-layer-graph.js","webpack://mermaid/./node_modules/dagre/lib/order/add-subgraph-constraints.js","webpack://mermaid/./node_modules/dagre/lib/position/index.js","webpack://mermaid/./node_modules/dagre/lib/position/bk.js","webpack://mermaid/./node_modules/dagre/lib/debug.js","webpack://mermaid/./node_modules/dagre/lib/version.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/index.js","webpack://mermaid/./node_modules/dagre-d3/lib/intersect/intersect-line.js","webpack://mermaid/./node_modules/dagre-d3/lib/render.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-text-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/label/add-svg-label.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/create-edge-paths.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-nodes.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-edge-labels.js","webpack://mermaid/./node_modules/dagre-d3/lib/position-clusters.js","webpack://mermaid/./node_modules/dagre-d3/lib/shapes.js","webpack://mermaid/./node_modules/dagre-d3/lib/arrows.js","webpack://mermaid/./node_modules/dagre-d3/lib/version.js","webpack://mermaid/./node_modules/entity-decode/browser.js","webpack://mermaid/./src/logger.js","webpack://mermaid/./src/diagrams/common/common.js","webpack://mermaid/./src/utils.js","webpack://mermaid/./src/themes/theme-base.js","webpack://mermaid/./src/themes/theme-dark.js","webpack://mermaid/./src/themes/theme-default.js","webpack://mermaid/./src/themes/theme-forest.js","webpack://mermaid/./src/themes/theme-neutral.js","webpack://mermaid/./src/themes/index.js","webpack://mermaid/./src/defaultConfig.js","webpack://mermaid/./src/config.js","webpack://mermaid/./src/diagrams/flowchart/flowDb.js","webpack://mermaid/./src/diagrams/flowchart/flowChartShapes.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer.js","webpack://mermaid/./src/dagre-wrapper/markers.js","webpack://mermaid/./src/dagre-wrapper/createLabel.js","webpack://mermaid/./src/dagre-wrapper/shapes/util.js","webpack://mermaid/./src/dagre-wrapper/mermaid-graphlib.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-ellipse.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-circle.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-line.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-polygon.js","webpack://mermaid/./src/dagre-wrapper/intersect/intersect-rect.js","webpack://mermaid/./src/dagre-wrapper/intersect/index.js","webpack://mermaid/./src/dagre-wrapper/nodes.js","webpack://mermaid/./src/dagre-wrapper/shapes/note.js","webpack://mermaid/./src/dagre-wrapper/clusters.js","webpack://mermaid/./src/dagre-wrapper/edges.js","webpack://mermaid/./src/dagre-wrapper/index.js","webpack://mermaid/./src/diagrams/flowchart/flowRenderer-v2.js","webpack://mermaid/./src/diagrams/sequence/svgDraw.js","webpack://mermaid/./src/diagrams/sequence/sequenceDb.js","webpack://mermaid/./src/diagrams/sequence/sequenceRenderer.js","webpack://mermaid/./src/diagrams/gantt/ganttDb.js","webpack://mermaid/./src/diagrams/gantt/ganttRenderer.js","webpack://mermaid/./src/diagrams/class/classDb.js","webpack://mermaid/./src/diagrams/class/svgDraw.js","webpack://mermaid/./src/diagrams/class/classRenderer.js","webpack://mermaid/./src/diagrams/class/classRenderer-v2.js","webpack://mermaid/./src/diagrams/state/stateDb.js","webpack://mermaid/./src/diagrams/state/stateRenderer.js","webpack://mermaid/./src/diagrams/state/id-cache.js","webpack://mermaid/./src/diagrams/state/shapes.js","webpack://mermaid/./src/diagrams/state/stateRenderer-v2.js","webpack://mermaid/./src/diagrams/git/gitGraphAst.js","webpack://mermaid/./src/diagrams/git/gitGraphRenderer.js","webpack://mermaid/./src/diagrams/pie/pieRenderer.js","webpack://mermaid/./src/diagrams/info/infoDb.js","webpack://mermaid/./src/diagrams/info/infoRenderer.js","webpack://mermaid/./src/errorRenderer.js","webpack://mermaid/./src/diagrams/pie/pieDb.js","webpack://mermaid/./src/diagrams/er/erDb.js","webpack://mermaid/./src/diagrams/er/erMarkers.js","webpack://mermaid/./src/diagrams/er/erRenderer.js","webpack://mermaid/./src/diagrams/user-journey/journeyDb.js","webpack://mermaid/./src/diagrams/user-journey/svgDraw.js","webpack://mermaid/./src/diagrams/user-journey/journeyRenderer.js","webpack://mermaid/./src/diagrams/class/styles.js","webpack://mermaid/./src/diagrams/flowchart/styles.js","webpack://mermaid/./src/diagrams/state/styles.js","webpack://mermaid/./src/styles.js","webpack://mermaid/./src/diagrams/sequence/styles.js","webpack://mermaid/./src/diagrams/gantt/styles.js","webpack://mermaid/./src/diagrams/git/styles.js","webpack://mermaid/./src/diagrams/info/styles.js","webpack://mermaid/./src/diagrams/pie/styles.js","webpack://mermaid/./src/diagrams/er/styles.js","webpack://mermaid/./src/diagrams/user-journey/styles.js","webpack://mermaid/./src/mermaidAPI.js","webpack://mermaid/./src/mermaid.js"],"names":["root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","a","b","NaN","f","compare","length","x","ascending","left","lo","hi","mid","right","ascendingBisect","bisector","bisectRight","bisectLeft","bisect","pair","array","pairs","Array","i0","i1","value0","n0","values0","n1","values1","values","reduce","delta","mean","sum","valueof","isNaN","number","v","variance","Math","sqrt","min","max","slice","map","start","stop","step","arguments","ceil","range","e10","e5","e2","reverse","ticks","count","tickIncrement","isFinite","floor","power","log","LN10","error","pow","tickStep","step0","abs","step1","LN2","identity","domain","threshold","sturges","histogram","data","xz","x0","x1","tz","isArray","shift","pop","bin","bins","push","_","constant","thresholds","sort","quantile","deviation","numbers","merged","arrays","j","indexes","permutes","xi","xj","random","matrix","transpose","row","translateX","translateY","y","scale","offset","bandwidth","round","entering","__axis","orient","tickArguments","tickValues","tickFormat","tickSizeInner","tickSizeOuter","tickPadding","k","transform","axis","context","apply","format","spacing","range0","range1","position","copy","selection","path","selectAll","tick","order","tickExit","exit","tickEnter","enter","append","attr","line","select","text","merge","insert","transition","getAttribute","parentNode","remove","filter","each","tickSize","axisTop","axisRight","axisBottom","axisLeft","noop","dispatch","test","Error","Dispatch","parseTypenames","typenames","types","trim","split","indexOf","type","set","callback","concat","constructor","on","typename","T","that","args","none","selector","querySelector","querySelectorAll","matches","update","EnterNode","parent","datum","ownerDocument","namespaceURI","_next","_parent","__data__","appendChild","child","insertBefore","next","bindIndex","group","node","groupLength","dataLength","bindKey","keyValue","nodeByKeyValue","keyValues","xhtml","svg","xlink","xml","xmlns","prefix","namespaces","space","local","attrRemove","removeAttribute","attrRemoveNS","fullname","removeAttributeNS","attrConstant","setAttribute","attrConstantNS","setAttributeNS","attrFunction","attrFunctionNS","defaultView","document","styleRemove","style","removeProperty","styleConstant","priority","setProperty","styleFunction","styleValue","getPropertyValue","getComputedStyle","propertyRemove","propertyConstant","propertyFunction","classArray","string","classList","ClassList","_node","_names","classedAdd","names","list","add","classedRemove","classedTrue","classedFalse","classedFunction","join","splice","contains","textRemove","textContent","textConstant","textFunction","htmlRemove","innerHTML","htmlConstant","htmlFunction","raise","nextSibling","lower","previousSibling","firstChild","creatorInherit","uri","documentElement","createElement","createElementNS","creatorFixed","namespace","constantNull","removeChild","selection_cloneShallow","clone","cloneNode","selection_cloneDeep","filterEvents","mouseenter","mouseleave","filterContextListener","listener","index","contextListener","event","related","relatedTarget","compareDocumentPosition","event1","event0","onRemove","__on","removeEventListener","capture","onAdd","wrap","addEventListener","customEvent","sourceEvent","dispatchEvent","params","window","CustomEvent","createEvent","initEvent","bubbles","cancelable","detail","dispatchConstant","dispatchFunction","Selection","groups","parents","_groups","_parents","subgroups","subnode","subgroup","selectorAll","match","matcher","size","enterGroup","updateGroup","previous","_enter","_exit","sparse","onenter","onupdate","onexit","groups0","groups1","m0","m1","merges","group0","group1","compareNode","sortgroups","sortgroup","nodes","empty","getAttributeNS","classed","html","creator","before","deep","nopropagation","stopImmediatePropagation","preventDefault","view","noevent","__noselect","MozUserSelect","yesdrag","noclick","setTimeout","extend","definition","Color","reI","reN","reP","reHex","reRgbInteger","RegExp","reRgbPercent","reRgbaInteger","reRgbaPercent","reHslPercent","reHslaPercent","named","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","color_formatHex","rgb","formatHex","color_formatRgb","formatRgb","toLowerCase","exec","parseInt","rgbn","Rgb","rgba","hsla","g","rgbConvert","opacity","rgb_formatHex","hex","rgb_formatRgb","toString","h","Hsl","hslConvert","hsl","hsl2rgb","m2","basis","t1","v0","v1","v2","v3","t2","t3","channels","assign","displayable","formatHsl","brighter","darker","linear","gamma","nogamma","exponential","color","end","rgbGamma","rgbSpline","spline","colors","rgbBasis","rgbBasisClosed","basisClosed","isNumberArray","ArrayBuffer","isView","DataView","numberArray","genericArray","nb","na","Date","setTime","reA","reB","source","taskHead","taskTail","am","bm","bs","bi","lastIndex","q","one","valueOf","current","ownerSVGElement","createSVGPoint","point","clientX","clientY","matrixTransform","getScreenCTM","inverse","rect","getBoundingClientRect","clientLeft","top","clientTop","identifier","touches","changedTouches","touch","timeout","clockLast","clockNow","clockSkew","clock","performance","now","setFrame","requestAnimationFrame","clearNow","Timer","_call","_time","timer","delay","time","restart","timerFlush","e","wake","t0","Infinity","sleep","nap","poke","clearTimeout","clearInterval","setInterval","TypeError","elapsed","emptyOn","emptyTween","schedules","__transition","id","tween","state","duration","ease","timing","schedule","cssNode","cssRoot","cssView","svgNode","active","degrees","PI","rotate","skewX","scaleX","scaleY","atan2","atan","interpolateTransform","parse","pxComma","pxParen","degParen","xa","ya","xb","yb","translate","interpolateTransformCss","decompose","interpolateTransformSvg","baseVal","consolidate","tweenRemove","tween0","tween1","tweenFunction","tweenValue","_id","interpolate","value1","string00","interpolate0","string1","string0","string10","attrInterpolate","attrInterpolateNS","attrTweenNS","_value","attrTween","delayFunction","delayConstant","durationFunction","durationConstant","easeConstant","onFunction","on0","on1","sit","every","styleInterpolate","styleTween","textInterpolate","textTween","Transition","_name","newId","selection_prototype","cubicIn","cubicOut","cubicInOut","children","inherit","id0","id1","styleNull","listener0","undefined","styleMaybeRemove","Promise","resolve","reject","cancel","interrupt","defaultTiming","target","MODE_DRAG","MODE_SPACE","MODE_HANDLE","MODE_CENTER","number1","number2","toucher","handles","input","output","xy","XY","cursors","overlay","w","nw","ne","se","sw","flipX","flipY","signsX","signsY","defaultFilter","ctrlKey","button","defaultExtent","hasAttribute","viewBox","width","height","defaultTouchable","navigator","maxTouchPoints","__brush","extent","brushSelection","dim","brushX","brushY","touchending","touchable","keys","listeners","handleSize","brush","initialize","handle","redraw","started","touchmoved","touchended","emitter","clean","Emitter","w0","w1","e0","e1","s0","s1","moving","lockX","lockY","metaKey","altKey","signX","signY","W","N","E","S","dx","dy","shifting","shiftKey","pointer","mouse","point0","emit","beforestart","moved","ended","keydowned","keyupped","point1","move","keyCode","selection0","selection1","clear","starting","keyModifiers","cos","sin","pi","halfPi","tau","compareValue","padAngle","sortGroups","sortSubgroups","sortChords","chord","groupSums","groupIndex","subgroupIndex","chords","forEach","di","dj","a0","a1","subindex","startAngle","endAngle","tauEpsilon","Path","_x0","_y0","_x1","_y1","moveTo","closePath","lineTo","quadraticCurveTo","y1","bezierCurveTo","x2","y2","arcTo","y0","x21","y21","x01","y01","l01_2","x20","y20","l21_2","l20_2","l21","l01","acos","t01","t21","arc","ccw","cw","da","defaultSource","defaultTarget","defaultRadius","radius","defaultStartAngle","defaultEndAngle","ribbon","buffer","argv","sr","sa0","sa1","sx0","sy0","tr","ta0","ta1","Map","has","entries","sortValues","rollup","nest","sortKeys","depth","createResult","setResult","valuesByKey","result","createObject","setObject","createMap","setMap","sortKey","Set","proto","deg2rad","rad2deg","labConvert","Lab","Hcl","hcl2lab","z","rgb2lrgb","xyz2lab","lab","lab2xyz","lrgb2rgb","hclConvert","lch","hcl","C","ED","EB","BC_DA","cubehelixConvert","Cubehelix","bl","cosh","sinh","hole","ringContains","ring","yi","pj","yj","segmentContains","collinear","cases","smooth","smoothLinear","contours","contour","polygons","holes","fragmentByStart","fragmentByEnd","stitch","startIndex","endIndex","unshift","isorings","area","polygon","coordinates","xt","yt","_0","_1","blurX","blurY","defaultX","defaultY","defaultWeight","weight","density","Float32Array","wi","geometry","transformPolygon","transformRing","transformPoint","resize","cellSize","DragEvent","subject","defaultContainer","defaultSubject","mousedownx","mousedowny","mousemoving","container","gestures","clickDistance2","drag","mousedowned","touchstarted","gesture","mousemoved","mouseupped","nodrag","sublisteners","p0","clickDistance","EOL","EOF","objectConverter","columns","Function","JSON","stringify","inferColumns","rows","columnSet","column","pad","formatDate","date","year","hours","getUTCHours","minutes","getUTCMinutes","seconds","getUTCSeconds","milliseconds","getUTCMilliseconds","getUTCFullYear","getUTCMonth","getUTCDate","reFormat","delimiter","DELIMITER","charCodeAt","parseRows","I","eof","eol","token","replace","preformatBody","formatValue","formatRow","convert","customConverter","formatBody","formatRows","csv","dsv","csvParse","csvParseRows","csvFormat","csvFormatBody","csvFormatRows","csvFormatRow","csvFormatValue","tsv","tsvParse","tsvParseRows","tsvFormat","tsvFormatBody","tsvFormatRows","tsvFormatRow","tsvFormatValue","autoType","fixtz","getHours","quadIn","quadOut","quadInOut","polyIn","custom","exponent","polyOut","polyInOut","sinIn","sinOut","sinInOut","expIn","expOut","expInOut","circleIn","circleOut","circleInOut","bounceIn","bounceOut","bounceInOut","backIn","overshoot","backOut","backInOut","elasticIn","asin","amplitude","period","elasticOut","elasticInOut","responseBlob","response","ok","status","statusText","blob","fetch","init","then","responseArrayBuffer","arrayBuffer","responseText","dsvParse","image","Image","onerror","onload","src","responseJson","json","parser","DOMParser","parseFromString","force","sx","sy","tree","xm","ym","xp","yp","bottom","_root","leaf","_x","_y","quadtree","Quadtree","addAll","leaf_copy","treeProto","vx","vy","cover","yz","visit","find","x3","y3","quads","d2","retainer","removeAll","visitAfter","radii","strength","iterations","ri","ri2","prepare","quad","rj","jiggle","nodeById","nodeId","strengths","distances","bias","link","distance","alpha","links","initializeStrength","initializeDistance","initialAngle","simulation","alphaMin","alphaDecay","alphaTarget","velocityDecay","forces","stepper","fx","fy","initializeNodes","angle","initializeForce","closest","distanceMin2","distanceMax2","theta2","accumulate","distanceMin","distanceMax","theta","radiuses","toExponential","coefficient","formatDecimal","re","formatSpecifier","specifier","FormatSpecifier","fill","align","sign","symbol","zero","comma","precision","prefixExponent","toFixed","toPrecision","formatRounded","toUpperCase","prefixes","locale","grouping","thousands","Number","substring","currencyPrefix","currency","currencySuffix","decimal","numerals","formatNumerals","String","percent","minus","nan","newFormat","formatTypes","suffix","formatType","maybeSuffix","valuePrefix","valueSuffix","valueNegative","out","formatTrim","padding","formatPrefix","defaultLocale","Adder","reset","temp","adder","bv","av","quarterPi","radians","exp","haversin","streamGeometry","stream","streamGeometryType","streamObjectType","Feature","FeatureCollection","features","Sphere","sphere","Point","MultiPoint","LineString","streamLine","MultiLineString","Polygon","streamPolygon","MultiPolygon","GeometryCollection","geometries","closed","coordinate","lineStart","lineEnd","polygonStart","polygonEnd","phi00","areaRingSum","areaSum","areaStream","areaRingStart","areaRingEnd","areaRing","areaPointFirst","areaPoint","lambda","phi","dLambda","sdLambda","adLambda","cosPhi","sinPhi","u","cartesian","spherical","cartesianDot","cartesianCross","cartesianAddInPlace","cartesianScale","vector","cartesianNormalizeInPlace","ranges","deltaSum","boundsStream","boundsPoint","boundsLineStart","boundsLineEnd","boundsRingPoint","boundsRingStart","boundsRingEnd","normal","inflection","phii","lambdai","antimeridian","lambda0","lambda1","rangeCompare","rangeContains","W0","W1","Z0","Z1","X2","Y2","Z2","z0","deltaMax","feature","centroidStream","centroidPoint","centroidLineStart","centroidLineEnd","centroidRingStart","centroidRingEnd","centroidPointCartesian","centroidLinePointFirst","centroidLinePoint","centroidRingPointFirst","centroidRingPoint","cx","cy","cz","compose","invert","rotationIdentity","rotateRadians","deltaLambda","deltaPhi","deltaGamma","rotationLambda","rotationPhiGamma","forwardRotationLambda","rotation","cosDeltaPhi","sinDeltaPhi","cosDeltaGamma","sinDeltaGamma","forward","circleStream","direction","cosRadius","sinRadius","circleRadius","center","circle","lines","rejoin","Intersection","points","other","entry","clip","segments","segment","p1","pointEqual","compareIntersection","startInside","isSubject","longitude","winding","phi0","sinPhi0","cosPhi0","sinPhi1","cosPhi1","phi1","absDelta","intersection","phiArc","sink","clipLine","ringBuffer","ringSink","polygonStarted","pointRing","ringStart","ringEnd","polygonContains","pointVisible","pointLine","ringSegments","validSegment","sign0","sign1","sinLambda0Lambda1","clipAntimeridianIntersect","from","to","cr","smallRadius","notHemisphere","visible","intersect","two","n2","n2n2","n1n2","determinant","c1","c2","n1xn2","A","uu","polar","q1","code","c0","v00","point2","clipRectangle","corner","comparePoint","ca","cb","x__","y__","v__","x_","y_","v_","first","activeStream","bufferStream","clipStream","linePoint","b0","b1","polygonInside","cleanInside","ax","ay","cache","cacheStream","lengthSum","lengthStream","lengthPointFirst","lengthLineEnd","lengthPoint","cosDelta","containsObjectType","containsGeometry","containsGeometryType","containsPoint","containsLine","containsPolygon","ao","bo","ab","ringRadians","pointRadians","graticuleX","graticuleY","X1","X0","Y1","Y0","X","Y","DX","DY","graticule","outline","extentMajor","extentMinor","stepMajor","stepMinor","graticule10","cy0","cy1","sy1","kx0","ky0","kx1","ky1","B","bounds","centroid","centroidPointFirstLine","centroidPointLine","centroidPointFirstRing","centroidPointRing","PathContext","_context","_radius","pointRadius","_line","_point","lengthRing","PathString","_string","_circle","projectionStream","contextStream","measure","projection","transformer","methods","TransformStream","fit","fitBounds","clipExtent","fitExtent","fitSize","fitWidth","fitHeight","cosMinDistance","delta2","project","resampleLineTo","phi2","lambda2","dx2","dy2","dz","lambda00","x00","y00","a00","b00","c00","resampleStream","ringPoint","resampleNone","transformRadians","scaleTranslate","scaleTranslateRotate","cosAlpha","sinAlpha","ai","ci","fi","projectionMutator","projectAt","projectResample","projectTransform","projectRotateTransform","preclip","postclip","recenter","resample","transformRotate","clipAngle","conicProjection","parallels","conicEqualAreaRaw","cylindricalEqualAreaRaw","r0","r0y","conicEqualArea","lower48Point","alaskaPoint","hawaiiPoint","lower48","albers","alaska","hawaii","pointStream","albersUsa","streams","azimuthalRaw","azimuthalInvert","sc","cc","azimuthalEqualAreaRaw","cxcy","azimuthalEquidistantRaw","mercatorRaw","mercatorProjection","reclip","tany","conicConformalRaw","equirectangularRaw","conicEquidistantRaw","gy","nx","A1","A2","A3","A4","M","equalEarthRaw","l2","l6","gnomonicRaw","kx","ky","tx","ty","reflectX","reflectY","naturalEarth1Raw","phi4","orthographicRaw","stereographicRaw","transverseMercatorRaw","defaultSeparation","meanXReduce","maxYReduce","separation","nodeSize","cluster","previousNode","eachAfter","meanX","maxY","leafLeft","leafRight","hierarchy","childs","Node","valued","defaultChildren","eachBefore","computeHeight","copyData","ancestor","aNodes","ancestors","bNodes","leastCommonAncestor","descendants","leaves","circles","enclosesWeak","encloseBasis","extendBasis","enclosesWeakAll","enclosesNot","encloseBasis2","encloseBasis3","dr","r1","r2","r21","r3","a2","a3","b2","b3","c3","d1","d3","place","intersects","score","packEnclose","aa","sj","sk","pack","enclose","optional","required","constantZero","radiusLeaf","packChildren","translateChild","partition","positionNode","preroot","ambiguous","defaultId","defaultParentId","parentId","stratify","nodeKey","nodeByKey","nextLeft","nextRight","moveSubtree","wm","wp","change","nextAncestor","vim","TreeNode","treeRoot","firstWalk","secondWalk","sizeNode","siblings","executeShifts","midpoint","vip","vop","vom","sip","sop","sim","som","apportion","squarifyRatio","ratio","nodeValue","sumValue","minValue","maxValue","newRatio","minRatio","beta","dice","squarify","tile","paddingStack","paddingInner","paddingTop","paddingRight","paddingBottom","paddingLeft","treemap","paddingOuter","sums","valueOffset","valueTarget","valueLeft","valueRight","xk","yk","resquarify","_squarify","rho","SQRT2","ux0","uy0","ux1","uy1","coshr0","hue","hslLong","hclLong","cubehelixGamma","cubehelix","cubehelixLong","samples","interpolator","lexicographicOrder","computeUpperHullIndexes","sortedPoints","flippedPoints","upperIndexes","lowerIndexes","skipLeft","skipRight","hull","inside","perimeter","randomUniform","sourceRandomUniform","randomNormal","mu","sigma","sourceRandomNormal","randomLogNormal","sourceRandomLogNormal","randomIrwinHall","sourceRandomIrwinHall","randomBates","irwinHall","sourceRandomBates","randomExponential","sourceRandomExponential","initRange","initInterpolator","implicit","ordinal","unknown","band","ordinalRange","rescale","rangeRound","pointish","unit","normalize","clamper","bimap","d0","polymap","clamp","untransform","piecewise","continuous","precisionPrefix","precisionRound","precisionFixed","linearish","nice","interval","transformLog","transformExp","transformLogn","transformExpn","pow10","reflect","loggish","logs","pows","base","log10","log2","logp","powp","transformSymlog","log1p","transformSymexp","expm1","symlogish","symlog","transformPow","transformSqrt","transformSquare","powish","invertExtent","quantiles","newInterval","floori","offseti","field","setMonth","setHours","setFullYear","getFullYear","years","setDate","getMonth","months","weekday","getDate","getDay","getTimezoneOffset","sunday","monday","tuesday","wednesday","thursday","friday","saturday","sundays","mondays","tuesdays","wednesdays","thursdays","fridays","saturdays","days","getMilliseconds","getSeconds","getMinutes","utcWeekday","setUTCDate","getUTCDay","setUTCHours","utcSunday","utcMonday","utcTuesday","utcWednesday","utcThursday","utcFriday","utcSaturday","utcSundays","utcMondays","utcTuesdays","utcWednesdays","utcThursdays","utcFridays","utcSaturdays","utcDay","utcDays","utcYear","setUTCMonth","setUTCFullYear","utcYears","localDate","H","L","utcDate","UTC","newDate","formatLocale","locale_dateTime","dateTime","locale_date","locale_time","locale_periods","periods","locale_weekdays","locale_shortWeekdays","shortDays","locale_months","locale_shortMonths","shortMonths","periodRe","formatRe","periodLookup","formatLookup","weekdayRe","weekdayLookup","shortWeekdayRe","shortWeekdayLookup","monthRe","monthLookup","shortMonthRe","shortMonthLookup","formats","formatDayOfMonth","formatMicroseconds","formatHour24","formatHour12","formatDayOfYear","formatMilliseconds","formatMonthNumber","formatMinutes","formatUnixTimestamp","formatUnixTimestampSeconds","formatSeconds","formatWeekdayNumberMonday","formatWeekNumberSunday","formatWeekNumberISO","formatWeekdayNumberSunday","formatWeekNumberMonday","formatFullYear","formatZone","formatLiteralPercent","utcFormats","formatUTCDayOfMonth","formatUTCMicroseconds","formatUTCHour24","formatUTCHour12","formatUTCDayOfYear","formatUTCMilliseconds","formatUTCMonthNumber","formatUTCMinutes","formatUTCSeconds","formatUTCWeekdayNumberMonday","formatUTCWeekNumberSunday","formatUTCWeekNumberISO","formatUTCWeekdayNumberSunday","formatUTCWeekNumberMonday","formatUTCYear","formatUTCFullYear","formatUTCZone","parses","parseSpecifier","parseDayOfMonth","parseMicroseconds","parseHour24","parseDayOfYear","parseMilliseconds","parseMonthNumber","parseMinutes","parseQuarter","parseUnixTimestamp","parseUnixTimestampSeconds","parseSeconds","parseWeekdayNumberMonday","parseWeekNumberSunday","parseWeekNumberISO","parseWeekdayNumberSunday","parseWeekNumberMonday","parseYear","parseFullYear","parseZone","parseLiteralPercent","pads","charAt","newParse","Z","week","day","Q","V","U","utcFormat","utcParse","timeFormat","timeParse","numberRe","percentRe","requoteRe","requote","dow","calendar","month","hour","minute","second","millisecond","formatMillisecond","formatSecond","formatMinute","formatHour","formatDay","formatWeek","formatMonth","formatYear","tickIntervals","tickInterval","utcMonth","utcMonths","utcHour","setUTCMinutes","utcHours","utcMinute","setUTCSeconds","utcMinutes","k10","sequential","sequentialLog","sequentialSymlog","sequentialPow","sequentialSqrt","sequentialQuantile","k21","diverging","divergingLog","divergingSymlog","divergingPow","divergingSqrt","scheme","ramp","warm","cool","ts","pi_1_3","pi_2_3","magma","inferno","plasma","nextId","Local","arcInnerRadius","innerRadius","arcOuterRadius","outerRadius","arcStartAngle","arcEndAngle","arcPadAngle","x10","y10","x32","y32","cornerTangents","rc","ox","oy","x11","y11","D","cx0","cx1","dx0","dy0","dx1","dy1","cornerRadius","padRadius","a01","a11","a10","da0","da1","ap","rp","rc0","rc1","oc","bx","by","kc","lc","Linear","areaStart","areaEnd","defined","curve","defined0","x0z","y0z","arealine","lineX0","lineY0","lineY1","lineX1","pie","arcs","pa","curveRadialLinear","curveRadial","Radial","_curve","radial","lineRadial","lineStartAngle","lineEndAngle","lineInnerRadius","lineOuterRadius","linkSource","linkTarget","curveHorizontal","curveVertical","pointRadial","p2","p3","linkHorizontal","linkVertical","linkRadial","draw","tan30","tan30_2","kr","sqrt3","symbols","diamond","square","star","triangle","wye","Basis","BasisClosed","_x2","_x3","_x4","_y2","_y3","_y4","BasisOpen","Bundle","_basis","_beta","bundle","_k","Cardinal","tension","cardinal","CardinalClosed","_x5","_y5","CardinalOpen","_l01_a","_l01_2a","_l12_a","_l12_2a","_l23_a","_l23_2a","CatmullRom","_alpha","x23","y23","catmullRom","CatmullRomClosed","CatmullRomOpen","LinearClosed","slope3","h0","h1","slope2","MonotoneX","MonotoneY","ReflectContext","monotoneX","monotoneY","Natural","controlPoints","_t0","px","py","Step","_t","stepBefore","stepAfter","series","stackValue","stack","oz","kz","sz","sij","ki","si","yn","s2","sij0","s3","peaks","peak","vi","vj","appearance","tops","bottoms","toISOString","total","RedBlackTree","RedBlackNode","R","P","RedBlackRotateLeft","RedBlackRotateRight","RedBlackFirst","after","grandpa","uncle","sibling","createEdge","edge","setEdgeEnd","cells","halfedges","createBorderEdge","vertex","clipEdge","connectEdge","fm","fb","lx","ly","rx","ry","cellHalfedgeAngle","cell","site","va","vb","cellHalfedgeStart","cellHalfedgeEnd","firstCircle","circlePool","Circle","attachCircle","lArc","rArc","lSite","cSite","rSite","ha","hc","detachCircle","beachPool","Beach","createBeach","beach","detachBeach","beaches","removeBeach","disappearing","iArc","nArcs","addBeach","dxl","dxr","directrix","leftBreakPoint","rightBreakPoint","createCell","newArc","hb","rfocx","rfocy","pby2","lfocx","lfocy","plby2","hl","aby2","lexicographic","Diagram","sites","sortCellHalfedges","clipEdges","iCell","iHalfedge","nHalfedges","startX","startY","endX","endY","nCells","dc","v01","v11","v10","clipCells","edges","triangles","_found","voronoi","ZoomEvent","Transform","applyX","applyY","location","invertX","invertY","rescaleX","rescaleY","__zoom","SVGElement","clientWidth","clientHeight","defaultTransform","defaultWheelDelta","deltaY","deltaMode","defaultConstrain","translateExtent","touchstarting","constrain","wheelDelta","scaleExtent","zoom","wheeled","dblclicked","__zooming","Gesture","taps","wheel","wheelidled","k1","touch0","touch1","l0","l1","dp","dl","collection","scaleBy","scaleTo","k0","translateBy","translateTo","__export","$V0","$V1","$V2","$V3","$V4","$V5","$V6","$V7","$V8","$V9","$Va","$Vb","$Vc","$Vd","$Ve","$Vf","$Vg","$Vh","$Vi","$Vj","$Vk","$Vl","$Vm","$Vn","$Vo","$Vp","$Vq","trace","yy","symbols_","terminals_","2","4","5","7","14","16","18","19","21","22","23","25","27","28","29","30","31","33","35","36","37","39","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","productions_","performAction","yytext","yyleng","yylineno","yystate","$$","_$","$0","$","description","parseMessage","enableSequenceNumbers","signalType","LINETYPE","ACTIVE_START","actor","ACTIVE_END","loopText","LOOP_START","LOOP_END","RECT_START","RECT_END","optText","OPT_START","OPT_END","altText","ALT_START","ALT_END","parText","PAR_START","PAR_END","PAR_AND","ALT_ELSE","placement","PLACEMENT","OVER","LEFTOF","RIGHTOF","msg","SOLID_OPEN","DOTTED_OPEN","SOLID","DOTTED","SOLID_CROSS","DOTTED_CROSS","parseDirective","table","3","6","11","1","8","12","9","10","17","20","24","13","26","45","38","15","32","34","40","defaultActions","60","63","93","94","95","101","102","103","104","105","parseError","str","hash","recoverable","tstack","vstack","lstack","recovering","TERROR","lexer","sharedState","setInput","yylloc","yyloc","options","lex","getPrototypeOf","preErrorSymbol","action","len","newState","expected","yyval","errStr","showPosition","loc","first_line","last_line","first_column","last_column","_input","_more","_backtrack","done","matched","conditionStack","ch","unput","substr","oldLines","more","backtrack_lexer","less","pastInput","past","upcomingInput","pre","test_match","indexed_rule","backup","tempMatch","rules","_currentRules","flex","begin","condition","popState","conditions","topState","pushState","stateStackSize","yy_","$avoiding_name_collisions","YY_START","Parser","main","console","process","readFileSync","lib","Graph","alg","version","lodash","cloneDeep","defaults","flatten","forIn","isUndefined","last","mapValues","minBy","pick","sortBy","uniqueId","zipObject","graphlib","dagre","render","util","webpackPolyfill","deprecate","paths","addDummyNode","attrs","hasNode","dummy","setNode","maxRank","rank","simplify","simplified","setGraph","graph","simpleLabel","minlen","label","setEdge","asNonCompoundGraph","multigraph","isMultigraph","successorWeights","weightMap","sucs","outEdges","predecessorWeights","preds","inEdges","intersectRect","buildLayerMatrix","layering","normalizeRanks","removeEmptyRanks","layers","nodeRankFactor","vs","addBorderNode","fn","lhs","rhs","notime","channel_1","lang_1","unit_1","Utils","channel","default","lang","isEmpty","isFunction","union","isSubgraph","edgeToId","escapeId","applyStyle","dom","styleFn","applyClass","classFn","otherClasses","applyTransition","isPlainObject","ID_DELIM","61","62","64","65","addRelation","title","cleanupLabel","addClass","addMembers","addAnnotation","addMember","relation","relationTitle1","relationTitle2","id2","type1","type2","lineType","relationType","AGGREGATION","EXTENSION","COMPOSITION","DEPENDENCY","LINE","DOTTED_LINE","setClickEvent","setLink","41","81","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","run","marker","runClearTimeout","Item","nextTick","browser","env","versions","addListener","once","off","removeListener","removeAllListeners","prependListener","prependOnceListener","binding","cwd","chdir","dir","umask","types_1","hex_1","keyword_1","rgb_1","hsl_1","keyword","changed","is","TYPE","HSL","isInteger","freeGlobal","freeSelf","layout","debug","normalizeArray","parts","allowAboveRoot","up","xs","res","resolvedPath","resolvedAbsolute","isAbsolute","trailingSlash","relative","arr","fromParts","toParts","samePartsLength","outputParts","sep","dirname","hasRoot","matchedSlash","basename","ext","extname","startDot","startPart","preDotState","setRootDoc","stmt","trimColon","state1","state2","doc","getDividerId","note","Tt","utc","_pf","unusedTokens","unusedInput","overflow","charsLeftOver","nullInput","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","meridiem","rfc2822","weekdayMismatch","_isValid","_d","getTime","invalidWeekday","_strict","bigHour","isFrozen","some","momentProperties","_isAMomentObject","_i","_f","_l","_tzm","_isUTC","_offset","_locale","isValid","updateOffset","suppressDeprecationWarnings","warn","deprecationHandler","O","F","G","localeData","invalidDate","longDateFormat","J","K","ee","te","ie","ae","oe","ue","le","he","de","ce","fe","_w","Se","De","parseTwoDigitYear","Ye","Oe","Te","xe","be","Pe","monthsShort","monthsShortRegex","monthsRegex","monthsParse","We","Ce","He","Re","Ue","Fe","Le","Ne","_monthsRegex","_monthsShortRegex","_monthsStrictRegex","_monthsShortStrictRegex","Ge","Ve","Ee","dayOfYear","Ie","Ae","je","weekdaysMin","weekdaysShort","weekdays","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","weekdaysParse","Ze","ze","$e","qe","Je","Be","Qe","_weekdaysRegex","_weekdaysShortRegex","_weekdaysMinRegex","_weekdaysStrictRegex","_weekdaysShortStrictRegex","_weekdaysMinStrictRegex","Xe","Ke","et","_meridiemParse","_isPm","isPM","_meridiem","tt","nt","st","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","LTS","LT","LL","LLL","LLLL","dayOfMonthOrdinalParse","relativeTime","future","ss","mm","hh","dd","MM","doy","meridiemParse","it","rt","at","ot","_abbr","ut","ht","lt","abbr","_config","parentLocale","config","dt","_a","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","ct","ft","_useUTC","GG","bt","_week","gg","_dayOfYear","_nextDay","mt","gt","vt","pt","wt","Yt","Mt","St","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","Dt","kt","ISO_8601","RFC_2822","meridiemHour","Ot","preparse","createFromInputFallback","getOwnPropertyNames","Pt","Wt","Ct","Ht","quarter","isoWeek","parseFloat","_milliseconds","_days","_months","_data","_bubble","Rt","Ut","Ft","utcOffset","Nt","Lt","Gt","Vt","Et","It","At","jt","ms","Zt","isBefore","zt","isAfter","$t","qt","invalid","Jt","Bt","Qt","Xt","defaultFormat","defaultFormatUtc","Kt","en","tn","nn","sn","rn","an","weekYear","isoWeekYear","_dayOfMonthOrdinalParse","_ordinalParse","_dayOfMonthOrdinalParseLenient","un","ln","hn","dn","cn","mn","_n","startOf","calendarFormat","diff","endOf","isoWeekday","isUtc","postformat","humanize","fromNow","toNow","invalidAt","isBetween","isSame","isSameOrAfter","isSameOrBefore","parsingFlags","subtract","toArray","toObject","toDate","inspect","isLocal","toJSON","unix","creationData","isUTC","strict","isLeapYear","quarters","daysInMonth","weeks","isoWeeks","weeksInYear","isoWeeksInYear","_changeInProgress","hasAlignedHourOffset","isDST","isUtcOffset","zoneAbbr","zoneName","dates","zone","isDSTShifted","_isDSTShifted","gn","vn","pn","_calendar","_longDateFormat","_invalidDate","_ordinal","_relativeTime","pastFuture","isFormat","standalone","_monthsShort","_monthsParseExact","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","firstDayOfYear","firstDayOfWeek","_weekdays","_weekdaysMin","_weekdaysShort","_weekdaysParseExact","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","_fullWeekdaysParse","langData","wn","Mn","kn","Sn","Dn","Yn","as","On","Tn","bn","xn","Pn","Wn","Cn","Hn","Rn","Un","Fn","Ln","Nn","Gn","Vn","En","In","An","jn","Zn","zn","$n","asSeconds","qn","asMilliseconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","toIsoString","isDate","isMoment","isDuration","defineLocale","updateLocale","locales","normalizeUnits","relativeTimeRounding","relativeTimeThreshold","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","DATE","TIME","TIME_SECONDS","TIME_MS","WEEK","MONTH","isLength","baseMatches","baseMatchesProperty","$Vr","$Vs","$Vt","$Vu","$Vv","$Vw","$Vx","$Vy","$Vz","$VA","$VB","$VC","$VD","$VE","$VF","$VG","$VH","$VI","$VJ","$VK","$VL","$VM","$VN","$VO","$VP","$VQ","$VR","$VS","$VT","$VU","$VV","$VW","$VX","$VY","$VZ","$V_","$V$","$V01","$V11","$V21","$V31","$V41","$V51","$V61","$V71","$V81","$V91","$Va1","$Vb1","$Vc1","$Vd1","$Ve1","$Vf1","$Vg1","$Vh1","$Vi1","$Vj1","$Vk1","$Vl1","$Vm1","$Vn1","$Vo1","$Vp1","$Vq1","$Vr1","$Vs1","$Vt1","$Vu1","$Vv1","$Vw1","$Vx1","$Vy1","$Vz1","68","69","70","71","73","75","76","77","78","79","80","84","87","89","90","91","96","97","98","99","100","106","107","108","109","110","112","113","114","115","116","setDirection","addSubGraph","addLink","setClass","addVertex","inf","destructLink","stroke","updateLink","updateLinkInterpolate","66","67","72","74","83","86","88","85","92","firstGraph","setDateFormat","enableInclusiveEndDates","setAxisFormat","setExcludes","setTodayMarker","setTitle","addSection","addTask","utils_1","color_1","arrayLikeKeys","baseKeys","isArrayLike","amount","amountCurrent","amountNext","baseIsNative","getValue","getRawTag","objectToString","symToStringTag","baseGetTag","isObject","tag","stubFalse","freeExports","nodeType","freeModule","Buffer","isBuffer","baseKeysIn","WeakMap","toSource","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","Ctor","ctorString","isObjectLike","assignValue","baseAssignValue","props","customizer","isNew","newValue","baseIsArguments","objectProto","propertyIsEnumerable","isArguments","baseIsTypedArray","baseUnary","nodeUtil","nodeIsTypedArray","isTypedArray","isSymbol","fo","div","labelStyle","client","reusable_1","change_1","ListCache","stackClear","stackDelete","stackGet","stackHas","stackSet","Stack","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","eq","nativeCreate","getNative","isKeyable","objValue","reIsUint","func","getPrototype","overArg","baseForOwn","baseEach","createBaseEach","isKey","stringToPath","iteratee","overRest","setToString","isIndex","longestPath","visited","sources","dfs","POSITIVE_INFINITY","slack","invalidPrototcolRegex","ctrlCharactersRegex","urlSchemeRegex","relativeFirstCharacters","sanitizeUrl","url","urlScheme","urlSchemeParseResults","sanitizedUrl","isRelativeUrl","setOptions","commit","branch","checkout","setInfo","cleanupValue","addEntity","addRelationship","cardA","relType","cardB","Cardinality","ZERO_OR_ONE","ZERO_OR_MORE","ONE_OR_MORE","ONLY_ONE","Identification","NON_IDENTIFYING","IDENTIFYING","opts","_isDirected","directed","_isMultigraph","_isCompound","compound","_label","_defaultNodeLabelFn","_defaultEdgeLabelFn","_nodes","_children","_in","_preds","_out","_sucs","_edgeObjs","_edgeLabels","incrementOrInitEntry","decrementOrRemoveEntry","edgeArgsToId","isDirected","w_","tmp","edgeArgsToObj","edgeObj","edgeObjToId","_nodeCount","_edgeCount","isCompound","setDefaultNodeLabel","newDefault","nodeCount","sinks","setNodes","removeNode","removeEdge","_removeFromParentsChildList","setParent","predecessors","predsV","successors","sucsV","neighbors","isLeaf","filterNodes","findParent","setDefaultEdgeLabel","edgeCount","setPath","valueSpecified","arg0","freeze","hasEdge","inV","outV","nodeEdges","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","freeProcess","require","isPrototype","nativeKeys","arrayFilter","stubArray","nativeGetSymbols","getOwnPropertySymbols","getSymbols","Uint8Array","byteLength","baseFor","createBaseFor","castPath","toKey","reIsDeepProp","reIsPlainProp","baseHas","hasPath","arrayPush","isFlattenable","baseFlatten","predicate","isStrict","comparator","computed","det","addTextLabel","addHtmlLabel","addSVGLabel","labelSvg","labelType","labelBBox","getBBox","consts_1","Hex","dec","hasAlpha","isFullLength","multiplier","bits","bitsOffset","mask","DEC2HEX","frac2hex","luminance","toLinear","luminance_1","adjust_channel_1","changes","rgba_1","color1","color2","g1","_b","g2","weightScale","weightNormalized","alphaDelta","weight1","weight2","arrayEach","baseAssign","baseAssignIn","cloneBuffer","copyArray","copySymbols","copySymbolsIn","getAllKeys","getAllKeysIn","initCloneArray","initCloneByTag","initCloneObject","isMap","isSet","cloneableTags","baseClone","bitmask","isDeep","isFlat","isFull","isArr","isFunc","stacked","subValue","keysFunc","keysIn","global","funcToString","baseTimes","inherited","isArg","isBuff","isType","skipIndexes","arg","allocUnsafe","resIndex","getSymbolsIn","baseGetAllKeys","symbolsFunc","cloneArrayBuffer","typedArray","byteOffset","baseCreate","objectCreate","castFunction","baseFilter","baseIteratee","baseIsEqualDeep","baseIsEqual","SetCache","arraySome","cacheHas","equalFunc","isPartial","arrLength","othLength","seen","arrValue","othValue","compared","othIndex","setCacheAdd","setCacheHas","srcValue","baseToString","baseHasIn","hasFunc","arrayMap","baseMap","arrayReduce","baseReduce","accumulator","initAccum","nativeMax","otherArgs","baseSetToString","shortOut","fromIndex","fromRight","baseValues","PriorityQueue","weightFn","edgeFn","vEntry","results","pq","updateNeighbors","wEntry","predecessor","decrease","removeMin","runDijkstra","DEFAULT_WEIGHT_FUNC","_arr","_keyIndices","keyIndices","_decrease","_swap","_heapify","largest","origArrI","origArrJ","onStack","lowlink","cmpt","topsort","CycleException","navigation","acc","doDfs","postorder","baseRest","isIterateeCall","guard","propsIndex","propsLength","toNumber","funcProto","objectCtorString","basePick","flatRest","createRange","idCounter","tightTree","edgeV","findMinSlackEdge","shiftRanks","intersectEllipse","intersectLine","polyPoints","intersections","minX","minY","pdx","pdy","distp","qdx","qdy","distq","nullptn","formatptn","colonptn","cursorptn","transformptn","animationptn","propertiesptn","elementptn","selectorptn","andptn","escapeptn","invalidptn","keyframeptn","plcholdrptn","readonlyptn","beforeptn","afterptn","tailptn","whiteptn","pseudoptn","writingptn","supportsptn","propertyptn","selfptn","pseudofmt","dimensionptn","imgsrcptn","webkit","moz","pattern","cascade","escape","compress","semicolon","preserve","plugins","plugged","should","unkwn","keyed","nscopealt","nscope","compile","body","bracket","comment","parentheses","quote","tail","trail","counter","atrule","pseudo","caret","char","chars","flat","delimited","proxy","supports","vendor","element","elements","isolate","selectors","scope","level","third","declare","items","animation","content","stylis","minify","use","plugin","info","webpackContext","req","webpackContextResolve","rgba_2","rgba_3","hsla_1","hsla_2","red_1","green_1","blue_1","hue_1","saturation_1","saturation","lightness_1","lightness","alpha_1","alpha_2","is_dark_1","isDark","is_light_1","isLight","is_valid_1","saturate_1","saturate","desaturate_1","desaturate","lighten_1","lighten","darken_1","darken","opacify_1","opacify","opacify_2","fadeIn","transparentize_1","transparentize","transparentize_2","fadeOut","complement_1","complement","grayscale_1","grayscale","adjust_1","adjust","invert_1","mix_1","mix","scale_1","Channel","hue2rgb","rgb2hsl","Lang","Unit","frac","dec2hex","type_1","Channels","ALL","_ensureHSL","_ensureRGB","RGB","configurable","Type","Keyword","cyanaqua","transparent","name_1","charCode","isRedPercentage","isGreenPercentage","isBluePercentage","isAlphaPercentage","hueRe","_hue2deg","adjustments","assocIndexOf","LARGE_ARRAY_SIZE","isMasked","reIsHostCtor","reIsNative","nativeObjectToString","isOwn","unmasked","uid","coreJsData","maskSrcKey","IE_PROTO","Hash","hashClear","hashDelete","hashGet","hashHas","hashSet","getMapData","copyObject","typedArrayTags","nativeKeysIn","isProto","cloneDataView","cloneRegExp","cloneSymbol","cloneTypedArray","dataView","reFlags","regexp","symbolProto","symbolValueOf","baseIsMap","nodeIsMap","baseIsSet","nodeIsSet","iterable","eachFunc","baseIsMatch","getMatchData","matchesStrictComparable","matchData","noCustomizer","COMPARE_PARTIAL_FLAG","equalArrays","equalByTag","equalObjects","objectTag","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","mapToArray","setToArray","message","objProps","objLength","skipCtor","objCtor","othCtor","isStrictComparable","hasIn","baseGet","defaultValue","memoizeCapped","rePropName","reEscapeChar","subString","memoize","resolver","memoized","Cache","symbolToString","baseProperty","basePropertyDeep","isString","stringSize","asciiSize","hasUnicode","unicodeSize","reHasUnicode","rsAstral","rsCombo","rsFitz","rsNonAstral","rsRegional","rsSurrPair","reOptMod","rsSeq","rsSymbol","reUnicode","isArrLike","baseUniq","isArrayLikeObject","spreadableSymbol","isConcatSpreadable","thisArg","nativeNow","lastCalled","stamp","remaining","arrayIncludes","arrayIncludesWith","createSet","includes","isCommon","outer","seenIndex","baseIndexOf","baseFindIndex","baseIsNaN","strictIndexOf","writeNodes","writeEdges","edgeValue","write","read","components","dijkstra","dijkstraAll","findCycles","floydWarshall","isAcyclic","preorder","prim","tarjan","cmpts","weightFunc","edgeFunc","rowK","rowI","ik","kj","ij","altDistance","runFloydWarshall","pri","edgeWeight","acyclic","parentDummyChains","nestingGraph","addBorderSegments","coordinateSystem","debugTiming","layoutGraph","inputGraph","canonicalize","graphDefaults","selectNumberAttrs","graphNumAttrs","graphAttrs","nodeNumAttrs","nodeDefaults","edgeDefaults","edgeNumAttrs","edgeAttrs","buildLayoutGraph","ranksep","labelpos","rankdir","labeloffset","makeSpaceForEdgeLabels","selfEdges","removeSelfEdges","injectEdgeLabelProxies","cleanup","borderTop","minRank","borderBottom","assignRankMinMax","labelRank","removeEdgeLabelProxies","layer","orderShift","selfEdge","insertSelfEdges","selfNode","positionSelfEdges","borderLeft","borderRight","removeBorderNodes","undo","fixupEdgeLabelCoords","maxX","graphLabel","marginX","marginx","marginY","marginy","getExtremes","translateGraph","nodeV","nodeW","assignNodeIntersects","reversed","reversePointsForReversedEdges","runLayout","inputLabel","layoutLabel","updateInputGraph","edgesep","nodesep","obj","newAttrs","CLONE_DEEP_FLAG","createFind","findIndexFunc","toInteger","toFinite","remainder","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","isBinary","baseExtremum","baseGt","baseMerge","createAssigner","srcIndex","assignMergeValue","baseMergeDeep","safeGet","toPlainObject","mergeFunc","isTyped","assigner","baseLt","basePickBy","baseSet","nested","baseRange","nativeCeil","baseOrderBy","iteratees","baseSortBy","compareMultiple","orders","comparer","compareAscending","objCriteria","criteria","othCriteria","ordersLength","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","baseZipObject","assignFunc","valsLength","greedyFAS","fas","acyclicer","dfsFAS","forwardName","List","fasGraph","maxIn","maxOut","prevWeight","buckets","zeroIdx","assignBucket","buildState","DEFAULT_WEIGHT_FN","dequeue","doGreedyFAS","collectPredecessors","uEntry","enqueue","sentinel","_prev","_sentinel","unlink","filterOutLinks","strs","curr","dummyChains","vRank","wRank","edgeLabel","normalizeEdge","origLabel","feasibleTree","networkSimplex","ranker","networkSimplexRanker","tightTreeRanker","longestPathRanker","initRank","initLowLimValues","initCutValues","leaveEdge","exchangeEdges","enterEdge","cutvalue","calcCutValue","assignCutValue","childIsTail","graphEdge","cutValue","isOutEdge","pointsToHead","otherWeight","otherCutValue","dfsAssignLowLim","nextLim","low","lim","vLabel","wLabel","tailLabel","flip","candidates","isDescendant","flipped","updateRanks","rootLabel","postorderNums","pathData","lca","vPath","wPath","findPath","pathIdx","pathV","depths","treeDepths","nodeSep","nestingRoot","sumWeights","childNode","childTop","childBottom","thisWeight","nestingEdge","prop","sg","sgNode","borderType","prev","swapWidthHeight","swapWidthHeightOne","reverseYOne","swapXYOne","rankDir","reverseY","swapXY","initOrder","crossCount","sortSubgraph","buildLayerGraph","addSubgraphConstraints","buildLayerGraphs","ranks","relationship","sweepLayerGraphs","layerGraphs","biasRight","cg","lg","sorted","assignOrder","downLayerGraphs","upLayerGraphs","best","bestCC","lastBest","simpleNodes","orderedVs","twoLayerCrossCount","northLayer","southLayer","southPos","southEntries","pos","firstIndex","treeSize","weightSum","barycenter","resolveConflicts","movable","br","subgraphs","barycenters","subgraphResult","expandSubgraphs","blPred","brPred","nodeU","mappedEntries","indegree","entryV","entryW","sourceSet","handleIn","mergeEntries","handleOut","doResolveConflicts","consumeUnsortable","unsortable","sortable","vsIndex","createRootNode","rootPrev","prevChild","positionX","rankSep","prevY","maxHeight","positionY","findType1Conflicts","conflicts","prevLayer","scanPos","prevLayerLength","lastNode","findOtherInnerSegmentNode","scanNode","uLabel","uPos","addConflict","findType2Conflicts","scan","south","southEnd","prevNorthBorder","nextNorthBorder","uNode","north","nextNorthPos","prevNorthPos","southLookahead","conflictsV","hasConflict","verticalAlignment","neighborFn","prevIdx","ws","mp","il","horizontalCompaction","reverseSep","blockG","blockGraph","sepFn","edgeSep","vRoot","uRoot","prevMax","buildBlockGraph","iterate","setXsFunc","nextNodesFunc","elem","findSmallestWidthAlignment","xss","NEGATIVE_INFINITY","halfWidth","alignCoordinates","alignTo","alignToVals","alignToMin","alignToMax","vert","horiz","alignment","xsVals","balance","ul","ignore","adjustedLayering","inner","smallestWidth","debugOrdering","layerMatrix","layerV","ellipse","sameSign","q2","r4","denom","num","createNodes","createClusters","createEdgeLabels","createEdgePaths","positionNodes","positionEdgeLabels","positionClusters","shapes","arrows","paddingX","paddingY","NODE_DEFAULT_ATTRS","_prevWidth","_prevHeight","EDGE_DEFAULT_ATTRS","preProcessGraph","outputGroup","createOrSelectGroup","clustersGroup","edgePathsGroup","edgeLabels","clusters","postProcessGraph","shape","arrowhead","curveLinear","addLabel","exitSelection","svgNodes","thisGroup","labelGroup","labelDom","bbox","labelId","shapeSvg","shapeBBox","domNode","newText","escaped","processEscapeSequences","svgClusters","clusterLabelPos","domCluster","svgEdgeLabels","intersectNode","createLine","previousPaths","newPaths","svgPaths","svgPathsEnter","sourceElem","multiply","svgPathExit","domEdge","arrowheadId","href","fragmentId","head","calcPoints","created","intersectCircle","intersectPolygon","decoder","decode","unescape","LEVELS","fatal","logger","setLogLevel","moment","removeScript","txt","rs","idx","lineBreakRegex","breakToPlaceholder","placeholderToBreak","getRows","sanitizeText","htmlLabels","flowchart","securityLevel","hasBreaks","splitBreaks","d3CurveTypes","curveBasis","curveBasisClosed","curveBasisOpen","curveLinearClosed","curveMonotoneX","curveMonotoneY","curveNatural","curveStep","curveStepAfter","curveStepBefore","directive","directiveWithoutOpen","anyComment","detectDirective","commentWithoutDirectives","detectType","interpolateToCurve","defaultCurve","curveName","getStylesFromArray","startsWith","cnt","generateId","charactersLength","makeid","assignWithDepth","dst","clobber","drawSimpleText","textData","nText","common","textElem","anchor","fontFamily","fontSize","fontWeight","class","span","textMargin","wrapLabel","maxWidth","joinWith","words","completedLines","nextLine","word","wordLength","calculateTextWidth","nextLineLength","breakString","hyphenatedStrings","remainingWord","Boolean","hyphenCharacter","margin","characters","currentLine","character","currentCharacter","isLastLine","hyphenatedNextLine","calculateTextDimensions","fontFamilies","dims","lineHeight","cheight","textObj","valign","bBox","calculateTextHeight","detectInit","inits","isSubstringInArray","calcLabelPosition","prevPoint","totalDistance","remainingDistance","vectorDistance","distanceRatio","traverseEdge","calcCardinalityPosition","isRelationTypePresent","initialPosition","cardinalityPosition","formatUrl","linkStr","runFunc","functionName","arrPaths","fnName","mkBorder","col","darkMode","Theme","background","noteBkgColor","noteTextColor","primaryColor","secondaryColor","tertiaryColor","border1","arrowheadColor","textColor","updateColors","relationColor","secondBkg","primaryBorderColor","secondaryBorderColor","tertiaryBorderColor","noteBorderColor","primaryTextColor","secondaryTextColor","tertiaryTextColor","lineColor","nodeBkg","mainBkg","nodeBorder","clusterBkg","clusterBorder","defaultLinkColor","titleColor","edgeLabelBackground","labelBackground","actorBorder","actorBkg","actorTextColor","actorLineColor","labelBoxBkgColor","signalColor","signalTextColor","labelBoxBorderColor","labelTextColor","loopTextColor","activationBorderColor","activationBkgColor","sequenceNumberColor","sectionBkgColor","altSectionBkgColor","sectionBkgColor2","taskBorderColor","taskBkgColor","activeTaskBorderColor","activeTaskBkgColor","gridColor","doneTaskBkgColor","doneTaskBorderColor","critBorderColor","critBkgColor","todayLineColor","taskTextColor","taskTextOutsideColor","taskTextLightColor","taskTextDarkColor","taskTextClickableColor","labelColor","altBackground","errorBkgColor","errorTextColor","classText","fillType0","fillType1","fillType2","fillType3","fillType4","fillType5","fillType6","fillType7","overrides","mainContrastColor","darkTextColor","border2","contrast","critical","getThemeVariables","userOverrides","theme","calculate","dark","forest","neutral","themeVariables","themeCSS","maxTextSize","logLevel","startOnLoad","arrowMarkerAbsolute","secure","diagramPadding","nodeSpacing","rankSpacing","sequence","activationWidth","diagramMarginX","diagramMarginY","actorMargin","boxMargin","boxTextMargin","noteMargin","messageMargin","messageAlign","mirrorActors","bottomMarginAdj","useMaxWidth","rightAngles","showSequenceNumbers","actorFontSize","actorFontFamily","actorFontWeight","noteFontSize","noteFontFamily","noteFontWeight","noteAlign","messageFontSize","messageFontFamily","messageFontWeight","wrapPadding","labelBoxWidth","labelBoxHeight","messageFont","noteFont","actorFont","gantt","titleTopMargin","barHeight","barGap","topPadding","leftPadding","gridLineStartPadding","numberSectionStyles","axisFormat","journey","git","dividerMargin","sizeUnit","textHeight","titleShift","forkWidth","forkHeight","miniPadding","fontSizeFactor","labelHeight","edgeLengthFactor","compositTitleSize","er","layoutDirection","minEntityWidth","minEntityHeight","entityPadding","defaultConfig","siteConfig","directives","currentConfig","updateCurrentConfig","conf","variables","getSiteConfig","getConfig","addDirective","configApi","vertices","classes","subGraphs","subGraphLookup","tooltips","subCount","firstGraphFlag","funs","addSingleLink","_start","_end","linktext","ids","className","setTooltip","tooltip","setupToolTips","tooltipElem","el","scrollX","scrollY","scrollTop","getPosForId","secCount","posCrossRef","statement","mermaidAPI","styles","positions","interp","defaultInterpolate","defaultStyle","utils","textStyles","newStyle2","getTooltip","setClickFun","bindFunctions","getDirection","getVertices","getEdges","getClasses","_title","prims","objs","nodeList","boolean","item","subGraph","getDepthFirstPos","indexNodes","indexNodes2","posCount","childPos","getSubGraphs","_str","_startStr","startInfo","destructEndLink","destructStartLink","question","insertPolygonShape","dagreD3","hexagon","rect_left_inv_arrow","lean_right","lean_left","trapezoid","inv_trapezoid","rect_right_inv_arrow","stadium","subroutine","cylinder","addToRender","addToRenderV2","addShape","addVertices","svgId","classStr","vertexNode","vertexText","svgLabel","tspan","radious","_shape","addEdges","defaultLabelStyle","defaultStyles","linkId","linkNameStart","linkNameEnd","edgeData","arrowheadStyle","cnf","flowDb","flow","subG","Render","flowChartShapes","svgBounds","vBox","clusterRects","clusterEl","xPos","yPos","labels","linkNode","markers","extension","composition","aggregation","dependency","cross","barb","insertMarkers","markerArray","markerName","createLabel","_vertexText","isTitle","isNode","labelClass","labelHelper","_classes","labelText","dv","halfPadding","updateNodeBounds","clusterDb","decendants","isDecendant","ancenstorId","clusterId","newGraph","rootId","edgeInCluster","findNonClusterChild","getAnchorId","externalConnections","adjustClustersAndEdges","extractDecendants","clusterData","extractor","fromCluster","toCluster","hasChildren","graphSettings","clusterGraph","clusterNode","forkJoin","questionElem","rectWithTitle","innerLine","text2","textRows","titleBox","descr","innerCircle","fork","class_box","topLine","bottomLine","labelContainer","verticalPos","hasInterface","classData","annotations","interfaceLabel","interfaceBBox","classTitleLabel","classTitleBBox","classAttributes","members","lbl","classMethods","diffX","nodeElems","rectBox","roundedWithTitle","innerRect","noteGroup","divider","clusterElems","outsideNode","outsidePoint","insidePoint","recursiveRender","_elem","diagramtype","parentCluster","edgePaths","newEl","setNodeElem","insertNode","labelElement","insertEdgeLabel","insertCluster","updatedPath","diagramType","pointsHasChanged","lastPointOutside","isInside","inter","pointPresent","updatedPoints","insterection","strokeClasses","lineData","lineFunction","thickness","svgPath","protocol","host","pathname","search","arrowTypeStart","arrowTypeEnd","insertEdge","positionEdgeLabel","drawRect","rectData","rectElem","drawText","prevTextHeight","textElems","yfunc","dominantBaseline","alignmentBaseline","drawLabel","txtObject","cut","actorCnt","getTextObj","getNoteRect","_drawTextCandidateFunc","byText","textAttrs","_setTextAttrs","byTspan","byFo","toText","fromTextAttrsDict","textPlacement","drawActor","anchorElement","drawActivation","actorActivations","anchored","startx","starty","stopx","drawLoop","loopModel","drawLoopLine","stopy","sections","sectionTitles","sectionHeight","drawBackgroundRect","insertArrowHead","insertSequenceNumber","insertArrowCrossHead","prevActor","actors","messages","notes","titleWrapped","sequenceNumbersEnabled","wrapEnabled","addActor","old","autoWrap","nextActor","activationCount","part","addSignal","idFrom","idTo","messageType","NOTE","addNote","titleWrap","addMessage","answer","setWrap","wrapSetting","getMessages","getActors","getActor","getActorKeys","getTitle","getTitleWrapped","ARROWTYPE","FILLED","OPEN","param","sequenceDb","sequenceItems","activations","models","getHeight","loops","actorModel","addLoop","msgModel","noteModel","lastActor","lastLoop","lastMessage","lastNote","setConf","updateVal","val","updateBounds","_self","updateFn","_startx","_stopx","_starty","_stopy","newActivation","diagram","actorRect","stackedSize","svgDraw","endActivation","lastActorActivationIdx","activation","lastIndexOf","createLoop","newLoop","endLoop","addSectionToLoop","loop","getVerticalPos","bumpVerticalPos","bump","getBounds","drawActors","actorKeys","prevWidth","prevMargin","activationBounds","actorObj","adjustLoopHeightForWrap","loopWidths","preMargin","postMargin","addLoopFn","heightAdjust","loopWidth","textConf","textDims","totalOffset","getMaxMessageWidthPerActor","maxMessageWidthPerActor","isNote","isMessage","textFont","wrappedMessage","messageWidth","calculateActorMargins","actorToMessageWidth","actorKey","actDims","actorWidth","calculateLoopBounds","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","toAdd","enabled","shouldWrap","textDimensions","buildNoteModel","stk","fromBounds","toBounds","fromIdx","toIdx","allBounds","boundedWidth","msgDims","buildMessageModel","sequenceIndex","drawNote","activationData","activeEnd","lineStarty","textWidth","drawMessage","box","extraVertForTitle","lastTask","lastTaskID","dateFormat","todayMarker","excludes","tasks","currentSection","tags","inclusiveEndDates","lastOrder","isInvalidDate","checkTaskDates","task","manualEndTime","startTime","endTime","renderEndTime","fixTaskDates","getStartDate","prevTime","afterStatement","latestEndingTask","findTaskById","mDate","durationToDate","durationStatement","getEndDate","inclusive","taskCnt","parseId","idStr","rawTasks","taskDb","compileTasks","compileTask","raw","prevTask","prevTaskId","startData","processed","allProcessed","rawTask","pushFun","callbackFunction","getDateFormat","endDatesAreInclusive","getAxisFormat","getTodayMarker","getSections","getTasks","allItemsPricessed","iterationCount","section","taskInfo","dataStr","getTaskTags","parseData","crit","milestone","addTaskOrg","newTask","endTimeData","compileData","getExcludes","functionArgs","argList","_linkStr","open","matchFound","regex","ganttDb","rightPadding","getElementById","parentElement","offsetWidth","useWidth","taskArray","timeScale","scaleTime","categories","catsUnfiltered","getCounts","checkUnique","taskA","taskB","pageWidth","pageHeight","gap","scaleLinear","interpolateHcl","theSidePad","theTopPad","xAxis","makeGrid","theArray","theGap","theBarHeight","theColorScale","rectangles","secNum","taskClass","taskType","drawRects","colorScale","numOccurances","prevGap","vertLabels","todayG","today","todayLine","drawToday","makeGant","relations","classCounter","splitClassNameAndType","genericType","classId","cssClasses","domId","lookUpDomId","classKeys","member","validatedClassName","theClass","memberString","endsWith","setCssClass","setClickFunc","elemId","getClass","annotation","getRelations","parseMember","fieldMatch","methodMatch","buildFieldDisplay","buildMethodDisplay","buildLegacyDisplay","parsedText","displayText","parseGenericTypes","err","cssStyle","visibility","methodName","parameters","classifier","parseClassifier","returnType","methodStart","methodEnd","firstChar","addTspan","textEl","isFirst","tSpan","cleanedText","classDef","cssClassStr","classInfo","titleText2","classTitleString","classTitle","titleHeight","membersLine","membersBox","methodsLine","method","classBox","rectWidth","childNodes","getRelationType","p1_card_x","p1_card_y","p2_card_x","p2_card_y","labelPosition","cardinality_1_point","cardinality_2_point","classDb","idCache","getGraphId","isMultiGraph","addClasses","getArrowMarker","addRelations","rootDoc","documents","states","currentDocument","startCnt","addState","descriptions","addDescription","des","_id1","_id2","_descr","theState","dividerCnt","getState","getStates","logDocuments","getRootDoc","getRootDocV2","docTranslator","currentDoc","newNode","docNode","extract","_doc","drawDescrState","stateDef","isSecond","descrLine","descrBox","addTitleAndBox","altBkg","dblPad","orgBox","orgWidth","orgX","titleWidth","graphBox","lineY","_text","tHeight","_drawLongText","drawState","stateInfo","drawStartState","drawEndState","drawForkJoinState","drawDivider","drawSimpleState","stateBox","stateDb","transformationLog","renderDoc","edgeFreeDoc","sub","boxBounds","noteDef","svgElem","pWidth","pShift","titleRows","boundstmp","boxHeight","heightAdj","drawEdge","nodeDb","setupNode","altFlag","nodeData","noteData","groupData","arrowType","setupDoc","startId","endId","commits","branches","master","curBranch","seq","getId","isfastforwardable","currentCommit","otherCommit","upsert","newval","prettyPrintCommitHistory","commitArr","recordMap","newCommit","nextCommit","branchNum","getCommitsArray","rawOptString","getOptions","otherBranch","isReachableFrom","commitRef","ref","parentCount","prettyPrint","getBranchesAsObjArray","branchArr","getBranches","getCommits","getCurrentBranch","getHead","allCommitsDict","nodeFillColor","nodeStrokeWidth","nodeStrokeColor","lineStrokeWidth","branchOffset","leftMargin","branchColors","nodeRadius","nodeLabel","apiConfig","svgDrawLine","colorIdx","lineGen","getElementCoords","coords","ctm","getCTM","svgDrawLineForCommits","fromId","toId","fromBbox","toBbox","renderCommitHistory","commitid","numCommits","branchName","renderLines","branchColor","lineDrawn","ver","gitGraphParser","db","svgCreateDefs","setMessage","getMessage","getInfo","infoParser","pieParser","pieData","scaleOrdinal","schemeSet2","dataReady","d3pie","arcGenerator","legend","legendRectSize","entities","relationships","getEntities","entA","rolA","entB","rSpec","rel","entityA","roleA","entityB","relSpec","getRelationships","ERMarkers","ONLY_ONE_START","ONLY_ONE_END","ZERO_OR_ONE_START","ZERO_OR_ONE_END","ONE_OR_MORE_START","ONE_OR_MORE_END","ZERO_OR_MORE_START","ZERO_OR_MORE_END","getEdgeName","relCnt","erDb","erParser","erMarkers","firstOne","firstEntity","groupNode","textId","textNode","textBBox","entityWidth","entityHeight","rectBBox","addRelationships","adjustEntities","getTotalLength","labelPoint","getPointAtLength","drawRelationshipFromLayout","allItemsProcessed","taskData","pieces","peeps","peopleList","people","tempActors","drawCircle","circleData","circleElement","taskCount","colour","taskFontSize","taskFontFamily","faceData","face","d3arc","smile","sad","ambivalent","person","graphics","journeyDb","taskMargin","actorColours","sectionFills","sectionColours","LEFT_MARGIN","fills","textColours","drawTasks","lastSection","taskPos","sectionNumber","taskActors","actorName","actorNames","actorPos","labelData","drawActorLegend","getStyles","themes","classDiagram","stateDiagram","userStyles","currentDirective","handleDirective","reinitialize","updateRendererConfigs","gitGraphRenderer","flowRenderer","flowRendererV2","sequenceRenderer","ganttRenderer","classRenderer","stateRenderer","stateRendererV2","infoRenderer","pieRenderer","erRenderer","journeyRenderer","errorRenderer","pkg","_txt","graphInit","existingSvg","innerTxt","encodeEntities","graphType","altFontFamily","Stylis","style1","sequenceDiagram","classRendererV2","svgCode","decodeEntities","gitGraphAst","flowParser","sequenceParser","ganttParser","classParser","stateParser","infoDb","pieDb","journeyParser","updateSiteConfig","globalReset","contentLoaded","mermaid","sequenceConfig","ganttConfig"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAiB,QAAID,IAErBD,EAAc,QAAIC,IARpB,CASmB,oBAATK,KAAuBA,KAAOC,MAAM,WAC9C,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUR,QAGnC,IAAIC,EAASK,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,GAG/DN,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAO,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC3CV,EAAoBW,EAAElB,EAASgB,IAClCG,OAAOC,eAAepB,EAASgB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEV,EAAoBgB,EAAI,SAASvB,GACX,oBAAXwB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAepB,EAASwB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAepB,EAAS,aAAc,CAAE0B,OAAO,KAQvDnB,EAAoBoB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S2lE,GAC1BwuD,GAAWj3G,aACmB,IAAnByoD,EAAO4iF,eAC0B,IAA/B5iF,EAAO4iF,QAAQz6B,cACxBy6B,GAAQz6B,YAAcnoD,EAAO4iF,QAAQz6B,kBAEE,IAA9BnoD,EAAO4iF,QAAQxmC,aACxBwmC,GAAQxmC,WAAap8C,EAAO4iF,QAAQxmC,aAGxCoS,GAAWn0H,WAAW2lE,IAqDtB2iF,kBAGaC,gB","file":"mermaid.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mermaid\"] = factory();\n\telse\n\t\troot[\"mermaid\"] = factory();\n})(typeof self !== \"undefined\" ? self : this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 383);\n","export var name = \"d3\";\nexport var version = \"5.15.0\";\nexport var description = \"Data-Driven Documents\";\nexport var keywords = [\"dom\",\"visualization\",\"svg\",\"animation\",\"canvas\"];\nexport var homepage = \"https://d3js.org\";\nexport var license = \"BSD-3-Clause\";\nexport var author = {\"name\":\"Mike Bostock\",\"url\":\"https://bost.ocks.org/mike\"};\nexport var main = \"dist/d3.node.js\";\nexport var unpkg = \"dist/d3.min.js\";\nexport var jsdelivr = \"dist/d3.min.js\";\nexport var module = \"index.js\";\nexport var repository = {\"type\":\"git\",\"url\":\"https://github.com/d3/d3.git\"};\nexport var files = [\"dist/**/*.js\",\"index.js\"];\nexport var scripts = {\"pretest\":\"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n","export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n","import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n","export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n","import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(x) {\n return x === null ? NaN : +x;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n","import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n","var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(x) {\n return x;\n}\n","export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n","var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n","export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n","import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n","import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n","import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n","import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n","import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n","import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n","export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n","export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n","import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n","export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n","export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n","import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n","import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return x;\n}\n","import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n","var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","export default function() {\n return !this.node();\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n","export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n","import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n","var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n","export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n","import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n","import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n","import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n","var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n","import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n","import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n","import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n","import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n","import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n","import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n","import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n","import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n","function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n","import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n","import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n","function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n","function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n","import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n","export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n","import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n","import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n","import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n","import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n","import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n","import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n","import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n","import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n","import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n","import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n","import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n","export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n","import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n","export var slice = Array.prototype.slice;\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n","import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n","export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n","import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n","import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n","export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n","export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n","export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n","import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n","var array = Array.prototype;\n\nexport var slice = array.slice;\n","export default function(a, b) {\n return a - b;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n","export default function() {}\n","import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n","export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n","// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n","import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n","import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n","var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n","import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n","import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n","export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();","export function linear(t) {\n return +t;\n}\n","export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n","var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n","var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n","export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n","export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n","var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n","var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n","var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n","function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n","function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n","function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n","import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n","export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n","function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n","import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n","export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n","export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n","export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n","export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n","export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n","export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n","import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n","export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n","export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n","import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n","export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n","export default function() {\n return this._root;\n}\n","export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n","import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n","import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n","import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n","// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n","// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n","// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n","import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n","import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n","export default function(x) {\n return x;\n}\n","import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n","export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n","export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n","import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n","// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n","export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n","export default function noop() {}\n","function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n","import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n","import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n","import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n","import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n","import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n","import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n","import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n","import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n","import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n","import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n","import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n","import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n","import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n","import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n","export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n","import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n","import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n","import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n","import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n","import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n","import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n","import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n","export default function(x) {\n return x;\n}\n","import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n","import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n","import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n","import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n","export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n","import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n","export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n","import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n","import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n","import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n","import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n","import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n","import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n","import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n","import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n","import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n","import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n","import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n","import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n","import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n","import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n","import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n","import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n","import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n","import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n","import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n","import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n","import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n","function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n","function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n","import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n","export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n","export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n","export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n","export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n","export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n","export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n","export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n","export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n","export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n","export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n","import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n","import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n","export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n","export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n","import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n","export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n","import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n","import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n","import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n","import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n","export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n","import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n","import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n","export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n","import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n","export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n","var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n","import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n","import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n","import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n","import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n","export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n","export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n","import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n","// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n","export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n","export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n","export default function() {\n return Math.random();\n}\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n","import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n","export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n","var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n","import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function(x) {\n return +x;\n}\n","import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n","import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n","import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n","import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n","export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n","import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n","import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n","var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n","import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n","import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n","export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n","import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n","import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n","import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n","import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n","import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n","import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n","import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n","import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n","import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n","import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n","import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n","import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n","import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n","import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n","import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n","import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n","export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n","import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n","import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n","import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n","import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n","import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n","import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n","export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n","import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n","import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n","var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n","import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n","function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n","import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n","export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n","export default function(d) {\n return d;\n}\n","import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n","import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n","export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n","export var slice = Array.prototype.slice;\n","import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n","import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n","export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n","var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n","import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n","export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n","var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n","var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n","import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n","import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n","import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n","import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n","function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n","function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n","export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n","import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n","import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n","import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n","import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n","function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n","import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n","import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n","import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n","import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n","import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n","export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n","import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n","import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n","export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n","\"use strict\";\n/* EXPORT */\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./methods\"));\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NEWLINE\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NEWLINE\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 56; \nbreak;\ncase 1: this.begin('type_directive'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+((?!(-x|--x))[\\-]*[^\\+\\->:\\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1,8],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,8],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,8],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\nvar lang_1 = require(\"./lang\");\nvar unit_1 = require(\"./unit\");\n/* UTILS */\nvar Utils = {\n channel: channel_1.default,\n lang: lang_1.default,\n unit: unit_1.default\n};\n/* EXPORT */\nexports.default = Utils;\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,7],$V1=[1,6],$V2=[1,14],$V3=[1,24],$V4=[1,27],$V5=[1,25],$V6=[1,26],$V7=[1,28],$V8=[1,29],$V9=[1,31],$Va=[1,32],$Vb=[1,33],$Vc=[10,19],$Vd=[1,45],$Ve=[1,46],$Vf=[1,47],$Vg=[1,48],$Vh=[1,49],$Vi=[1,50],$Vj=[10,19,25,31,39,42,43,44,45,46,47],$Vk=[10,19,23,25,31,35,39,42,43,44,45,46,47,63,64,65],$Vl=[10,13,17,19],$Vm=[39,63,64,65],$Vn=[39,46,47,63,64,65],$Vo=[39,42,43,44,45,63,64,65],$Vp=[10,19,25],$Vq=[1,75];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"graphConfig\":6,\"openDirective\":7,\"typeDirective\":8,\"closeDirective\":9,\"NEWLINE\":10,\":\":11,\"argDirective\":12,\"open_directive\":13,\"type_directive\":14,\"arg_directive\":15,\"close_directive\":16,\"CLASS_DIAGRAM\":17,\"statements\":18,\"EOF\":19,\"statement\":20,\"className\":21,\"alphaNumToken\":22,\"GENERICTYPE\":23,\"relationStatement\":24,\"LABEL\":25,\"classStatement\":26,\"methodStatement\":27,\"annotationStatement\":28,\"clickStatement\":29,\"CLASS\":30,\"STRUCT_START\":31,\"members\":32,\"STRUCT_STOP\":33,\"ANNOTATION_START\":34,\"ANNOTATION_END\":35,\"MEMBER\":36,\"SEPARATOR\":37,\"relation\":38,\"STR\":39,\"relationType\":40,\"lineType\":41,\"AGGREGATION\":42,\"EXTENSION\":43,\"COMPOSITION\":44,\"DEPENDENCY\":45,\"LINE\":46,\"DOTTED_LINE\":47,\"CALLBACK\":48,\"LINK\":49,\"commentToken\":50,\"textToken\":51,\"graphCodeTokens\":52,\"textNoTagsToken\":53,\"TAGSTART\":54,\"TAGEND\":55,\"==\":56,\"--\":57,\"PCT\":58,\"DEFAULT\":59,\"SPACE\":60,\"MINUS\":61,\"keywords\":62,\"UNICODE_TEXT\":63,\"NUM\":64,\"ALPHA\":65,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\"NEWLINE\",11:\":\",13:\"open_directive\",14:\"type_directive\",15:\"arg_directive\",16:\"close_directive\",17:\"CLASS_DIAGRAM\",19:\"EOF\",23:\"GENERICTYPE\",25:\"LABEL\",30:\"CLASS\",31:\"STRUCT_START\",33:\"STRUCT_STOP\",34:\"ANNOTATION_START\",35:\"ANNOTATION_END\",36:\"MEMBER\",37:\"SEPARATOR\",39:\"STR\",42:\"AGGREGATION\",43:\"EXTENSION\",44:\"COMPOSITION\",45:\"DEPENDENCY\",46:\"LINE\",47:\"DOTTED_LINE\",48:\"CALLBACK\",49:\"LINK\",52:\"graphCodeTokens\",54:\"TAGSTART\",55:\"TAGEND\",56:\"==\",57:\"--\",58:\"PCT\",59:\"DEFAULT\",60:\"SPACE\",61:\"MINUS\",62:\"keywords\",63:\"UNICODE_TEXT\",64:\"NUM\",65:\"ALPHA\"},\nproductions_: [0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,2],[21,1],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,5],[28,4],[32,1],[32,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[38,3],[38,2],[38,2],[38,1],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[29,3],[29,4],[29,3],[29,4],[50,1],[50,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[51,1],[53,1],[53,1],[53,1],[53,1],[22,1],[22,1],[22,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 7:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 8:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 9:\n yy.parseDirective('}%%', 'close_directive', 'class'); \nbreak;\ncase 14:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 15:\n this.$=$$[$0]; \nbreak;\ncase 16:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 17:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 18:\n yy.addRelation($$[$0]); \nbreak;\ncase 19:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 25:\nyy.addClass($$[$0]);\nbreak;\ncase 26:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 27:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 28:\n this.$ = [$$[$0]]; \nbreak;\ncase 29:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 30:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 31:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 32:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 33:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 34:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 35:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 36:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 37:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 38:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 39:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 40:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 41:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 42:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 43:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 44:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 45:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 46:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 47:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 48:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 50:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:$V0,17:$V1},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:$V2},o([11,16],[2,7]),{5:22,7:5,13:$V0,18:15,20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},{10:[1,34]},{12:35,15:[1,36]},{10:[2,9]},{19:[1,37]},{10:[1,38],19:[2,11]},o($Vc,[2,18],{25:[1,39]}),o($Vc,[2,20]),o($Vc,[2,21]),o($Vc,[2,22]),o($Vc,[2,23]),o($Vc,[2,24]),o($Vc,[2,30],{38:40,40:43,41:44,25:[1,42],39:[1,41],42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi}),{21:51,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,32]),o($Vc,[2,33]),{22:52,63:$V9,64:$Va,65:$Vb},{21:53,22:30,63:$V9,64:$Va,65:$Vb},{21:54,22:30,63:$V9,64:$Va,65:$Vb},o($Vj,[2,15],{22:30,21:55,23:[1,56],63:$V9,64:$Va,65:$Vb}),o($Vk,[2,65]),o($Vk,[2,66]),o($Vk,[2,67]),o($Vl,[2,4]),{9:57,16:$V2},{16:[2,8]},{1:[2,10]},{5:22,7:5,13:$V0,18:58,19:[2,12],20:16,21:23,22:30,24:17,26:18,27:19,28:20,29:21,30:$V3,34:$V4,36:$V5,37:$V6,48:$V7,49:$V8,63:$V9,64:$Va,65:$Vb},o($Vc,[2,19]),{21:59,22:30,39:[1,60],63:$V9,64:$Va,65:$Vb},{38:61,40:43,41:44,42:$Vd,43:$Ve,44:$Vf,45:$Vg,46:$Vh,47:$Vi},o($Vc,[2,31]),{41:62,46:$Vh,47:$Vi},o($Vm,[2,41],{40:63,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vn,[2,42]),o($Vn,[2,43]),o($Vn,[2,44]),o($Vn,[2,45]),o($Vo,[2,46]),o($Vo,[2,47]),o($Vc,[2,25],{31:[1,64]}),{35:[1,65]},{39:[1,66]},{39:[1,67]},o($Vj,[2,14]),o($Vj,[2,17],{22:30,21:68,63:$V9,64:$Va,65:$Vb}),{10:[1,69]},{19:[2,13]},o($Vp,[2,34]),{21:70,22:30,63:$V9,64:$Va,65:$Vb},{21:71,22:30,39:[1,72],63:$V9,64:$Va,65:$Vb},o($Vm,[2,40],{40:73,42:$Vd,43:$Ve,44:$Vf,45:$Vg}),o($Vm,[2,39]),{32:74,36:$Vq},{21:76,22:30,63:$V9,64:$Va,65:$Vb},o($Vc,[2,48],{39:[1,77]}),o($Vc,[2,50],{39:[1,78]}),o($Vj,[2,16]),o($Vl,[2,5]),o($Vp,[2,36]),o($Vp,[2,35]),{21:79,22:30,63:$V9,64:$Va,65:$Vb},o($Vm,[2,38]),{33:[1,80]},{32:81,33:[2,28],36:$Vq},o($Vc,[2,27]),o($Vc,[2,49]),o($Vc,[2,51]),o($Vp,[2,37]),o($Vc,[2,26]),{33:[2,29]}],\ndefaultActions: {2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],36:[2,8],37:[2,10],58:[2,13],81:[2,29]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 13; \nbreak;\ncase 1: this.begin('type_directive'); return 14; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 11; \nbreak;\ncase 3: this.popState(); this.popState(); return 16; \nbreak;\ncase 4:return 15;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 10;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 17;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11: this.begin(\"struct\"); /*console.log('Starting struct');*/ return 31;\nbreak;\ncase 12:return \"EOF_IN_STRUCT\";\nbreak;\ncase 13:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 14: /*console.log('Ending struct');*/this.popState(); return 33;\nbreak;\ncase 15:/* nothing */\nbreak;\ncase 16: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 17:return 30;\nbreak;\ncase 18:return 48;\nbreak;\ncase 19:return 49;\nbreak;\ncase 20:return 34;\nbreak;\ncase 21:return 35;\nbreak;\ncase 22:this.begin(\"generic\");\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24:return \"GENERICTYPE\";\nbreak;\ncase 25:this.begin(\"string\");\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:return \"STR\";\nbreak;\ncase 28:return 43;\nbreak;\ncase 29:return 43;\nbreak;\ncase 30:return 45;\nbreak;\ncase 31:return 45;\nbreak;\ncase 32:return 44;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 46;\nbreak;\ncase 35:return 47;\nbreak;\ncase 36:return 25;\nbreak;\ncase 37:return 61;\nbreak;\ncase 38:return 'DOT';\nbreak;\ncase 39:return 'PLUS';\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 'EQUALS';\nbreak;\ncase 42:return 'EQUALS';\nbreak;\ncase 43:return 65;\nbreak;\ncase 44:return 'PUNCTUATION';\nbreak;\ncase 45:return 64;\nbreak;\ncase 46:return 63;\nbreak;\ncase 47:return 60;\nbreak;\ncase 48:return 19;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%%(?!\\{)*[^\\n]*(\\r?\\n)+)/,/^(?:%%[^\\n]*(\\r?\\n)*)/,/^(?:(\\r?\\n)+)/,/^(?:\\s+)/,/^(?:classDiagram-v2\\b)/,/^(?:classDiagram\\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\\n])/,/^(?:[^{}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[26,27],\"inclusive\":false},\"generic\":{\"rules\":[23,24],\"inclusive\":false},\"struct\":{\"rules\":[12,13,14,15,16],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,17,18,19,20,21,22,25,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\nvar hex_1 = require(\"./hex\");\nvar keyword_1 = require(\"./keyword\");\nvar rgb_1 = require(\"./rgb\");\nvar hsl_1 = require(\"./hsl\");\n/* COLOR */\nvar Color = {\n /* VARIABLES */\n format: {\n keyword: keyword_1.default,\n hex: hex_1.default,\n rgb: rgb_1.default,\n rgba: rgb_1.default,\n hsl: hsl_1.default,\n hsla: hsl_1.default\n },\n /* API */\n parse: function (color) {\n if (typeof color !== 'string')\n return color;\n var channels = hex_1.default.parse(color) || rgb_1.default.parse(color) || hsl_1.default.parse(color) || keyword_1.default.parse(color); // Color providers ordered with performance in mind\n if (channels)\n return channels;\n throw new Error(\"Unsupported color format: \\\"\" + color + \"\\\"\");\n },\n stringify: function (channels) {\n // SASS returns a keyword if possible, but we avoid doing that as it's slower and doesn't really add any value\n if (!channels.changed && channels.color)\n return channels.color;\n if (channels.type.is(types_1.TYPE.HSL) || channels.data.r === undefined) {\n return hsl_1.default.stringify(channels);\n }\n else if (channels.a < 1 || !Number.isInteger(channels.r) || !Number.isInteger(channels.g) || !Number.isInteger(channels.b)) {\n return rgb_1.default.stringify(channels);\n }\n else {\n return hex_1.default.stringify(channels);\n }\n }\n};\n/* EXPORT */\nexports.default = Color;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n","// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,28],$Vc=[1,23],$Vd=[1,24],$Ve=[1,25],$Vf=[1,26],$Vg=[1,29],$Vh=[1,32],$Vi=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],$Vj=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],$Vk=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],$Vl=[4,5,14,15,17,19,20,22,23,24,25,26,36,39];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"idStatement\":11,\"DESCR\":12,\"-->\":13,\"HIDE_EMPTY\":14,\"scale\":15,\"WIDTH\":16,\"COMPOSIT_STATE\":17,\"STRUCT_START\":18,\"STRUCT_STOP\":19,\"STATE_DESCR\":20,\"AS\":21,\"ID\":22,\"FORK\":23,\"JOIN\":24,\"CONCURRENT\":25,\"note\":26,\"notePosition\":27,\"NOTE_TEXT\":28,\"openDirective\":29,\"typeDirective\":30,\"closeDirective\":31,\":\":32,\"argDirective\":33,\"eol\":34,\";\":35,\"EDGE_STATE\":36,\"left_of\":37,\"right_of\":38,\"open_directive\":39,\"type_directive\":40,\"arg_directive\":41,\"close_directive\":42,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",12:\"DESCR\",13:\"-->\",14:\"HIDE_EMPTY\",15:\"scale\",16:\"WIDTH\",17:\"COMPOSIT_STATE\",18:\"STRUCT_START\",19:\"STRUCT_STOP\",20:\"STATE_DESCR\",21:\"AS\",22:\"ID\",23:\"FORK\",24:\"JOIN\",25:\"CONCURRENT\",26:\"note\",28:\"NOTE_TEXT\",32:\":\",35:\";\",36:\"EDGE_STATE\",37:\"left_of\",38:\"right_of\",39:\"open_directive\",40:\"type_directive\",41:\"arg_directive\",42:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$='nl';\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 11:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 12:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 13:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 17:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 18:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 19:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 22:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 23:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 30: case 31:\nthis.$=$$[$0];\nbreak;\ncase 34:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 35:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 36:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 37:\n yy.parseDirective('}%%', 'close_directive', 'state'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,29:6,39:$V3},o([1,4,5,14,15,17,20,22,23,24,25,26,36,39],$V4,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},{31:30,32:[1,31],42:$Vh},o([32,42],[2,35]),o($Vi,[2,6]),{6:27,10:33,11:18,14:$V7,15:$V8,17:$V9,20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,8]),o($Vi,[2,9]),o($Vi,[2,10],{12:[1,34],13:[1,35]}),o($Vi,[2,14]),{16:[1,36]},o($Vi,[2,16],{18:[1,37]}),{21:[1,38]},o($Vi,[2,20]),o($Vi,[2,21]),o($Vi,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},o($Vi,[2,25]),o($Vj,[2,30]),o($Vj,[2,31]),o($Vk,[2,26]),{33:43,41:[1,44]},o($Vk,[2,37]),o($Vi,[2,7]),o($Vi,[2,11]),{11:45,22:$Vb,36:$Vg},o($Vi,[2,15]),o($Vl,$V4,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:$Vh},{42:[2,36]},o($Vi,[2,12],{12:[1,51]}),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,52],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},o($Vk,[2,27]),o($Vi,[2,13]),o($Vi,[2,17]),o($Vl,$V4,{8:56}),o($Vi,[2,23]),o($Vi,[2,24]),{4:$V5,5:$V6,6:27,9:14,10:16,11:18,14:$V7,15:$V8,17:$V9,19:[1,57],20:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,26:$Vf,29:6,36:$Vg,39:$V3},o($Vi,[2,19])],\ndefaultActions: {7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 39; \nbreak;\ncase 1: this.begin('type_directive'); return 40; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 32; \nbreak;\ncase 3: this.popState(); this.popState(); return 42; \nbreak;\ncase 4:return 41;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 5;\nbreak;\ncase 8:/* skip all whitespace */\nbreak;\ncase 9:/* skip same-line whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 15; \nbreak;\ncase 13:return 16;\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15: this.pushState('STATE'); \nbreak;\ncase 16:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 17:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 18:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 23;\nbreak;\ncase 19:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 24;\nbreak;\ncase 20:this.begin(\"STATE_STRING\");\nbreak;\ncase 21:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 22:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 23:this.popState();\nbreak;\ncase 24: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 25:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 17;\nbreak;\ncase 26:this.popState();\nbreak;\ncase 27:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 18;\nbreak;\ncase 28: /*console.log('Ending struct');*/ this.popState(); return 19;\nbreak;\ncase 29:/* nothing */\nbreak;\ncase 30: this.begin('NOTE'); return 26; \nbreak;\ncase 31: this.popState();this.pushState('NOTE_ID');return 37;\nbreak;\ncase 32: this.popState();this.pushState('NOTE_ID');return 38;\nbreak;\ncase 33: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 34:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 35:/**/\nbreak;\ncase 36: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 37:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 38: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 22;\nbreak;\ncase 39: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 28;\nbreak;\ncase 40: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 28;\nbreak;\ncase 41: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 42: /*console.log('Got state diagram', yy_.yytext,'#');*/return 7; \nbreak;\ncase 43: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 14; \nbreak;\ncase 44: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 36;\nbreak;\ncase 45: /*console.log('=>ID=',yy_.yytext);*/ return 22;\nbreak;\ncase 46: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 12; \nbreak;\ncase 47:return 13;\nbreak;\ncase 48:return 25;\nbreak;\ncase 49:return 5;\nbreak;\ncase 50:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:[\\s]+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[9,10],\"inclusive\":false},\"close_directive\":{\"rules\":[9,10],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4,9,10],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3,9,10],\"inclusive\":false},\"open_directive\":{\"rules\":[1,9,10],\"inclusive\":false},\"struct\":{\"rules\":[9,10,15,28,29,30,44,45,46,47,48],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[37],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[34,35,36],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[39,40],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[38],\"inclusive\":false},\"NOTE\":{\"rules\":[31,32,33],\"inclusive\":false},\"SCALE\":{\"rules\":[13,14],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[22],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[23,24],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[9,10,16,17,18,19,20,21,25,26,27],\"inclusive\":false},\"ID\":{\"rules\":[9,10],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,_t=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,yt=/Z|[+-]\\d\\d(?::?\\d\\d)?/,gt=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,!1],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,!1],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,!1],[\"YYYYDDD\",/\\d{7}/]],vt=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,9],$V1=[1,7],$V2=[1,6],$V3=[1,8],$V4=[1,20,21,22,23,38,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$V5=[2,10],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[1,23],$Va=[1,30],$Vb=[1,54],$Vc=[1,32],$Vd=[1,33],$Ve=[1,34],$Vf=[1,35],$Vg=[1,36],$Vh=[1,48],$Vi=[1,43],$Vj=[1,45],$Vk=[1,40],$Vl=[1,44],$Vm=[1,47],$Vn=[1,51],$Vo=[1,52],$Vp=[1,53],$Vq=[1,42],$Vr=[1,46],$Vs=[1,49],$Vt=[1,50],$Vu=[1,41],$Vv=[1,57],$Vw=[1,62],$Vx=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vy=[1,66],$Vz=[1,65],$VA=[1,67],$VB=[20,21,23,69,70],$VC=[20,21,22,23,69,70],$VD=[20,21,22,23,47,69,70],$VE=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VF=[20,21,23],$VG=[20,21,23,46,69,70,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VH=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VI=[46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$VJ=[1,115],$VK=[1,136],$VL=[1,137],$VM=[1,138],$VN=[1,139],$VO=[1,119],$VP=[1,110],$VQ=[1,111],$VR=[1,107],$VS=[1,131],$VT=[1,132],$VU=[1,133],$VV=[1,134],$VW=[1,135],$VX=[1,140],$VY=[1,141],$VZ=[1,113],$V_=[1,121],$V$=[1,124],$V01=[1,122],$V11=[1,123],$V21=[1,116],$V31=[1,129],$V41=[1,128],$V51=[1,112],$V61=[1,109],$V71=[1,118],$V81=[1,120],$V91=[1,125],$Va1=[1,126],$Vb1=[1,127],$Vc1=[1,130],$Vd1=[20,21,22,23,38,42,46,75,76,77,78,79,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Ve1=[1,144],$Vf1=[1,148],$Vg1=[1,150],$Vh1=[1,151],$Vi1=[12,21,22,24],$Vj1=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,90,91,94,95,96,98,99,100,101,105,106,107,108,109,110],$Vk1=[20,21,22,23,26,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],$Vl1=[22,91],$Vm1=[1,220],$Vn1=[1,224],$Vo1=[1,221],$Vp1=[1,218],$Vq1=[1,215],$Vr1=[1,216],$Vs1=[1,217],$Vt1=[1,219],$Vu1=[1,222],$Vv1=[1,223],$Vw1=[1,225],$Vx1=[1,241],$Vy1=[20,21,23,91],$Vz1=[20,21,22,23,75,87,90,91,94,95,96,97,98,99,100];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"mermaidDoc\":4,\"directive\":5,\"openDirective\":6,\"typeDirective\":7,\"closeDirective\":8,\"separator\":9,\":\":10,\"argDirective\":11,\"open_directive\":12,\"type_directive\":13,\"arg_directive\":14,\"close_directive\":15,\"graphConfig\":16,\"document\":17,\"line\":18,\"statement\":19,\"SEMI\":20,\"NEWLINE\":21,\"SPACE\":22,\"EOF\":23,\"GRAPH\":24,\"NODIR\":25,\"DIR\":26,\"FirstStmtSeperator\":27,\"ending\":28,\"endToken\":29,\"spaceList\":30,\"spaceListNewline\":31,\"verticeStatement\":32,\"styleStatement\":33,\"linkStyleStatement\":34,\"classDefStatement\":35,\"classStatement\":36,\"clickStatement\":37,\"subgraph\":38,\"text\":39,\"SQS\":40,\"SQE\":41,\"end\":42,\"link\":43,\"node\":44,\"vertex\":45,\"AMP\":46,\"STYLE_SEPARATOR\":47,\"idString\":48,\"PS\":49,\"PE\":50,\"(-\":51,\"-)\":52,\"STADIUMSTART\":53,\"STADIUMEND\":54,\"SUBROUTINESTART\":55,\"SUBROUTINEEND\":56,\"CYLINDERSTART\":57,\"CYLINDEREND\":58,\"DIAMOND_START\":59,\"DIAMOND_STOP\":60,\"TAGEND\":61,\"TRAPSTART\":62,\"TRAPEND\":63,\"INVTRAPSTART\":64,\"INVTRAPEND\":65,\"linkStatement\":66,\"arrowText\":67,\"TESTSTR\":68,\"START_LINK\":69,\"LINK\":70,\"PIPE\":71,\"textToken\":72,\"STR\":73,\"keywords\":74,\"STYLE\":75,\"LINKSTYLE\":76,\"CLASSDEF\":77,\"CLASS\":78,\"CLICK\":79,\"DOWN\":80,\"UP\":81,\"textNoTags\":82,\"textNoTagsToken\":83,\"DEFAULT\":84,\"stylesOpt\":85,\"alphaNum\":86,\"HEX\":87,\"numList\":88,\"INTERPOLATE\":89,\"NUM\":90,\"COMMA\":91,\"style\":92,\"styleComponent\":93,\"ALPHA\":94,\"COLON\":95,\"MINUS\":96,\"UNIT\":97,\"BRKT\":98,\"DOT\":99,\"PCT\":100,\"TAGSTART\":101,\"alphaNumToken\":102,\"idStringToken\":103,\"alphaNumStatement\":104,\"PUNCTUATION\":105,\"UNICODE_TEXT\":106,\"PLUS\":107,\"EQUALS\":108,\"MULT\":109,\"UNDERSCORE\":110,\"graphCodeTokens\":111,\"ARROW_CROSS\":112,\"ARROW_POINT\":113,\"ARROW_CIRCLE\":114,\"ARROW_OPEN\":115,\"QUOTE\":116,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",10:\":\",12:\"open_directive\",13:\"type_directive\",14:\"arg_directive\",15:\"close_directive\",20:\"SEMI\",21:\"NEWLINE\",22:\"SPACE\",23:\"EOF\",24:\"GRAPH\",25:\"NODIR\",26:\"DIR\",38:\"subgraph\",40:\"SQS\",41:\"SQE\",42:\"end\",46:\"AMP\",47:\"STYLE_SEPARATOR\",49:\"PS\",50:\"PE\",51:\"(-\",52:\"-)\",53:\"STADIUMSTART\",54:\"STADIUMEND\",55:\"SUBROUTINESTART\",56:\"SUBROUTINEEND\",57:\"CYLINDERSTART\",58:\"CYLINDEREND\",59:\"DIAMOND_START\",60:\"DIAMOND_STOP\",61:\"TAGEND\",62:\"TRAPSTART\",63:\"TRAPEND\",64:\"INVTRAPSTART\",65:\"INVTRAPEND\",68:\"TESTSTR\",69:\"START_LINK\",70:\"LINK\",71:\"PIPE\",73:\"STR\",75:\"STYLE\",76:\"LINKSTYLE\",77:\"CLASSDEF\",78:\"CLASS\",79:\"CLICK\",80:\"DOWN\",81:\"UP\",84:\"DEFAULT\",87:\"HEX\",89:\"INTERPOLATE\",90:\"NUM\",91:\"COMMA\",94:\"ALPHA\",95:\"COLON\",96:\"MINUS\",97:\"UNIT\",98:\"BRKT\",99:\"DOT\",100:\"PCT\",101:\"TAGSTART\",105:\"PUNCTUATION\",106:\"UNICODE_TEXT\",107:\"PLUS\",108:\"EQUALS\",109:\"MULT\",110:\"UNDERSCORE\",112:\"ARROW_CROSS\",113:\"ARROW_POINT\",114:\"ARROW_CIRCLE\",115:\"ARROW_OPEN\",116:\"QUOTE\"},\nproductions_: [0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[88,1],[88,3],[85,1],[85,3],[92,1],[92,2],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[93,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[104,1],[104,1],[104,1],[104,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[102,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 5:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 6:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 7:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 8:\n yy.parseDirective('}%%', 'close_directive', 'flowchart'); \nbreak;\ncase 10:\n this.$ = [];\nbreak;\ncase 11:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 12: case 76: case 78: case 90: case 136: case 138: case 139:\nthis.$=$$[$0];\nbreak;\ncase 19:\n yy.setDirection('TB');this.$ = 'TB';\nbreak;\ncase 20:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 35:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 36: case 37: case 38: case 39: case 40:\nthis.$=[];\nbreak;\ncase 41:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 42:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 43:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 47:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 48:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 49:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 50:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 51:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 52:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 53:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 55:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 59:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 60:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 61:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 62:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 63:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 64:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 65:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 66:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 67:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 68:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 69:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 70: case 71:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 72:\nthis.$ = $$[$0];\nbreak;\ncase 73:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 74:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 75:\nthis.$ = $$[$0-1];\nbreak;\ncase 77: case 91: case 137:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 92: case 93:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 97:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 98:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 99:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 100: case 102:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 101:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 103:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 104:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 105:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 106:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 107: case 109:\nthis.$ = [$$[$0]]\nbreak;\ncase 108: case 110:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 112:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 134:\nthis.$=$$[$0]\nbreak;\ncase 135:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 140:\nthis.$='v';\nbreak;\ncase 141:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:$V0,16:4,21:$V1,22:$V2,24:$V3},o($V4,$V5,{17:11}),{7:12,13:[1,13]},{16:14,21:$V1,22:$V2,24:$V3},{16:15,21:$V1,22:$V2,24:$V3},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{8:55,10:[1,56],15:$Vv},o([10,15],[2,6]),o($V4,[2,17]),o($V4,[2,18]),o($V4,[2,19]),{20:[1,59],21:[1,60],22:$Vw,27:58,30:61},o($Vx,[2,11]),o($Vx,[2,12]),o($Vx,[2,13]),o($Vx,[2,14]),o($Vx,[2,15]),o($Vx,[2,16]),{9:63,20:$Vy,21:$Vz,23:$VA,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:$Vy,21:$Vz,23:$VA},{9:72,20:$Vy,21:$Vz,23:$VA},{9:73,20:$Vy,21:$Vz,23:$VA},{9:74,20:$Vy,21:$Vz,23:$VA},{9:75,20:$Vy,21:$Vz,23:$VA},{9:77,20:$Vy,21:$Vz,22:[1,76],23:$VA},o($VB,[2,50],{30:78,22:$Vw}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},o($VC,[2,51],{47:[1,84]}),o($VD,[2,68],{103:95,40:[1,85],46:$Vb,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),o($VE,[2,134]),o($VE,[2,155]),o($VE,[2,156]),o($VE,[2,157]),o($VE,[2,158]),o($VE,[2,159]),o($VE,[2,160]),o($VE,[2,161]),o($VE,[2,162]),o($VE,[2,163]),o($VE,[2,164]),o($VE,[2,165]),o($VE,[2,166]),o($VE,[2,167]),o($VE,[2,168]),o($VE,[2,169]),{9:96,20:$Vy,21:$Vz,23:$VA},{11:97,14:[1,98]},o($VF,[2,8]),o($V4,[2,20]),o($V4,[2,26]),o($V4,[2,27]),{21:[1,99]},o($VG,[2,34],{30:100,22:$Vw}),o($Vx,[2,35]),{44:101,45:37,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VH,[2,44]),o($VH,[2,45]),o($VH,[2,46]),o($VI,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$VJ,24:$VK,26:$VL,38:$VM,39:105,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o([46,68,71,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,74]),o($Vx,[2,36]),o($Vx,[2,37]),o($Vx,[2,38]),o($Vx,[2,39]),o($Vx,[2,40]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:142,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:143}),o($VB,[2,49],{46:$Ve1}),{26:$Vf1,46:$VO,80:$Vg1,86:145,87:[1,146],90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{84:[1,152],88:153,90:[1,154]},{26:$Vf1,46:$VO,80:$Vg1,84:[1,155],86:156,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:157,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:158,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{46:$Vb,48:159,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$VJ,24:$VK,26:$VL,38:$VM,39:160,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:162,42:$VN,46:$VO,49:[1,161],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:163,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:164,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:165,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:166,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:167,42:$VN,46:$VO,59:[1,168],61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:169,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:170,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:171,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VE,[2,135]),o($Vi1,[2,3]),{8:172,15:$Vv},{15:[2,7]},o($V4,[2,28]),o($VG,[2,33]),o($VB,[2,47],{30:173,22:$Vw}),o($VI,[2,69],{22:[1,174]}),{22:[1,175]},{22:$VJ,24:$VK,26:$VL,38:$VM,39:176,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,70:[1,177],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vj1,[2,76]),o($Vj1,[2,78]),o($Vj1,[2,124]),o($Vj1,[2,125]),o($Vj1,[2,126]),o($Vj1,[2,127]),o($Vj1,[2,128]),o($Vj1,[2,129]),o($Vj1,[2,130]),o($Vj1,[2,131]),o($Vj1,[2,132]),o($Vj1,[2,133]),o($Vj1,[2,142]),o($Vj1,[2,143]),o($Vj1,[2,144]),o($Vj1,[2,145]),o($Vj1,[2,146]),o($Vj1,[2,147]),o($Vj1,[2,148]),o($Vj1,[2,149]),o($Vj1,[2,150]),o($Vj1,[2,151]),o($Vj1,[2,152]),o($Vj1,[2,153]),o($Vj1,[2,154]),o($Vj1,[2,79]),o($Vj1,[2,80]),o($Vj1,[2,81]),o($Vj1,[2,82]),o($Vj1,[2,83]),o($Vj1,[2,84]),o($Vj1,[2,85]),o($Vj1,[2,86]),o($Vj1,[2,87]),o($Vj1,[2,88]),o($Vj1,[2,89]),{9:180,20:$Vy,21:$Vz,22:$VJ,23:$VA,24:$VK,26:$VL,38:$VM,40:[1,179],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,181],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vw,30:182},{22:[1,183],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,185]},o($Vk1,[2,136]),o($Vk1,[2,138]),o($Vk1,[2,139]),o($Vk1,[2,140]),o($Vk1,[2,141]),{22:[1,186]},{22:[1,187],91:[1,188]},o($Vl1,[2,107]),{22:[1,189]},{22:[1,190],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,191],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:[1,192],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:184,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VC,[2,53],{103:95,46:$Vb,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu}),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,193],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:194,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,195],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,52:[1,196],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,54:[1,197],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,56:[1,198],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,58:[1,199],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,200],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,39:201,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,202],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,203],65:[1,204],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,63:[1,206],65:[1,205],69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{9:207,20:$Vy,21:$Vz,23:$VA},o($VB,[2,48],{46:$Ve1}),o($VI,[2,71]),o($VI,[2,70]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,61:$VP,69:$VQ,71:[1,208],72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VI,[2,73]),o($Vj1,[2,77]),{22:$VJ,24:$VK,26:$VL,38:$VM,39:209,42:$VN,46:$VO,61:$VP,69:$VQ,72:106,73:$VR,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($Vd1,$V5,{17:210}),o($Vx,[2,43]),{45:211,46:$Vb,48:38,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:212,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vk1,[2,137]),{22:$Vm1,75:$Vn1,85:226,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:227,87:$Vo1,89:[1,228],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:229,87:$Vo1,89:[1,230],90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{90:[1,231]},{22:$Vm1,75:$Vn1,85:232,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:233,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{26:$Vf1,46:$VO,80:$Vg1,86:234,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,73:[1,236],80:$Vg1,86:235,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,54]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,50:[1,237],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,60]),o($VD,[2,56]),o($VD,[2,57]),o($VD,[2,58]),o($VD,[2,59]),o($VD,[2,61]),{22:$VJ,24:$VK,26:$VL,38:$VM,42:$VN,46:$VO,60:[1,238],61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},o($VD,[2,63]),o($VD,[2,64]),o($VD,[2,66]),o($VD,[2,65]),o($VD,[2,67]),o($Vi1,[2,4]),o([22,46,80,90,91,94,95,96,98,99,105,106,107,108,109,110],[2,75]),{22:$VJ,24:$VK,26:$VL,38:$VM,41:[1,239],42:$VN,46:$VO,61:$VP,69:$VQ,72:178,74:117,75:$VS,76:$VT,77:$VU,78:$VV,79:$VW,80:$VX,81:$VY,83:108,84:$VZ,90:$V_,91:$V$,94:$V01,95:$V11,96:$V21,98:$V31,99:$V41,100:$V51,101:$V61,102:114,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,240],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},o($VC,[2,52]),o($VF,[2,99],{91:$Vx1}),o($Vy1,[2,109],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($Vz1,[2,111]),o($Vz1,[2,113]),o($Vz1,[2,114]),o($Vz1,[2,115]),o($Vz1,[2,116]),o($Vz1,[2,117]),o($Vz1,[2,118]),o($Vz1,[2,119]),o($Vz1,[2,120]),o($Vz1,[2,121]),o($Vz1,[2,122]),o($Vz1,[2,123]),o($VF,[2,100],{91:$Vx1}),o($VF,[2,101],{91:$Vx1}),{22:[1,243]},o($VF,[2,102],{91:$Vx1}),{22:[1,244]},o($Vl1,[2,108]),o($VF,[2,92],{91:$Vx1}),o($VF,[2,93],{91:$Vx1}),o($VF,[2,94],{102:149,104:184,26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,95],{102:149,104:184,22:[1,245],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:$Vy,21:$Vz,23:$VA},o($Vx,[2,42]),{22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,92:250,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vz1,[2,112]),{26:$Vf1,46:$VO,80:$Vg1,86:251,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{26:$Vf1,46:$VO,80:$Vg1,86:252,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,102:149,104:147,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1},{73:[1,253]},{73:[1,254]},o($VD,[2,55]),o($VD,[2,62]),o($Vd1,$V5,{17:255}),o($Vy1,[2,110],{93:242,22:$Vm1,75:$Vn1,87:$Vo1,90:$Vp1,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1}),o($VF,[2,105],{102:149,104:184,22:[1,256],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,106],{102:149,104:184,22:[1,257],26:$Vf1,46:$VO,80:$Vg1,90:$V_,91:$V$,94:$V01,95:$V11,96:$Vh1,98:$V31,99:$V41,105:$V71,106:$V81,107:$V91,108:$Va1,109:$Vb1,110:$Vc1}),o($VF,[2,96]),o($VF,[2,98]),{18:18,19:19,20:$V6,21:$V7,22:$V8,23:$V9,32:24,33:25,34:26,35:27,36:28,37:29,38:$Va,42:[1,258],44:31,45:37,46:$Vb,48:38,75:$Vc,76:$Vd,77:$Ve,78:$Vf,79:$Vg,80:$Vh,90:$Vi,91:$Vj,94:$Vk,95:$Vl,96:$Vm,98:$Vn,99:$Vo,103:39,105:$Vp,106:$Vq,107:$Vr,108:$Vs,109:$Vt,110:$Vu},{22:$Vm1,75:$Vn1,85:259,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},{22:$Vm1,75:$Vn1,85:260,87:$Vo1,90:$Vp1,92:213,93:214,94:$Vq1,95:$Vr1,96:$Vs1,97:$Vt1,98:$Vu1,99:$Vv1,100:$Vw1},o($Vx,[2,41]),o($VF,[2,103],{91:$Vx1}),o($VF,[2,104],{91:$Vx1})],\ndefaultActions: {2:[2,1],9:[2,5],10:[2,2],98:[2,7]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 12; \nbreak;\ncase 1: this.begin('type_directive'); return 13; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 10; \nbreak;\ncase 3: this.popState(); this.popState(); return 15; \nbreak;\ncase 4:return 14;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:this.begin(\"string\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:return \"STR\";\nbreak;\ncase 10:return 75;\nbreak;\ncase 11:return 84;\nbreak;\ncase 12:return 76;\nbreak;\ncase 13:return 89;\nbreak;\ncase 14:return 77;\nbreak;\ncase 15:return 78;\nbreak;\ncase 16:return 79;\nbreak;\ncase 17:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 18:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 24;\nbreak;\ncase 19:return 38;\nbreak;\ncase 20:return 42;\nbreak;\ncase 21: this.popState(); return 25; \nbreak;\ncase 22: this.popState(); return 26; \nbreak;\ncase 23: this.popState(); return 26; \nbreak;\ncase 24: this.popState(); return 26; \nbreak;\ncase 25: this.popState(); return 26; \nbreak;\ncase 26: this.popState(); return 26; \nbreak;\ncase 27: this.popState(); return 26; \nbreak;\ncase 28: this.popState(); return 26; \nbreak;\ncase 29: this.popState(); return 26; \nbreak;\ncase 30: this.popState(); return 26; \nbreak;\ncase 31: this.popState(); return 26; \nbreak;\ncase 32: return 90;\nbreak;\ncase 33:return 98;\nbreak;\ncase 34:return 47;\nbreak;\ncase 35:return 95;\nbreak;\ncase 36:return 46;\nbreak;\ncase 37:return 20;\nbreak;\ncase 38:return 91;\nbreak;\ncase 39:return 109;\nbreak;\ncase 40:return 70;\nbreak;\ncase 41:return 70;\nbreak;\ncase 42:return 70;\nbreak;\ncase 43:return 70;\nbreak;\ncase 44:return 70;\nbreak;\ncase 45:return 70;\nbreak;\ncase 46:return 70;\nbreak;\ncase 47:return 70;\nbreak;\ncase 48:return 70;\nbreak;\ncase 49:return 70;\nbreak;\ncase 50:return 70;\nbreak;\ncase 51:return 70;\nbreak;\ncase 52:return 70;\nbreak;\ncase 53:return 70;\nbreak;\ncase 54:return 70;\nbreak;\ncase 55:return 70;\nbreak;\ncase 56:return 70;\nbreak;\ncase 57:return 70;\nbreak;\ncase 58:return 70;\nbreak;\ncase 59:return 70;\nbreak;\ncase 60:return 70;\nbreak;\ncase 61:return 70;\nbreak;\ncase 62:return 70;\nbreak;\ncase 63:return 70;\nbreak;\ncase 64:return 70;\nbreak;\ncase 65:return 70;\nbreak;\ncase 66:return 70;\nbreak;\ncase 67:return 70;\nbreak;\ncase 68:return 69;\nbreak;\ncase 69:return 69;\nbreak;\ncase 70:return 69;\nbreak;\ncase 71:return 69;\nbreak;\ncase 72:return 69;\nbreak;\ncase 73:return 69;\nbreak;\ncase 74:return 69;\nbreak;\ncase 75:return 69;\nbreak;\ncase 76:return 69;\nbreak;\ncase 77:return 69;\nbreak;\ncase 78:return 69;\nbreak;\ncase 79:return 69;\nbreak;\ncase 80:return 51;\nbreak;\ncase 81:return 52;\nbreak;\ncase 82:return 53;\nbreak;\ncase 83:return 54;\nbreak;\ncase 84:return 55;\nbreak;\ncase 85:return 56;\nbreak;\ncase 86:return 57;\nbreak;\ncase 87:return 58;\nbreak;\ncase 88:return 96;\nbreak;\ncase 89:return 99;\nbreak;\ncase 90:return 110;\nbreak;\ncase 91:return 107;\nbreak;\ncase 92:return 100;\nbreak;\ncase 93:return 108;\nbreak;\ncase 94:return 108;\nbreak;\ncase 95:return 101;\nbreak;\ncase 96:return 61;\nbreak;\ncase 97:return 81;\nbreak;\ncase 98:return 'SEP';\nbreak;\ncase 99:return 80;\nbreak;\ncase 100:return 94;\nbreak;\ncase 101:return 63;\nbreak;\ncase 102:return 62;\nbreak;\ncase 103:return 65;\nbreak;\ncase 104:return 64;\nbreak;\ncase 105:return 105;\nbreak;\ncase 106:return 106;\nbreak;\ncase 107:return 71;\nbreak;\ncase 108:return 49;\nbreak;\ncase 109:return 50;\nbreak;\ncase 110:return 40;\nbreak;\ncase 111:return 41;\nbreak;\ncase 112:return 59\nbreak;\ncase 113:return 60\nbreak;\ncase 114:return 116;\nbreak;\ncase 115:return 21;\nbreak;\ncase 116:return 22;\nbreak;\ncase 117:return 23;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/,/^(?:((?:(?!\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\}%%)/,/^(?:((?:(?!\\}%%).|\\n)*))/,/^(?:%%(?!\\{)[^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/,/^(?:\\s*==>\\s*)/,/^(?:\\s*==[o]\\s*)/,/^(?:\\s*==[\\=]\\s*)/,/^(?:\\s*<--\\s*)/,/^(?:\\s*[x]--\\s*)/,/^(?:\\s*[o]--\\s*)/,/^(?:\\s*<-\\.\\s*)/,/^(?:\\s*[x]-\\.\\s*)/,/^(?:\\s*[o]-\\.\\s*)/,/^(?:\\s*<==\\s*)/,/^(?:\\s*[x]==\\s*)/,/^(?:\\s*[o]==\\s*)/,/^(?:\\s*--\\s*)/,/^(?:\\s*-\\.\\s*)/,/^(?:\\s*==\\s*)/,/^(?:\\(-)/,/^(?:-\\))/,/^(?:\\(\\[)/,/^(?:\\]\\))/,/^(?:\\[\\[)/,/^(?:\\]\\])/,/^(?:\\[\\()/,/^(?:\\)\\])/,/^(?:-)/,/^(?:\\.)/,/^(?:[\\_])/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\\^)/,/^(?:\\\\\\|)/,/^(?:v\\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r?\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[21,22,23,24,25,26,27,28,29,30,31],\"inclusive\":false},\"string\":{\"rules\":[8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,3],$V1=[1,5],$V2=[7,9,11,12,13,14,15,16,17,18,20,27,32],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,21],$Va=[1,23],$Vb=[1,25],$Vc=[1,28],$Vd=[5,7,9,11,12,13,14,15,16,17,18,20,27,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"directive\":4,\"gantt\":5,\"document\":6,\"EOF\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NL\":11,\"dateFormat\":12,\"inclusiveEndDates\":13,\"axisFormat\":14,\"excludes\":15,\"todayMarker\":16,\"title\":17,\"section\":18,\"clickStatement\":19,\"taskTxt\":20,\"taskData\":21,\"openDirective\":22,\"typeDirective\":23,\"closeDirective\":24,\":\":25,\"argDirective\":26,\"click\":27,\"callbackname\":28,\"callbackargs\":29,\"href\":30,\"clickStatementDebug\":31,\"open_directive\":32,\"type_directive\":33,\"arg_directive\":34,\"close_directive\":35,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"gantt\",7:\"EOF\",9:\"SPACE\",11:\"NL\",12:\"dateFormat\",13:\"inclusiveEndDates\",14:\"axisFormat\",15:\"excludes\",16:\"todayMarker\",17:\"title\",18:\"section\",20:\"taskTxt\",21:\"taskData\",25:\":\",27:\"click\",28:\"callbackname\",29:\"callbackargs\",30:\"href\",32:\"open_directive\",33:\"type_directive\",34:\"arg_directive\",35:\"close_directive\"},\nproductions_: [0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 9:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 10:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 11:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 12:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 13:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 14:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 15:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 17:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 21:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 22:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 23:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 24:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 25:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 26:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 27:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 28: case 34:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 29: case 30: case 32:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 31: case 33:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 35:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 36:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 37:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 38:\n yy.parseDirective('}%%', 'close_directive', 'gantt'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:$V0,22:4,32:$V1},{1:[3]},{3:6,4:2,5:$V0,22:4,32:$V1},o($V2,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},{24:26,25:[1,27],35:$Vc},o([25,35],[2,36]),o($V2,[2,8],{1:[2,2]}),o($V2,[2,4]),{4:24,10:29,12:$V3,13:$V4,14:$V5,15:$V6,16:$V7,17:$V8,18:$V9,19:22,20:$Va,22:4,27:$Vb,32:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,9]),o($V2,[2,10]),o($V2,[2,11]),o($V2,[2,12]),o($V2,[2,13]),o($V2,[2,14]),o($V2,[2,15]),o($V2,[2,16]),{21:[1,30]},o($V2,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},o($V2,[2,5]),o($V2,[2,17]),o($V2,[2,21],{29:[1,36],30:[1,37]}),o($V2,[2,27],{28:[1,38]}),o($Vd,[2,19]),{24:39,35:$Vc},{35:[2,37]},o($V2,[2,22],{30:[1,40]}),o($V2,[2,23]),o($V2,[2,25],{29:[1,41]}),{11:[1,42]},o($V2,[2,24]),o($V2,[2,26]),o($Vd,[2,20])],\ndefaultActions: {5:[2,35],6:[2,1],28:[2,38],35:[2,37]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 32; \nbreak;\ncase 1: this.begin('type_directive'); return 33; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 25; \nbreak;\ncase 3: this.popState(); this.popState(); return 35; \nbreak;\ncase 4:return 34;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:/* do nothing */\nbreak;\ncase 8:return 11;\nbreak;\ncase 9:/* skip whitespace */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11:/* skip comments */\nbreak;\ncase 12:this.begin(\"href\");\nbreak;\ncase 13:this.popState();\nbreak;\ncase 14:return 30;\nbreak;\ncase 15:this.begin(\"callbackname\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 18:return 28;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return 29;\nbreak;\ncase 21:this.begin(\"click\");\nbreak;\ncase 22:this.popState();\nbreak;\ncase 23:return 27;\nbreak;\ncase 24:return 5;\nbreak;\ncase 25:return 12;\nbreak;\ncase 26:return 13;\nbreak;\ncase 27:return 14;\nbreak;\ncase 28:return 15;\nbreak;\ncase 29:return 16;\nbreak;\ncase 30:return 'date';\nbreak;\ncase 31:return 17;\nbreak;\ncase 32:return 18;\nbreak;\ncase 33:return 20;\nbreak;\ncase 34:return 21;\nbreak;\ncase 35:return 25;\nbreak;\ncase 36:return 7;\nbreak;\ncase 37:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)*[^\\n]*)/i,/^(?:[^\\}]%%*[^\\n]*)/i,/^(?:%%*[^\\n]*[\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"callbackargs\":{\"rules\":[19,20],\"inclusive\":false},\"callbackname\":{\"rules\":[16,17,18],\"inclusive\":false},\"href\":{\"rules\":[13,14],\"inclusive\":false},\"click\":{\"rules\":[22,23],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,17,18,19,21],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,21],$V7=[4,6,9,11,17,18,19,21];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"title\":17,\"section\":18,\"taskName\":19,\"taskData\":20,\"open_directive\":21,\"type_directive\":22,\"arg_directive\":23,\"close_directive\":24,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",17:\"title\",18:\"section\",19:\"taskName\",20:\"taskData\",21:\"open_directive\",22:\"type_directive\",23:\"arg_directive\",24:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 11:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 12:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 13:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\ncase 15:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 16:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 17:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 18:\n yy.parseDirective('}%%', 'close_directive', 'journey'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,21:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,21:$V1},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:$V3,18:$V4,19:$V5,21:$V1},{1:[2,2]},{14:19,15:[1,20],24:$V6},o([15,24],[2,16]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:18,10:22,12:4,17:$V3,18:$V4,19:$V5,21:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),o($V2,[2,12]),{20:[1,23]},o($V2,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},o($V2,[2,5]),o($V2,[2,13]),o($V7,[2,9]),{14:27,24:$V6},{24:[2,17]},{11:[1,28]},o($V7,[2,10])],\ndefaultActions: {5:[2,15],7:[2,2],21:[2,18],26:[2,17]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 21; \nbreak;\ncase 1: this.begin('type_directive'); return 22; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 24; \nbreak;\ncase 4:return 23;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:return 4;\nbreak;\ncase 11:return 17;\nbreak;\ncase 12:return 18;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 20;\nbreak;\ncase 15:return 15;\nbreak;\ncase 16:return 6;\nbreak;\ncase 17:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANNEL */\nfunction channel(color, channel) {\n return utils_1.default.lang.round(color_1.default.parse(color)[channel]);\n}\n/* EXPORT */\nexports.default = channel;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* ADJUST CHANNEL */\nfunction adjustChannel(color, channel, amount) {\n var channels = color_1.default.parse(color), amountCurrent = channels[channel], amountNext = utils_1.default.channel.clamp[channel](amountCurrent + amount);\n if (amountCurrent !== amountNext)\n channels[channel] = amountNext;\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = adjustChannel;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _1 = require(\".\");\n/* REUSABLE */\nvar channels = new _1.default({ r: 0, g: 0, b: 0, a: 0 }, 'transparent');\n/* EXPORT */\nexports.default = channels;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\nfunction rgba(r, g, b, a) {\n if (b === void 0) { b = 0; }\n if (a === void 0) { a = 1; }\n if (typeof r !== 'number')\n return change_1.default(r, { a: g });\n var channels = reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(r),\n g: utils_1.default.channel.clamp.g(g),\n b: utils_1.default.channel.clamp.b(b),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = rgba;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* CHANGE */\nfunction change(color, channels) {\n var ch = color_1.default.parse(color);\n for (var c in channels) {\n ch[c] = utils_1.default.channel.clamp[c](channels[c]);\n }\n return color_1.default.stringify(ch);\n}\n/* EXPORT */\nexports.default = change;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n","'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,5],$V2=[1,6],$V3=[1,7],$V4=[1,9],$V5=[1,10,12,19,20,21,22],$V6=[1,6,10,12,19,20,21,22],$V7=[19,20,21],$V8=[1,22],$V9=[6,19,20,21,22];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"eol\":4,\"directive\":5,\"PIE\":6,\"document\":7,\"line\":8,\"statement\":9,\"txt\":10,\"value\":11,\"title\":12,\"title_value\":13,\"openDirective\":14,\"typeDirective\":15,\"closeDirective\":16,\":\":17,\"argDirective\":18,\"NEWLINE\":19,\";\":20,\"EOF\":21,\"open_directive\":22,\"type_directive\":23,\"arg_directive\":24,\"close_directive\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",6:\"PIE\",10:\"txt\",11:\"value\",12:\"title\",13:\"title_value\",17:\":\",19:\"NEWLINE\",20:\";\",21:\"EOF\",22:\"open_directive\",23:\"type_directive\",24:\"arg_directive\",25:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$ = $$[$0-1] \nbreak;\ncase 8:\n yy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 9:\n this.$=$$[$0].trim();yy.setTitle(this.$); \nbreak;\ncase 16:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 17:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 18:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 19:\n yy.parseDirective('}%%', 'close_directive', 'pie'); \nbreak;\n}\n},\ntable: [{3:1,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{1:[3]},{3:10,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},{3:11,4:2,5:3,6:$V0,14:8,19:$V1,20:$V2,21:$V3,22:$V4},o($V5,[2,4],{7:12}),o($V6,[2,13]),o($V6,[2,14]),o($V6,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},o($V7,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:$V4}),{16:20,17:[1,21],25:$V8},o([17,25],[2,17]),o($V5,[2,5]),{4:23,19:$V1,20:$V2,21:$V3},{11:[1,24]},{13:[1,25]},o($V7,[2,10]),o($V9,[2,11]),{18:26,24:[1,27]},o($V9,[2,19]),o($V5,[2,6]),o($V7,[2,8]),o($V7,[2,9]),{16:28,25:$V8},{25:[2,18]},o($V9,[2,12])],\ndefaultActions: {9:[2,16],10:[2,1],11:[2,2],27:[2,18]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 22; \nbreak;\ncase 1: this.begin('type_directive'); return 23; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 17; \nbreak;\ncase 3: this.popState(); this.popState(); return 25; \nbreak;\ncase 4:return 24;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */{ console.log('Crap after close'); }\nbreak;\ncase 7:return 19;\nbreak;\ncase 8:/* do nothing */\nbreak;\ncase 9:/* ignore */\nbreak;\ncase 10: this.begin(\"title\");return 12; \nbreak;\ncase 11: this.popState(); return \"title_value\"; \nbreak;\ncase 12: this.begin(\"string\"); \nbreak;\ncase 13: this.popState(); \nbreak;\ncase 14: return \"txt\"; \nbreak;\ncase 15:return 6;\nbreak;\ncase 16:return \"value\";\nbreak;\ncase 17:return 21;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n\\r]+)/i,/^(?:%%[^\\n]*)/i,/^(?:[\\s]+)/i,/^(?:title\\b)/i,/^(?:(?!\\n||)*[^\\n]*)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:pie\\b)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"close_directive\":{\"rules\":[],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"title\":{\"rules\":[11],\"inclusive\":false},\"string\":{\"rules\":[13,14],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,12,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,5],$V2=[6,9,11,20,30],$V3=[1,17],$V4=[1,20],$V5=[1,24],$V6=[1,25],$V7=[1,26],$V8=[1,27],$V9=[20,27,28],$Va=[4,6,9,11,20,30],$Vb=[23,24,25,26];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"directive\":7,\"line\":8,\"SPACE\":9,\"statement\":10,\"NEWLINE\":11,\"openDirective\":12,\"typeDirective\":13,\"closeDirective\":14,\":\":15,\"argDirective\":16,\"entityName\":17,\"relSpec\":18,\"role\":19,\"ALPHANUM\":20,\"cardinality\":21,\"relType\":22,\"ZERO_OR_ONE\":23,\"ZERO_OR_MORE\":24,\"ONE_OR_MORE\":25,\"ONLY_ONE\":26,\"NON_IDENTIFYING\":27,\"IDENTIFYING\":28,\"WORD\":29,\"open_directive\":30,\"type_directive\":31,\"arg_directive\":32,\"close_directive\":33,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",9:\"SPACE\",11:\"NEWLINE\",15:\":\",20:\"ALPHANUM\",23:\"ZERO_OR_ONE\",24:\"ZERO_OR_MORE\",25:\"ONE_OR_MORE\",26:\"ONLY_ONE\",27:\"NON_IDENTIFYING\",28:\"IDENTIFYING\",29:\"WORD\",30:\"open_directive\",31:\"type_directive\",32:\"arg_directive\",33:\"close_directive\"},\nproductions_: [0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[17,1],[18,3],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 3:\n this.$ = [] \nbreak;\ncase 4:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 5: case 6:\n this.$ = $$[$0] \nbreak;\ncase 7: case 8:\n this.$=[];\nbreak;\ncase 12:\n\n yy.addEntity($$[$0-4]);\n yy.addEntity($$[$0-2]);\n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 13:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 14:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 15:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 16:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 17:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 18:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 19:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 20:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 21:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 22:\n this.$ = $$[$0]; \nbreak;\ncase 23:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 24:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 25:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 26:\n yy.parseDirective('}%%', 'close_directive', 'er'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,7:3,12:4,30:$V1},{1:[3]},o($V2,[2,3],{5:6}),{3:7,4:$V0,7:3,12:4,30:$V1},{13:8,31:[1,9]},{31:[2,23]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,20:$V3,30:$V1},{1:[2,2]},{14:18,15:[1,19],33:$V4},o([15,33],[2,24]),o($V2,[2,8],{1:[2,1]}),o($V2,[2,4]),{7:15,10:21,12:4,17:16,20:$V3,30:$V1},o($V2,[2,6]),o($V2,[2,7]),o($V2,[2,11]),{18:22,21:23,23:$V5,24:$V6,25:$V7,26:$V8},o([15,23,24,25,26],[2,13]),{11:[1,28]},{16:29,32:[1,30]},{11:[2,26]},o($V2,[2,5]),{17:31,20:$V3},{22:32,27:[1,33],28:[1,34]},o($V9,[2,15]),o($V9,[2,16]),o($V9,[2,17]),o($V9,[2,18]),o($Va,[2,9]),{14:35,33:$V4},{33:[2,25]},{15:[1,36]},{21:37,23:$V5,24:$V6,25:$V7,26:$V8},o($Vb,[2,19]),o($Vb,[2,20]),{11:[1,38]},{19:39,20:[1,41],29:[1,40]},{20:[2,14]},o($Va,[2,10]),o($V2,[2,12]),o($V2,[2,21]),o($V2,[2,22])],\ndefaultActions: {5:[2,23],7:[2,2],20:[2,26],30:[2,25],37:[2,14]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('open_directive'); return 30; \nbreak;\ncase 1: this.begin('type_directive'); return 31; \nbreak;\ncase 2: this.popState(); this.begin('arg_directive'); return 15; \nbreak;\ncase 3: this.popState(); this.popState(); return 33; \nbreak;\ncase 4:return 32;\nbreak;\ncase 5:/* skip comments */\nbreak;\ncase 6:/* skip comments */\nbreak;\ncase 7:return 11;\nbreak;\ncase 8:/* skip whitespace */\nbreak;\ncase 9:return 9;\nbreak;\ncase 10:return 29;\nbreak;\ncase 11:return 4;\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:return 24;\nbreak;\ncase 14:return 25;\nbreak;\ncase 15:return 26;\nbreak;\ncase 16:return 23;\nbreak;\ncase 17:return 24;\nbreak;\ncase 18:return 25;\nbreak;\ncase 19:return 27;\nbreak;\ncase 20:return 28;\nbreak;\ncase 21:return 27;\nbreak;\ncase 22:return 27;\nbreak;\ncase 23:return 20;\nbreak;\ncase 24:return yy_.yytext[0];\nbreak;\ncase 25:return 6;\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"open_directive\":{\"rules\":[1],\"inclusive\":false},\"type_directive\":{\"rules\":[2,3],\"inclusive\":false},\"arg_directive\":{\"rules\":[3,4],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}","\"use strict\";\n/* ENUMS */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar TYPE;\n(function (TYPE) {\n TYPE[TYPE[\"ALL\"] = 0] = \"ALL\";\n TYPE[TYPE[\"RGB\"] = 1] = \"RGB\";\n TYPE[TYPE[\"HSL\"] = 2] = \"HSL\";\n})(TYPE || (TYPE = {}));\nexports.TYPE = TYPE;\n;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","module.exports = require('./forEach');\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n","module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n","var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar consts_1 = require(\"../consts\");\n/* HEX */\nvar Hex = {\n /* VARIABLES */\n re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,\n /* API */\n parse: function (color) {\n if (color.charCodeAt(0) !== 35)\n return; // '#'\n var match = color.match(Hex.re);\n if (!match)\n return;\n var hex = match[1], dec = parseInt(hex, 16), length = hex.length, hasAlpha = length % 4 === 0, isFullLength = length > 4, multiplier = isFullLength ? 1 : 17, bits = isFullLength ? 8 : 4, bitsOffset = hasAlpha ? 0 : -1, mask = isFullLength ? 255 : 15;\n return reusable_1.default.set({\n r: ((dec >> (bits * (bitsOffset + 3))) & mask) * multiplier,\n g: ((dec >> (bits * (bitsOffset + 2))) & mask) * multiplier,\n b: ((dec >> (bits * (bitsOffset + 1))) & mask) * multiplier,\n a: hasAlpha ? (dec & mask) * multiplier / 255 : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // #RRGGBBAA\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)] + utils_1.default.unit.frac2hex(channels.a);\n }\n else { // #RRGGBB\n return \"#\" + consts_1.DEC2HEX[Math.round(channels.r)] + consts_1.DEC2HEX[Math.round(channels.g)] + consts_1.DEC2HEX[Math.round(channels.b)];\n }\n }\n};\n/* EXPORT */\nexports.default = Hex;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\nvar color_1 = require(\"../color\");\n/* HSLA */\nfunction hsla(h, s, l, a) {\n if (a === void 0) { a = 1; }\n var channels = reusable_1.default.set({\n h: utils_1.default.channel.clamp.h(h),\n s: utils_1.default.channel.clamp.s(s),\n l: utils_1.default.channel.clamp.l(l),\n a: utils_1.default.channel.clamp.a(a)\n });\n return color_1.default.stringify(channels);\n}\n/* EXPORT */\nexports.default = hsla;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* ALPHA */\nfunction alpha(color) {\n return channel_1.default(color, 'a');\n}\n/* EXPORT */\nexports.default = alpha;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\n/* LUMINANCE */\n//SOURCE: https://planetcalc.com/7779\nfunction luminance(color) {\n var _a = color_1.default.parse(color), r = _a.r, g = _a.g, b = _a.b, luminance = .2126 * utils_1.default.channel.toLinear(r) + .7152 * utils_1.default.channel.toLinear(g) + .0722 * utils_1.default.channel.toLinear(b);\n return utils_1.default.lang.round(luminance);\n}\n/* EXPORT */\nexports.default = luminance;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar luminance_1 = require(\"./luminance\");\n/* IS LIGHT */\nfunction isLight(color) {\n return luminance_1.default(color) >= .5;\n}\n/* EXPORT */\nexports.default = isLight;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* OPACIFY */\nfunction opacify(color, amount) {\n return adjust_channel_1.default(color, 'a', amount);\n}\n/* EXPORT */\nexports.default = opacify;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* TRANSPARENTIZE */\nfunction transparentize(color, amount) {\n return adjust_channel_1.default(color, 'a', -amount);\n}\n/* EXPORT */\nexports.default = transparentize;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar change_1 = require(\"./change\");\n/* ADJUST */\nfunction adjust(color, channels) {\n var ch = color_1.default.parse(color), changes = {};\n for (var c in channels) {\n if (!channels[c])\n continue;\n changes[c] = ch[c] + channels[c];\n }\n return change_1.default(color, changes);\n}\n/* EXPORT */\nexports.default = adjust;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar rgba_1 = require(\"./rgba\");\n/* MIX */\n//SOURCE: https://github.com/sass/dart-sass/blob/7457d2e9e7e623d9844ffd037a070cf32d39c348/lib/src/functions/color.dart#L718-L756\nfunction mix(color1, color2, weight) {\n if (weight === void 0) { weight = 50; }\n var _a = color_1.default.parse(color1), r1 = _a.r, g1 = _a.g, b1 = _a.b, a1 = _a.a, _b = color_1.default.parse(color2), r2 = _b.r, g2 = _b.g, b2 = _b.b, a2 = _b.a, weightScale = weight / 100, weightNormalized = (weightScale * 2) - 1, alphaDelta = a1 - a2, weight1combined = ((weightNormalized * alphaDelta) === -1) ? weightNormalized : (weightNormalized + alphaDelta) / (1 + weightNormalized * alphaDelta), weight1 = (weight1combined + 1) / 2, weight2 = 1 - weight1, r = (r1 * weight1) + (r2 * weight2), g = (g1 * weight1) + (g2 * weight2), b = (b1 * weight1) + (b2 * weight2), a = (a1 * weightScale) + (a2 * (1 - weightScale));\n return rgba_1.default(r, g, b, a);\n}\n/* EXPORT */\nexports.default = mix;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n","var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n","var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n","var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing","var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n","/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n","var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n","var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n","var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n","/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n","module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n","/*\n * __ ___\n * _____/ /___ __/ (_)____\n * / ___/ __/ / / / / / ___/\n * (__ ) /_/ /_/ / / (__ )\n * /____/\\__/\\__, /_/_/____/\n * /____/\n *\n * light - weight css preprocessor @licence MIT\n */\n(function (factory) {/* eslint-disable */\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory(null)) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory(null)) :\n\t\t\t(window['stylis'] = factory(null))\n}(/** @param {*=} options */function factory (options) {/* eslint-disable */\n\n\t'use strict'\n\n\t/**\n\t * Notes\n\t *\n\t * The [''] pattern is used to support closure compiler\n\t * the jsdoc signatures are also used to the same effect\n\t *\n\t * ----\n\t *\n\t * int + int + int === n4 [faster]\n\t *\n\t * vs\n\t *\n\t * int === n1 && int === n2 && int === n3\n\t *\n\t * ----\n\t *\n\t * switch (int) { case ints...} [faster]\n\t *\n\t * vs\n\t *\n\t * if (int == 1 && int === 2 ...)\n\t *\n\t * ----\n\t *\n\t * The (first*n1 + second*n2 + third*n3) format used in the property parser\n\t * is a simple way to hash the sequence of characters\n\t * taking into account the index they occur in\n\t * since any number of 3 character sequences could produce duplicates.\n\t *\n\t * On the other hand sequences that are directly tied to the index of the character\n\t * resolve a far more accurate measure, it's also faster\n\t * to evaluate one condition in a switch statement\n\t * than three in an if statement regardless of the added math.\n\t *\n\t * This allows the vendor prefixer to be both small and fast.\n\t */\n\n\tvar nullptn = /^\\0+/g /* matches leading null characters */\n\tvar formatptn = /[\\0\\r\\f]/g /* matches new line, null and formfeed characters */\n\tvar colonptn = /: */g /* splits animation rules */\n\tvar cursorptn = /zoo|gra/ /* assert cursor varient */\n\tvar transformptn = /([,: ])(transform)/g /* vendor prefix transform, older webkit */\n\tvar animationptn = /,+\\s*(?![^(]*[)])/g /* splits multiple shorthand notation animations */\n\tvar propertiesptn = / +\\s*(?![^(]*[)])/g /* animation properties */\n\tvar elementptn = / *[\\0] */g /* selector elements */\n\tvar selectorptn = /,\\r+?/g /* splits selectors */\n\tvar andptn = /([\\t\\r\\n ])*\\f?&/g /* match & */\n\tvar escapeptn = /:global\\(((?:[^\\(\\)\\[\\]]*|\\[.*\\]|\\([^\\(\\)]*\\))*)\\)/g /* matches :global(.*) */\n\tvar invalidptn = /\\W+/g /* removes invalid characters from keyframes */\n\tvar keyframeptn = /@(k\\w+)\\s*(\\S*)\\s*/ /* matches @keyframes $1 */\n\tvar plcholdrptn = /::(place)/g /* match ::placeholder varient */\n\tvar readonlyptn = /:(read-only)/g /* match :read-only varient */\n\tvar beforeptn = /\\s+(?=[{\\];=:>])/g /* matches \\s before ] ; = : */\n\tvar afterptn = /([[}=:>])\\s+/g /* matches \\s after characters [ } = : */\n\tvar tailptn = /(\\{[^{]+?);(?=\\})/g /* matches tail semi-colons ;} */\n\tvar whiteptn = /\\s{2,}/g /* matches repeating whitespace */\n\tvar pseudoptn = /([^\\(])(:+) */g /* pseudo element */\n\tvar writingptn = /[svh]\\w+-[tblr]{2}/ /* match writing mode property values */\n\tvar gradientptn = /([\\w-]+t\\()/g /* match *gradient property */\n\tvar supportsptn = /\\(\\s*(.*)\\s*\\)/g /* match supports (groups) */\n\tvar propertyptn = /([\\s\\S]*?);/g /* match properties leading semicolon */\n\tvar selfptn = /-self|flex-/g /* match flex- and -self in align-self: flex-*; */\n\tvar pseudofmt = /[^]*?(:[rp][el]a[\\w-]+)[^]*/ /* extrats :readonly or :placholder from selector */\n\tvar trimptn = /[ \\t]+$/ /* match tail whitspace */\n\tvar dimensionptn = /stretch|:\\s*\\w+\\-(?:conte|avail)/ /* match max/min/fit-content, fill-available */\n\tvar imgsrcptn = /([^-])(image-set\\()/\n\n\t/* vendors */\n\tvar webkit = '-webkit-'\n\tvar moz = '-moz-'\n\tvar ms = '-ms-'\n\n\t/* character codes */\n\tvar SEMICOLON = 59 /* ; */\n\tvar CLOSEBRACES = 125 /* } */\n\tvar OPENBRACES = 123 /* { */\n\tvar OPENPARENTHESES = 40 /* ( */\n\tvar CLOSEPARENTHESES = 41 /* ) */\n\tvar OPENBRACKET = 91 /* [ */\n\tvar CLOSEBRACKET = 93 /* ] */\n\tvar NEWLINE = 10 /* \\n */\n\tvar CARRIAGE = 13 /* \\r */\n\tvar TAB = 9 /* \\t */\n\tvar AT = 64 /* @ */\n\tvar SPACE = 32 /* */\n\tvar AND = 38 /* & */\n\tvar DASH = 45 /* - */\n\tvar UNDERSCORE = 95 /* _ */\n\tvar STAR = 42 /* * */\n\tvar COMMA = 44 /* , */\n\tvar COLON = 58 /* : */\n\tvar SINGLEQUOTE = 39 /* ' */\n\tvar DOUBLEQUOTE = 34 /* \" */\n\tvar FOWARDSLASH = 47 /* / */\n\tvar GREATERTHAN = 62 /* > */\n\tvar PLUS = 43 /* + */\n\tvar TILDE = 126 /* ~ */\n\tvar NULL = 0 /* \\0 */\n\tvar FORMFEED = 12 /* \\f */\n\tvar VERTICALTAB = 11 /* \\v */\n\n\t/* special identifiers */\n\tvar KEYFRAME = 107 /* k */\n\tvar MEDIA = 109 /* m */\n\tvar SUPPORTS = 115 /* s */\n\tvar PLACEHOLDER = 112 /* p */\n\tvar READONLY = 111 /* o */\n\tvar IMPORT = 105 /* i */\n\tvar CHARSET = 99 /* c */\n\tvar DOCUMENT = 100 /* d */\n\tvar PAGE = 112 /* p */\n\n\tvar column = 1 /* current column */\n\tvar line = 1 /* current line numebr */\n\tvar pattern = 0 /* :pattern */\n\n\tvar cascade = 1 /* #id h1 h2 vs h1#id h2#id */\n\tvar prefix = 1 /* vendor prefix */\n\tvar escape = 1 /* escape :global() pattern */\n\tvar compress = 0 /* compress output */\n\tvar semicolon = 0 /* no/semicolon option */\n\tvar preserve = 0 /* preserve empty selectors */\n\n\t/* empty reference */\n\tvar array = []\n\n\t/* plugins */\n\tvar plugins = []\n\tvar plugged = 0\n\tvar should = null\n\n\t/* plugin context */\n\tvar POSTS = -2\n\tvar PREPS = -1\n\tvar UNKWN = 0\n\tvar PROPS = 1\n\tvar BLCKS = 2\n\tvar ATRUL = 3\n\n\t/* plugin newline context */\n\tvar unkwn = 0\n\n\t/* keyframe animation */\n\tvar keyed = 1\n\tvar key = ''\n\n\t/* selector namespace */\n\tvar nscopealt = ''\n\tvar nscope = ''\n\n\t/**\n\t * Compile\n\t *\n\t * @param {Array} parent\n\t * @param {Array} current\n\t * @param {string} body\n\t * @param {number} id\n\t * @param {number} depth\n\t * @return {string}\n\t */\n\tfunction compile (parent, current, body, id, depth) {\n\t\tvar bracket = 0 /* brackets [] */\n\t\tvar comment = 0 /* comments /* // or /* */\n\t\tvar parentheses = 0 /* functions () */\n\t\tvar quote = 0 /* quotes '', \"\" */\n\n\t\tvar first = 0 /* first character code */\n\t\tvar second = 0 /* second character code */\n\t\tvar code = 0 /* current character code */\n\t\tvar tail = 0 /* previous character code */\n\t\tvar trail = 0 /* character before previous code */\n\t\tvar peak = 0 /* previous non-whitespace code */\n\n\t\tvar counter = 0 /* count sequence termination */\n\t\tvar context = 0 /* track current context */\n\t\tvar atrule = 0 /* track @at-rule context */\n\t\tvar pseudo = 0 /* track pseudo token index */\n\t\tvar caret = 0 /* current character index */\n\t\tvar format = 0 /* control character formating context */\n\t\tvar insert = 0 /* auto semicolon insertion */\n\t\tvar invert = 0 /* inverted selector pattern */\n\t\tvar length = 0 /* generic length address */\n\t\tvar eof = body.length /* end of file(length) */\n\t\tvar eol = eof - 1 /* end of file(characters) */\n\n\t\tvar char = '' /* current character */\n\t\tvar chars = '' /* current buffer of characters */\n\t\tvar child = '' /* next buffer of characters */\n\t\tvar out = '' /* compiled body */\n\t\tvar children = '' /* compiled children */\n\t\tvar flat = '' /* compiled leafs */\n\t\tvar selector /* generic selector address */\n\t\tvar result /* generic address */\n\n\t\t// ...build body\n\t\twhile (caret < eof) {\n\t\t\tcode = body.charCodeAt(caret)\n\n\t\t\t// eof varient\n\t\t\tif (caret === eol) {\n\t\t\t\t// last character + noop context, add synthetic padding for noop context to terminate\n\t\t\t\tif (comment + quote + parentheses + bracket !== 0) {\n\t\t\t\t\tif (comment !== 0) {\n\t\t\t\t\t\tcode = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH\n\t\t\t\t\t}\n\n\t\t\t\t\tquote = parentheses = bracket = 0\n\t\t\t\t\teof++\n\t\t\t\t\teol++\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t// eof varient\n\t\t\t\tif (caret === eol) {\n\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t}\n\n\t\t\t\t\tif (chars.trim().length > 0) {\n\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchars += body.charAt(caret)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcode = SEMICOLON\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// auto semicolon insertion\n\t\t\t\tif (insert === 1) {\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t// false flags\n\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\tcase OPENPARENTHESES:\n\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// valid\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\tfirst = code\n\t\t\t\t\t\t\tcaret--\n\t\t\t\t\t\t\tcode = SEMICOLON\n\n\t\t\t\t\t\t\twhile (length < eof) {\n\t\t\t\t\t\t\t\tswitch (body.charCodeAt(length++)) {\n\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\tcase CARRIAGE:\n\t\t\t\t\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\t\t\t++caret\n\t\t\t\t\t\t\t\t\t\t\tcode = first\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\t\tlength = eof\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// token varient\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\tchars = chars.trim()\n\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\tcounter = 1\n\t\t\t\t\t\tlength = ++caret\n\n\t\t\t\t\t\twhile (caret < eof) {\n\t\t\t\t\t\t\tswitch (code = body.charCodeAt(caret)) {\n\t\t\t\t\t\t\t\tcase OPENBRACES: {\n\t\t\t\t\t\t\t\t\tcounter++\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\t\tcounter--\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\tswitch (second = body.charCodeAt(caret + 1)) {\n\t\t\t\t\t\t\t\t\t\t// /*, //\n\t\t\t\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\t\t\t\t\tcaret = delimited(second, caret, eol, body)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"[\" === 91 & \"]\" === 93 hence forth 91 + 1 + 1 === 93\n\t\t\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// given \"(\" === 40 & \")\" === 41 hence forth 40 + 1 === 41\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tcode++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// quote tail delimiter is identical to the head delimiter hence noop,\n\t\t\t\t\t\t\t\t// fallthrough clauses have been shifted to the correct tail delimiter\n\t\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\t\t\twhile (caret++ < eol) {\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(caret) === code) {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (counter === 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcaret++\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchild = body.substring(length, caret)\n\n\t\t\t\t\t\tif (first === NULL) {\n\t\t\t\t\t\t\tfirst = (chars = chars.replace(nullptn, '').trim()).charCodeAt(0)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t// @at-rule\n\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\tif (format > 0) {\n\t\t\t\t\t\t\t\t\tchars = chars.replace(formatptn, '')\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\tcase SUPPORTS:\n\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\tselector = current\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tselector = array\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tchild = compile(current, selector, child, second, depth+1)\n\t\t\t\t\t\t\t\tlength = child.length\n\n\t\t\t\t\t\t\t\t// preserve empty @at-rule\n\t\t\t\t\t\t\t\tif (preserve > 0 && length === 0) {\n\t\t\t\t\t\t\t\t\tlength = chars.length\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// execute plugins, @at-rule context\n\t\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\t\tselector = select(array, chars, invert)\n\t\t\t\t\t\t\t\t\tresult = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id)\n\t\t\t\t\t\t\t\t\tchars = selector.join('')\n\n\t\t\t\t\t\t\t\t\tif (result !== void 0) {\n\t\t\t\t\t\t\t\t\t\tif ((length = (child = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\t\tsecond = 0\n\t\t\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (length > 0) {\n\t\t\t\t\t\t\t\t\tswitch (second) {\n\t\t\t\t\t\t\t\t\t\tcase SUPPORTS: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(supportsptn, supports)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase DOCUMENT:\n\t\t\t\t\t\t\t\t\t\tcase MEDIA:\n\t\t\t\t\t\t\t\t\t\tcase DASH: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tcase KEYFRAME: {\n\t\t\t\t\t\t\t\t\t\t\tchars = chars.replace(keyframeptn, '$1 $2' + (keyed > 0 ? key : ''))\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + '{' + child + '}'\n\n\t\t\t\t\t\t\t\t\t\t\tif (prefix === 1 || (prefix === 2 && vendor('@'+child, 3))) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + webkit + child + '@' + child\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = '@' + child\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tchild = chars + child\n\n\t\t\t\t\t\t\t\t\t\t\tif (id === PAGE) {\n\t\t\t\t\t\t\t\t\t\t\t\tchild = (out += child, '')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// selector\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tchild = compile(current, select(current, chars, invert), child, id, depth+1)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tchildren += child\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tatrule = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tchild = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\tcase SEMICOLON: {\n\t\t\t\t\t\tchars = (format > 0 ? chars.replace(formatptn, '') : chars).trim()\n\n\t\t\t\t\t\tif ((length = chars.length) > 1) {\n\t\t\t\t\t\t\t// monkey-patch missing colon\n\t\t\t\t\t\t\tif (pseudo === 0) {\n\t\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\n\t\t\t\t\t\t\t\t// first character is a letter or dash, buffer has a space character\n\t\t\t\t\t\t\t\tif ((first === DASH || first > 96 && first < 123)) {\n\t\t\t\t\t\t\t\t\tlength = (chars = chars.replace(' ', ':')).length\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// execute plugins, property context\n\t\t\t\t\t\t\tif (plugged > 0) {\n\t\t\t\t\t\t\t\tif ((result = proxy(PROPS, chars, current, parent, line, column, out.length, id, depth, id)) !== void 0) {\n\t\t\t\t\t\t\t\t\tif ((length = (chars = result.trim()).length) === 0) {\n\t\t\t\t\t\t\t\t\t\tchars = '\\0\\0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tfirst = chars.charCodeAt(0)\n\t\t\t\t\t\t\tsecond = chars.charCodeAt(1)\n\n\t\t\t\t\t\t\tswitch (first) {\n\t\t\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\t\t\tif (second === IMPORT || second === CHARSET) {\n\t\t\t\t\t\t\t\t\t\tflat += chars + body.charAt(caret)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tif (chars.charCodeAt(length-1) === COLON) {\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tout += property(chars, first, second, chars.charCodeAt(2))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset\n\t\t\t\t\t\tcontext = 0\n\t\t\t\t\t\tinsert = 0\n\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\tformat = 0\n\t\t\t\t\t\tinvert = 0\n\t\t\t\t\t\tchars = ''\n\t\t\t\t\t\tcode = body.charCodeAt(++caret)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// parse characters\n\t\t\tswitch (code) {\n\t\t\t\tcase CARRIAGE:\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\t// auto insert semicolon\n\t\t\t\t\tif (comment + quote + parentheses + bracket + semicolon === 0) {\n\t\t\t\t\t\t// valid non-whitespace characters that\n\t\t\t\t\t\t// may precede a newline\n\t\t\t\t\t\tswitch (peak) {\n\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\tcase SINGLEQUOTE:\n\t\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\t\tcase AT:\n\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\tcase FOWARDSLASH:\n\t\t\t\t\t\t\tcase DASH:\n\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t// current buffer has a colon\n\t\t\t\t\t\t\t\tif (pseudo > 0) {\n\t\t\t\t\t\t\t\t\tinsert = 1\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// terminate line comment\n\t\t\t\t\tif (comment === FOWARDSLASH) {\n\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t} else if (cascade + context === 0 && id !== KEYFRAME && chars.length > 0) {\n\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\tchars += '\\0'\n\t\t\t\t\t}\n\n\t\t\t\t\t// execute plugins, newline context\n\t\t\t\t\tif (plugged * unkwn > 0) {\n\t\t\t\t\t\tproxy(UNKWN, chars, current, parent, line, column, out.length, id, depth, id)\n\t\t\t\t\t}\n\n\t\t\t\t\t// next line, reset column position\n\t\t\t\t\tcolumn = 1\n\t\t\t\t\tline++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase SEMICOLON:\n\t\t\t\tcase CLOSEBRACES: {\n\t\t\t\t\tif (comment + quote + parentheses + bracket === 0) {\n\t\t\t\t\t\tcolumn++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\t// increment column position\n\t\t\t\t\tcolumn++\n\n\t\t\t\t\t// current character\n\t\t\t\t\tchar = body.charAt(caret)\n\n\t\t\t\t\t// remove comments, escape functions, strings, attributes and prepare selectors\n\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\tif (quote + bracket + comment === 0) {\n\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\tcase COLON:\n\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\tif (code !== SPACE) {\n\t\t\t\t\t\t\t\t\t\t\tchar = ' '\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// escape breaking control characters\n\t\t\t\t\t\tcase NULL: {\n\t\t\t\t\t\t\tchar = '\\\\0'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FORMFEED: {\n\t\t\t\t\t\t\tchar = '\\\\f'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase VERTICALTAB: {\n\t\t\t\t\t\t\tchar = '\\\\v'\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// &\n\t\t\t\t\t\tcase AND: {\n\t\t\t\t\t\t\t// inverted selector pattern i.e html &\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0 && cascade > 0) {\n\t\t\t\t\t\t\t\tinvert = 1\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar = '\\f' + char\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ::paceholder, l\n\t\t\t\t\t\t// :read-ony, l\n\t\t\t\t\t\tcase 108: {\n\t\t\t\t\t\t\tif (quote + comment + bracket + pattern === 0 && pseudo > 0) {\n\t\t\t\t\t\t\t\tswitch (caret - pseudo) {\n\t\t\t\t\t\t\t\t\t// ::placeholder\n\t\t\t\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\t\t\t\tif (tail === PLACEHOLDER && body.charCodeAt(caret-3) === COLON) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = tail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// :read-only\n\t\t\t\t\t\t\t\t\tcase 8: {\n\t\t\t\t\t\t\t\t\t\tif (trail === READONLY) {\n\t\t\t\t\t\t\t\t\t\t\tpattern = trail\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tpseudo = caret\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// selectors\n\t\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket === 0) {\n\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\tchar += '\\r'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// quotes\n\t\t\t\t\t\tcase DOUBLEQUOTE:\n\t\t\t\t\t\tcase SINGLEQUOTE: {\n\t\t\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t\t\tquote = quote === code ? 0 : (quote === 0 ? code : quote)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// attributes\n\t\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase CLOSEBRACKET: {\n\t\t\t\t\t\t\tif (quote + comment + parentheses === 0) {\n\t\t\t\t\t\t\t\tbracket--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// functions\n\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tparentheses--\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tif (quote + comment + bracket === 0) {\n\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\tswitch (tail*2 + trail*3) {\n\t\t\t\t\t\t\t\t\t\t// :matches\n\t\t\t\t\t\t\t\t\t\tcase 533: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// :global, :not, :nth-child etc...\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tcounter = 0\n\t\t\t\t\t\t\t\t\t\t\tcontext = 1\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tparentheses++\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase AT: {\n\t\t\t\t\t\t\tif (comment + parentheses + quote + bracket + pseudo + atrule === 0) {\n\t\t\t\t\t\t\t\tatrule = 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// block/line comments\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\t\t\tif (quote + bracket + parentheses > 0) {\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tswitch (comment) {\n\t\t\t\t\t\t\t\t// initialize line/block comment context\n\t\t\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\t\t\tswitch (code*2 + body.charCodeAt(caret+1)*3) {\n\t\t\t\t\t\t\t\t\t\t// //\n\t\t\t\t\t\t\t\t\t\tcase 235: {\n\t\t\t\t\t\t\t\t\t\t\tcomment = FOWARDSLASH\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// /*\n\t\t\t\t\t\t\t\t\t\tcase 220: {\n\t\t\t\t\t\t\t\t\t\t\tlength = caret\n\t\t\t\t\t\t\t\t\t\t\tcomment = STAR\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// end block comment context\n\t\t\t\t\t\t\t\tcase STAR: {\n\t\t\t\t\t\t\t\t\tif (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {\n\t\t\t\t\t\t\t\t\t\t// /* ... */, !\n\t\t\t\t\t\t\t\t\t\tif (body.charCodeAt(length+2) === 33) {\n\t\t\t\t\t\t\t\t\t\t\tout += body.substring(length, caret+1)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tchar = ''\n\t\t\t\t\t\t\t\t\t\tcomment = 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// ignore comment blocks\n\t\t\t\t\tif (comment === 0) {\n\t\t\t\t\t\t// aggressive isolation mode, divide each individual selector\n\t\t\t\t\t\t// including selectors in :not function but excluding selectors in :global function\n\t\t\t\t\t\tif (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {\n\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t// outside of an isolated context i.e nth-child(<...>)\n\t\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = char + '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tchar = '\\0' + char + (code === COMMA ? '' : '\\0')\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// within an isolated context, sleep untill it's terminated\n\t\t\t\t\t\t\t\t\t\tswitch (code) {\n\t\t\t\t\t\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\t// :globa(\n\t\t\t\t\t\t\t\t\t\t\t\tif (pseudo + 7 === caret && tail === 108) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpseudo = 0\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcontext = ++counter\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase CLOSEPARENTHESES: {\n\t\t\t\t\t\t\t\t\t\t\t\tif ((context = --counter) === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\tcase SPACE: {\n\t\t\t\t\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\t\t\t\t\tcase NULL:\n\t\t\t\t\t\t\t\t\t\tcase OPENBRACES:\n\t\t\t\t\t\t\t\t\t\tcase CLOSEBRACES:\n\t\t\t\t\t\t\t\t\t\tcase SEMICOLON:\n\t\t\t\t\t\t\t\t\t\tcase COMMA:\n\t\t\t\t\t\t\t\t\t\tcase FORMFEED:\n\t\t\t\t\t\t\t\t\t\tcase TAB:\n\t\t\t\t\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\t\t\t\t\tcase NEWLINE:\n\t\t\t\t\t\t\t\t\t\tcase CARRIAGE: {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t// ignore in isolated contexts\n\t\t\t\t\t\t\t\t\t\t\tif (context === 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tformat = 1\n\t\t\t\t\t\t\t\t\t\t\t\tchar += '\\0'\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// concat buffer of characters\n\t\t\t\t\t\tchars += char\n\n\t\t\t\t\t\t// previous non-whitespace character code\n\t\t\t\t\t\tif (code !== SPACE && code !== TAB) {\n\t\t\t\t\t\t\tpeak = code\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// tail character codes\n\t\t\ttrail = tail\n\t\t\ttail = code\n\n\t\t\t// visit every character\n\t\t\tcaret++\n\t\t}\n\n\t\tlength = out.length\n\n\t\t// preserve empty selector\n \t\tif (preserve > 0) {\n \t\t\tif (length === 0 && children.length === 0 && (current[0].length === 0) === false) {\n \t\t\t\tif (id !== MEDIA || (current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0])) {\n\t\t\t\t\tlength = current.join(',').length + 2\n \t\t\t\t}\n \t\t\t}\n\t\t}\n\n\t\tif (length > 0) {\n\t\t\t// cascade isolation mode?\n\t\t\tselector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current\n\n\t\t\t// execute plugins, block context\n\t\t\tif (plugged > 0) {\n\t\t\t\tresult = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id)\n\n\t\t\t\tif (result !== void 0 && (out = result).length === 0) {\n\t\t\t\t\treturn flat + out + children\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tout = selector.join(',') + '{' + out + '}'\n\n\t\t\tif (prefix*pattern !== 0) {\n\t\t\t\tif (prefix === 2 && !vendor(out, 2))\n\t\t\t\t\tpattern = 0\n\n\t\t\t\tswitch (pattern) {\n\t\t\t\t\t// ::read-only\n\t\t\t\t\tcase READONLY: {\n\t\t\t\t\t\tout = out.replace(readonlyptn, ':'+moz+'$1')+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// ::placeholder\n\t\t\t\t\tcase PLACEHOLDER: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + webkit + 'input-$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, '::' + moz + '$1') +\n\t\t\t\t\t\t\tout.replace(plcholdrptn, ':' + ms + 'input-$1') + out\n\t\t\t\t\t\t)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpattern = 0\n\t\t\t}\n\t\t}\n\n\t\treturn flat + out + children\n\t}\n\n\t/**\n\t * Select\n\t *\n\t * @param {Array} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @return {Array}\n\t */\n\tfunction select (parent, current, invert) {\n\t\tvar selectors = current.trim().split(selectorptn)\n\t\tvar out = selectors\n\n\t\tvar length = selectors.length\n\t\tvar l = parent.length\n\n\t\tswitch (l) {\n\t\t\t// 0-1 parent selectors\n\t\t\tcase 0:\n\t\t\tcase 1: {\n\t\t\t\tfor (var i = 0, selector = l === 0 ? '' : parent[0] + ' '; i < length; ++i) {\n\t\t\t\t\tout[i] = scope(selector, out[i], invert, l).trim()\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// >2 parent selectors, nested\n\t\t\tdefault: {\n\t\t\t\tfor (var i = 0, j = 0, out = []; i < length; ++i) {\n\t\t\t\t\tfor (var k = 0; k < l; ++k) {\n\t\t\t\t\t\tout[j++] = scope(parent[k] + ' ', selectors[i], invert, l).trim()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Scope\n\t *\n\t * @param {string} parent\n\t * @param {string} current\n\t * @param {number} invert\n\t * @param {number} level\n\t * @return {string}\n\t */\n\tfunction scope (parent, current, invert, level) {\n\t\tvar selector = current\n\t\tvar code = selector.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (selector = selector.trim()).charCodeAt(0)\n\t\t}\n\n\t\tswitch (code) {\n\t\t\t// &\n\t\t\tcase AND: {\n\t\t\t\tswitch (cascade + level) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\tcase 1: {\n\t\t\t\t\t\tif (parent.trim().length === 0) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// :\n\t\t\tcase COLON: {\n\t\t\t\tswitch (selector.charCodeAt(1)) {\n\t\t\t\t\t// g in :global\n\t\t\t\t\tcase 103: {\n\t\t\t\t\t\tif (escape > 0 && cascade > 0) {\n\t\t\t\t\t\t\treturn selector.replace(escapeptn, '$1').replace(andptn, '$1'+nscope)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\t// :hover\n\t\t\t\t\t\treturn parent.trim() + selector.replace(andptn, '$1'+parent.trim())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\t// html &\n\t\t\t\tif (invert*cascade > 0 && selector.indexOf('\\f') > 0) {\n\t\t\t\t\treturn selector.replace(andptn, (parent.charCodeAt(0) === COLON ? '' : '$1')+parent.trim())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent + selector\n\t}\n\n\t/**\n\t * Property\n\t *\n\t * @param {string} input\n\t * @param {number} first\n\t * @param {number} second\n\t * @param {number} third\n\t * @return {string}\n\t */\n\tfunction property (input, first, second, third) {\n\t\tvar index = 0\n\t\tvar out = input + ';'\n\t\tvar hash = (first*2) + (second*3) + (third*4)\n\t\tvar cache\n\n\t\t// animation: a, n, i characters\n\t\tif (hash === 944) {\n\t\t\treturn animation(out)\n\t\t} else if (prefix === 0 || (prefix === 2 && !vendor(out, 1))) {\n\t\t\treturn out\n\t\t}\n\n\t\t// vendor prefix\n\t\tswitch (hash) {\n\t\t\t// text-decoration/text-size-adjust/text-shadow/text-align/text-transform: t, e, x\n\t\t\tcase 1015: {\n\t\t\t\t// text-shadow/text-align/text-transform, a\n\t\t\t\treturn out.charCodeAt(10) === 97 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// filter/fill f, i, l\n\t\t\tcase 951: {\n\t\t\t\t// filter, t\n\t\t\t\treturn out.charCodeAt(3) === 116 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// color/column, c, o, l\n\t\t\tcase 963: {\n\t\t\t\t// column, n\n\t\t\t\treturn out.charCodeAt(5) === 110 ? webkit + out + out : out\n\t\t\t}\n\t\t\t// box-decoration-break, b, o, x\n\t\t\tcase 1009: {\n\t\t\t\tif (out.charCodeAt(4) !== 100) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// mask, m, a, s\n\t\t\t// clip-path, c, l, i\n\t\t\tcase 969:\n\t\t\tcase 942: {\n\t\t\t\treturn webkit + out + out\n\t\t\t}\n\t\t\t// appearance: a, p, p\n\t\t\tcase 978: {\n\t\t\t\treturn webkit + out + moz + out + out\n\t\t\t}\n\t\t\t// hyphens: h, y, p\n\t\t\t// user-select: u, s, e\n\t\t\tcase 1019:\n\t\t\tcase 983: {\n\t\t\t\treturn webkit + out + moz + out + ms + out + out\n\t\t\t}\n\t\t\t// background/backface-visibility, b, a, c\n\t\t\tcase 883: {\n\t\t\t\t// backface-visibility, -\n\t\t\t\tif (out.charCodeAt(8) === DASH) {\n\t\t\t\t\treturn webkit + out + out\n\t\t\t\t}\n\n\t\t\t\t// image-set(...)\n\t\t\t\tif (out.indexOf('image-set(', 11) > 0) {\n\t\t\t\t\treturn out.replace(imgsrcptn, '$1'+webkit+'$2') + out\n\t\t\t\t}\n\n\t\t\t\treturn out\n\t\t\t}\n\t\t\t// flex: f, l, e\n\t\t\tcase 932: {\n\t\t\t\tif (out.charCodeAt(4) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(5)) {\n\t\t\t\t\t\t// flex-grow, g\n\t\t\t\t\t\tcase 103: {\n\t\t\t\t\t\t\treturn webkit + 'box-' + out.replace('-grow', '') + webkit + out + ms + out.replace('grow', 'positive') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-shrink, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('shrink', 'negative') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// flex-basis, b\n\t\t\t\t\t\tcase 98: {\n\t\t\t\t\t\t\treturn webkit + out + ms + out.replace('basis', 'preferred-size') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + out + out\n\t\t\t}\n\t\t\t// order: o, r, d\n\t\t\tcase 964: {\n\t\t\t\treturn webkit + out + ms + 'flex' + '-' + out + out\n\t\t\t}\n\t\t\t// justify-items/justify-content, j, u, s\n\t\t\tcase 1023: {\n\t\t\t\t// justify-content, c\n\t\t\t\tif (out.charCodeAt(8) !== 99) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\n\t\t\t\tcache = out.substring(out.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')\n\t\t\t\treturn webkit + 'box-pack' + cache + webkit + out + ms + 'flex-pack' + cache + out\n\t\t\t}\n\t\t\t// cursor, c, u, r\n\t\t\tcase 1005: {\n\t\t\t\treturn cursorptn.test(out) ? out.replace(colonptn, ':' + webkit) + out.replace(colonptn, ':' + moz) + out : out\n\t\t\t}\n\t\t\t// writing-mode, w, r, i\n\t\t\tcase 1000: {\n\t\t\t\tcache = out.substring(13).trim()\n\t\t\t\tindex = cache.indexOf('-') + 1\n\n\t\t\t\tswitch (cache.charCodeAt(0)+cache.charCodeAt(index)) {\n\t\t\t\t\t// vertical-lr\n\t\t\t\t\tcase 226: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// vertical-rl\n\t\t\t\t\tcase 232: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'tb-rl')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// horizontal-tb\n\t\t\t\t\tcase 220: {\n\t\t\t\t\t\tcache = out.replace(writingptn, 'lr')\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\treturn out\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn webkit + out + ms + cache + out\n\t\t\t}\n\t\t\t// position: sticky\n\t\t\tcase 1017: {\n\t\t\t\tif (out.indexOf('sticky', 9) === -1) {\n\t\t\t\t\treturn out\n\t\t\t\t}\n\t\t\t}\n\t\t\t// display(flex/inline-flex/inline-box): d, i, s\n\t\t\tcase 975: {\n\t\t\t\tindex = (out = input).length - 10\n\t\t\t\tcache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(':', 7) + 1).trim()\n\n\t\t\t\tswitch (hash = cache.charCodeAt(0) + (cache.charCodeAt(7)|0)) {\n\t\t\t\t\t// inline-\n\t\t\t\t\tcase 203: {\n\t\t\t\t\t\t// inline-box\n\t\t\t\t\t\tif (cache.charCodeAt(8) < 111) {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// inline-box/sticky\n\t\t\t\t\tcase 115: {\n\t\t\t\t\t\tout = out.replace(cache, webkit+cache)+';'+out\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\t// inline-flex\n\t\t\t\t\t// flex\n\t\t\t\t\tcase 207:\n\t\t\t\t\tcase 102: {\n\t\t\t\t\t\tout = (\n\t\t\t\t\t\t\tout.replace(cache, webkit+(hash > 102 ? 'inline-' : '')+'box')+';'+\n\t\t\t\t\t\t\tout.replace(cache, webkit+cache)+';'+\n\t\t\t\t\t\t\tout.replace(cache, ms+cache+'box')+';'+\n\t\t\t\t\t\t\tout\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn out + ';'\n\t\t\t}\n\t\t\t// align-items, align-center, align-self: a, l, i, -\n\t\t\tcase 938: {\n\t\t\t\tif (out.charCodeAt(5) === DASH) {\n\t\t\t\t\tswitch (out.charCodeAt(6)) {\n\t\t\t\t\t\t// align-items, i\n\t\t\t\t\t\tcase 105: {\n\t\t\t\t\t\t\tcache = out.replace('-items', '')\n\t\t\t\t\t\t\treturn webkit + out + webkit + 'box-' + cache + ms + 'flex-' + cache + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-self, s\n\t\t\t\t\t\tcase 115: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-item-' + out.replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// align-content\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\treturn webkit + out + ms + 'flex-line-pack' + out.replace('align-content', '').replace(selfptn, '') + out\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// min/max\n\t\t\tcase 973:\n\t\t\tcase 989: {\n\t\t\t\t// min-/max- height/width/block-size/inline-size\n\t\t\t\tif (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// height/width: min-content / width: max-content\n\t\t\tcase 931:\n\t\t\tcase 953: {\n\t\t\t\tif (dimensionptn.test(input) === true) {\n\t\t\t\t\t// stretch\n\t\t\t\t\tif ((cache = input.substring(input.indexOf(':') + 1)).charCodeAt(0) === 115)\n\t\t\t\t\t\treturn property(input.replace('stretch', 'fill-available'), first, second, third).replace(':fill-available', ':stretch')\n\t\t\t\t\telse\n\t\t\t\t\t\treturn out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace('fill-', '')) + out\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// transform, transition: t, r, a\n\t\t\tcase 962: {\n\t\t\t\tout = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : '') + out\n\n\t\t\t\t// transitions\n\t\t\t\tif (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf('transform', 10) > 0) {\n\t\t\t\t\treturn out.substring(0, out.indexOf(';', 27) + 1).replace(transformptn, '$1' + webkit + '$2') + out\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Vendor\n\t *\n\t * @param {string} content\n\t * @param {number} context\n\t * @return {boolean}\n\t */\n\tfunction vendor (content, context) {\n\t\tvar index = content.indexOf(context === 1 ? ':' : '{')\n\t\tvar key = content.substring(0, context !== 3 ? index : 10)\n\t\tvar value = content.substring(index + 1, content.length - 1)\n\n\t\treturn should(context !== 2 ? key : key.replace(pseudofmt, '$1'), value, context)\n\t}\n\n\t/**\n\t * Supports\n\t *\n\t * @param {string} match\n\t * @param {string} group\n\t * @return {string}\n\t */\n\tfunction supports (match, group) {\n\t\tvar out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2))\n\n\t\treturn out !== group+';' ? out.replace(propertyptn, ' or ($1)').substring(4) : '('+group+')'\n\t}\n\n\t/**\n\t * Animation\n\t *\n\t * @param {string} input\n\t * @return {string}\n\t */\n\tfunction animation (input) {\n\t\tvar length = input.length\n\t\tvar index = input.indexOf(':', 9) + 1\n\t\tvar declare = input.substring(0, index).trim()\n\t\tvar out = input.substring(index, length-1).trim()\n\n\t\tswitch (input.charCodeAt(9)*keyed) {\n\t\t\tcase 0: {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// animation-*, -\n\t\t\tcase DASH: {\n\t\t\t\t// animation-name, n\n\t\t\t\tif (input.charCodeAt(10) !== 110) {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t\t// animation/animation-name\n\t\t\tdefault: {\n\t\t\t\t// split in case of multiple animations\n\t\t\t\tvar list = out.split((out = '', animationptn))\n\n\t\t\t\tfor (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {\n\t\t\t\t\tvar value = list[i]\n\t\t\t\t\tvar items = value.split(propertiesptn)\n\n\t\t\t\t\twhile (value = items[index]) {\n\t\t\t\t\t\tvar peak = value.charCodeAt(0)\n\n\t\t\t\t\t\tif (keyed === 1 && (\n\t\t\t\t\t\t\t// letters\n\t\t\t\t\t\t\t(peak > AT && peak < 90) || (peak > 96 && peak < 123) || peak === UNDERSCORE ||\n\t\t\t\t\t\t\t// dash but not in sequence i.e --\n\t\t\t\t\t\t\t(peak === DASH && value.charCodeAt(1) !== DASH)\n\t\t\t\t\t\t)) {\n\t\t\t\t\t\t\t// not a number/function\n\t\t\t\t\t\t\tswitch (isNaN(parseFloat(value)) + (value.indexOf('(') !== -1)) {\n\t\t\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\t\t\tswitch (value) {\n\t\t\t\t\t\t\t\t\t\t// not a valid reserved keyword\n\t\t\t\t\t\t\t\t\t\tcase 'infinite': case 'alternate': case 'backwards': case 'running':\n\t\t\t\t\t\t\t\t\t\tcase 'normal': case 'forwards': case 'both': case 'none': case 'linear':\n\t\t\t\t\t\t\t\t\t\tcase 'ease': case 'ease-in': case 'ease-out': case 'ease-in-out':\n\t\t\t\t\t\t\t\t\t\tcase 'paused': case 'reverse': case 'alternate-reverse': case 'inherit':\n\t\t\t\t\t\t\t\t\t\tcase 'initial': case 'unset': case 'step-start': case 'step-end': {\n\t\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\tvalue += key\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titems[index++] = value\n\t\t\t\t\t}\n\n\t\t\t\t\tout += (i === 0 ? '' : ',') + items.join(' ')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tout = declare + out + ';'\n\n\t\tif (prefix === 1 || (prefix === 2 && vendor(out, 1)))\n\t\t\treturn webkit + out + out\n\n\t\treturn out\n\t}\n\n\t/**\n\t * Isolate\n\t *\n\t * @param {Array} current\n\t */\n\tfunction isolate (current) {\n\t\tfor (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {\n\t\t\t// split individual elements in a selector i.e h1 h2 === [h1, h2]\n\t\t\tvar elements = current[i].split(elementptn)\n\t\t\tvar out = ''\n\n\t\t\tfor (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {\n\t\t\t\t// empty element\n\t\t\t\tif ((size = (element = elements[j]).length) === 0 && l > 1) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\ttail = out.charCodeAt(out.length-1)\n\t\t\t\tcode = element.charCodeAt(0)\n\t\t\t\tpadding = ''\n\n\t\t\t\tif (j !== 0) {\n\t\t\t\t\t// determine if we need padding\n\t\t\t\t\tswitch (tail) {\n\t\t\t\t\t\tcase STAR:\n\t\t\t\t\t\tcase TILDE:\n\t\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\tcase SPACE:\n\t\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tpadding = ' '\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (code) {\n\t\t\t\t\tcase AND: {\n\t\t\t\t\t\telement = padding + nscopealt\n\t\t\t\t\t}\n\t\t\t\t\tcase TILDE:\n\t\t\t\t\tcase GREATERTHAN:\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\tcase SPACE:\n\t\t\t\t\tcase CLOSEPARENTHESES:\n\t\t\t\t\tcase OPENPARENTHESES: {\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase OPENBRACKET: {\n\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COLON: {\n\t\t\t\t\t\tswitch (element.charCodeAt(1)*2 + element.charCodeAt(2)*3) {\n\t\t\t\t\t\t\t// :global\n\t\t\t\t\t\t\tcase 530: {\n\t\t\t\t\t\t\t\tif (escape > 0) {\n\t\t\t\t\t\t\t\t\telement = padding + element.substring(8, size - 1)\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// :hover, :nth-child(), ...\n\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\tif (j < 1 || elements[j-1].length < 1) {\n\t\t\t\t\t\t\t\t\telement = padding + nscopealt + element\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tcase COMMA: {\n\t\t\t\t\t\tpadding = ''\n\t\t\t\t\t}\n\t\t\t\t\tdefault: {\n\t\t\t\t\t\tif (size > 1 && element.indexOf(':') > 0) {\n\t\t\t\t\t\t\telement = padding + element.replace(pseudoptn, '$1' + nscopealt + '$2')\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telement = padding + element + nscopealt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout += element\n\t\t\t}\n\n\t\t\tselector[i] = out.replace(formatptn, '').trim()\n\t\t}\n\n\t\treturn selector\n\t}\n\n\t/**\n\t * Proxy\n\t *\n\t * @param {number} context\n\t * @param {string} content\n\t * @param {Array} selectors\n\t * @param {Array} parents\n\t * @param {number} line\n\t * @param {number} column\n\t * @param {number} length\n\t * @param {number} id\n\t * @param {number} depth\n\t * @param {number} at\n\t * @return {(string|void|*)}\n\t */\n\tfunction proxy (context, content, selectors, parents, line, column, length, id, depth, at) {\n\t\tfor (var i = 0, out = content, next; i < plugged; ++i) {\n\t\t\tswitch (next = plugins[i].call(stylis, context, out, selectors, parents, line, column, length, id, depth, at)) {\n\t\t\t\tcase void 0:\n\t\t\t\tcase false:\n\t\t\t\tcase true:\n\t\t\t\tcase null: {\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tout = next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (out !== content) {\n\t\t return out\n\t\t}\n\t}\n\n\t/**\n\t * @param {number} code\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction delimited (code, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\t// /*\n\t\t\t\tcase FOWARDSLASH: {\n\t\t\t\t\tif (code === STAR) {\n\t\t\t\t\t\tif (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {\n\t\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\t// //\n\t\t\t\tcase NEWLINE: {\n\t\t\t\t\tif (code === FOWARDSLASH) {\n\t\t\t\t\t\treturn i + 1\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * @param {number} type\n\t * @param {number} index\n\t * @param {number} length\n\t * @param {number} find\n\t * @param {string} body\n\t * @return {number}\n\t */\n\tfunction match (type, index, length, body) {\n\t\tfor (var i = index + 1; i < length; ++i) {\n\t\t\tswitch (body.charCodeAt(i)) {\n\t\t\t\tcase type: {\n\t\t\t\t\treturn i\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn i\n\t}\n\n\t/**\n\t * Minify\n\t *\n\t * @param {(string|*)} output\n\t * @return {string}\n\t */\n\tfunction minify (output) {\n\t\treturn output\n\t\t\t.replace(formatptn, '')\n\t\t\t.replace(beforeptn, '')\n\t\t\t.replace(afterptn, '$1')\n\t\t\t.replace(tailptn, '$1')\n\t\t\t.replace(whiteptn, ' ')\n\t}\n\n\t/**\n\t * Use\n\t *\n\t * @param {(Array|function(...?)|number|void)?} plugin\n\t */\n\tfunction use (plugin) {\n\t\tswitch (plugin) {\n\t\t\tcase void 0:\n\t\t\tcase null: {\n\t\t\t\tplugged = plugins.length = 0\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tif (typeof plugin === 'function') {\n\t\t\t\t\tplugins[plugged++] = plugin\n\t\t\t\t}\telse if (typeof plugin === 'object') {\n\t\t\t\t\tfor (var i = 0, length = plugin.length; i < length; ++i) {\n\t\t\t\t\t\tuse(plugin[i])\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tunkwn = !!plugin|0\n\t\t\t\t}\n\t\t\t}\n \t\t}\n\n \t\treturn use\n\t}\n\n\t/**\n\t * Set\n\t *\n\t * @param {*} options\n\t */\n\tfunction set (options) {\n\t\tfor (var name in options) {\n\t\t\tvar value = options[name]\n\t\t\tswitch (name) {\n\t\t\t\tcase 'keyframe': keyed = value|0; break\n\t\t\t\tcase 'global': escape = value|0; break\n\t\t\t\tcase 'cascade': cascade = value|0; break\n\t\t\t\tcase 'compress': compress = value|0; break\n\t\t\t\tcase 'semicolon': semicolon = value|0; break\n\t\t\t\tcase 'preserve': preserve = value|0; break\n\t\t\t\tcase 'prefix':\n\t\t\t\t\tshould = null\n\n\t\t\t\t\tif (!value) {\n\t\t\t\t\t\tprefix = 0\n\t\t\t\t\t} else if (typeof value !== 'function') {\n\t\t\t\t\t\tprefix = 1\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprefix = 2\n\t\t\t\t\t\tshould = value\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn set\n\t}\n\n\t/**\n\t * Stylis\n\t *\n\t * @param {string} selector\n\t * @param {string} input\n\t * @return {*}\n\t */\n\tfunction stylis (selector, input) {\n\t\tif (this !== void 0 && this.constructor === stylis) {\n\t\t\treturn factory(selector)\n\t\t}\n\n\t\t// setup\n\t\tvar ns = selector\n\t\tvar code = ns.charCodeAt(0)\n\n\t\t// trim leading whitespace\n\t\tif (code < 33) {\n\t\t\tcode = (ns = ns.trim()).charCodeAt(0)\n\t\t}\n\n\t\t// keyframe/animation namespace\n\t\tif (keyed > 0) {\n\t\t\tkey = ns.replace(invalidptn, code === OPENBRACKET ? '' : '-')\n\t\t}\n\n\t\t// reset, used to assert if a plugin is moneky-patching the return value\n\t\tcode = 1\n\n\t\t// cascade/isolate\n\t\tif (cascade === 1) {\n\t\t\tnscope = ns\n\t\t} else {\n\t\t\tnscopealt = ns\n\t\t}\n\n\t\tvar selectors = [nscope]\n\t\tvar result\n\n\t\t// execute plugins, pre-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0)\n\n\t\t\tif (result !== void 0 && typeof result === 'string') {\n\t\t\t\tinput = result\n\t\t\t}\n\t\t}\n\n\t\t// build\n\t\tvar output = compile(array, selectors, input, 0, 0)\n\n\t\t// execute plugins, post-process context\n\t\tif (plugged > 0) {\n\t\t\tresult = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0)\n\n\t\t\t// bypass minification\n\t\t\tif (result !== void 0 && typeof(output = result) !== 'string') {\n\t\t\t\tcode = 0\n\t\t\t}\n\t\t}\n\n\t\t// reset\n\t\tkey = ''\n\t\tnscope = ''\n\t\tnscopealt = ''\n\t\tpattern = 0\n\t\tline = 1\n\t\tcolumn = 1\n\n\t\treturn compress*code === 0 ? output : minify(output)\n\t}\n\n\tstylis['use'] = use\n\tstylis['set'] = set\n\n\tif (options !== void 0) {\n\t\tset(options)\n\t}\n\n\treturn stylis\n}));\n","module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}\n","var map = {\n\t\"./locale\": 98,\n\t\"./locale.js\": 98\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 171;","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar rgba_1 = require(\"./rgba\"); // Alias\nexports.hex = rgba_1.default;\nvar rgba_2 = require(\"./rgba\"); // Alias\nexports.rgb = rgba_2.default;\nvar rgba_3 = require(\"./rgba\");\nexports.rgba = rgba_3.default;\nvar hsla_1 = require(\"./hsla\"); // Alias\nexports.hsl = hsla_1.default;\nvar hsla_2 = require(\"./hsla\");\nexports.hsla = hsla_2.default;\nvar channel_1 = require(\"./channel\");\nexports.channel = channel_1.default;\nvar red_1 = require(\"./red\");\nexports.red = red_1.default;\nvar green_1 = require(\"./green\");\nexports.green = green_1.default;\nvar blue_1 = require(\"./blue\");\nexports.blue = blue_1.default;\nvar hue_1 = require(\"./hue\");\nexports.hue = hue_1.default;\nvar saturation_1 = require(\"./saturation\");\nexports.saturation = saturation_1.default;\nvar lightness_1 = require(\"./lightness\");\nexports.lightness = lightness_1.default;\nvar alpha_1 = require(\"./alpha\");\nexports.alpha = alpha_1.default;\nvar alpha_2 = require(\"./alpha\"); // Alias\nexports.opacity = alpha_2.default;\nvar luminance_1 = require(\"./luminance\");\nexports.luminance = luminance_1.default;\nvar is_dark_1 = require(\"./is_dark\");\nexports.isDark = is_dark_1.default;\nvar is_light_1 = require(\"./is_light\");\nexports.isLight = is_light_1.default;\nvar is_valid_1 = require(\"./is_valid\");\nexports.isValid = is_valid_1.default;\nvar saturate_1 = require(\"./saturate\");\nexports.saturate = saturate_1.default;\nvar desaturate_1 = require(\"./desaturate\");\nexports.desaturate = desaturate_1.default;\nvar lighten_1 = require(\"./lighten\");\nexports.lighten = lighten_1.default;\nvar darken_1 = require(\"./darken\");\nexports.darken = darken_1.default;\nvar opacify_1 = require(\"./opacify\");\nexports.opacify = opacify_1.default;\nvar opacify_2 = require(\"./opacify\"); // Alias\nexports.fadeIn = opacify_2.default;\nvar transparentize_1 = require(\"./transparentize\");\nexports.transparentize = transparentize_1.default;\nvar transparentize_2 = require(\"./transparentize\"); // Alias\nexports.fadeOut = transparentize_2.default;\nvar complement_1 = require(\"./complement\");\nexports.complement = complement_1.default;\nvar grayscale_1 = require(\"./grayscale\");\nexports.grayscale = grayscale_1.default;\nvar adjust_1 = require(\"./adjust\");\nexports.adjust = adjust_1.default;\nvar change_1 = require(\"./change\");\nexports.change = change_1.default;\nvar invert_1 = require(\"./invert\");\nexports.invert = invert_1.default;\nvar mix_1 = require(\"./mix\");\nexports.mix = mix_1.default;\nvar scale_1 = require(\"./scale\");\nexports.scale = scale_1.default;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* CHANNEL */\nvar Channel = {\n /* CLAMP */\n min: {\n r: 0,\n g: 0,\n b: 0,\n s: 0,\n l: 0,\n a: 0\n },\n max: {\n r: 255,\n g: 255,\n b: 255,\n h: 360,\n s: 100,\n l: 100,\n a: 1\n },\n clamp: {\n r: function (r) { return r >= 255 ? 255 : (r < 0 ? 0 : r); },\n g: function (g) { return g >= 255 ? 255 : (g < 0 ? 0 : g); },\n b: function (b) { return b >= 255 ? 255 : (b < 0 ? 0 : b); },\n h: function (h) { return h % 360; },\n s: function (s) { return s >= 100 ? 100 : (s < 0 ? 0 : s); },\n l: function (l) { return l >= 100 ? 100 : (l < 0 ? 0 : l); },\n a: function (a) { return a >= 1 ? 1 : (a < 0 ? 0 : a); }\n },\n /* CONVERSION */\n //SOURCE: https://planetcalc.com/7779\n toLinear: function (c) {\n var n = c / 255;\n return c > .03928 ? Math.pow(((n + .055) / 1.055), 2.4) : n / 12.92;\n },\n //SOURCE: https://gist.github.com/mjackson/5311256\n hue2rgb: function (p, q, t) {\n if (t < 0)\n t += 1;\n if (t > 1)\n t -= 1;\n if (t < 1 / 6)\n return p + (q - p) * 6 * t;\n if (t < 1 / 2)\n return q;\n if (t < 2 / 3)\n return p + (q - p) * (2 / 3 - t) * 6;\n return p;\n },\n hsl2rgb: function (_a, channel) {\n var h = _a.h, s = _a.s, l = _a.l;\n if (s === 100)\n return l * 2.55; // Achromatic\n h /= 360;\n s /= 100;\n l /= 100;\n var q = (l < .5) ? l * (1 + s) : (l + s) - (l * s), p = 2 * l - q;\n switch (channel) {\n case 'r': return Channel.hue2rgb(p, q, h + 1 / 3) * 255;\n case 'g': return Channel.hue2rgb(p, q, h) * 255;\n case 'b': return Channel.hue2rgb(p, q, h - 1 / 3) * 255;\n }\n },\n rgb2hsl: function (_a, channel) {\n var r = _a.r, g = _a.g, b = _a.b;\n r /= 255;\n g /= 255;\n b /= 255;\n var max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;\n if (channel === 'l')\n return l * 100;\n if (max === min)\n return 0; // Achromatic\n var d = max - min, s = (l > .5) ? d / (2 - max - min) : d / (max + min);\n if (channel === 's')\n return s * 100;\n switch (max) {\n case r: return ((g - b) / d + (g < b ? 6 : 0)) * 60;\n case g: return ((b - r) / d + 2) * 60;\n case b: return ((r - g) / d + 4) * 60;\n default: return -1; //TSC: TypeScript is stupid and complains if there isn't this useless default statement\n }\n }\n};\n/* EXPORT */\nexports.default = Channel;\n","\"use strict\";\n/* LANG */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Lang = {\n round: function (number) {\n return Math.round(number * 10000000000) / 10000000000;\n }\n};\n/* EXPORT */\nexports.default = Lang;\n","\"use strict\";\n/* UNIT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Unit = {\n frac2hex: function (frac) {\n var hex = Math.round(frac * 255).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n },\n dec2hex: function (dec) {\n var hex = Math.round(dec).toString(16);\n return hex.length > 1 ? hex : \"0\" + hex;\n }\n};\n/* EXPORT */\nexports.default = Unit;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar types_1 = require(\"../types\");\nvar type_1 = require(\"./type\");\n/* CHANNELS */\nvar Channels = /** @class */ (function () {\n /* CONSTRUCTOR */\n function Channels(data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type = new type_1.default();\n }\n /* API */\n Channels.prototype.set = function (data, color) {\n this.color = color;\n this.changed = false;\n this.data = data; //TSC\n this.type.type = types_1.TYPE.ALL;\n return this;\n };\n /* HELPERS */\n Channels.prototype._ensureHSL = function () {\n if (this.data.h === undefined)\n this.data.h = utils_1.default.channel.rgb2hsl(this.data, 'h');\n if (this.data.s === undefined)\n this.data.s = utils_1.default.channel.rgb2hsl(this.data, 's');\n if (this.data.l === undefined)\n this.data.l = utils_1.default.channel.rgb2hsl(this.data, 'l');\n };\n Channels.prototype._ensureRGB = function () {\n if (this.data.r === undefined)\n this.data.r = utils_1.default.channel.hsl2rgb(this.data, 'r');\n if (this.data.g === undefined)\n this.data.g = utils_1.default.channel.hsl2rgb(this.data, 'g');\n if (this.data.b === undefined)\n this.data.b = utils_1.default.channel.hsl2rgb(this.data, 'b');\n };\n Object.defineProperty(Channels.prototype, \"r\", {\n /* GETTERS */\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.r !== undefined)\n return this.data.r;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'r');\n },\n /* SETTERS */\n set: function (r) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.r = r;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"g\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.g !== undefined)\n return this.data.g;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'g');\n },\n set: function (g) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.g = g;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"b\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.HSL) && this.data.b !== undefined)\n return this.data.b;\n this._ensureHSL();\n return utils_1.default.channel.hsl2rgb(this.data, 'b');\n },\n set: function (b) {\n this.type.set(types_1.TYPE.RGB);\n this.changed = true;\n this.data.b = b;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"h\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.h !== undefined)\n return this.data.h;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'h');\n },\n set: function (h) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.h = h;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"s\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.s !== undefined)\n return this.data.s;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 's');\n },\n set: function (s) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.s = s;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"l\", {\n get: function () {\n if (!this.type.is(types_1.TYPE.RGB) && this.data.l !== undefined)\n return this.data.l;\n this._ensureRGB();\n return utils_1.default.channel.rgb2hsl(this.data, 'l');\n },\n set: function (l) {\n this.type.set(types_1.TYPE.HSL);\n this.changed = true;\n this.data.l = l;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Channels.prototype, \"a\", {\n get: function () {\n return this.data.a;\n },\n set: function (a) {\n this.changed = true;\n this.data.a = a;\n },\n enumerable: true,\n configurable: true\n });\n return Channels;\n}());\n/* EXPORT */\nexports.default = Channels;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar types_1 = require(\"../types\");\n/* TYPE */\nvar Type = /** @class */ (function () {\n function Type() {\n this.type = types_1.TYPE.ALL;\n }\n Type.prototype.get = function () {\n return this.type;\n };\n Type.prototype.set = function (type) {\n if (this.type && this.type !== type)\n throw new Error('Cannot change both RGB and HSL channels at the same time');\n this.type = type;\n };\n Type.prototype.reset = function () {\n this.type = types_1.TYPE.ALL;\n };\n Type.prototype.is = function (type) {\n return this.type === type;\n };\n return Type;\n}());\n/* EXPORT */\nexports.default = Type;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"./utils\");\n/* CONSTS */\nvar DEC2HEX = {};\nexports.DEC2HEX = DEC2HEX;\nfor (var i = 0; i <= 255; i++)\n DEC2HEX[i] = utils_1.default.unit.dec2hex(i); // Populating dynamically, striking a balance between code size and performance\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar hex_1 = require(\"./hex\");\n/* KEYWORD */\nvar Keyword = {\n /* VARIABLES */\n colors: {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyanaqua: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n transparent: '#00000000',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n },\n /* API */\n parse: function (color) {\n color = color.toLowerCase();\n var hex = Keyword.colors[color];\n if (!hex)\n return;\n return hex_1.default.parse(hex);\n },\n stringify: function (channels) {\n var hex = hex_1.default.stringify(channels);\n for (var name_1 in Keyword.colors) {\n if (Keyword.colors[name_1] === hex)\n return name_1;\n }\n }\n};\n/* EXPORT */\nexports.default = Keyword;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* RGB */\nvar RGB = {\n /* VARIABLES */\n re: /^rgba?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?))(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e\\d+)?(%?)))?\\s*?\\)$/i,\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 114 && charCode !== 82)\n return; // 'r'/'R'\n var match = color.match(RGB.re);\n if (!match)\n return;\n var r = match[1], isRedPercentage = match[2], g = match[3], isGreenPercentage = match[4], b = match[5], isBluePercentage = match[6], a = match[7], isAlphaPercentage = match[8];\n return reusable_1.default.set({\n r: utils_1.default.channel.clamp.r(isRedPercentage ? parseFloat(r) * 2.55 : parseFloat(r)),\n g: utils_1.default.channel.clamp.g(isGreenPercentage ? parseFloat(g) * 2.55 : parseFloat(g)),\n b: utils_1.default.channel.clamp.b(isBluePercentage ? parseFloat(b) * 2.55 : parseFloat(b)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // RGBA\n return \"rgba(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \", \" + utils_1.default.lang.round(channels.a) + \")\";\n }\n else { // RGB\n return \"rgb(\" + utils_1.default.lang.round(channels.r) + \", \" + utils_1.default.lang.round(channels.g) + \", \" + utils_1.default.lang.round(channels.b) + \")\";\n }\n }\n};\n/* EXPORT */\nexports.default = RGB;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar reusable_1 = require(\"../channels/reusable\");\n/* HSL */\nvar HSL = {\n /* VARIABLES */\n re: /^hsla?\\(\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(?:deg|grad|rad|turn)?)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)\\s*?(?:,|\\s)\\s*?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?%)(?:\\s*?(?:,|\\/)\\s*?\\+?(-?(?:\\d+(?:\\.\\d+)?|(?:\\.\\d+))(?:e-?\\d+)?(%)?))?\\s*?\\)$/i,\n hueRe: /^(.+?)(deg|grad|rad|turn)$/i,\n /* HELPERS */\n _hue2deg: function (hue) {\n var match = hue.match(HSL.hueRe);\n if (match) {\n var number = match[1], unit = match[2];\n switch (unit) {\n case 'grad': return utils_1.default.channel.clamp.h(parseFloat(number) * .9);\n case 'rad': return utils_1.default.channel.clamp.h(parseFloat(number) * 180 / Math.PI);\n case 'turn': return utils_1.default.channel.clamp.h(parseFloat(number) * 360);\n }\n }\n return utils_1.default.channel.clamp.h(parseFloat(hue));\n },\n /* API */\n parse: function (color) {\n var charCode = color.charCodeAt(0);\n if (charCode !== 104 && charCode !== 72)\n return; // 'h'/'H'\n var match = color.match(HSL.re);\n if (!match)\n return;\n var h = match[1], s = match[2], l = match[3], a = match[4], isAlphaPercentage = match[5];\n return reusable_1.default.set({\n h: HSL._hue2deg(h),\n s: utils_1.default.channel.clamp.s(parseFloat(s)),\n l: utils_1.default.channel.clamp.l(parseFloat(l)),\n a: a ? utils_1.default.channel.clamp.a(isAlphaPercentage ? parseFloat(a) / 100 : parseFloat(a)) : 1\n }, color);\n },\n stringify: function (channels) {\n if (channels.a < 1) { // HSLA\n return \"hsla(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%, \" + channels.a + \")\";\n }\n else { // HSL\n return \"hsl(\" + utils_1.default.lang.round(channels.h) + \", \" + utils_1.default.lang.round(channels.s) + \"%, \" + utils_1.default.lang.round(channels.l) + \"%)\";\n }\n }\n};\n/* EXPORT */\nexports.default = HSL;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* RED */\nfunction red(color) {\n return channel_1.default(color, 'r');\n}\n/* EXPORT */\nexports.default = red;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* GREEN */\nfunction green(color) {\n return channel_1.default(color, 'g');\n}\n/* EXPORT */\nexports.default = green;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* BLUE */\nfunction blue(color) {\n return channel_1.default(color, 'b');\n}\n/* EXPORT */\nexports.default = blue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* HUE */\nfunction hue(color) {\n return channel_1.default(color, 'h');\n}\n/* EXPORT */\nexports.default = hue;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* SATURATION */\nfunction saturation(color) {\n return channel_1.default(color, 's');\n}\n/* EXPORT */\nexports.default = saturation;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar channel_1 = require(\"./channel\");\n/* LIGHTNESS */\nfunction lightness(color) {\n return channel_1.default(color, 'l');\n}\n/* EXPORT */\nexports.default = lightness;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar is_light_1 = require(\"./is_light\");\n/* IS DARK */\nfunction isDark(color) {\n return !is_light_1.default(color);\n}\n/* EXPORT */\nexports.default = isDark;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\n/* IS VALID */\nfunction isValid(color) {\n try {\n color_1.default.parse(color);\n return true;\n }\n catch (_a) {\n return false;\n }\n}\n/* EXPORT */\nexports.default = isValid;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* SATURATE */\nfunction saturate(color, amount) {\n return adjust_channel_1.default(color, 's', amount);\n}\n/* EXPORT */\nexports.default = saturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DESATURATE */\nfunction desaturate(color, amount) {\n return adjust_channel_1.default(color, 's', -amount);\n}\n/* EXPORT */\nexports.default = desaturate;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* LIGHTEN */\nfunction lighten(color, amount) {\n return adjust_channel_1.default(color, 'l', amount);\n}\n/* EXPORT */\nexports.default = lighten;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* DARKEN */\nfunction darken(color, amount) {\n return adjust_channel_1.default(color, 'l', -amount);\n}\n/* EXPORT */\nexports.default = darken;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar adjust_channel_1 = require(\"./adjust_channel\");\n/* COMPLEMENT */\nfunction complement(color) {\n return adjust_channel_1.default(color, 'h', 180);\n}\n/* EXPORT */\nexports.default = complement;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar change_1 = require(\"./change\");\n/* GRAYSCALE */\nfunction grayscale(color) {\n return change_1.default(color, { s: 0 });\n}\n/* EXPORT */\nexports.default = grayscale;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar color_1 = require(\"../color\");\nvar mix_1 = require(\"./mix\");\n/* INVERT */\nfunction invert(color, weight) {\n if (weight === void 0) { weight = 100; }\n var inverse = color_1.default.parse(color);\n inverse.r = 255 - inverse.r;\n inverse.g = 255 - inverse.g;\n inverse.b = 255 - inverse.b;\n return mix_1.default(inverse, color, weight);\n}\n/* EXPORT */\nexports.default = invert;\n","\"use strict\";\n/* IMPORT */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar utils_1 = require(\"../utils\");\nvar color_1 = require(\"../color\");\nvar adjust_1 = require(\"./adjust\");\n/* SCALE */\nfunction scale(color, channels) {\n var ch = color_1.default.parse(color), adjustments = {}, delta = function (amount, weight, max) { return weight > 0 ? (max - amount) * weight / 100 : amount * weight / 100; };\n for (var c in channels) {\n adjustments[c] = delta(ch[c], channels[c], utils_1.default.channel.max[c]);\n }\n return adjust_1.default(color, adjustments);\n}\n/* EXPORT */\nexports.default = scale;\n","// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n","/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n","var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n","var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n","var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n","module.exports = '2.1.8';\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n","module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n","var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n","var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n","var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n","var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n","var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n","/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n","var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n","var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n","/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n","var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n","/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n","/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n","/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n","\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n","var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n","var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n","var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n","var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n","var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n","\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n","var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n","module.exports = \"0.8.5\";\n","module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n","module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n","var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n","var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n","var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n","\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n","\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n","\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n","var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n","module.exports = \"0.6.4\";\n","/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n","import moment from 'moment-mini';\n//\nexport const LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\n\nexport const logger = {\n debug: () => {},\n info: () => {},\n warn: () => {},\n error: () => {},\n fatal: () => {}\n};\n\nexport const setLogLevel = function(level = 'fatal') {\n if (isNaN(level)) {\n level = level.toLowerCase();\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n logger.trace = () => {};\n logger.debug = () => {};\n logger.info = () => {};\n logger.warn = () => {};\n logger.error = () => {};\n logger.fatal = () => {};\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error\n ? console.error.bind(console, format('FATAL'), 'color: orange')\n : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n if (level <= LEVELS.error) {\n logger.error = console.error\n ? console.error.bind(console, format('ERROR'), 'color: orange')\n : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n if (level <= LEVELS.warn) {\n logger.warn = console.warn\n ? console.warn.bind(console, format('WARN'), 'color: orange')\n : console.log.bind(console, `\\x1b[33m`, format('WARN'));\n }\n if (level <= LEVELS.info) {\n logger.info = console.info\n ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue')\n : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n if (level <= LEVELS.debug) {\n logger.debug = console.debug\n ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen')\n : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nconst format = level => {\n const time = moment().format('ss.SSS');\n return `%c${time} : ${level} : `;\n};\n","export const getRows = s => {\n if (!s) return 1;\n let str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\n\nexport const removeScript = txt => {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n\n idx = txt.indexOf('');\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n return rs;\n};\n\nexport const sanitizeText = (text, config) => {\n let txt = text;\n let htmlLabels = true;\n if (\n config.flowchart &&\n (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')\n ) {\n htmlLabels = false;\n }\n\n if (htmlLabels) {\n const level = config.securityLevel;\n\n if (level === 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\n\nexport const lineBreakRegex = //gi;\n\nexport const hasBreaks = text => {\n return //gi.test(text);\n};\n\nexport const splitBreaks = text => {\n return text.split(//gi);\n};\n\nconst breakToPlaceholder = s => {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nconst placeholderToBreak = s => {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows,\n sanitizeText,\n hasBreaks,\n splitBreaks,\n lineBreakRegex,\n removeScript\n};\n","import {\n curveBasis,\n curveBasisClosed,\n curveBasisOpen,\n curveLinear,\n curveLinearClosed,\n curveMonotoneX,\n curveMonotoneY,\n curveNatural,\n curveStep,\n curveStepAfter,\n curveStepBefore,\n select\n} from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common';\n// import cryptoRandomString from 'crypto-random-string';\n\n// Effectively an enum of the supported curve types, accessible by name\nconst d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nconst directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nconst anyComment = /\\s*%%.*\\n/gm;\n\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\nexport const detectInit = function(text) {\n let inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n let results = {};\n if (Array.isArray(inits)) {\n let args = inits.map(init => init.args);\n results = assignWithDepth(results, [...args]);\n } else {\n results = inits.args;\n }\n if (results) {\n let type = detectType(text);\n ['config'].forEach(prop => {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n return results;\n};\n\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\nexport const detectDirective = function(text, type = null) {\n try {\n const commentWithoutDirectives = new RegExp(\n `[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*\\n`,\n 'ig'\n );\n text = text\n .trim()\n .replace(commentWithoutDirectives, '')\n .replace(/'/gm, '\"');\n logger.debug(\n `Detecting diagram directive${type !== null ? ' type:' + type : ''} based on the text:${text}`\n );\n let match,\n result = [];\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n if (\n (match && !type) ||\n (type && match[1] && match[1].match(type)) ||\n (type && match[2] && match[2].match(type))\n ) {\n let type = match[1] ? match[1] : match[2];\n let args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({ type, args });\n }\n }\n if (result.length === 0) {\n result.push({ type: text, args: null });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\n `ERROR: ${error.message} - Unable to parse directive${\n type !== null ? ' type:' + type : ''\n } based on the text:${text}`\n );\n return { type: null, args: null };\n }\n};\n\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\nexport const detectType = function(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n if (text.match(/^\\s*classDiagram-v2/)) {\n return 'classDiagram';\n }\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nconst memoize = (fn, resolver) => {\n let cache = {};\n return (...args) => {\n let n = resolver ? resolver.apply(this, args) : args[0];\n if (n in cache) {\n return cache[n];\n } else {\n let result = fn(...args);\n cache[n] = result;\n return result;\n }\n };\n};\n\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\nexport const isSubstringInArray = function(str, arr) {\n for (let i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n return -1;\n};\n\nexport const interpolateToCurve = (interpolate, defaultCurve) => {\n if (!interpolate) {\n return defaultCurve;\n }\n const curveName = `curve${interpolate.charAt(0).toUpperCase() + interpolate.slice(1)}`;\n return d3CurveTypes[curveName] || defaultCurve;\n};\n\nexport const formatUrl = (linkStr, config) => {\n let url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\n\nexport const runFunc = (functionName, ...params) => {\n const arrPaths = functionName.split('.');\n\n const len = arrPaths.length - 1;\n const fnName = arrPaths[len];\n\n let obj = window;\n for (let i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n obj[fnName](...params);\n};\n\nconst distance = (p1, p2) =>\n p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n\nconst traverseEdge = points => {\n let prevPoint;\n let totalDistance = 0;\n\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse half of total distance along points\n let remainingDistance = totalDistance / 2;\n let center = undefined;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n return center;\n};\n\nconst calcLabelPosition = points => {\n return traverseEdge(points);\n};\n\nconst calcCardinalityPosition = (isRelationTypePresent, points, initialPosition) => {\n let prevPoint;\n let totalDistance = 0; // eslint-disable-line\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n points.forEach(point => {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n });\n\n // Traverse only 25 total distance along points to find cardinality point\n const distanceToCardinalityPoint = 25;\n\n let remainingDistance = distanceToCardinalityPoint;\n let center;\n prevPoint = undefined;\n points.forEach(point => {\n if (prevPoint && !center) {\n const vectorDistance = distance(point, prevPoint);\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n const distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = { x: point.x, y: point.y };\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n prevPoint = point;\n });\n // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n let d = isRelationTypePresent ? 10 : 5;\n //Calculate Angle for x and y axis\n let angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n let cardinalityPosition = { x: 0, y: 0 };\n //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport const getStylesFromArray = arr => {\n let style = '';\n let labelStyle = '';\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return { style: style, labelStyle: labelStyle };\n};\n\nlet cnt = 0;\nexport const generateId = () => {\n cnt++;\n return (\n 'id-' +\n Math.random()\n .toString(36)\n .substr(2, 12) +\n '-' +\n cnt\n );\n};\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n}\n\nexport const random = options => {\n return makeid(options.length);\n};\n\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\nexport const assignWithDepth = function(dst, src, config) {\n const { depth, clobber } = Object.assign({ depth: 2, clobber: false }, config);\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(s => assignWithDepth(dst, s, config));\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(s => {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && typeof dst === 'object' && typeof src === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n if (typeof src !== 'undefined' && typeof dst === 'object' && typeof src === 'object') {\n Object.keys(src).forEach(key => {\n if (\n typeof src[key] === 'object' &&\n (dst[key] === undefined || typeof dst[key] === 'object')\n ) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n dst[key] = assignWithDepth(dst[key], src[key], { depth: depth - 1, clobber });\n } else if (clobber || (typeof dst[key] !== 'object' && typeof src[key] !== 'object')) {\n dst[key] = src[key];\n }\n });\n }\n return dst;\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\n\nexport const drawSimpleText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nexport const wrapLabel = memoize(\n (label, maxWidth, config) => {\n if (!label) {\n return label;\n }\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', joinWith: '
' },\n config\n );\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n const words = label.split(' ');\n const completedLines = [];\n let nextLine = '';\n words.forEach((word, index) => {\n const wordLength = calculateTextWidth(`${word} `, config);\n const nextLineLength = calculateTextWidth(nextLine, config);\n if (wordLength > maxWidth) {\n const { hyphenatedStrings, remainingWord } = breakString(word, maxWidth, '-', config);\n completedLines.push(nextLine, ...hyphenatedStrings);\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n const currentWord = index + 1;\n const isLastWord = currentWord === words.length;\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(line => line !== '').join(config.joinWith);\n },\n (label, maxWidth, config) =>\n `${label}-${maxWidth}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}-${config.joinWith}`\n);\n\nconst breakString = memoize(\n (word, maxWidth, hyphenCharacter = '-', config) => {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 0 },\n config\n );\n const characters = word.split('');\n const lines = [];\n let currentLine = '';\n characters.forEach((character, index) => {\n const nextLine = `${currentLine}${character}`;\n const lineWidth = calculateTextWidth(nextLine, config);\n if (lineWidth >= maxWidth) {\n const currentCharacter = index + 1;\n const isLastLine = characters.length === currentCharacter;\n const hyphenatedNextLine = `${nextLine}${hyphenCharacter}`;\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return { hyphenatedStrings: lines, remainingWord: currentLine };\n },\n (word, maxWidth, hyphenCharacter = '-', config) =>\n `${word}-${maxWidth}-${hyphenCharacter}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextHeight = function(text, config) {\n config = Object.assign(\n { fontSize: 12, fontWeight: 400, fontFamily: 'Arial', margin: 15 },\n config\n );\n return calculateTextDimensions(text, config).height;\n};\n\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\nexport const calculateTextWidth = function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n return calculateTextDimensions(text, config).width;\n};\n\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\nexport const calculateTextDimensions = memoize(\n function(text, config) {\n config = Object.assign({ fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, config);\n const { fontSize, fontFamily, fontWeight } = config;\n if (!text) {\n return { width: 0, height: 0 };\n }\n\n // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n const fontFamilies = ['sans-serif', fontFamily];\n const lines = text.split(common.lineBreakRegex);\n let dims = [];\n\n const body = select('body');\n // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n if (!body.remove) {\n return { width: 0, height: 0, lineHeight: 0 };\n }\n\n const g = body.append('svg');\n\n for (let fontFamily of fontFamilies) {\n let cheight = 0;\n let dim = { width: 0, height: 0, lineHeight: 0 };\n for (let line of lines) {\n const textObj = getTextObj();\n textObj.text = line;\n const textElem = drawSimpleText(g, textObj)\n .style('font-size', fontSize)\n .style('font-weight', fontWeight)\n .style('font-family', fontFamily);\n\n let bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n dims.push(dim);\n }\n\n g.remove();\n\n let index =\n isNaN(dims[1].height) ||\n isNaN(dims[1].width) ||\n isNaN(dims[1].lineHeight) ||\n (dims[0].height > dims[1].height &&\n dims[0].width > dims[1].width &&\n dims[0].lineHeight > dims[1].lineHeight)\n ? 0\n : 1;\n return dims[index];\n },\n (text, config) => `${text}-${config.fontSize}-${config.fontWeight}-${config.fontFamily}`\n);\n\nexport default {\n assignWithDepth,\n wrapLabel,\n calculateTextHeight,\n calculateTextWidth,\n calculateTextDimensions,\n detectInit,\n detectDirective,\n detectType,\n isSubstringInArray,\n interpolateToCurve,\n calcLabelPosition,\n calcCardinalityPosition,\n formatUrl,\n getStylesFromArray,\n generateId,\n random,\n memoize,\n runFunc\n};\n","import { darken, lighten, adjust, invert } from 'khroma';\n\nconst mkBorder = (col, darkMode) =>\n darkMode ? adjust(col, { s: -40, l: 10 }) : adjust(col, { s: -40, l: -10 });\nclass Theme {\n constructor() {\n /** # Base variables */\n /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */\n this.background = '#f4f4f4';\n // this.background = '#0c0c0c';\n /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */\n this.darkMode = false;\n // this.darkMode = true;\n // this.primaryColor = '#1f1f00';\n\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = '#333';\n // this.primaryColor = '#9f33be';\n this.primaryColor = '#f0fff0';\n // this.primaryColor = '#fa255e';\n // this.primaryColor = '#ECECFF';\n\n // this.secondaryColor = '#c39ea0';\n // this.tertiaryColor = '#f8e5e5';\n\n this.secondaryColor = '#dfdfde';\n this.tertiaryColor = '#CCCCFF';\n\n this.border1 = '#9370DB';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.textColor = '#333';\n this.updateColors();\n this.relationColor = '#000';\n }\n updateColors() {\n this.secondBkg = this.tertiaryColor;\n\n /* Main */\n this.secondaryColor = adjust(this.primaryColor, { h: 120 });\n this.tertiaryColor = adjust(this.primaryColor, { h: -160 });\n console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor);\n this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode);\n this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode);\n this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode);\n this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode);\n\n this.primaryTextColor = invert(this.primaryColor);\n this.secondaryTextColor = invert(this.secondaryColor);\n this.tertiaryTextColor = invert(this.tertiaryColor);\n this.lineColor = invert(this.background);\n this.textColor = invert(this.background);\n\n /* Flowchart variables */\n\n this.nodeBkg = this.primaryColor;\n this.mainBkg = this.primaryColor;\n this.nodeBorder = this.primaryBorderColor;\n this.clusterBkg = this.tertiaryColor;\n this.clusterBorder = this.tertiaryBorderColor;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.tertiaryTextColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = this.primaryBorderColor;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.primaryTextColor;\n this.actorLineColor = 'grey';\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n // this.noteTextColor = this.actorTextColor;\n this.activationBorderColor = darken(this.secondaryColor, 10);\n this.activationBkgColor = this.secondaryColor;\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor = this.secondaryColor;\n this.sectionBkgColor2 = this.tertiaryColor;\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = this.primaryColor;\n this.taskBorderColor = this.primaryBorderColor;\n this.taskBkgColor = this.primaryColor;\n this.activeTaskBorderColor = this.primaryColor;\n this.activeTaskBkgColor = lighten(this.primaryColor, 23);\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n this.taskTextColor = this.textColor;\n this.taskTextOutsideColor = this.textColor;\n this.taskTextLightColor = this.textColor;\n this.taskTextColor = this.primaryTextColor;\n this.taskTextDarkColor = this.textColor;\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n\n /* state colors */\n this.labelColor = this.primaryTextColor;\n this.altBackground = this.tertiaryColor;\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n\n /* state colors */\n\n /* class */\n this.classText = this.textColor;\n\n /* user-journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n return theme;\n};\n","import { invert, lighten, darken, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n this.background = '#333';\n this.primaryColor = '#1f2020';\n this.secondaryColor = lighten(this.primaryColor, 16);\n this.mainBkg = '#1f2020';\n this.secondBkg = 'calculated';\n this.mainContrastColor = 'lightgrey';\n this.darkTextColor = lighten(invert('#323D47'), 10);\n this.lineColor = 'calculated';\n this.border1 = '#81B1DB';\n this.border2 = rgba(255, 255, 255, 0.25);\n this.arrowheadColor = 'calculated';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#181818';\n this.textColor = '#ccc';\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#F9FFFE';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = 'calculated';\n this.activationBkgColor = 'calculated';\n this.sequenceNumberColor = 'black';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = darken('#EAE8D9', 30);\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = '#EAE8D9';\n this.taskBorderColor = rgba(255, 255, 255, 70);\n this.taskBkgColor = 'calculated';\n this.taskTextColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = rgba(255, 255, 255, 50);\n this.activeTaskBkgColor = '#81B1DB';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#E83737';\n this.critBkgColor = '#E83737';\n this.taskTextDarkColor = 'calculated';\n this.todayLineColor = '#DB5757';\n\n /* state colors */\n this.labelColor = 'calculated';\n\n this.errorBkgColor = '#a44141';\n this.errorTextColor = '#ddd';\n }\n updateColors() {\n this.secondBkg = lighten(this.mainBkg, 16);\n this.lineColor = this.mainContrastColor;\n this.arrowheadColor = this.mainContrastColor;\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.edgeLabelBackground = lighten(this.labelBackground, 25);\n\n /* Sequence Diagram variables */\n\n this.actorBorder = this.border1;\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.mainContrastColor;\n this.actorLineColor = this.mainContrastColor;\n this.signalColor = this.mainContrastColor;\n this.signalTextColor = this.mainContrastColor;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.mainContrastColor;\n this.loopTextColor = this.mainContrastColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.mainBkg;\n this.activationBorderColor = this.border1;\n this.activationBkgColor = this.secondBkg;\n\n /* Gantt chart variables */\n\n this.altSectionBkgColor = this.background;\n this.taskBkgColor = lighten(this.mainBkg, 23);\n this.taskTextColor = this.darkTextColor;\n this.taskTextLightColor = this.mainContrastColor;\n this.taskTextOutsideColor = this.taskTextLightColor;\n this.gridColor = this.mainContrastColor;\n this.doneTaskBkgColor = this.mainContrastColor;\n this.taskTextDarkColor = this.darkTextColor;\n\n /* state colors */\n this.labelColor = this.textColor;\n this.altBackground = lighten(this.background, 20);\n\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n /* class */\n this.classText = this.nodeBorder;\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(dark)', { userOverrides, theme });\n return theme;\n};\n","import { lighten, rgba, adjust } from 'khroma';\n\nclass Theme {\n constructor() {\n /* Base variables */\n this.primaryColor = '#ECECFF';\n this.secondaryColor = '#ffffde';\n this.background = 'white';\n this.mainBkg = '#ECECFF';\n this.secondBkg = '#ffffde';\n this.lineColor = '#333333';\n this.border1 = '#9370DB';\n this.border2 = '#aaaa33';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n this.labelBackground = '#e8e8e8';\n this.textColor = '#333';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'calculated';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'calculated';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'calculated';\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.taskTextClickableColor = 'calculated';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n this.sectionBkgColor = rgba(102, 102, 255, 0.49);\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#fff400';\n this.taskBorderColor = '#534fbc';\n this.taskBkgColor = '#8a90dd';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = '#534fbc';\n this.activeTaskBkgColor = '#bfc7ff';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n this.updateColors();\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1; // border 1\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.textColor;\n this.edgeLabelBackground = this.labelBackground;\n\n /* Sequence Diagram variables */\n\n // this.actorBorder = lighten(this.border1, 0.5);\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.signalColor = this.textColor;\n this.signalTextColor = this.textColor;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(default)', { userOverrides, theme });\n return theme;\n};\n","import { darken, adjust } from 'khroma';\nclass Theme {\n constructor() {\n /* Base vales */\n this.primaryColor = '#cde498';\n this.secondaryColor = '#cdffb2';\n this.background = 'white';\n this.mainBkg = '#cde498';\n this.secondBkg = '#cdffb2';\n this.lineColor = 'green';\n this.border1 = '#13540c';\n this.border2 = '#6eaa49';\n this.arrowheadColor = 'green';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = '#333';\n this.edgeLabelBackground = '#e8e8e8';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'black';\n this.actorLineColor = 'grey';\n this.signalColor = '#333';\n this.signalTextColor = '#333';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = '#326932';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = '#fff5ad';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = '#6eaa49';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = '#6eaa49';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = '#487e3a';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'black';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'lightgrey';\n this.doneTaskBkgColor = 'lightgrey';\n this.doneTaskBorderColor = 'grey';\n this.critBorderColor = '#ff8888';\n this.critBkgColor = 'red';\n this.todayLineColor = 'red';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = darken(this.mainBkg, 20);\n this.actorBkg = this.mainBkg;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelTextColor = this.actorTextColor;\n this.loopTextColor = this.actorTextColor;\n this.noteBorderColor = this.border2;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.taskBorderColor = this.border1;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(forest)', { userOverrides, theme });\n return theme;\n};\n","import { darken, lighten, adjust } from 'khroma';\n\n// const Color = require ( 'khroma/dist/color' ).default\n// Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => \"#EAF2FB\"\n\nclass Theme {\n constructor() {\n this.primaryColor = '#eee';\n this.contrast = '#26a';\n this.secondaryColor = lighten(this.contrast, 55);\n this.background = 'white';\n this.mainBkg = '#eee';\n this.secondBkg = 'calculated';\n this.lineColor = '#666';\n this.border1 = '#999';\n this.border2 = 'calculated';\n this.note = '#ffa';\n this.text = '#333';\n this.critical = '#d42';\n this.done = '#bbb';\n this.arrowheadColor = '#333333';\n this.fontFamily = '\"trebuchet ms\", verdana, arial';\n this.fontSize = '16px';\n\n /* Flowchart variables */\n\n this.nodeBkg = 'calculated';\n this.nodeBorder = 'calculated';\n this.clusterBkg = 'calculated';\n this.clusterBorder = 'calculated';\n this.defaultLinkColor = 'calculated';\n this.titleColor = 'calculated';\n this.edgeLabelBackground = 'white';\n\n /* Sequence Diagram variables */\n\n this.actorBorder = 'calculated';\n this.actorBkg = 'calculated';\n this.actorTextColor = 'calculated';\n this.actorLineColor = 'calculated';\n this.signalColor = 'calculated';\n this.signalTextColor = 'calculated';\n this.labelBoxBkgColor = 'calculated';\n this.labelBoxBorderColor = 'calculated';\n this.labelTextColor = 'calculated';\n this.loopTextColor = 'calculated';\n this.noteBorderColor = 'calculated';\n this.noteBkgColor = 'calculated';\n this.noteTextColor = 'calculated';\n this.activationBorderColor = '#666';\n this.activationBkgColor = '#f4f4f4';\n this.sequenceNumberColor = 'white';\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = 'calculated';\n this.altSectionBkgColor = 'white';\n this.sectionBkgColor2 = 'calculated';\n this.taskBorderColor = 'calculated';\n this.taskBkgColor = 'calculated';\n this.taskTextLightColor = 'white';\n this.taskTextColor = 'calculated';\n this.taskTextDarkColor = 'calculated';\n this.taskTextOutsideColor = 'calculated';\n this.taskTextClickableColor = '#003163';\n this.activeTaskBorderColor = 'calculated';\n this.activeTaskBkgColor = 'calculated';\n this.gridColor = 'calculated';\n this.doneTaskBkgColor = 'calculated';\n this.doneTaskBorderColor = 'calculated';\n this.critBkgColor = 'calculated';\n this.critBorderColor = 'calculated';\n this.todayLineColor = 'calculated';\n\n /* state colors */\n this.labelColor = 'black';\n\n this.errorBkgColor = '#552222';\n this.errorTextColor = '#552222';\n }\n updateColors() {\n this.secondBkg = lighten(this.contrast, 55);\n this.border2 = this.contrast;\n\n /* Flowchart variables */\n\n this.nodeBkg = this.mainBkg;\n this.nodeBorder = this.border1;\n this.clusterBkg = this.secondBkg;\n this.clusterBorder = this.border2;\n this.defaultLinkColor = this.lineColor;\n this.titleColor = this.text;\n\n /* Sequence Diagram variables */\n\n this.actorBorder = lighten(this.border1, 23);\n this.actorBkg = this.mainBkg;\n this.actorTextColor = this.text;\n this.actorLineColor = this.lineColor;\n this.signalColor = this.text;\n this.signalTextColor = this.text;\n this.labelBoxBkgColor = this.actorBkg;\n this.labelBoxBorderColor = this.actorBorder;\n this.labelTextColor = this.text;\n this.loopTextColor = this.text;\n this.noteBorderColor = darken(this.note, 60);\n this.noteBkgColor = this.note;\n this.noteTextColor = this.actorTextColor;\n\n /* Gantt chart variables */\n\n this.sectionBkgColor = lighten(this.contrast, 30);\n this.sectionBkgColor2 = lighten(this.contrast, 30);\n\n this.taskBorderColor = darken(this.contrast, 10);\n\n this.taskBkgColor = this.contrast;\n this.taskTextColor = this.taskTextLightColor;\n this.taskTextDarkColor = this.text;\n this.taskTextOutsideColor = this.taskTextDarkColor;\n this.activeTaskBorderColor = this.taskBorderColor;\n this.activeTaskBkgColor = this.mainBkg;\n this.gridColor = lighten(this.border1, 30);\n\n this.doneTaskBkgColor = this.done;\n this.doneTaskBorderColor = this.lineColor;\n this.critBkgColor = this.critical;\n this.critBorderColor = darken(this.critBkgColor, 10);\n\n this.todayLineColor = this.critBkgColor;\n\n /* state colors */\n /* class */\n this.classText = this.nodeBorder;\n /* journey */\n this.fillType0 = this.primaryColor;\n this.fillType1 = this.secondaryColor;\n this.fillType2 = adjust(this.primaryColor, { h: 64 });\n this.fillType3 = adjust(this.secondaryColor, { h: 64 });\n this.fillType4 = adjust(this.primaryColor, { h: -64 });\n this.fillType5 = adjust(this.secondaryColor, { h: -64 });\n this.fillType6 = adjust(this.primaryColor, { h: 128 });\n this.fillType7 = adjust(this.secondaryColor, { h: 128 });\n }\n calculate(overrides) {\n if (typeof overrides !== 'object') {\n // Calculate colors form base colors\n this.updateColors();\n return;\n }\n\n const keys = Object.keys(overrides);\n\n // Copy values from overrides, this is mainly for base colors\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n\n // Calculate colors form base colors\n this.updateColors();\n // Copy values from overrides again in case of an override of derived value\n keys.forEach(k => {\n this[k] = overrides[k];\n });\n }\n}\n\nexport const getThemeVariables = userOverrides => {\n const theme = new Theme();\n theme.calculate(userOverrides);\n console.info('Theme(neutral)', { userOverrides, theme });\n return theme;\n};\n","import { getThemeVariables as baseThemeVariables } from './theme-base';\nimport { getThemeVariables as darkThemeVariables } from './theme-dark';\nimport { getThemeVariables as defaultThemeVariables } from './theme-default';\nimport { getThemeVariables as forestThemeVariables } from './theme-forest';\nimport { getThemeVariables as neutralThemeVariables } from './theme-neutral';\n\nexport default {\n base: {\n getThemeVariables: baseThemeVariables\n },\n dark: {\n getThemeVariables: darkThemeVariables\n },\n default: {\n getThemeVariables: defaultThemeVariables\n },\n forest: {\n getThemeVariables: forestThemeVariables\n },\n neutral: {\n getThemeVariables: neutralThemeVariables\n }\n};\n","import theme from './themes';\n/**\n * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**\n *\n * ## **What follows are config instructions for older versions**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *

\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\nconst config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n *\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeVariables: theme['default'].getThemeVariables(),\n themeCSS: undefined,\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n /**\n * The object containing configurations specific for journey diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\n\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\n\nexport default config;\n","import { assignWithDepth } from './utils';\nimport { logger } from './logger';\nimport theme from './themes';\nimport config from './defaultConfig';\n\n// debugger;\n\nexport const defaultConfig = Object.freeze(config);\n\nlet siteConfig = assignWithDepth({}, defaultConfig);\nlet directives = [];\nlet currentConfig = assignWithDepth({}, defaultConfig);\n\n\nconst updateCurrentConfig = conf => {\n currentConfig = assignWithDepth({}, siteConfig);\n\n // Apply directives\n let themeVariables;\n directives.forEach( d => {\n currentConfig = assignWithDepth(currentConfig, d);\n if(d.themeVariables) {\n themeVariables = d.themeVariables;\n }\n })\n const variables = theme[currentConfig.theme].getThemeVariables(themeVariables);\n currentConfig.themeVariables = variables;\n}\n/**\n *## setSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array|\n ***Notes:**\n *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n *to the defaultConfig\n *Note: currentConfig is set in this function\n **Default value: At default, will mirror Global Config**\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\nexport const setSiteConfig = conf => {\n siteConfig = {...defaultConfig, ...conf};\n\n return siteConfig;\n};\nexport const updateSiteConfig = conf => {\n console.log('setSiteConfig');\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n siteConfig = {...siteConfig, ...conf};\n\n // assignWithDesetpth(currentConfig, conf, { clobber: true });\n // // Set theme variables if user has set the theme option\n // assignWithDepth(siteConfig, conf);\n\n return siteConfig;\n};\n/**\n *## getSiteConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig|\n ***Notes**:\n *Returns **any** values in siteConfig.\n * @returns {*}\n */\nexport const getSiteConfig = () => {\n return assignWithDepth({}, siteConfig);\n};\n/**\n *## setConfig\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array|\n ***Notes**:\n *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any\n *values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n *siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\nexport const setConfig = conf => {\n // sanitize(conf);\n // Object.keys(conf).forEach(key => {\n // const manipulator = manipulators[key];\n // conf[key] = manipulator ? manipulator(conf[key]) : conf[key];\n // });\n\n // assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n\n/**\n * ## getConfig\n *| Function | Description | Type | Return Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig|\n ***Notes**:\n *Returns **any** the currentConfig\n * @returns {*} - the currentConfig\n */\nexport const getConfig = () => {\n return assignWithDepth({}, currentConfig);\n};\n/**\n *## sanitize\n *| Function | Description | Type | Values |\n *| --------- | ------------------- | ------- | ------------------ |\n *| sanitize |Sets the siteConfig to desired values. | Put Request |None|\n *Ensures options parameter does not attempt to override siteConfig secure keys\n *Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\nexport const sanitize = options => {\n Object.keys(siteConfig.secure).forEach(key => {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.trace(\n `Denied attempt to modify a secure key ${siteConfig.secure[key]}`,\n options[siteConfig.secure[key]]\n );\n delete options[siteConfig.secure[key]];\n }\n });\n};\n\nexport const addDirective = directive => {\n directives.push(directive);\n updateCurrentConfig();\n}\n\n/**\n *## reset\n *| Function | Description | Type | Required | Values |\n *| --------- | ------------------- | ------- | -------- | ------------------ |\n *| reset|Resets currentConfig to conf| Put Request | Required | None|\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array|\n *\n **Notes :\n (default: current siteConfig ) (optional, default `getSiteConfig()`)\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\nexport const reset = (conf = getSiteConfig()) => {\n // Object.keys(siteConfig).forEach(key => delete siteConfig[key]);\n // Object.keys(currentConfig).forEach(key => delete currentConfig[key]);\n // assignWithDepth(siteConfig, conf, { clobber: true });\n // assignWithDepth(currentConfig, conf, { clobber: true });\n\n // Replace current config with siteConfig\n directives = [];\n updateCurrentConfig();\n};\n\n// const configApi = Object.freeze({\n// sanitize,\n// setSiteConfig,\n// getSiteConfig,\n// setConfig,\n// getConfig,\n// reset,\n// defaultConfig\n// });\n// export default configApi;\n","import { select } from 'd3';\nimport utils from '../../utils';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport mermaidAPI from '../../mermaidAPI';\n\n// const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\nconst MERMAID_DOM_ID_PREFIX = '';\n\nlet config = configApi.defaultConfig;\nlet vertices = {};\nlet edges = [];\nlet classes = [];\nlet subGraphs = [];\nlet subGraphLookup = {};\nlet tooltips = {};\nlet subCount = 0;\nlet firstGraphFlag = true;\nlet direction;\n// Functions to be run after graph rendering\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\nexport const addVertex = function(_id, text, type, style, classes) {\n let txt;\n let id = _id;\n if (typeof id === 'undefined') {\n return;\n }\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = { id: id, styles: [], classes: [] };\n }\n if (typeof text !== 'undefined') {\n config = configApi.defaultConfig;\n txt = common.sanitizeText(text.trim(), config);\n\n // strip quotes if string starts and ends with a quote\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n vertices[id].styles.push(s);\n });\n }\n }\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function(s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\nexport const addSingleLink = function(_start, _end, type, linktext) {\n let start = _start;\n let end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end;\n // logger.info('Got edge...', start, end);\n\n const edge = { start: start, end: end, type: undefined, text: '' };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config);\n\n // strip quotes if string starts and exnds with a quote\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n edges.push(edge);\n};\nexport const addLink = function(_start, _end, type, linktext) {\n let i, j;\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\nexport const updateLinkInterpolate = function(positions, interp) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\nexport const updateLink = function(positions, style) {\n positions.forEach(function(pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n edges[pos].style = style;\n }\n });\n};\n\nexport const addClass = function(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = { id: id, styles: [], textStyles: [] };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function(s) {\n if (s.match('color')) {\n const newStyle1 = s.replace('fill', 'bgFill');\n const newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n classes[id].styles.push(s);\n });\n }\n }\n};\n\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\nexport const setDirection = function(dir) {\n direction = dir;\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nconst setTooltip = function(ids, tooltip) {\n ids.split(',').forEach(function(id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nconst setClickFun = function(_id, functionName) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (configApi.defaultConfig.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, id);\n },\n false\n );\n }\n });\n }\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport const getTooltip = function(id) {\n return tooltips[id];\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\nexport const getDirection = function() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\nexport const getVertices = function() {\n return vertices;\n};\n\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\nexport const getEdges = function() {\n return edges;\n};\n\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\nexport const getClasses = function() {\n return classes;\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const clear = function() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\nexport const defaultStyle = function() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\nexport const addSubGraph = function(_id, list, _title) {\n let id = _id.trim();\n let title = _title;\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n function uniq(a) {\n const prims = { boolean: {}, number: {}, string: {} };\n const objs = [];\n\n return a.filter(function(item) {\n const type = typeof item;\n if (item.trim() === '') {\n return false;\n }\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : (prims[type][item] = true); // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n let nodeList = [];\n\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n for (let i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n const subGraph = { id: id, nodes: nodeList, title: title.trim(), classes: [] };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nconst getPosForId = function(id) {\n for (let i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n return -1;\n};\nlet secCount = -1;\nconst posCrossRef = [];\nconst indexNodes2 = function(id, pos) {\n const nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n if (secCount > 2000) {\n return;\n }\n posCrossRef[secCount] = pos;\n // Check if match\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n let count = 0;\n let posCount = 1;\n while (count < nodes.length) {\n const childPos = getPosForId(nodes[count]);\n // Ignore regular nodes (pos will be -1)\n if (childPos >= 0) {\n const res = indexNodes2(id, childPos);\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport const getDepthFirstPos = function(pos) {\n return posCrossRef[pos];\n};\nexport const indexNodes = function() {\n secCount = -1;\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\n\nexport const getSubGraphs = function() {\n return subGraphs;\n};\n\nexport const firstGraph = () => {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n return false;\n};\n\nconst destructStartLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '<--':\n return { type: 'arrow_point', stroke: 'normal' };\n case 'x--':\n return { type: 'arrow_cross', stroke: 'normal' };\n case 'o--':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '<-.':\n return { type: 'arrow_point', stroke: 'dotted' };\n case 'x-.':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case 'o-.':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '<==':\n return { type: 'arrow_point', stroke: 'thick' };\n case 'x==':\n return { type: 'arrow_cross', stroke: 'thick' };\n case 'o==':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '--':\n return { type: 'arrow_open', stroke: 'normal' };\n case '==':\n return { type: 'arrow_open', stroke: 'thick' };\n case '-.':\n return { type: 'arrow_open', stroke: 'dotted' };\n }\n};\n\nconst destructEndLink = _str => {\n const str = _str.trim();\n\n switch (str) {\n case '--x':\n return { type: 'arrow_cross', stroke: 'normal' };\n case '-->':\n return { type: 'arrow_point', stroke: 'normal' };\n case '<-->':\n return { type: 'double_arrow_point', stroke: 'normal' };\n case 'x--x':\n return { type: 'double_arrow_cross', stroke: 'normal' };\n case 'o--o':\n return { type: 'double_arrow_circle', stroke: 'normal' };\n case 'o.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '<==>':\n return { type: 'double_arrow_point', stroke: 'thick' };\n case 'o==o':\n return { type: 'double_arrow_circle', stroke: 'thick' };\n case 'x==x':\n return { type: 'double_arrow_cross', stroke: 'thick' };\n case 'x.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case 'x-.-x':\n return { type: 'double_arrow_cross', stroke: 'dotted' };\n case '<.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case '<-.->':\n return { type: 'double_arrow_point', stroke: 'dotted' };\n case 'o-.-o':\n return { type: 'double_arrow_circle', stroke: 'dotted' };\n case '--o':\n return { type: 'arrow_circle', stroke: 'normal' };\n case '---':\n return { type: 'arrow_open', stroke: 'normal' };\n case '-.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '-.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '-.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '-.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '.-x':\n return { type: 'arrow_cross', stroke: 'dotted' };\n case '.->':\n return { type: 'arrow_point', stroke: 'dotted' };\n case '.-o':\n return { type: 'arrow_circle', stroke: 'dotted' };\n case '.-':\n return { type: 'arrow_open', stroke: 'dotted' };\n case '==x':\n return { type: 'arrow_cross', stroke: 'thick' };\n case '==>':\n return { type: 'arrow_point', stroke: 'thick' };\n case '==o':\n return { type: 'arrow_circle', stroke: 'thick' };\n case '===':\n return { type: 'arrow_open', stroke: 'thick' };\n }\n};\n\nconst destructLink = (_str, _startStr) => {\n const info = destructEndLink(_str);\n let startInfo;\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return { type: 'INVALID', stroke: 'INVALID' };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return { type: 'INVALID', stroke: 'INVALID' };\n\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n parseDirective,\n defaultConfig: () => configApi.defaultConfig.flowchart,\n addVertex,\n addLink,\n updateLinkInterpolate,\n updateLink,\n addClass,\n setDirection,\n setClass,\n getTooltip,\n setClickEvent,\n setLink,\n bindFunctions,\n getDirection,\n getVertices,\n getEdges,\n getClasses,\n clear,\n defaultStyle,\n addSubGraph,\n getDepthFirstPos,\n indexNodes,\n getSubGraphs,\n destructLink,\n lex: {\n firstGraph\n }\n};\n","import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const s = (w + h) * 0.9;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, s, s, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n const f = 4;\n const h = bbox.height;\n const m = h / f;\n const w = bbox.width + 2 * m;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n const h = bbox.height;\n const w = bbox.width + h / 4;\n\n const shapeSvg = parent\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n node.intersect = function(point) {\n return dagreD3.intersect.rect(node, point);\n };\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n const w = bbox.width;\n const h = bbox.height;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const shapeSvg = insertPolygonShape(parent, w, h, points);\n node.intersect = function(point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n const w = bbox.width;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const shapeSvg = parent\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function(point) {\n const pos = dagreD3.intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_right = lean_right;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().lean_left = lean_left;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().trapezoid = trapezoid;\n\n // Add custom shape for box with inverted arrow on left side\n render.shapes().inv_trapezoid = inv_trapezoid;\n\n // Add custom shape for box with inverted arrow on right side\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\n\nexport function addToRenderV2(addShape) {\n addShape({ question });\n addShape({ hexagon });\n addShape({ stadium });\n addShape({ subroutine });\n addShape({ cylinder });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ rect_left_inv_arrow });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_right });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ lean_left });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ trapezoid });\n\n // Add custom shape for box with inverted arrow on left side\n addShape({ inv_trapezoid });\n\n // Add custom shape for box with inverted arrow on right side\n addShape({ rect_right_inv_arrow });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender,\n addToRenderV2\n};\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n break;\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n try {\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Create the renderer\n const Render = dagreD3.render;\n const render = new Render();\n\n // Add custom shapes\n flowChartShapes.addToRender(render);\n\n // Add our custom arrow - an empty arrowhead\n render.arrows().none = function normal(parent, id, edge, type) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n const path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n };\n\n // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n render.arrows().normal = function normal(parent, id) {\n const marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowheadPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n };\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // reposition labels\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n const xPos = clusterRects[0].x.baseVal.value;\n const yPos = clusterRects[0].y.baseVal.value;\n const width = clusterRects[0].width.baseVal.value;\n const cluster = select(clusterEl[0]);\n const te = cluster.select('.label');\n te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n te.attr('id', id + 'Text');\n\n for (let j = 0; j < subG.classes.length; j++) {\n clusterEl[0].classList.add(subG.classes[j]);\n }\n }\n }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels || true) { // eslint-disable-line\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nimport { logger } from '../logger';\n\n// Only add the number of markers that the diagram needs\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach(markerName => {\n markers[markerName](elem, type, id);\n });\n};\n\nconst extension = (elem, type, id) => {\n logger.trace('Making markers for ', id);\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionStart')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-extensionEnd')\n .attr('class', 'marker extension ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nconst composition = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionStart')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-compositionEnd')\n .attr('class', 'marker composition ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst aggregation = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationStart')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-aggregationEnd')\n .attr('class', 'marker aggregation ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\nconst dependency = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyStart')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-dependencyEnd')\n .attr('class', 'marker dependency ' + type)\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\nconst point = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-pointEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n elem\n .append('marker')\n .attr('id', type + '-pointStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 0)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 12)\n .attr('markerHeight', 12)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0 5 L 10 10 L 10 0 z')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst circle = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-circleEnd')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 11)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-circleStart')\n .attr('class', 'marker ' + type)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', -1)\n .attr('refY', 5)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', '5')\n .attr('cy', '5')\n .attr('r', '5')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n};\nconst cross = (elem, type) => {\n elem\n .append('marker')\n .attr('id', type + '-crossEnd')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', 12)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n\n elem\n .append('marker')\n .attr('id', type + '-crossStart')\n .attr('class', 'marker cross ' + type)\n .attr('viewBox', '0 0 11 11')\n .attr('refX', -1)\n .attr('refY', 5.2)\n .attr('markerUnits', 'userSpaceOnUse')\n .attr('markerWidth', 11)\n .attr('markerHeight', 11)\n .attr('orient', 'auto')\n .append('path')\n // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9')\n .attr('class', 'arrowMarkerPath')\n .style('stroke-width', 2)\n .style('stroke-dasharray', '1,0');\n};\nconst barb = (elem, type) => {\n elem\n .append('defs')\n .append('marker')\n .attr('id', type + '-barbEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 14)\n .attr('markerUnits', 'strokeWidth')\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n// TODO rename the class diagram markers to something shape descriptive and semanitc free\nconst markers = {\n extension,\n composition,\n aggregation,\n dependency,\n point,\n circle,\n cross,\n barb\n};\nexport default insertMarkers;\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n// const rows = vertexText.split(common.lineBreakRegex);\n\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n const fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n const div = fo.append('xhtml:div');\n\n const label = node.label;\n const labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nconst createLabel = (_vertexText, style, isTitle, isNode) => {\n let vertexText = _vertexText || '';\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n const node = {\n isNode,\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n let vertexNode = addHtmlLabel(node);\n // vertexNode.parentNode.removeChild(vertexNode);\n return vertexNode;\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n let rows = [];\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n }\n};\n\nexport default createLabel;\n","import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport const labelHelper = (parent, node, _classes, isNode) => {\n let classes;\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, false, isNode));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const halfPadding = node.padding / 2;\n\n // Center the label\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n return { shapeSvg, bbox, halfPadding, label };\n};\n\nexport const updateNodeBounds = (node, element) => {\n const bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\n\nexport function insertPolygonShape(parent, w, h, points) {\n return parent\n .insert('polygon', ':first-child')\n .attr(\n 'points',\n points\n .map(function(d) {\n return d.x + ',' + d.y;\n })\n .join(' ')\n )\n .attr('class', 'label-container')\n .attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n","/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\n\nexport let clusterDb = {};\nlet decendants = {};\nlet parents = {};\n\nexport const clear = () => {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nconst isDecendant = (id, ancenstorId) => {\n // if (id === ancenstorId) return true;\n\n log.debug(\n 'In isDecendant',\n ancenstorId,\n ' ',\n id,\n ' = ',\n decendants[ancenstorId].indexOf(id) >= 0\n );\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n\n return false;\n};\n\nconst edgeInCluster = (edge, clusterId) => {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge);\n // Edges to/from the cluster is not in the cluster, they are in the parent\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n log.info('Here ');\n\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n\n return false;\n};\n\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.info(\n 'Copying children of ',\n clusterId,\n 'root',\n rootId,\n 'data',\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n\n // Include cluster node if it is not the root\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n\n nodes.forEach(node => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug(\n 'Not Setting parent for node=',\n node,\n 'cluster!==rootId',\n clusterId !== rootId,\n 'node!==clusterId',\n node !== clusterId\n );\n }\n const edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(edge => {\n log.info('Edge', edge);\n const data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info(\n 'Skipping copy of edge ',\n edge.v,\n '-->',\n edge.w,\n ' rootId: ',\n rootId,\n ' clusterId:',\n clusterId\n );\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\nexport const extractDecendants = (id, graph) => {\n // log.debug('Extracting ', id);\n const children = graph.children(id);\n let res = [].concat(children);\n\n for (let i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\nexport const validate = graph => {\n const edges = graph.edges();\n log.trace('Edges: ', edges);\n for (let i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n return true;\n};\n\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\nexport const findNonClusterChild = (id, graph) => {\n // const node = graph.node(id);\n log.trace('Searching', id);\n // const children = graph.children(id).reverse();\n const children = graph.children(id); //.reverse();\n log.trace('Searching children of id ', id, children);\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n for (let i = 0; i < children.length; i++) {\n const _id = findNonClusterChild(children[i], graph);\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nconst getAnchorId = id => {\n if (!clusterDb[id]) {\n return id;\n }\n // If the cluster has no external connections\n if (!clusterDb[id].externalConnections) {\n return id;\n }\n\n // Return the replacement node\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n return id;\n};\n\nexport const adjustClustersAndEdges = (graph, depth) => {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n }\n // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n if (children.length > 0) {\n log.warn(\n 'Cluster identified',\n id,\n ' Replacement id in edges: ',\n findNonClusterChild(id, graph)\n );\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = { id: findNonClusterChild(id, graph), clusterData: graph.node(id) };\n }\n });\n\n // Check incoming and outgoing edges for each cluster\n graph.nodes().forEach(function(id) {\n const children = graph.children(id);\n const edges = graph.edges();\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(edge => {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n\n const d1 = isDecendant(edge.v, id);\n const d2 = isDecendant(edge.w, id);\n\n // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n\n extractor(graph, 0);\n\n // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n\n let v = e.v;\n let w = e.w;\n // Check if link is either from or to a cluster\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n\n log.trace(clusterDb);\n\n // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\n\nexport const extractor = (graph, depth) => {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n if (depth > 10) {\n log.error('Bailing out');\n return;\n }\n // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n let nodes = graph.nodes();\n let hasChildren = false;\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n }\n // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n log.debug('Nodes = ', nodes, depth);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n\n log.debug(\n 'Extracting node',\n node,\n clusterDb,\n clusterDb[node] && !clusterDb[node].externalConnections,\n !graph.parent(node),\n graph.node(node),\n graph.children('D'),\n ' Depth ',\n depth\n );\n // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n if (!clusterDb[node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', node, depth);\n // break;\n } else if (\n !clusterDb[node].externalConnections &&\n !graph.parent(node) &&\n graph.children(node) &&\n graph.children(node).length > 0\n ) {\n log.debug(\n 'Cluster without external connections, without a parent and with children',\n node,\n depth\n );\n\n const graphSettings = graph.graph();\n\n const clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(node, graph, clusterGraph, node);\n graph.setNode(node, {\n clusterNode: true,\n id: node,\n clusterData: clusterDb[node].clusterData,\n labelText: clusterDb[node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug(\n 'Cluster ** ',\n node,\n ' **not meeting the criteria !externalConnections:',\n !clusterDb[node].externalConnections,\n ' no parent: ',\n !graph.parent(node),\n ' children ',\n graph.children(node) && graph.children(node).length > 0,\n graph.children('D'),\n depth\n );\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n for (let i = 0; i < nodes.length; i++) {\n const node = nodes[i];\n const data = graph.node(node);\n log.debug(' Now next leveö', node, data);\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};\n","function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs((rx * ry * px) / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs((rx * ry * py) / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return { x: cx + dx, y: cy + dy };\n}\n\nexport default intersectEllipse;\n","import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;\n","/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y;\n\n // Compute r3 and r4.\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1;\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y;\n\n // Compute r1 and r2\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = a1 * b2 - a2 * b1;\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;\n","/* eslint \"no-console\": off */\n\nimport intersectLine from './intersect-line';\n\nexport default intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n if (typeof polyPoints.forEach === 'function') {\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n } else {\n minX = Math.min(minX, polyPoints.x);\n minY = Math.min(minY, polyPoints.y);\n }\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(\n node,\n point,\n { x: left + p1.x, y: top + p1.y },\n { x: left + p2.x, y: top + p2.y }\n );\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n return intersections[0];\n}\n","const intersectRect = (node, point) => {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : (h * dx) / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : (w * dy) / dx;\n }\n\n return { x: x + sx, y: y + sy };\n};\n\nexport default intersectRect;\n","/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\n\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\n\nexport default {\n node,\n circle,\n ellipse,\n polygon,\n rect\n};\n","import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport intersect from './intersect/index.js';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nconst question = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const s = w + h;\n const points = [\n { x: s / 2, y: 0 },\n { x: s, y: -s / 2 },\n { x: s / 2, y: -s },\n { x: 0, y: -s / 2 }\n ];\n\n logger.info('Question main (Circle)');\n\n const questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n node.intersect = function(point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nconst hexagon = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const f = 4;\n const h = bbox.height + node.padding;\n const m = h / f;\n const w = bbox.width + 2 * m + node.padding;\n const points = [\n { x: m, y: 0 },\n { x: w - m, y: 0 },\n { x: w, y: -h / 2 },\n { x: w - m, y: -h },\n { x: m, y: -h },\n { x: 0, y: -h / 2 }\n ];\n const hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst rect_left_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: -h / 2, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: -h / 2, y: -h },\n { x: 0, y: -h / 2 }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst lean_right = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst lean_left = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (2 * h) / 6, y: 0 },\n { x: w + h / 6, y: 0 },\n { x: w - (2 * h) / 6, y: -h },\n { x: -h / 6, y: -h }\n ];\n\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: (-2 * h) / 6, y: 0 },\n { x: w + (2 * h) / 6, y: 0 },\n { x: w - h / 6, y: -h },\n { x: h / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst inv_trapezoid = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: h / 6, y: 0 },\n { x: w - h / 6, y: 0 },\n { x: w + (2 * h) / 6, y: -h },\n { x: (-2 * h) / 6, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst rect_right_inv_arrow = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w + h / 2, y: 0 },\n { x: w, y: -h / 2 },\n { x: w + h / 2, y: -h },\n { x: 0, y: -h }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\nconst cylinder = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const rx = w / 2;\n const ry = rx / (2.5 + w / 50);\n const h = bbox.height + ry + node.padding;\n\n const shape =\n 'M 0,' +\n ry +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n -w +\n ' 0 l 0,' +\n h +\n ' a ' +\n rx +\n ',' +\n ry +\n ' 0,0,0 ' +\n w +\n ' 0 l 0,' +\n -h;\n\n const el = shapeSvg\n .attr('label-offset-y', ry)\n .insert('path', ':first-child')\n .attr('d', shape)\n .attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n const pos = intersect.rect(node, point);\n const x = pos.x - node.x;\n\n if (\n rx != 0 &&\n (Math.abs(x) < node.width / 2 ||\n (Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry))\n ) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n let y = ry * ry * (1 - (x * x) / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nconst rect = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.trace('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('class', 'basic label-container')\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst rectWithTitle = (parent, node) => {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n // const innerRect = shapeSvg.insert('rect');\n const innerLine = shapeSvg.insert('line');\n\n const label = shapeSvg.insert('g').attr('class', 'label');\n\n const text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n\n const text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n logger.info('Text 2', text2);\n const textRows = text2.slice(1, text2.length);\n let titleBox = text.getBBox();\n const descr = label\n .node()\n .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n const div = descr.children[0];\n const dv = select(descr);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = label.getBBox();\n // logger.info(descr);\n const halfPadding = node.padding / 2;\n select(descr).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n ', ' +\n (titleBox.height + halfPadding + 5) +\n ')'\n );\n select(text).attr(\n 'transform',\n 'translate( ' +\n // (titleBox.width - bbox.width) / 2 +\n (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n ', ' +\n 0 +\n ')'\n );\n // Get the size of the label\n\n // Bounding box for title and text\n bbox = label.node().getBBox();\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n innerLine\n .attr('class', 'divider')\n .attr('x1', -bbox.width / 2 - halfPadding)\n .attr('x2', bbox.width / 2 + halfPadding)\n .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst stadium = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const h = bbox.height + node.padding;\n const w = bbox.width + h / 4 + node.padding;\n\n // add the rect\n const rect = shapeSvg\n .insert('rect', ':first-child')\n .attr('rx', h / 2)\n .attr('ry', h / 2)\n .attr('x', -w / 2)\n .attr('y', -h / 2)\n .attr('width', w)\n .attr('height', h);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\nconst circle = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, undefined, true);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('r', bbox.width / 2 + halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n logger.info('Circle main');\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nconst subroutine = (parent, node) => {\n const { shapeSvg, bbox } = labelHelper(parent, node, undefined, true);\n\n const w = bbox.width + node.padding;\n const h = bbox.height + node.padding;\n const points = [\n { x: 0, y: 0 },\n { x: w, y: 0 },\n { x: w, y: -h },\n { x: 0, y: -h },\n { x: 0, y: 0 },\n { x: -8, y: 0 },\n { x: w + 8, y: 0 },\n { x: w + 8, y: -h },\n { x: -8, y: -h },\n { x: -8, y: 0 }\n ];\n const el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function(point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nconst start = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const circle = shapeSvg.insert('circle', ':first-child');\n\n // center the circle around its coordinate\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst forkJoin = (parent, node, dir) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n\n let width = 70;\n let height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n const shape = shapeSvg\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('x', (-1 * width) / 2)\n .attr('y', (-1 * height) / 2)\n .attr('width', width)\n .attr('height', height)\n .attr('class', 'fork-join');\n\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst end = (parent, node) => {\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'node default')\n .attr('id', node.id);\n const innerCircle = shapeSvg.insert('circle', ':first-child');\n const circle = shapeSvg.insert('circle', ':first-child');\n\n circle\n .attr('class', 'state-start')\n .attr('r', 7)\n .attr('width', 14)\n .attr('height', 14);\n\n innerCircle\n .attr('class', 'state-end')\n .attr('r', 5)\n .attr('width', 10)\n .attr('height', 10);\n\n updateNodeBounds(node, circle);\n\n node.intersect = function(point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nconst class_box = (parent, node) => {\n const halfPadding = node.padding / 2;\n const rowPadding = 4;\n const lineHeight = 8;\n\n let classes;\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n }\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', classes)\n .attr('id', node.id);\n\n // Create the title label and insert it after the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n const topLine = shapeSvg.insert('line');\n const bottomLine = shapeSvg.insert('line');\n let maxWidth = 0;\n let maxHeight = rowPadding;\n\n const labelContainer = shapeSvg.insert('g').attr('class', 'label');\n let verticalPos = 0;\n const hasInterface = node.classData.annotations && node.classData.annotations[0];\n\n // 1. Create the labels\n const interfaceLabel = labelContainer\n .node()\n .appendChild(createLabel(node.classData.annotations[0], node.labelStyle, true, true));\n const interfaceBBox = interfaceLabel.getBBox();\n if (node.classData.annotations[0]) {\n maxHeight += interfaceBBox.height + rowPadding;\n maxWidth += interfaceBBox.width;\n }\n\n const classTitleLabel = labelContainer\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, true, true));\n const classTitleBBox = classTitleLabel.getBBox();\n maxHeight += classTitleBBox.height + rowPadding;\n if (classTitleBBox.width > maxWidth) {\n maxWidth = classTitleBBox.width;\n }\n const classAttributes = [];\n node.classData.members.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n classAttributes.push(lbl);\n });\n\n const classMethods = [];\n node.classData.methods.forEach(str => {\n const lbl = labelContainer.node().appendChild(createLabel(str, node.labelStyle, true, true));\n const bbox = lbl.getBBox();\n if (bbox.width > maxWidth) {\n maxWidth = bbox.width;\n }\n maxHeight += bbox.height + rowPadding;\n\n classMethods.push(lbl);\n });\n\n maxHeight += lineHeight;\n\n // 2. Position the labels\n\n // position the interface label\n if (hasInterface) {\n select(interfaceLabel).attr(\n 'transform',\n 'translate( ' +\n -(maxWidth + node.padding - interfaceBBox.width / 2) / 2 +\n ', ' +\n (-1 * maxHeight) / 2 +\n ')'\n );\n verticalPos = interfaceBBox.height + rowPadding;\n }\n // Positin the class title label\n let diffX = (maxWidth - classTitleBBox.width) / 2;\n select(classTitleLabel).attr(\n 'transform',\n 'translate( ' +\n ((-1 * maxWidth) / 2 + diffX) +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n\n topLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classAttributes.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' +\n -maxWidth / 2 +\n ', ' +\n ((-1 * maxHeight) / 2 + verticalPos + lineHeight / 2) +\n ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n\n bottomLine\n .attr('class', 'divider')\n .attr('x1', -maxWidth / 2 - halfPadding)\n .attr('x2', maxWidth / 2 + halfPadding)\n .attr('y1', -maxHeight / 2 - halfPadding + lineHeight + verticalPos)\n .attr('y2', -maxHeight / 2 - halfPadding + lineHeight + verticalPos);\n\n verticalPos += lineHeight;\n\n classMethods.forEach(lbl => {\n select(lbl).attr(\n 'transform',\n 'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'\n );\n verticalPos += classTitleBBox.height + rowPadding;\n });\n //\n let bbox;\n if (getConfig().flowchart.htmlLabels) {\n const div = interfaceLabel.children[0];\n const dv = select(interfaceLabel);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n // bbox = labelContainer.getBBox();\n\n // logger.info('Text 2', text2);\n // const textRows = text2.slice(1, text2.length);\n // let titleBox = text.getBBox();\n // const descr = label\n // .node()\n // .appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n // if (getConfig().flowchart.htmlLabels) {\n // const div = descr.children[0];\n // const dv = select(descr);\n // bbox = div.getBoundingClientRect();\n // dv.attr('width', bbox.width);\n // dv.attr('height', bbox.height);\n // }\n // // bbox = label.getBBox();\n // // logger.info(descr);\n // select(descr).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) +\n // ', ' +\n // (titleBox.height + halfPadding + 5) +\n // ')'\n // );\n // select(text).attr(\n // 'transform',\n // 'translate( ' +\n // // (titleBox.width - bbox.width) / 2 +\n // (bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) +\n // ', ' +\n // 0 +\n // ')'\n // );\n // // Get the size of the label\n\n // // Bounding box for title and text\n // bbox = label.node().getBBox();\n\n // // Center the label\n // label.attr(\n // 'transform',\n // 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')'\n // );\n\n rect\n .attr('class', 'outer title-state')\n .attr('x', -maxWidth / 2 - halfPadding)\n .attr('y', -(maxHeight / 2) - halfPadding)\n .attr('width', maxWidth + node.padding)\n .attr('height', maxHeight + node.padding);\n\n // innerLine\n // .attr('class', 'divider')\n // .attr('x1', -bbox.width / 2 - halfPadding)\n // .attr('x2', bbox.width / 2 + halfPadding)\n // .attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding)\n // .attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = {\n question,\n rect,\n rectWithTitle,\n circle,\n stadium,\n hexagon,\n rect_left_inv_arrow,\n lean_right,\n lean_left,\n trapezoid,\n inv_trapezoid,\n rect_right_inv_arrow,\n cylinder,\n start,\n end,\n note,\n subroutine,\n fork: forkJoin,\n join: forkJoin,\n class_box\n};\n\nlet nodeElems = {};\n\nexport const insertNode = (elem, node, dir) => {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport const setNodeElem = (elem, node) => {\n nodeElems[node.id] = elem;\n};\nexport const clear = () => {\n nodeElems = {};\n};\n\nexport const positionNode = node => {\n const el = nodeElems[node.id];\n logger.trace(\n 'Transforming node',\n node,\n 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')'\n );\n const padding = 8;\n if (node.clusterNode) {\n el.attr(\n 'transform',\n 'translate(' +\n (node.x - node.width / 2 - padding) +\n ', ' +\n (node.y - node.height / 2 - padding) +\n ')'\n );\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};\n","import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\nimport intersect from '../intersect/index.js';\n\nconst note = (parent, node) => {\n const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes, true);\n\n logger.info('Classes = ', node.classes);\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', -bbox.width / 2 - halfPadding)\n .attr('y', -bbox.height / 2 - halfPadding)\n .attr('width', bbox.width + node.padding)\n .attr('height', bbox.height + node.padding);\n\n updateNodeBounds(node, rect);\n\n node.intersect = function(point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;\n","import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nconst rect = (parent, node) => {\n log.trace('Creating subgraph rect for ', node.id, node);\n\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n log.trace('Data ', node, JSON.stringify(node));\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + 3) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\n/**\n * Non visiable cluster where the note is group with its\n */\nconst noteGroup = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', 'note-cluster')\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('rx', node.rx)\n .attr('ry', node.ry)\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding)\n .attr('fill', 'none');\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\nconst roundedWithTitle = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n // Create the label and insert it after the rect\n const label = shapeSvg.insert('g').attr('class', 'cluster-label');\n const innerRect = shapeSvg.append('rect');\n\n const text = label\n .node()\n .appendChild(createLabel(node.labelText, node.labelStyle, undefined, true));\n\n // Get the size of the label\n let bbox = text.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = text.children[0];\n const dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n bbox = text.getBBox();\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'outer')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n innerRect\n .attr('class', 'inner')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding - bbox.height - 3);\n\n // Center the label\n label.attr(\n 'transform',\n 'translate(' +\n (node.x - bbox.width / 2) +\n ', ' +\n (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) +\n ')'\n );\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst divider = (parent, node) => {\n // Add outer g element\n const shapeSvg = parent\n .insert('g')\n .attr('class', node.classes)\n .attr('id', node.id);\n\n // add the rect\n const rect = shapeSvg.insert('rect', ':first-child');\n\n const padding = 0 * node.padding;\n const halfPadding = padding / 2;\n\n // center the rect around its coordinate\n rect\n .attr('class', 'divider')\n .attr('x', node.x - node.width / 2 - halfPadding)\n .attr('y', node.y - node.height / 2)\n .attr('width', node.width + padding)\n .attr('height', node.height + padding);\n\n const rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nconst shapes = { rect, roundedWithTitle, noteGroup, divider };\n\nlet clusterElems = {};\n\nexport const insertCluster = (elem, node) => {\n log.trace('Inserting cluster');\n const shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport const getClusterTitleWidth = (elem, node) => {\n const label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n const width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\n\nexport const clear = () => {\n clusterElems = {};\n};\n\nexport const positionCluster = node => {\n log.info('Position cluster');\n const el = clusterElems[node.id];\n\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};\n","import { logger } from '../logger'; // eslint-disable-line\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils';\n// import { calcLabelPosition } from '../utils';\n\nlet edgeLabels = {};\n\nexport const clear = () => {\n edgeLabels = {};\n};\n\nexport const insertEdgeLabel = (elem, edge) => {\n // Create the actual text element\n const labelElement = createLabel(edge.label, edge.labelStyle);\n\n // Create outer g, edgeLabel, this will be positioned after graph layout\n const edgeLabel = elem.insert('g').attr('class', 'edgeLabel');\n\n // Create inner g, label, this will be positioned now for centering the text\n const label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement);\n\n // Center the label\n let bbox = labelElement.getBBox();\n if (getConfig().flowchart.htmlLabels) {\n const div = labelElement.children[0];\n const dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n\n // Make element accessible by id for positioning\n edgeLabels[edge.id] = edgeLabel;\n\n // Update the abstract data of the edge with the new information about its width and height\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\n\nexport const positionEdgeLabel = (edge, points) => {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n if (edge.label) {\n const el = edgeLabels[edge.id];\n let x = edge.x;\n let y = edge.y;\n if (points) {\n // debugger;\n const pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n};\n\n// const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nconst outsideNode = (node, point) => {\n // logger.warn('Checking bounds ', node, point);\n const x = node.x;\n const y = node.y;\n const dx = Math.abs(point.x - x);\n const dy = Math.abs(point.y - y);\n const w = node.width / 2;\n const h = node.height / 2;\n if (dx >= w || dy >= h) {\n return true;\n }\n return false;\n};\n\nexport const intersection = (node, outsidePoint, insidePoint) => {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n const x = node.x;\n const y = node.y;\n\n const dx = Math.abs(x - insidePoint.x);\n const w = node.width / 2;\n let r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n const h = node.height / 2;\n\n const edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (\n outsidePoint.x === edges.x1 ||\n outsidePoint.x === edges.x2 ||\n outsidePoint.y === edges.y1 ||\n outsidePoint.y === edges.y2\n ) {\n logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n const Q = Math.abs(outsidePoint.y - insidePoint.y);\n const R = Math.abs(outsidePoint.x - insidePoint.x);\n // log.warn();\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) { // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = (R * q) / Q;\n const res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(`topp/bott calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, res);\n\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n let q = (q = (Q * r) / R);\n logger.warn(`sides calc, Q ${Q}, q ${q}, R ${R}, r ${r}`, {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n });\n\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + q : insidePoint.y - q\n };\n }\n};\n\n//(edgePaths, e, edge, clusterDb, diagramtype, graph)\nexport const insertEdge = function(elem, e, edge, clusterDb, diagramType, graph) {\n let points = edge.points;\n let pointsHasChanged = false;\n const tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info(\n 'Last point',\n points[points.length - 1],\n head,\n head.intersect(points[points.length - 1])\n );\n points.push(head.intersect(points[points.length - 1]));\n }\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n let lastPointOutside;\n let isInside = false;\n edge.points.forEach(point => {\n const node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside);\n\n // First point inside the rect\n const inter = intersection(node, lastPointOutside, point);\n\n let pointPresent = false;\n points.forEach(p => {\n pointPresent = pointPresent || (p.x === inter.x && p.y === inter.y);\n });\n // if (!pointPresent) {\n if (!points.find(e => e.x === inter.x && e.y === inter.y)) {\n points.push(inter);\n } else {\n logger.warn('no intersect', inter, points);\n }\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n const updatedPoints = [];\n let lastPointOutside;\n let isInside = false;\n for (let i = points.length - 1; i >= 0; i--) {\n const point = points[i];\n const node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.warn('inside', edge.fromCluster, point, node);\n\n // First point inside the rect\n const insterection = intersection(node, lastPointOutside, point);\n // logger.trace('intersect', intersection(node, lastPointOutside, point));\n updatedPoints.unshift(insterection);\n // points.push(insterection);\n isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!isInside) updatedPoints.unshift(point);\n }\n lastPointOutside = point;\n }\n points = updatedPoints;\n pointsHasChanged = true;\n }\n\n // The data for our line\n const lineData = points.filter(p => !Number.isNaN(p.y));\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Contruct stroke classes based on properties\n let strokeClasses;\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n default:\n strokeClasses = '';\n }\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', edge.id)\n .attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : ''));\n\n // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n logger.info('arrowTypeStart', edge.arrowTypeStart);\n logger.info('arrowTypeEnd', edge.arrowTypeEnd);\n\n switch (edge.arrowTypeStart) {\n case 'arrow_cross':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-aggregationStart' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-extensionStart' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-compositionStart' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-dependencyStart' + ')');\n break;\n default:\n }\n switch (edge.arrowTypeEnd) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n case 'aggregation':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-aggregationEnd' + ')');\n break;\n case 'extension':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-extensionEnd' + ')');\n break;\n case 'composition':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-compositionEnd' + ')');\n break;\n case 'dependency':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-dependencyEnd' + ')');\n break;\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};\n","import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport {\n clear as clearGraphlib,\n clusterDb,\n adjustClustersAndEdges,\n findNonClusterChild\n} from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nconst recursiveRender = (_elem, graph, diagramtype, parentCluster) => {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n const dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n const elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n if (!graph.nodes()) {\n log.info('No nodes found for', graph);\n } else {\n log.info('Recursive render', graph.nodes());\n }\n if (graph.edges().length > 0) {\n log.info('Recursive edges', graph.edge(graph.edges()[0]));\n }\n const clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n const edgePaths = elem.insert('g').attr('class', 'edgePaths');\n const edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n const nodes = elem.insert('g').attr('class', 'nodes');\n\n // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n if (typeof parentCluster !== 'undefined') {\n const data = JSON.parse(JSON.stringify(parentCluster.clusterData));\n // data.clusterPositioning = true;\n log.info('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n log.info('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.info('Cluster identified', v, node, graph.node(v));\n const newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.info('Cluster - the non recursive path', v, node.id, node, graph);\n log.info(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = { id: findNonClusterChild(node.id, graph), node };\n // insertCluster(clusters, graph.node(v));\n } else {\n log.info('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n });\n\n // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e.v, e.w, e.name);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e)));\n\n // Check if link is either from or to a cluster\n log.info('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n\n graph.edges().forEach(function(e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.info('Graph after layout:', graphlib.json.write(graph));\n // Move the nodes to the correct place\n graph.nodes().forEach(function(v) {\n const node = graph.node(v);\n log.info('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info(\n 'Position ' + v + ': (' + node.x,\n ',' + node.y,\n ') width: ',\n node.width,\n ' height: ',\n node.height\n );\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n });\n\n // Move the edge labels to the correct place after layout\n graph.edges().forEach(function(e) {\n const edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n\n const updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n\n return elem;\n};\n\nexport const render = (elem, graph, markers, diagramtype, id) => {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n};\n\n// const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };\n","import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\n\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addVertices = function(vert, g, svgId) {\n const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = vert[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n const styles = getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n let vertexNode;\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n const node = {\n label: vertexText.replace(\n /fa[lrsb]?:fa-[\\w-]+/g,\n s => ``\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n const rows = vertexText.split(common.lineBreakRegex);\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n case 'square':\n _shape = 'rect';\n break;\n case 'diamond':\n _shape = 'question';\n break;\n case 'hexagon':\n _shape = 'hexagon';\n break;\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'lean_right':\n _shape = 'lean_right';\n break;\n case 'lean_left':\n _shape = 'lean_left';\n break;\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n case 'circle':\n _shape = 'circle';\n break;\n case 'ellipse':\n _shape = 'ellipse';\n break;\n case 'stadium':\n _shape = 'stadium';\n break;\n case 'subroutine':\n _shape = 'subroutine';\n break;\n case 'cylinder':\n _shape = 'cylinder';\n break;\n case 'group':\n _shape = 'rect';\n break;\n default:\n _shape = 'rect';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addEdges = function(edges, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function(edge) {\n cnt++;\n\n // Identify Link\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n\n const edgeData = {};\n //edgeData.id = 'id' + cnt;\n\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n // Check of arrow types, placed here in order not to break old rendering\n edgeData.arrowTypeStart = 'arrow_open';\n edgeData.arrowTypeEnd = 'arrow_open';\n\n /* eslint-disable no-fallthrough */\n switch (edge.type) {\n case 'double_arrow_cross':\n edgeData.arrowTypeStart = 'arrow_cross';\n case 'arrow_cross':\n edgeData.arrowTypeEnd = 'arrow_cross';\n break;\n case 'double_arrow_point':\n edgeData.arrowTypeStart = 'arrow_point';\n case 'arrow_point':\n edgeData.arrowTypeEnd = 'arrow_point';\n break;\n case 'double_arrow_circle':\n edgeData.arrowTypeStart = 'arrow_circle';\n case 'arrow_circle':\n edgeData.arrowTypeEnd = 'arrow_circle';\n break;\n }\n\n // logger.info('apa', edgeData, edge);\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowTypeStart = edge.arrowTypeStart;\n // edgeData.arrowType = edgeData.arrowTypeEnd;\n // logger.info('apa', edgeData, edge);\n\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = `${edge.text}`;\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd;\n\n // Add the edge to the graph\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport const draw = function(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n const parser = flow.parser;\n parser.yy = flowDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = flowDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n const conf = getConfig().flowchart;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n let subG;\n const subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n for (let i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const vert = flowDb.getVertices();\n\n const edges = flowDb.getEdges();\n\n logger.info(edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n\n selectAll('cluster').append('text');\n\n for (let j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id);\n addEdges(edges, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id);\n // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function() {\n return flowDb.getTooltip(this.id);\n });\n\n const padding = conf.diagramPadding;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n flowDb.indexNodes('subGraph' + i);\n\n // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n\n if (vertex.link) {\n const node = select('#' + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n const linkNode = node.insert(function() {\n return link;\n }, ':first-child');\n\n const shape = node.select('.label-container');\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n\n const label = node.select('.label');\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\n\nexport default {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\n","import common from '../common/common';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawText = function(elem, textData) {\n let prevTextHeight = 0,\n textHeight = 0;\n const lines = textData.wrap\n ? textData.text.split(common.lineBreakRegex)\n : [textData.text.replace(common.lineBreakRegex, ' ')];\n\n let textElems = [];\n let dy = 0;\n let yfunc = () => textData.y;\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = () => Math.round(textData.y + textData.textMargin);\n break;\n case 'middle':\n case 'center':\n yfunc = () =>\n Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n break;\n case 'bottom':\n case 'end':\n yfunc = () =>\n Math.round(\n textData.y +\n (prevTextHeight + textHeight + 2 * textData.textMargin) -\n textData.textMargin\n );\n break;\n }\n }\n if (\n typeof textData.anchor !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n typeof textData.width !== 'undefined'\n ) {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n for (let i = 0; i < lines.length; i++) {\n let line = lines[i];\n if (\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin === 0 &&\n typeof textData.fontSize !== 'undefined'\n ) {\n dy = i * textData.fontSize;\n }\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n if (typeof textData.anchor !== 'undefined') {\n textElem\n .attr('text-anchor', textData.anchor)\n .attr('dominant-baseline', textData.dominantBaseline)\n .attr('alignment-baseline', textData.alignmentBaseline);\n }\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n const span = textElem.append('tspan');\n span.attr('x', textData.x);\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n span.text(line);\n } else {\n textElem.text(line);\n }\n if (\n typeof textData.valign !== 'undefined' &&\n typeof textData.textMargin !== 'undefined' &&\n textData.textMargin > 0\n ) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.height / 2;\n\n drawText(elem, txtObject);\n return polygon;\n};\n\nlet actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\nexport const drawActor = function(elem, actor, conf) {\n const center = actor.x + actor.width / 2;\n\n const g = elem.append('g');\n if (actor.y === 0) {\n actorCnt++;\n g.append('line')\n .attr('id', 'actor' + actorCnt)\n .attr('x1', center)\n .attr('y1', 5)\n .attr('x2', center)\n .attr('y2', 2000)\n .attr('class', 'actor-line')\n .attr('stroke-width', '0.5px')\n .attr('stroke', '#999');\n }\n\n const rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n actor.description,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'actor' },\n conf\n );\n};\n\nexport const anchorElement = function(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\nexport const drawActivation = function(elem, bounds, verticalPos, conf, actorActivations) {\n const rect = getNoteRect();\n const g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + (actorActivations % 3); // Will evaluate to 0, 1 or 2\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\nexport const drawLoop = function(elem, loopModel, labelText, conf) {\n const {\n boxMargin,\n boxTextMargin,\n labelBoxHeight,\n labelBoxWidth,\n messageFontFamily: fontFamily,\n messageFontSize: fontSize,\n messageFontWeight: fontWeight\n } = conf;\n const g = elem.append('g');\n const drawLoopLine = function(startx, starty, stopx, stopy) {\n return g\n .append('line')\n .attr('x1', startx)\n .attr('y1', starty)\n .attr('x2', stopx)\n .attr('y2', stopy)\n .attr('class', 'loopLine');\n };\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function(item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(\n 'stroke-dasharray',\n '3, 3'\n );\n });\n }\n\n let txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n\n let textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function(item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n let sectionHeight = Math.round(\n textElem\n .map(te => (te._groups || te)[0][0].getBBox().height)\n .reduce((acc, curr) => acc + curr)\n );\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowHead = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\nexport const insertSequenceNumber = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'sequencenumber')\n .attr('refX', 15)\n .attr('refY', 15)\n .attr('markerWidth', 60)\n .attr('markerHeight', 40)\n .attr('orient', 'auto')\n .append('circle')\n .attr('cx', 15)\n .attr('cy', 15)\n .attr('r', 6);\n // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nexport const insertArrowCrossHead = function(elem) {\n const defs = elem.append('defs');\n const marker = defs\n .append('marker')\n .attr('id', 'crosshead')\n .attr('markerWidth', 15)\n .attr('markerHeight', 8)\n .attr('orient', 'auto')\n .attr('refX', 16)\n .attr('refY', 4);\n\n // The arrow\n marker\n .append('path')\n .attr('fill', 'black')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 9,2 V 6 L16,4 Z');\n\n // The cross\n marker\n .append('path')\n .attr('fill', 'none')\n .attr('stroke', '#000000')\n .style('stroke-dasharray', '0, 0')\n .attr('stroke-width', '1px')\n .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7');\n // this is actual shape for arrowhead\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n const { actorFontSize, actorFontFamily, actorFontWeight } = conf;\n\n const lines = content.split(common.lineBreakRegex);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * actorFontSize - (actorFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .style('text-anchor', 'middle')\n .style('font-size', actorFontSize)\n .style('font-weight', actorFontWeight)\n .style('font-family', actorFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const s = g.append('switch');\n const f = s\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height);\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n .text(content);\n\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) { // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nexport default {\n drawRect,\n drawText,\n drawLabel,\n drawActor,\n anchorElement,\n drawActivation,\n drawLoop,\n drawBackgroundRect,\n insertArrowHead,\n insertSequenceNumber,\n insertArrowCrossHead,\n getTextObj,\n getNoteRect\n};\n","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\n\nlet prevActor = undefined;\nlet actors = {};\nlet messages = [];\nconst notes = [];\nlet title = '';\nlet titleWrapped = false;\nlet sequenceNumbersEnabled = false;\nlet wrapEnabled = false;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const addActor = function(id, name, description) {\n // Don't allow description nulling\n const old = actors[id];\n if (old && name === old.name && description == null) return;\n\n // Don't allow null descriptions, either\n if (description == null || description.text == null) {\n description = { text: name, wrap: null };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: (description.wrap === undefined && autoWrap()) || !!description.wrap,\n prevActor: prevActor\n };\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nconst activationCount = part => {\n let i;\n let count = 0;\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n return count;\n};\n\nexport const addMessage = function(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n answer: answer\n });\n};\n\nexport const addSignal = function(\n idFrom,\n idTo,\n message = { text: undefined, wrap: undefined },\n messageType\n) {\n if (messageType === LINETYPE.ACTIVE_END) {\n const cnt = activationCount(idFrom.actor);\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n let error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: messageType\n });\n return true;\n};\n\nexport const getMessages = function() {\n return messages;\n};\n\nexport const getActors = function() {\n return actors;\n};\nexport const getActor = function(id) {\n return actors[id];\n};\nexport const getActorKeys = function() {\n return Object.keys(actors);\n};\nexport const getTitle = function() {\n return title;\n};\nexport const getTitleWrapped = function() {\n return titleWrapped;\n};\nexport const enableSequenceNumbers = function() {\n sequenceNumbersEnabled = true;\n};\nexport const showSequenceNumbers = () => sequenceNumbersEnabled;\n\nexport const setWrap = function(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\n\nexport const autoWrap = () => wrapEnabled;\n\nexport const clear = function() {\n actors = {};\n messages = [];\n};\n\nexport const parseMessage = function(str) {\n const _str = str.trim();\n const message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap:\n _str.match(/^[:]?(?:no)?wrap:/) === null\n ? common.hasBreaks(_str) || undefined\n : _str.match(/^[:]?wrap:/) !== null\n ? true\n : _str.match(/^[:]?nowrap:/) !== null\n ? false\n : undefined\n };\n logger.debug('parseMessage:', message);\n return message;\n};\n\nexport const LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\n\nexport const ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\n\nexport const PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\n\nexport const addNote = function(actor, placement, message) {\n const note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap\n };\n\n // Coerce actor into a [to, from, ...] array\n const actors = [].concat(actor, actor);\n\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: (message.wrap === undefined && autoWrap()) || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\n\nexport const setTitle = function(titleWrap) {\n title = titleWrap.text;\n titleWrapped = (titleWrap.wrap === undefined && autoWrap()) || !!titleWrap.wrap;\n};\n\nexport const apply = function(param) {\n if (param instanceof Array) {\n param.forEach(function(item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n case 'setTitle':\n setTitle(param.text);\n break;\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\n\nexport default {\n addActor,\n addMessage,\n addSignal,\n autoWrap,\n setWrap,\n enableSequenceNumbers,\n showSequenceNumbers,\n getMessages,\n getActors,\n getActor,\n getActorKeys,\n getTitle,\n parseDirective,\n getConfig: () => configApi.getConfig().sequence,\n getTitleWrapped,\n clear,\n parseMessage,\n LINETYPE,\n ARROWTYPE,\n PLACEMENT,\n addNote,\n setTitle,\n apply\n};\n","import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\n\nparser.yy = sequenceDb;\n\nconst conf = {};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function() {\n return (\n Math.max.apply(\n null,\n this.actors.length === 0 ? [0] : this.actors.map(actor => actor.height || 0)\n ) +\n (this.loops.length === 0\n ? 0\n : this.loops.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.messages.length === 0\n ? 0\n : this.messages.map(it => it.height || 0).reduce((acc, h) => acc + h)) +\n (this.notes.length === 0\n ? 0\n : this.notes.map(it => it.height || 0).reduce((acc, h) => acc + h))\n );\n },\n clear: function() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function(message, diagram, actors) {\n const actorRect = actors[message.from.actor];\n const stackedSize = actorActivations(message.from.actor).length || 0;\n const x = actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function(message) {\n // find most recent activation for given actor\n const lastActorActivationIdx = this.activations\n .map(function(activation) {\n return activation.actor;\n })\n .lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function(title = { message: undefined, wrap: false, width: undefined }, fill) {\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function(message) {\n const loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return { bounds: this.data, models: this.models };\n }\n};\n\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\nconst drawNote = function(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n const rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n\n let g = elem.append('g');\n const rectElem = svgDraw.drawRect(g, rect);\n const textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n\n let textElem = drawText(g, textObj);\n\n let textHeight = Math.round(\n textElem.map(te => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)\n );\n\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\nconst drawMessage = function(g, msgModel) {\n bounds.bumpVerticalPos(10);\n const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel;\n const lines = common.splitBreaks(message).length;\n let textDims = utils.calculateTextDimensions(message, conf.messageFont());\n const lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n\n bounds.bumpVerticalPos(lineHeight);\n const textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n\n drawText(g, textObj);\n\n let totalOffset = textDims.height - 10;\n\n let textWidth = textDims.width;\n\n let line, lineStarty;\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n if (conf.rightAngles) {\n line = g\n .append('path')\n .attr(\n 'd',\n `M ${startx},${lineStarty} H ${startx +\n Math.max(conf.width / 2, textWidth / 2)} V ${lineStarty + 25} H ${startx}`\n );\n } else {\n totalOffset += conf.boxMargin;\n\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g\n .append('path')\n .attr(\n 'd',\n 'M ' +\n startx +\n ',' +\n lineStarty +\n ' C ' +\n (startx + 60) +\n ',' +\n (lineStarty - 10) +\n ' ' +\n (startx + 60) +\n ',' +\n (lineStarty + 30) +\n ' ' +\n startx +\n ',' +\n (lineStarty + 20)\n );\n }\n\n totalOffset += 30;\n const dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(\n startx - dx,\n bounds.getVerticalPos() - 10 + totalOffset,\n stopx + dx,\n bounds.getVerticalPos() + 30 + totalOffset\n );\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n }\n // Make an SVG Container\n // Draw the line\n if (\n type === parser.yy.LINETYPE.DOTTED ||\n type === parser.yy.LINETYPE.DOTTED_CROSS ||\n type === parser.yy.LINETYPE.DOTTED_OPEN\n ) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n line.style('fill', 'none'); // remove any fill colour\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n }\n\n // add node number\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text')\n .attr('x', startx)\n .attr('y', lineStarty + 4)\n .attr('font-family', 'sans-serif')\n .attr('font-size', '12px')\n .attr('text-anchor', 'middle')\n .attr('textLength', '16px')\n .attr('class', 'sequenceNumber')\n .text(sequenceIndex);\n }\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport const drawActors = function(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n let prevWidth = 0;\n let prevMargin = 0;\n\n for (let i = 0; i < actorKeys.length; i++) {\n const actor = actors[actorKeys[i]];\n\n // Add some rendering data to the object\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos;\n\n // Draw the box with the attached line\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n }\n\n // Add a margin between the actor boxes and the first arrow\n bounds.bumpVerticalPos(conf.height);\n};\n\nexport const setConf = function(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nconst actorActivations = function(actor) {\n return bounds.activations.filter(function(activation) {\n return activation.actor === actor;\n });\n};\n\nconst activationBounds = function(actor, actors) {\n // handle multiple stacked activations for same actor\n const actorObj = actors[actor];\n const activations = actorActivations(actor);\n\n const left = activations.reduce(function(acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n const right = activations.reduce(function(acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n let heightAdjust = postMargin;\n if (msg.id && msg.message && loopWidths[msg.id]) {\n let loopWidth = loopWidths[msg.id].width;\n let textConf = conf.messageFont();\n msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true;\n\n // const lines = common.splitBreaks(msg.message).length;\n const textDims = utils.calculateTextDimensions(msg.message, textConf);\n const totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(`${totalOffset} - ${msg.message}`);\n }\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(`C:${JSON.stringify(conf, null, 2)}`);\n\n const diagram = select(`[id=\"${id}\"]`);\n\n // Fetch data from the parsing\n const actors = parser.yy.getActors();\n const actorKeys = parser.yy.getActorKeys();\n const messages = parser.yy.getMessages();\n const title = parser.yy.getTitle();\n\n const maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n\n drawActors(diagram, actors, actorKeys, 0);\n const loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor);\n\n // The arrow head definition is attached to the svg once\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n const activationData = bounds.endActivation(msg);\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n svgDraw.drawActivation(\n diagram,\n activationData,\n verticalPos,\n conf,\n actorActivations(msg.from.actor).length\n );\n\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n }\n\n // Draw the messages/signals\n let sequenceIndex = 1;\n messages.forEach(function(msg) {\n let loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, message =>\n bounds.newLoop(undefined, message.message)\n );\n break;\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin,\n conf.boxMargin + conf.boxTextMargin,\n message => bounds.newLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(\n loopWidths,\n msg,\n conf.boxMargin + conf.boxTextMargin,\n conf.boxMargin,\n message => bounds.addSectionToLoop(message)\n );\n break;\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n }\n // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n const { bounds: box } = bounds.getBounds();\n\n // Adjust line height of actor lines now that the height of the diagram is known\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n const actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n\n let height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n const width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX)\n .attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n const extraVertForTitle = title ? 40 : 0;\n diagram.attr(\n 'viewBox',\n box.startx -\n conf.diagramMarginX +\n ' -' +\n (conf.diagramMarginY + extraVertForTitle) +\n ' ' +\n width +\n ' ' +\n (height + extraVertForTitle)\n );\n logger.debug(`models:`, bounds.models);\n};\n\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\nconst getMaxMessageWidthPerActor = function(actors, messages) {\n const maxMessageWidthPerActor = {};\n\n messages.forEach(function(msg) {\n if (actors[msg.to] && actors[msg.from]) {\n const actor = actors[msg.to];\n\n // If this is the first actor, and the message is left of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n }\n\n // If this is the last actor, and the message is right of it, no need to calculate the margin\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n const isNote = msg.placement !== undefined;\n const isMessage = !isNote;\n\n const textFont = isNote ? conf.noteFont() : conf.messageFont();\n let wrappedMessage = msg.wrap\n ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont)\n : msg.message;\n const messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n\n maxMessageWidthPerActor[msg.to] = Math.max(\n maxMessageWidthPerActor[msg.to] || 0,\n messageWidth / 2\n );\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth\n );\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(\n maxMessageWidthPerActor[actor.prevActor] || 0,\n messageWidth / 2\n );\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(\n maxMessageWidthPerActor[msg.from] || 0,\n messageWidth / 2\n );\n }\n }\n }\n });\n\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\nconst calculateActorMargins = function(actors, actorToMessageWidth) {\n let maxHeight = 0;\n Object.keys(actors).forEach(prop => {\n const actor = actors[prop];\n if (actor.wrap) {\n actor.description = utils.wrapLabel(\n actor.description,\n conf.width - 2 * conf.wrapPadding,\n conf.actorFont()\n );\n }\n const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap\n ? conf.width\n : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (let actorKey in actorToMessageWidth) {\n const actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n const nextActor = actors[actor.nextActor];\n\n // No need to space out an actor that doesn't have a next link\n if (!nextActor) {\n continue;\n }\n\n const messageWidth = actorToMessageWidth[actorKey];\n const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nconst buildNoteModel = function(msg, actors) {\n let startx = actors[msg.from].x;\n let stopx = actors[msg.to].x;\n let shouldWrap = msg.wrap && msg.message;\n\n let textDimensions = utils.calculateTextDimensions(\n shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message,\n conf.noteFont()\n );\n let noteModel = {\n width: shouldWrap\n ? conf.width\n : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap\n ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin)\n : Math.max(\n actors[msg.from].width / 2 + actors[msg.to].width / 2,\n textDimensions.width + 2 * conf.noteMargin\n );\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(\n shouldWrap\n ? utils.wrapLabel(\n msg.message,\n Math.max(conf.width, actors[msg.from].width),\n conf.noteFont()\n )\n : msg.message,\n conf.noteFont()\n );\n noteModel.width = shouldWrap\n ? Math.max(conf.width, actors[msg.from].width)\n : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width =\n Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) +\n conf.actorMargin;\n noteModel.startx =\n startx < stopx\n ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2\n : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(\n msg.message,\n noteModel.width - 2 * conf.wrapPadding,\n conf.noteFont()\n );\n }\n logger.debug(\n `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`\n );\n return noteModel;\n};\n\nconst buildMessageModel = function(msg, actors) {\n let process = false;\n if (\n [\n parser.yy.LINETYPE.SOLID_OPEN,\n parser.yy.LINETYPE.DOTTED_OPEN,\n parser.yy.LINETYPE.SOLID,\n parser.yy.LINETYPE.DOTTED,\n parser.yy.LINETYPE.SOLID_CROSS,\n parser.yy.LINETYPE.DOTTED_CROSS\n ].includes(msg.type)\n ) {\n process = true;\n }\n if (!process) {\n return {};\n }\n const fromBounds = activationBounds(msg.from, actors);\n const toBounds = activationBounds(msg.to, actors);\n const fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n const allBounds = fromBounds.concat(toBounds);\n const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(\n msg.message,\n Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width),\n conf.messageFont()\n );\n }\n return {\n width: Math.max(\n msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,\n boundedWidth + 2 * conf.wrapPadding,\n conf.width\n ),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nconst calculateLoopBounds = function(messages, actors) {\n const loops = {};\n const stack = [];\n let current, noteModel, msgModel;\n\n messages.forEach(function(msg) {\n msg.id = utils.random({ length: 10 });\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n break;\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n const x =\n actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;\n const toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n const lastActorActivationIdx = bounds.activations\n .map(a => a.actor)\n .lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n const isNote = msg.placement !== undefined;\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(stk => {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width =\n Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(stk => {\n current = stk;\n if (msgModel.startx === msgModel.stopx) {\n let from = actors[msg.from];\n let to = actors[msg.to];\n current.from = Math.min(\n from.x - msgModel.width / 2,\n from.x - from.width / 2,\n current.from\n );\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width =\n Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds,\n drawActors,\n setConf,\n draw\n};\n","import moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nlet dateFormat = '';\nlet axisFormat = '';\nlet todayMarker = '';\nlet excludes = [];\nlet title = '';\nlet sections = [];\nlet tasks = [];\nlet currentSection = '';\nconst tags = ['active', 'done', 'crit', 'milestone'];\nlet funs = [];\nlet inclusiveEndDates = false;\n\n// The serial order of the task in the script\nlet lastOrder = 0;\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\n\nexport const setAxisFormat = function(txt) {\n axisFormat = txt;\n};\n\nexport const getAxisFormat = function() {\n return axisFormat;\n};\n\nexport const setTodayMarker = function(txt) {\n todayMarker = txt;\n};\n\nexport const getTodayMarker = function() {\n return todayMarker;\n};\n\nexport const setDateFormat = function(txt) {\n dateFormat = txt;\n};\n\nexport const enableInclusiveEndDates = function() {\n inclusiveEndDates = true;\n};\n\nexport const endDatesAreInclusive = function() {\n return inclusiveEndDates;\n};\n\nexport const getDateFormat = function() {\n return dateFormat;\n};\n\nexport const setExcludes = function(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\n\nexport const getExcludes = function() {\n return excludes;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsPricessed = compileTasks();\n const maxDepth = 10;\n let iterationCount = 0;\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n\n return tasks;\n};\n\nconst isInvalidDate = function(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nconst checkTaskDates = function(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n let startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n let endTime = moment(task.endTime, dateFormat, true);\n let renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nconst fixTaskDates = function(startTime, endTime, dateFormat, excludes) {\n let invalid = false;\n let renderEndTime = null;\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n if (invalid) {\n endTime.add(1, 'd');\n }\n startTime.add(1, 'd');\n }\n return renderEndTime;\n};\n\nconst getStartDate = function(prevTime, dateFormat, str) {\n str = str.trim();\n\n // Test for after\n const re = /^after\\s+([\\d\\w- ]+)/;\n const afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n let latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function(id) {\n let task = findTaskById(id);\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n const dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n }\n\n // Check for actual date set\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n }\n\n // Default date - now\n return new Date();\n};\n\nconst durationToDate = function(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n }\n // Default date - now\n return relativeTime.toDate();\n};\n\nconst getEndDate = function(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim();\n\n // Check for actual date\n let mDate = moment(str, dateFormat.trim(), true);\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nlet taskCnt = 0;\nconst parseId = function(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n return idStr;\n};\n// id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\nconst compileData = function(prevTask, dataStr) {\n let ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n let endTimeData = '';\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nconst parseData = function(prevTaskId, dataStr) {\n let ds;\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n const data = ds.split(',');\n\n const task = {};\n\n // Get tags like active, done, crit and milestone\n getTaskTags(data, task, tags);\n\n for (let i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n default:\n }\n\n return task;\n};\n\nlet lastTask;\nlet lastTaskID;\nlet rawTasks = [];\nconst taskDb = {};\nexport const addTask = function(descr, data) {\n const rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: { data: data },\n task: descr,\n classes: []\n };\n const taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n\n lastOrder++;\n\n const pos = rawTasks.push(rawTask);\n\n lastTaskID = rawTask.id;\n // Store cross ref\n taskDb[rawTask.id] = pos - 1;\n};\n\nexport const findTaskById = function(id) {\n const pos = taskDb[id];\n return rawTasks[pos];\n};\n\nexport const addTaskOrg = function(descr, data) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n const taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n const task = rawTasks[pos];\n let startTime = '';\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd': {\n const prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(\n rawTasks[pos].startTime,\n dateFormat,\n rawTasks[pos].raw.endTime.data,\n inclusiveEndDates\n );\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(\n rawTasks[pos].raw.endTime.data,\n 'YYYY-MM-DD',\n true\n ).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\nexport const setLink = function(ids, _linkStr) {\n let linkStr = _linkStr;\n if (configApi.getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setClass = function(ids, className) {\n ids.split(',').forEach(function(id) {\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nconst setClickFun = function(id, functionName, functionArgs) {\n if (configApi.getConfig().securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n\n let argList = [];\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n for (let i = 0; i < argList.length; i++) {\n let item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n /* This preserves all starting and ending whitespace inside */\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n argList[i] = item;\n }\n }\n\n /* if no arguments passed into callback, default to passing in id */\n if (argList.length === 0) {\n argList.push(id);\n }\n\n let rawTask = findTaskById(id);\n if (typeof rawTask !== 'undefined') {\n pushFun(id, () => {\n utils.runFunc(functionName, ...argList);\n });\n }\n};\n\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\nconst pushFun = function(id, callbackFunction) {\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n const elem = document.querySelector(`[id=\"${id}\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n funs.push(function() {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n const elem = document.querySelector(`[id=\"${id}-text\"]`);\n if (elem !== null) {\n elem.addEventListener('click', function() {\n callbackFunction();\n });\n }\n });\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\nexport const setClickEvent = function(ids, functionName, functionArgs) {\n ids.split(',').forEach(function(id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().gantt,\n clear,\n setDateFormat,\n getDateFormat,\n enableInclusiveEndDates,\n endDatesAreInclusive,\n setAxisFormat,\n getAxisFormat,\n setTodayMarker,\n getTodayMarker,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n findTaskById,\n addTaskOrg,\n setExcludes,\n getExcludes,\n setClickEvent,\n setLink,\n bindFunctions,\n durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n let matchFound = true;\n while (matchFound) {\n matchFound = false;\n tags.forEach(function(t) {\n const pattern = '^\\\\s*' + t + '\\\\s*$';\n const regex = new RegExp(pattern);\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}\n","import {\n select,\n scaleTime,\n min,\n max,\n scaleLinear,\n interpolateHcl,\n axisBottom,\n timeFormat\n} from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\n\nparser.yy = ganttDb;\n\nconst conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\nlet w;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text);\n\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n const taskArray = parser.yy.getTasks();\n\n // Set height based on number of tasks\n const h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n const svg = select(`[id=\"${id}\"]`);\n\n // Set timescale\n const timeScale = scaleTime()\n .domain([\n min(taskArray, function(d) {\n return d.startTime;\n }),\n max(taskArray, function(d) {\n return d.endTime;\n })\n ])\n .rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n\n let categories = [];\n\n for (let i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n const catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n const taskA = a.startTime;\n const taskB = b.startTime;\n let result = 0;\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n return result;\n }\n\n // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n taskArray.sort(taskCompare);\n\n makeGant(taskArray, w, h);\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', w / 2)\n .attr('y', conf.titleTopMargin)\n .attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n const barHeight = conf.barHeight;\n const gap = barHeight + conf.barGap;\n const topPadding = conf.topPadding;\n const leftPadding = conf.leftPadding;\n\n const colorScale = scaleLinear()\n .domain([0, categories.length])\n .range(['#00B9FA', '#F95002'])\n .interpolate(interpolateHcl);\n\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter()\n .append('rect')\n .attr('x', 0)\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n })\n .attr('width', function() {\n return w - conf.rightPadding / 2;\n })\n .attr('height', theGap)\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n return 'section section' + (i % conf.numberSectionStyles);\n }\n }\n return 'section section0';\n });\n\n // Draw the rects representing the tasks\n const rectangles = svg\n .append('g')\n .selectAll('rect')\n .data(theArray)\n .enter();\n\n rectangles\n .append('rect')\n .attr('id', function(d) {\n return d.id;\n })\n .attr('rx', 3)\n .attr('ry', 3)\n .attr('x', function(d) {\n if (d.milestone) {\n return (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) -\n 0.5 * theBarHeight\n );\n }\n return timeScale(d.startTime) + theSidePad;\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n })\n .attr('width', function(d) {\n if (d.milestone) {\n return theBarHeight;\n }\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n })\n .attr('height', theBarHeight)\n .attr('transform-origin', function(d, i) {\n return (\n (\n timeScale(d.startTime) +\n theSidePad +\n 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))\n ).toString() +\n 'px ' +\n (i * theGap + theTopPad + 0.5 * theBarHeight).toString() +\n 'px'\n );\n })\n .attr('class', function(d) {\n const res = 'task';\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskClass = '';\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n\n taskClass += ' ' + classStr;\n\n return res + taskClass;\n });\n\n // Append task labels\n rectangles\n .append('text')\n .attr('id', function(d) {\n return d.id + '-text';\n })\n .text(function(d) {\n return d.task;\n })\n .attr('font-size', conf.fontSize)\n .attr('x', function(d) {\n let startX = timeScale(d.startTime);\n let endX = timeScale(d.renderEndTime || d.endTime);\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n })\n .attr('y', function(d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n })\n .attr('text-height', theBarHeight)\n .attr('class', function(d) {\n const startX = timeScale(d.startTime);\n let endX = timeScale(d.endTime);\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n const textWidth = this.getBBox().width;\n\n let classStr = '';\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n let secNum = 0;\n console.log(conf);\n for (let i = 0; i < categories.length; i++) {\n if (d.type === categories[i]) {\n secNum = i % conf.numberSectionStyles;\n }\n }\n\n let taskType = '';\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n }\n\n // Check id text width > width of rectangle\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return (\n classStr +\n ' taskTextOutsideRight taskTextOutside' +\n secNum +\n ' ' +\n taskType +\n ' width-' +\n textWidth\n );\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n let xAxis = axisBottom(timeScale)\n .tickSize(-h + theTopPad + conf.gridLineStartPadding)\n .tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n\n svg\n .append('g')\n .attr('class', 'grid')\n .attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')')\n .call(xAxis)\n .selectAll('text')\n .style('text-anchor', 'middle')\n .attr('fill', '#000')\n .attr('stroke', 'none')\n .attr('font-size', 10)\n .attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n const numOccurances = [];\n let prevGap = 0;\n\n for (let i = 0; i < categories.length; i++) {\n numOccurances[i] = [categories[i], getCount(categories[i], catsUnfiltered)];\n }\n\n svg\n .append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text')\n .data(numOccurances)\n .enter()\n .append(function(d) {\n const rows = d[0].split(common.lineBreakRegex);\n const dy = -(rows.length - 1) / 2;\n\n const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (let j = 0; j < rows.length; j++) {\n const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n return svgLabel;\n })\n .attr('x', 10)\n .attr('y', function(d, i) {\n if (i > 0) {\n for (let j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return (d[1] * theGap) / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return (d[1] * theGap) / 2 + theTopPad;\n }\n })\n .attr('class', function(d) {\n for (let i = 0; i < categories.length; i++) {\n if (d[0] === categories[i]) {\n return 'sectionTitle sectionTitle' + (i % conf.numberSectionStyles);\n }\n }\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n const todayMarker = ganttDb.getTodayMarker();\n if (todayMarker === 'off') {\n return;\n }\n\n const todayG = svg.append('g').attr('class', 'today');\n const today = new Date();\n const todayLine = todayG.append('line');\n\n todayLine\n .attr('x1', timeScale(today) + theSidePad)\n .attr('x2', timeScale(today) + theSidePad)\n .attr('y1', conf.titleTopMargin)\n .attr('y2', h - conf.titleTopMargin)\n .attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n function checkUnique(arr) {\n const hash = {};\n const result = [];\n for (let i = 0, l = arr.length; i < l; ++i) {\n if (!hash.hasOwnProperty(arr[i])) { // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[i]] = true;\n result.push(arr[i]);\n }\n }\n return result;\n }\n\n // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n function getCounts(arr) {\n let i = arr.length; // const to loop over\n const obj = {}; // obj to store results\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n return obj;\n }\n\n // get specific from everything\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","import { select } from 'd3';\nimport { logger } from '../../logger';\nimport * as configApi from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\n\nconst MERMAID_DOM_ID_PREFIX = 'classid-';\n\nconst config = configApi.getConfig();\n\nlet relations = [];\nlet classes = {};\nlet classCounter = 0;\n\nlet funs = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst splitClassNameAndType = function(id) {\n let genericType = '';\n let className = id;\n\n if (id.indexOf('~') > 0) {\n let split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return { className: className, type: genericType };\n};\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\nexport const addClass = function(id) {\n let classId = splitClassNameAndType(id);\n // Only add class if not exists\n if (typeof classes[classId.className] !== 'undefined') return;\n\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\nexport const lookUpDomId = function(id) {\n const classKeys = Object.keys(classes);\n for (let i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\n\nexport const clear = function() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\n\nexport const getClass = function(id) {\n return classes[id];\n};\nexport const getClasses = function() {\n return classes;\n};\n\nexport const getRelations = function() {\n return relations;\n};\n\nexport const addRelation = function(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n\n relations.push(relation);\n};\n\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\nexport const addAnnotation = function(className, annotation) {\n const validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\nexport const addMember = function(className, member) {\n const validatedClassName = splitClassNameAndType(className).className;\n const theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n const memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\n\nexport const addMembers = function(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(member => addMember(className, member));\n }\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\nexport const setCssClass = function(ids, className) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\nexport const setLink = function(ids, linkStr, tooltip) {\n ids.split(',').forEach(function(_id) {\n let id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\nexport const setClickEvent = function(ids, functionName, tooltip) {\n ids.split(',').forEach(function(id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nconst setClickFunc = function(domId, functionName, tooltip) {\n let id = domId;\n let elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n if (typeof functionName === 'undefined') {\n return;\n }\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function() {\n const elem = document.querySelector(`[id=\"${elemId}\"]`);\n if (elem !== null) {\n elem.addEventListener(\n 'click',\n function() {\n utils.runFunc(functionName, elemId);\n },\n false\n );\n }\n });\n }\n};\n\nexport const bindFunctions = function(element) {\n funs.forEach(function(fun) {\n fun(element);\n });\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst setupToolTips = function(element) {\n let tooltipElem = select('.mermaidTooltip');\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body')\n .append('div')\n .attr('class', 'mermaidTooltip')\n .style('opacity', 0);\n }\n\n const svg = select(element).select('svg');\n\n const nodes = svg.selectAll('g.node');\n nodes\n .on('mouseover', function() {\n const el = select(this);\n const title = el.attr('title');\n // Dont try to draw a tooltip if no data is provided\n if (title === null) {\n return;\n }\n const rect = this.getBoundingClientRect();\n\n tooltipElem\n .transition()\n .duration(200)\n .style('opacity', '.9');\n tooltipElem\n .html(el.attr('title'))\n .style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px')\n .style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n })\n .on('mouseout', function() {\n tooltipElem\n .transition()\n .duration(500)\n .style('opacity', 0);\n const el = select(this);\n el.classed('hover', false);\n });\n};\nfuns.push(setupToolTips);\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().class,\n addClass,\n bindFunctions,\n clear,\n getClass,\n getClasses,\n addAnnotation,\n getRelations,\n addRelation,\n addMember,\n addMembers,\n cleanupLabel,\n lineType,\n relationType,\n setClickEvent,\n setCssClass,\n setLink,\n lookUpDomId\n};\n","import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation, conf) {\n const getRelationType = function(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n case relationType.EXTENSION:\n return 'extension';\n case relationType.COMPOSITION:\n return 'composition';\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'relation');\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n if (relation.relation.type1 !== 'none') {\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')'\n );\n }\n if (relation.relation.type2 !== 'none') {\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')'\n );\n }\n\n let x, y;\n const l = path.points.length;\n // Calculate Label position\n let labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n\n let p1_card_x, p1_card_y;\n let p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n let cardinality_1_point = utils.calcCardinalityPosition(\n relation.relation.type1 !== 'none',\n path.points,\n path.points[0]\n );\n let cardinality_2_point = utils.calcCardinalityPosition(\n relation.relation.type2 !== 'none',\n path.points,\n path.points[l - 1]\n );\n\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n const g = elem.append('g').attr('class', 'classLabel');\n const label = g\n .append('text')\n .attr('class', 'label')\n .attr('x', x)\n .attr('y', y)\n .attr('fill', 'red')\n .attr('text-anchor', 'middle')\n .text(relation.title);\n\n window.label = label;\n const bounds = label.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', bounds.x - conf.padding / 2)\n .attr('y', bounds.y - conf.padding / 2)\n .attr('width', bounds.width + conf.padding)\n .attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type1')\n .attr('x', p1_card_x)\n .attr('y', p1_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle1);\n }\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n const g = elem.append('g').attr('class', 'cardinality');\n g.append('text')\n .attr('class', 'type2')\n .attr('x', p2_card_x)\n .attr('y', p2_card_y)\n .attr('fill', 'black')\n .attr('font-size', '6')\n .text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\n\nexport const drawClass = function(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n\n let cssClassStr = 'classGroup ';\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n const id = classDef.id;\n const classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n };\n\n // add class group\n const g = elem\n .append('g')\n .attr('id', lookUpDomId(id))\n .attr('class', cssClassStr);\n\n // add title\n let title;\n if (classDef.link) {\n title = g\n .append('svg:a')\n .attr('xlink:href', classDef.link)\n .attr('target', '_blank')\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n } else {\n title = g\n .append('text')\n .attr('y', conf.textHeight + conf.padding)\n .attr('x', 0);\n }\n\n // add annotations\n let isFirst = true;\n classDef.annotations.forEach(function(member) {\n const titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n\n let classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n const classTitle = title\n .append('tspan')\n .text(classTitleString)\n .attr('class', 'title');\n\n // If class has annotations the title needs to have an offset of the text height\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n\n const titleHeight = title.node().getBBox().height;\n\n const membersLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n\n const members = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + conf.dividerMargin + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n classDef.members.forEach(function(member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n\n const membersBox = members.node().getBBox();\n\n const methodsLine = g\n .append('line') // text label for the x axis\n .attr('x1', 0)\n .attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)\n .attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n\n const methods = g\n .append('text') // text label for the x axis\n .attr('x', conf.padding)\n .attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight)\n .attr('fill', 'white')\n .attr('class', 'classText');\n\n isFirst = true;\n\n classDef.methods.forEach(function(method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n\n const classBox = g.node().getBBox();\n const rect = g\n .insert('rect', ':first-child')\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', classBox.width + 2 * conf.padding)\n .attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n\n const rectWidth = rect.node().getBBox().width;\n\n // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n title.node().childNodes.forEach(function(x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n\n return classInfo;\n};\n\nexport const parseMember = function(text) {\n const fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n const methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n\n let fieldMatch = text.match(fieldRegEx);\n let methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nconst buildFieldDisplay = function(parsedText) {\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let fieldType = parsedText[2] ? parsedText[2].trim() : '';\n let genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let fieldName = parsedText[4] ? parsedText[4].trim() : '';\n\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nconst buildMethodDisplay = function(parsedText) {\n let cssStyle = '';\n let displayText = '';\n\n try {\n let visibility = parsedText[1] ? parsedText[1].trim() : '';\n let methodName = parsedText[2] ? parsedText[2].trim() : '';\n let parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n let classifier = parsedText[4] ? parsedText[4].trim() : '';\n let returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst buildLegacyDisplay = function(text) {\n // if for some reason we dont have any match, use old format to parse text\n let displayText = '';\n let cssStyle = '';\n let memberText = '';\n let returnType = '';\n let methodStart = text.indexOf('(');\n let methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n let visibility = '';\n let methodName = '';\n\n let firstChar = text.substring(0, 1);\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n let parameters = text.substring(methodStart + 1, methodEnd);\n let classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nconst addTspan = function(textEl, txt, isFirst, conf) {\n let member = parseMember(txt);\n\n const tSpan = textEl\n .append('tspan')\n .attr('x', conf.padding)\n .text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nconst parseGenericTypes = function(text) {\n let cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nconst parseClassifier = function(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n case '$':\n return 'text-decoration:underline;';\n default:\n return '';\n }\n};\n\nexport default {\n drawClass,\n drawEdge,\n parseMember\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,7 L18,13 V 1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'extensionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'compositionEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'aggregationEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyStart')\n .attr('class', 'extension')\n .attr('refX', 0)\n .attr('refY', 7)\n .attr('markerWidth', 190)\n .attr('markerHeight', 240)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport default {\n setConf,\n draw\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\n// import addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { curveLinear } from 'd3';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport common from '../common/common';\n\nparser.yy = classDb;\n\nlet idCache = {};\nconst padding = 20;\n\nconst conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n};\n\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\nexport const addClasses = function(classes, g) {\n // const svg = select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(classes);\n logger.info('keys:', keys);\n logger.info(classes);\n\n // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n keys.forEach(function(id) {\n const vertex = classes[id];\n\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n let classStr = 'default';\n // if (vertex.classes.length > 0) {\n // classStr = vertex.classes.join(' ');\n // }\n\n const styles = { labelStyle: '' }; //getStylesFromArray(vertex.styles);\n\n // Use vertex id as text in the box if no text is provided by the graph definition\n let vertexText = vertex.text !== undefined ? vertex.text : vertex.id;\n\n // We create a SVG label, either by delegating to addHtmlLabel or manually\n // let vertexNode;\n // if (getConfig().flowchart.htmlLabels) {\n // const node = {\n // label: vertexText.replace(\n // /fa[lrsb]?:fa-[\\w-]+/g,\n // s => ``\n // )\n // };\n // vertexNode = addHtmlLabel(svg, node).node();\n // vertexNode.parentNode.removeChild(vertexNode);\n // } else {\n // const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n // svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n\n // const rows = vertexText.split(common.lineBreakRegex);\n\n // for (let j = 0; j < rows.length; j++) {\n // const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n // tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n // tspan.setAttribute('dy', '1em');\n // tspan.setAttribute('x', '1');\n // tspan.textContent = rows[j];\n // svgLabel.appendChild(tspan);\n // }\n // vertexNode = svgLabel;\n // }\n\n let radious = 0;\n let _shape = '';\n // Set the shape based parameters\n switch (vertex.type) {\n case 'class':\n _shape = 'class_box';\n break;\n default:\n _shape = 'class_box';\n }\n // Add the node\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n classData: vertex,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\nexport const addRelations = function(relations, g) {\n let cnt = 0;\n\n let defaultStyle;\n let defaultLabelStyle;\n\n // if (typeof relations.defaultStyle !== 'undefined') {\n // const defaultStyles = getStylesFromArray(relations.defaultStyle);\n // defaultStyle = defaultStyles.style;\n // defaultLabelStyle = defaultStyles.labelStyle;\n // }\n\n relations.forEach(function(edge) {\n cnt++;\n const edgeData = {};\n //Set relationship style and line type\n edgeData.classes = 'relation';\n edgeData.pattern = edge.relation.lineType == 1 ? 'dashed' : 'solid';\n\n edgeData.id = 'id' + cnt;\n // Set link type for rendering\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n //Set relation arrow types\n edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);\n edgeData.arrowTypeEnd = getArrowMarker(edge.relation.type2);\n let style = '';\n let labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n style = 'fill:none';\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof relations.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(relations.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n edge.text = edge.title;\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) { // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = '' + edge.text + '';\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n // Add the edge to the graph\n g.setEdge(edge.id1, edge.id2, edgeData, cnt);\n });\n};\n\n// Todo optimize\nconst getGraphId = function(label) {\n const keys = Object.keys(idCache);\n\n for (let i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const drawOld = function(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n\n logger.info('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n // insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const g = new graphlib.Graph({\n multigraph: true\n });\n\n // Set an object for the graph label\n g.setGraph({\n isMultiGraph: true\n });\n\n // Default to assigning a new object as a label for each new edge.\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const classes = classDb.getClasses();\n logger.info('classes:');\n logger.info(classes);\n const keys = Object.keys(classes);\n for (let i = 0; i < keys.length; i++) {\n const classDef = classes[keys[i]];\n const node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node;\n\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n g.setNode(node.id, node);\n\n logger.info('Org height: ' + node.height);\n }\n\n const relations = classDb.getRelations();\n logger.info('relations:', relations);\n relations.forEach(function(relation) {\n logger.info(\n 'tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation: relation\n },\n relation.title || 'DEFAULT'\n );\n });\n\n dagre.layout(g);\n g.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr(\n 'transform',\n 'translate(' +\n (g.node(v).x - g.node(v).width / 2) +\n ',' +\n (g.node(v).y - g.node(v).height / 2) +\n ' )'\n );\n }\n });\n\n g.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n\n const svgBounds = diagram.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width}px;`);\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n diagram.attr('viewBox', vBox);\n};\n\nexport const draw = function(text, id) {\n logger.info('Drawing class');\n classDb.clear();\n // const parser = classDb.parser;\n // parser.yy = classDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = 'TD';\n\n const conf = getConfig().flowchart;\n logger.info('config:', conf);\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // let subG;\n // const subGraphs = flowDb.getSubGraphs();\n // logger.info('Subgraphs - ', subGraphs);\n // for (let i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n // logger.info('Subgraph - ', subG);\n // flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n // }\n\n // Fetch the verices/nodes and edges/links from the parsed graph definition\n const classes = classDb.getClasses();\n const relations = classDb.getRelations();\n\n logger.info(relations);\n // let i = 0;\n // for (i = subGraphs.length - 1; i >= 0; i--) {\n // subG = subGraphs[i];\n\n // selectAll('cluster').append('text');\n\n // for (let j = 0; j < subG.nodes.length; j++) {\n // g.setParent(subG.nodes[j], subG.id);\n // }\n // }\n addClasses(classes, g, id);\n addRelations(relations, g);\n\n // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['aggregation', 'extension', 'composition', 'dependency'], 'classDiagram', id);\n\n // element.selectAll('g.node').attr('title', function() {\n // return flowDb.getTooltip(this.id);\n // });\n\n const padding = 8;\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n logger.debug(\n `new ViewBox 0 0 ${width} ${height}`,\n `translate(${padding - g._label.marginx}, ${padding - g._label.marginy})`\n );\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `0 0 ${width} ${height}`);\n svg\n .select('g')\n .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n // Index nodes\n // flowDb.indexNodes('subGraph' + i);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n\n // If node has a link, wrap it in an anchor SVG object.\n // const keys = Object.keys(classes);\n // keys.forEach(function(key) {\n // const vertex = classes[key];\n\n // if (vertex.link) {\n // const node = select('#' + id + ' [id=\"' + key + '\"]');\n // if (node) {\n // const link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n // link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n\n // const linkNode = node.insert(function() {\n // return link;\n // }, ':first-child');\n\n // const shape = node.select('.label-container');\n // if (shape) {\n // linkNode.append(function() {\n // return shape.node();\n // });\n // }\n\n // const label = node.select('.label');\n // if (label) {\n // linkNode.append(function() {\n // return label.node();\n // });\n // }\n // }\n // }\n // });\n};\n\nexport default {\n setConf,\n draw\n};\nfunction getArrowMarker(type) {\n let marker;\n switch (type) {\n case 0:\n marker = 'aggregation';\n break;\n case 1:\n marker = 'extension';\n break;\n case 2:\n marker = 'composition';\n break;\n case 3:\n marker = 'dependency';\n break;\n default:\n marker = 'none';\n }\n return marker;\n}\n","import { logger } from '../../logger';\nimport { generateId } from '../../utils';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nconst clone = o => JSON.parse(JSON.stringify(o));\n\nlet rootDoc = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst setRootDoc = o => {\n logger.info('Setting root doc', o);\n // rootDoc = { id: 'root', doc: o };\n rootDoc = o;\n};\n\nconst getRootDoc = () => rootDoc;\n\nconst docTranslator = (parent, node, first) => {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n const doc = [];\n // Check for concurrency\n let i = 0;\n let currentDoc = [];\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n const newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n }\n\n // If any divider was encountered\n if (doc.length > 0 && currentDoc.length > 0) {\n const newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(docNode => docTranslator(node, docNode, true));\n }\n }\n};\nconst getRootDocV2 = () => {\n docTranslator({ id: 'root' }, { id: 'root', doc: rootDoc }, true);\n return { id: 'root', doc: rootDoc };\n};\n\nconst extract = _doc => {\n // const res = { states: [], relations: [] };\n let doc;\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n }\n // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n logger.info(doc);\n clear();\n\n logger.info('Extract', doc);\n\n doc.forEach(item => {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nconst newDoc = () => {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nlet documents = {\n root: newDoc()\n};\n\nlet currentDocument = documents.root;\n\nlet startCnt = 0;\nlet endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\nexport const addState = function(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type,\n doc,\n note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (typeof descr === 'object') {\n descr.forEach(des => addDescription(id, des.trim()));\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\n\nexport const clear = function() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n\n currentDocument = documents.root;\n\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n classes = [];\n};\n\nexport const getState = function(id) {\n return currentDocument.states[id];\n};\n\nexport const getStates = function() {\n return currentDocument.states;\n};\nexport const logDocuments = function() {\n logger.info('Documents = ', documents);\n};\nexport const getRelations = function() {\n return currentDocument.relations;\n};\n\nexport const addRelation = function(_id1, _id2, title) {\n let id1 = _id1;\n let id2 = _id2;\n let type1 = 'default';\n let type2 = 'default';\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({ id1, id2, title });\n};\n\nconst addDescription = function(id, _descr) {\n const theState = currentDocument.states[id];\n let descr = _descr;\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport const cleanupLabel = function(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\n\nexport const lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\n\nlet dividerCnt = 0;\nconst getDividerId = () => {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nlet classes = [];\n\nconst getClasses = () => classes;\n\nconst getDirection = () => 'TB';\n\nexport const relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nconst trimColon = str => (str && str[0] === ':' ? str.substr(1).trim() : str.trim());\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().state,\n addState,\n clear,\n getState,\n getStates,\n getRelations,\n getClasses,\n getDirection,\n addRelation,\n getDividerId,\n // addDescription,\n cleanupLabel,\n lineType,\n relationType,\n logDocuments,\n getRootDoc,\n setRootDoc,\n getRootDocV2,\n extract,\n trimColon\n};\n","import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram';\n// import idCache from './id-cache';\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\n\nparser.yy = stateDb;\n\n// TODO Move conf object to main conf in mermaidAPI\nlet conf;\n\nconst transformationLog = {};\n\nexport const setConf = function() {};\n\n// Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nconst insertMarkers = function(elem) {\n elem\n .append('defs')\n .append('marker')\n .attr('id', 'dependencyEnd')\n .attr('refX', 19)\n .attr('refY', 7)\n .attr('markerWidth', 20)\n .attr('markerHeight', 28)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text);\n\n // Fetch the default direction, use TD if none was found\n const diagram = select(`[id='${id}']`);\n insertMarkers(diagram);\n\n // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL'\n // ranksep: '20'\n });\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n const rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n\n const padding = conf.padding;\n const bounds = diagram.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', `max-width: ${width * 1.75}px;`);\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n }\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n diagram.attr(\n 'viewBox',\n `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n );\n};\nconst getLabelWidth = text => {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nconst renderDoc = (doc, diagram, parentId, altBkg) => {\n // // Layout graph, Create a new directed graph\n const graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n\n let i;\n let edgeFreeDoc = true;\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n }\n\n // Set an object for the graph label\n if (parentId)\n graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true\n // ranksep: 5,\n // nodesep: 1\n });\n else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n }\n\n // Default to assigning a new object as a label for each new edge.\n graph.setDefaultEdgeLabel(function() {\n return {};\n });\n\n stateDb.extract(doc);\n const states = stateDb.getStates();\n const relations = stateDb.getRelations();\n\n const keys = Object.keys(states);\n\n let first = true;\n\n for (let i = 0; i < keys.length; i++) {\n const stateDef = states[keys[i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n let node;\n if (stateDef.doc) {\n let sub = diagram\n .append('g')\n .attr('id', stateDef.id)\n .attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n let boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height;\n // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n const noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n const note = drawState(diagram, noteDef, graph);\n\n // graph.setNode(node.id, node);\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n }\n // graph.setNode(node.id);\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n let cnt = 0;\n relations.forEach(function(relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(\n relation.id1,\n relation.id2,\n {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n },\n 'id' + cnt\n );\n });\n\n dagre.layout(graph);\n\n logger.debug('Graph after layout', graph.nodes());\n const svgElem = diagram.node();\n\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y +\n (transformationLog[v] ? transformationLog[v].y : 0) -\n graph.node(v).height / 2) +\n ' )'\n );\n select('#' + svgElem.id + ' #' + v).attr(\n 'data-x-shift',\n graph.node(v).x - graph.node(v).width / 2\n );\n const dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(divider => {\n const parent = divider.parentElement;\n let pWidth = 0;\n let pShift = 0;\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n\n let stateBox = svgElem.getBBox();\n\n graph.edges().forEach(function(e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n\n stateBox = svgElem.getBBox();\n\n const stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf,\n draw\n};\n","const idCache = {};\n\nexport const set = (key, val) => {\n idCache[key] = val;\n};\n\nexport const get = k => idCache[k];\nexport const keys = () => Object.keys(idCache);\nexport const size = () => keys().length;\n\nexport default {\n get,\n set,\n keys,\n size\n};\n","import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\n\n// let conf;\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawStartState = g =>\n g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n\n/**\n * Draws a start state as a black circle\n */\nexport const drawDivider = g =>\n g\n .append('line')\n .style('stroke', 'grey')\n .style('stroke-dasharray', '3')\n .attr('x1', getConfig().state.textHeight)\n .attr('class', 'divider')\n .attr('x2', getConfig().state.textHeight * 2)\n .attr('y1', 0)\n .attr('y2', 0);\n\n/**\n * Draws a an end state as a black circle\n */\nexport const drawSimpleState = (g, stateDef) => {\n const state = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const classBox = state.node().getBBox();\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', classBox.width + 2 * getConfig().state.padding)\n .attr('height', classBox.height + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return state;\n};\n\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\nexport const drawDescrState = (g, stateDef) => {\n const addTspan = function(textEl, txt, isFirst) {\n const tSpan = textEl\n .append('tspan')\n .attr('x', 2 * getConfig().state.padding)\n .text(txt);\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n const title = g\n .append('text')\n .attr('x', 2 * getConfig().state.padding)\n .attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.descriptions[0]);\n\n const titleBox = title.node().getBBox();\n const titleHeight = titleBox.height;\n\n const description = g\n .append('text') // text label for the x axis\n .attr('x', getConfig().state.padding)\n .attr(\n 'y',\n titleHeight +\n getConfig().state.padding * 0.4 +\n getConfig().state.dividerMargin +\n getConfig().state.textHeight\n )\n .attr('class', 'state-description');\n\n let isFirst = true;\n let isSecond = true;\n stateDef.descriptions.forEach(function(descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n isFirst = false;\n });\n\n const descrLine = g\n .append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding)\n .attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2)\n .attr('class', 'descr-divider');\n const descrBox = description.node().getBBox();\n const width = Math.max(descrBox.width, titleBox.width);\n\n descrLine.attr('x2', width + 3 * getConfig().state.padding);\n // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child')\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding)\n .attr('width', width + 2 * getConfig().state.padding)\n .attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\nexport const addTitleAndBox = (g, stateDef, altBkg) => {\n const pad = getConfig().state.padding;\n const dblPad = 2 * getConfig().state.padding;\n const orgBox = g.node().getBBox();\n const orgWidth = orgBox.width;\n const orgX = orgBox.x;\n\n const title = g\n .append('text')\n .attr('x', 0)\n .attr('y', getConfig().state.titleShift)\n .attr('font-size', getConfig().state.fontSize)\n .attr('class', 'state-title')\n .text(stateDef.id);\n\n const titleBox = title.node().getBBox();\n const titleWidth = titleBox.width + dblPad;\n let width = Math.max(titleWidth, orgWidth); // + dblPad;\n if (width === orgWidth) {\n width = width + dblPad;\n }\n let startX;\n // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n const graphBox = g.node().getBBox();\n // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {\n // cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n const lineY = 1 - getConfig().state.textHeight;\n // White color\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr('y', lineY)\n .attr('class', altBkg ? 'alt-composit' : 'composit')\n .attr('width', width)\n .attr(\n 'height',\n graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1\n )\n .attr('rx', '0');\n\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);\n\n // Title background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3)\n .attr('rx', getConfig().state.radius);\n\n // Full background\n g.insert('rect', ':first-child')\n .attr('x', startX)\n .attr(\n 'y',\n getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding\n )\n .attr('width', width)\n .attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight)\n .attr('rx', getConfig().state.radius);\n\n return g;\n};\n\nconst drawEndState = g => {\n g.append('circle')\n .style('stroke', 'black')\n .style('fill', 'white')\n .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding)\n .attr(\n 'cx',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n )\n .attr(\n 'cy',\n getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding\n );\n\n return g\n .append('circle')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('r', getConfig().state.sizeUnit)\n .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2)\n .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\nconst drawForkJoinState = (g, stateDef) => {\n let width = getConfig().state.forkWidth;\n let height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n let tmp = width;\n width = height;\n height = tmp;\n }\n return g\n .append('rect')\n .style('stroke', 'black')\n .style('fill', 'black')\n .attr('width', width)\n .attr('height', height)\n .attr('x', getConfig().state.padding)\n .attr('y', getConfig().state.padding);\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(common.lineBreakRegex, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n\n return textElem;\n};\n\nconst _drawLongText = (_text, x, y, g) => {\n let textHeight = 0;\n\n const textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n let text = _text.replace(/\\r\\n/g, '
');\n text = text.replace(/\\n/g, '
');\n const lines = text.split(common.lineBreakRegex);\n\n let tHeight = 1.25 * getConfig().state.noteMargin;\n for (const line of lines) {\n const txt = line.trim();\n\n if (txt.length > 0) {\n const span = textElem.append('tspan');\n span.text(txt);\n if (tHeight === 0) {\n const textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n }\n // console.warn('textBounds', textBounds);\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n return { textWidth: textElem.node().getBBox().width, textHeight };\n};\n\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\nexport const drawNote = (text, g) => {\n g.attr('class', 'state-note');\n const note = g\n .append('rect')\n .attr('x', 0)\n .attr('y', getConfig().state.padding);\n const rectElem = g.append('g');\n\n const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n\n return note;\n};\n\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport const drawState = function(elem, stateDef) {\n const id = stateDef.id;\n const stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n\n const g = elem\n .append('g')\n .attr('id', id)\n .attr('class', 'stateGroup');\n\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0)\n drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n\n const stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n\n idCache.set(id, stateInfo);\n // stateCnt++;\n return stateInfo;\n};\n\nlet edgeCount = 0;\nexport const drawEdge = function(elem, path, relation) {\n const getRelationType = function(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n case stateDb.relationType.EXTENSION:\n return 'extension';\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(p => !Number.isNaN(p.y));\n\n // The data for our line\n const lineData = path.points;\n\n // This is the accessor function we talked about above\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n const svgPath = elem\n .append('path')\n .attr('d', lineFunction(lineData))\n .attr('id', 'edge' + edgeCount)\n .attr('class', 'transition');\n let url = '';\n if (getConfig().state.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr(\n 'marker-end',\n 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')'\n );\n\n if (typeof relation.title !== 'undefined') {\n const label = elem.append('g').attr('class', 'stateLabel');\n\n const { x, y } = utils.calcLabelPosition(path.points);\n\n const rows = common.getRows(relation.title);\n\n // console.warn(rows);\n\n let titleHeight = 0;\n const titleRows = [];\n let maxWidth = 0;\n let minX = 0;\n\n for (let i = 0; i <= rows.length; i++) {\n const title = label\n .append('text')\n .attr('text-anchor', 'middle')\n .text(rows[i])\n .attr('x', x)\n .attr('y', y + titleHeight);\n\n const boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n const titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n titleRows.push(title);\n }\n\n let boxHeight = titleHeight * rows.length;\n if (rows.length > 1) {\n const heightAdj = (rows.length - 1) * titleHeight * 0.5;\n\n titleRows.forEach((title, i) => title.attr('y', y + i * titleHeight - heightAdj));\n boxHeight = titleHeight * rows.length;\n }\n\n const bounds = label.node().getBBox();\n\n label\n .insert('rect', ':first-child')\n .attr('class', 'box')\n .attr('x', x - maxWidth / 2 - getConfig().state.padding / 2)\n .attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5)\n .attr('width', maxWidth + getConfig().state.padding)\n .attr('height', boxHeight + getConfig().state.padding);\n\n logger.info(bounds);\n\n //label.attr('transform', '0 -' + (bounds.y / 2));\n\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};\n","import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\n\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\nlet nodeDb = {};\n\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\nexport const getClasses = function(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nconst setupNode = (g, parent, node, altFlag) => {\n // Add the node\n if (node.id !== 'root') {\n let shape = 'rect';\n if (node.start === true) {\n shape = 'start';\n }\n if (node.start === false) {\n shape = 'end';\n }\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n }\n\n // Build of the array of description strings accordinging\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n }\n\n // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n\n // group\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes =\n nodeDb[node.id].classes +\n ' ' +\n (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n const nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n\n if (node.note) {\n // Todo: set random id\n const noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note', //classStr,\n style: '', //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n };\n const groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes, //classStr,\n style: '', //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n };\n g.setNode(node.id + '----parent', groupData);\n\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n\n let from = node.id;\n let to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\nlet cnt = 0;\nconst setupDoc = (g, parent, doc, altFlag) => {\n logger.trace('items', doc);\n doc.forEach(item => {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n const edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowTypeEnd: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n let startId = item.state1.id;\n let endId = item.state2.id;\n\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = function(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n const parser = state.parser;\n parser.yy = stateDb;\n\n // Parse the graph definition\n // try {\n parser.parse(text);\n // } catch (err) {\n // logger.error('Parsing failed', err);\n // }\n\n // Fetch the default direction, use TD if none was found\n let dir = stateDb.getDirection();\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n const conf = getConfig().state;\n const nodeSpacing = conf.nodeSpacing || 50;\n const rankSpacing = conf.rankSpacing || 50;\n\n // Create the input mermaid.graph\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n })\n .setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true);\n\n // Set up an SVG group so that we can translate the final graph.\n const svg = select(`[id=\"${id}\"]`);\n\n // Run the renderer. This is what draws the final graph.\n const element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n\n const padding = 8;\n // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n const bounds = svg.node().getBBox();\n\n const width = bounds.width + padding * 2;\n const height = bounds.height + padding * 2;\n\n // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n\n // Zoom in a bit\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram');\n // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n const svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n const vBox = `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`;\n logger.debug(`viewBox ${vBox}`);\n svg.attr('viewBox', vBox);\n\n // Add label rects for non html labels\n if (!conf.htmlLabels) {\n const labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (let k = 0; k < labels.length; k++) {\n const label = labels[k];\n\n // Get dimensions of label\n const dim = label.getBBox();\n\n const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\n\nexport default {\n setConf,\n getClasses,\n draw\n};\n","import { logger } from '../../logger';\nimport { random } from '../../utils';\nlet commits = {};\nlet head = null;\nlet branches = { master: head };\nlet curBranch = 'master';\nlet direction = 'LR';\nlet seq = 0;\n\nfunction getId() {\n return random({ length: 7 });\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return (\n isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) ||\n isfastforwardable(currentCommit, commits[otherCommit.parent[1]])\n );\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n const currentSeq = currentCommit.seq;\n const otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n const recordMap = Object.create(null);\n return list.reduce((out, item) => {\n const key = fn(item);\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n return out;\n }, []);\n}\n\nexport const setDirection = function(dir) {\n direction = dir;\n};\nlet options = {};\nexport const setOptions = function(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\n\nexport const getOptions = function() {\n return options;\n};\n\nexport const commit = function(msg) {\n const commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\n\nexport const branch = function(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\n\nexport const merge = function(otherBranch) {\n const currentCommit = commits[branches[curBranch]];\n const otherCommit = commits[branches[otherBranch]];\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n const commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n }\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\n\nexport const checkout = function(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n const id = branches[curBranch];\n head = commits[id];\n};\n\nexport const reset = function(commitRef) {\n logger.debug('in reset', commitRef);\n const ref = commitRef.split(':')[0];\n let parentCount = parseInt(commitRef.split(':')[1]);\n let commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n if (!commit) {\n const err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n const index = arr.indexOf(key);\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n const commit = commitArr.reduce((out, commit) => {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n let line = '';\n commitArr.forEach(function(c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n const label = [line, commit.id, commit.seq];\n for (let branch in branches) {\n if (branches[branch] === commit.id) label.push(branch);\n }\n logger.debug(label.join(' '));\n if (Array.isArray(commit.parent)) {\n const newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n const nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n commitArr = uniqBy(commitArr, c => c.id);\n prettyPrintCommitHistory(commitArr);\n}\n\nexport const prettyPrint = function() {\n logger.debug(commits);\n const node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\n\nexport const clear = function() {\n commits = {};\n head = null;\n branches = { master: head };\n curBranch = 'master';\n seq = 0;\n};\n\nexport const getBranchesAsObjArray = function() {\n const branchArr = [];\n for (let branch in branches) {\n branchArr.push({ name: branch, commit: commits[branches[branch]] });\n }\n return branchArr;\n};\n\nexport const getBranches = function() {\n return branches;\n};\nexport const getCommits = function() {\n return commits;\n};\nexport const getCommitsArray = function() {\n const commitArr = Object.keys(commits).map(function(key) {\n return commits[key];\n });\n commitArr.forEach(function(o) {\n logger.debug(o.id);\n });\n commitArr.sort((a, b) => b.seq - a.seq);\n return commitArr;\n};\nexport const getCurrentBranch = function() {\n return curBranch;\n};\nexport const getDirection = function() {\n return direction;\n};\nexport const getHead = function() {\n return head;\n};\n\nexport default {\n setDirection,\n setOptions,\n getOptions,\n commit,\n branch,\n merge,\n checkout,\n reset,\n prettyPrint,\n clear,\n getBranchesAsObjArray,\n getBranches,\n getCommits,\n getCommitsArray,\n getCurrentBranch,\n getDirection,\n getHead\n};\n","import { curveBasis, line, select } from 'd3';\n\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\n\nlet allCommitsDict = {};\nlet branchNum;\nlet config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nlet apiConfig = {};\nexport const setConf = function(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg\n .append('defs')\n .append('g')\n .attr('id', 'def-commit')\n .append('circle')\n .attr('r', config.nodeRadius)\n .attr('cx', 0)\n .attr('cy', 0);\n svg\n .select('#def-commit')\n .append('foreignObject')\n .attr('width', config.nodeLabel.width)\n .attr('height', config.nodeLabel.height)\n .attr('x', config.nodeLabel.x)\n .attr('y', config.nodeLabel.y)\n .attr('class', 'node-label')\n .attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility')\n .append('p')\n .html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n const curve = interpolateToCurve(interpolate, curveBasis);\n const color = config.branchColors[colorIdx % config.branchColors.length];\n const lineGen = line()\n .x(function(d) {\n return Math.round(d.x);\n })\n .y(function(d) {\n return Math.round(d.y);\n })\n .curve(curve);\n\n svg\n .append('svg:path')\n .attr('d', lineGen(points))\n .style('stroke', color)\n .style('stroke-width', config.lineStrokeWidth)\n .style('fill', 'none');\n}\n\n// Pass in the element and its pre-transform coords\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n const ctm = element.node().getCTM();\n const xn = ctm.e + coords.x * ctm.a;\n const yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n const fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n const toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n const lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n const lineEnd = { x: toBbox.left + toBbox.width, y: toBbox.top + toBbox.height / 2 };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: fromBbox.top + fromBbox.height / 2 },\n { x: fromBbox.left - config.nodeSpacing / 2, y: lineStart.y },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n },\n {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n },\n {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }\n ],\n color\n );\n }\n break;\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n const lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n const lineEnd = { x: toBbox.left + toBbox.width / 2, y: toBbox.top };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(\n svg,\n [\n { x: fromBbox.left + fromBbox.width / 2, y: fromBbox.top + fromBbox.height },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n },\n { x: toBbox.left + toBbox.width / 2, y: lineStart.y - config.nodeSpacing / 2 },\n lineStart\n ],\n color\n );\n } else {\n svgDrawLine(\n svg,\n [\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n },\n {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n },\n {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }\n ],\n color\n );\n }\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg\n .select(selector)\n .node()\n .cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n let commit;\n const numCommits = Object.keys(allCommitsDict).length;\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n svg\n .append(function() {\n return cloneNode(svg, '#def-commit');\n })\n .attr('class', 'commit')\n .attr('id', function() {\n return 'node-' + commit.id;\n })\n .attr('transform', function() {\n switch (direction) {\n case 'LR':\n return (\n 'translate(' +\n (commit.seq * config.nodeSpacing + config.leftMargin) +\n ', ' +\n branchNum * config.branchOffset +\n ')'\n );\n case 'BT':\n return (\n 'translate(' +\n (branchNum * config.branchOffset + config.leftMargin) +\n ', ' +\n (numCommits - commit.seq) * config.nodeSpacing +\n ')'\n );\n }\n })\n .attr('fill', config.nodeFillColor)\n .attr('stroke', config.nodeStrokeColor)\n .attr('stroke-width', config.nodeStrokeWidth);\n\n let branch;\n for (let branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'branch-label')\n .text(branch.name + ', ');\n }\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-id')\n .text(commit.id);\n if (commit.message !== '' && direction === 'BT') {\n svg\n .select('#node-' + commit.id + ' p')\n .append('xhtml:span')\n .attr('class', 'commit-msg')\n .text(', ' + commit.message);\n }\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport const draw = function(txt, id, ver) {\n try {\n const parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver);\n // Parse the graph definition\n parser.parse(txt + '\\n');\n\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n const direction = db.getDirection();\n allCommitsDict = db.getCommits();\n const branches = db.getBranchesAsObjArray();\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n const svg = select(`[id=\"${id}\"]`);\n svgCreateDefs(svg);\n branchNum = 1;\n for (let branch in branches) {\n const v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n svg.attr('height', function() {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\nlet w;\nexport const draw = (txt, id) => {\n try {\n const parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt);\n // Parse the Pie Chart definition\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n const elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n const h = 450;\n elem.setAttribute('height', '100%');\n // Set viewBox\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n\n // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n\n var radius = Math.min(width, height) / 2 - margin;\n\n var svg = select('#' + id)\n .append('svg')\n .attr('width', width)\n .attr('height', height)\n .append('g')\n .attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function(key) {\n sum += data[key];\n });\n logger.info(data);\n\n // set the color scale\n var color = scaleOrdinal()\n .domain(data)\n .range(schemeSet2);\n\n // Compute the position of each group on the pie:\n var pie = d3pie().value(function(d) {\n return d.value;\n });\n var dataReady = pie(entries(data));\n\n // shape helper to build arcs:\n var arcGenerator = arc()\n .innerRadius(0)\n .outerRadius(radius);\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('path')\n .attr('d', arcGenerator)\n .attr('fill', function(d) {\n return color(d.data.key);\n })\n .attr('stroke', 'black')\n .style('stroke-width', '2px')\n .style('opacity', 0.7);\n\n // Now add the Percentage. Use the centroid method to get the best coordinates\n svg\n .selectAll('mySlices')\n .data(dataReady)\n .enter()\n .append('text')\n .text(function(d) {\n return ((d.data.value / sum) * 100).toFixed(0) + '%';\n })\n .attr('transform', function(d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n })\n .style('text-anchor', 'middle')\n .attr('class', 'slice')\n .style('font-size', 17);\n\n svg\n .append('text')\n .text(parser.yy.getTitle())\n .attr('x', 0)\n .attr('y', -(h - 50) / 2)\n .attr('class', 'pieTitleText');\n\n //Add the slegend/annotations for each section\n var legend = svg\n .selectAll('.legend')\n .data(color.domain())\n .enter()\n .append('g')\n .attr('class', 'legend')\n .attr('transform', function(d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = (height * color.domain().length) / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n\n legend\n .append('rect')\n .attr('width', legendRectSize)\n .attr('height', legendRectSize)\n .style('fill', color)\n .style('stroke', color);\n\n legend\n .append('text')\n .attr('x', legendRectSize + legendSpacing)\n .attr('y', legendRectSize - legendSpacing)\n .text(function(d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\n\nvar message = '';\nvar info = false;\n\nexport const setMessage = txt => {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\n\nexport const getMessage = () => {\n return message;\n};\n\nexport const setInfo = inf => {\n info = inf;\n};\n\nexport const getInfo = () => {\n return info;\n};\n\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage,\n getMessage,\n setInfo,\n getInfo\n // parseError\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (txt, id, ver) => {\n try {\n const parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt);\n // Parse the graph definition\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n // Fetch the default direction, use TD if none was found\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('text') // text label for the x axis\n .attr('x', 100)\n .attr('y', 40)\n .attr('class', 'version')\n .attr('font-size', '32px')\n .style('text-anchor', 'middle')\n .text('v ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\n\nconst conf = {};\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\nexport const draw = (id, ver) => {\n try {\n logger.debug('Renering svg for syntax error\\n');\n\n const svg = select('#' + id);\n\n const g = svg.append('g');\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z'\n );\n\n g.append('path')\n .attr('class', 'error-icon')\n .attr(\n 'd',\n 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z'\n );\n\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1240)\n .attr('y', 250)\n .attr('font-size', '150px')\n .style('text-anchor', 'middle')\n .text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text')\n .attr('x', 1050)\n .attr('y', 400)\n .attr('font-size', '100px')\n .style('text-anchor', 'middle')\n .text('mermaid version ' + ver);\n\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet sections = {};\nlet title = '';\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addSection = function(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\nconst getSections = () => sections;\n\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\nconst cleanupValue = function(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nconst clear = function() {\n sections = {};\n title = '';\n};\n// export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().pie,\n addSection,\n getSections,\n cleanupValue,\n clear,\n setTitle,\n getTitle\n // parseError\n};\n","/**\n *\n */\nimport { logger } from '../../logger';\nimport mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet entities = {};\nlet relationships = [];\nlet title = '';\n\nconst Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\n\nconst Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nconst addEntity = function(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nconst getEntities = () => entities;\n\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\nconst addRelationship = function(entA, rolA, entB, rSpec) {\n let rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nconst getRelationships = () => relationships;\n\n// Keep this - TODO: revisit...allow the diagram to have a title\nconst setTitle = function(txt) {\n title = txt;\n};\n\nconst getTitle = function() {\n return title;\n};\n\nconst clear = function() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality,\n Identification,\n parseDirective,\n getConfig: () => configApi.getConfig().er,\n addEntity,\n getEntities,\n addRelationship,\n getRelationships,\n clear,\n setTitle,\n getTitle\n};\n","const ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\nconst insertMarkers = function(elem, conf) {\n let marker;\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18 M15,0 L15,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONLY_ONE_END)\n .attr('refX', 18)\n .attr('refY', 9)\n .attr('markerWidth', 18)\n .attr('markerHeight', 18)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,0 L3,18 M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_START)\n .attr('refX', 0)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 21)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M9,0 L9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_ONE_END)\n .attr('refX', 30)\n .attr('refY', 9)\n .attr('markerWidth', 30)\n .attr('markerHeight', 18)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 9)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,0 L21,18');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n\n elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ONE_OR_MORE_END)\n .attr('refX', 27)\n .attr('refY', 18)\n .attr('markerWidth', 45)\n .attr('markerHeight', 36)\n .attr('orient', 'auto')\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_START)\n .attr('refX', 18)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 48)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n\n marker = elem\n .append('defs')\n .append('marker')\n .attr('id', ERMarkers.ZERO_OR_MORE_END)\n .attr('refX', 39)\n .attr('refY', 18)\n .attr('markerWidth', 57)\n .attr('markerHeight', 36)\n .attr('orient', 'auto');\n marker\n .append('circle')\n .attr('stroke', conf.stroke)\n .attr('fill', 'white')\n .attr('cx', 9)\n .attr('cy', 18)\n .attr('r', 6);\n marker\n .append('path')\n .attr('stroke', conf.stroke)\n .attr('fill', 'none')\n .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n\n return;\n};\n\nexport default {\n ERMarkers,\n insertMarkers\n};\n","import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\n\nconst conf = {};\n\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (let i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\nconst drawEntities = function(svgNode, entities, graph) {\n const keys = Object.keys(entities);\n let firstOne;\n\n keys.forEach(function(id) {\n // Create a group for each entity\n const groupNode = svgNode.append('g').attr('id', id);\n\n firstOne = firstOne === undefined ? id : firstOne;\n\n // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n const textId = 'entity-' + id;\n const textNode = groupNode\n .append('text')\n .attr('class', 'er entityLabel')\n .attr('id', textId)\n .attr('x', 0)\n .attr('y', 0)\n .attr('dominant-baseline', 'middle')\n .attr('text-anchor', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(id);\n\n // Calculate the width and height of the entity\n const textBBox = textNode.node().getBBox();\n const entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n const entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2);\n\n // Make sure the text gets centred relative to the entity box\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')');\n\n // Draw the rectangle - insert it before the text so that the text is not obscured\n const rectNode = groupNode\n .insert('rect', '#' + textId)\n .attr('class', 'er entityBox')\n .attr('fill', conf.fill)\n .attr('fill-opacity', '100%')\n .attr('stroke', conf.stroke)\n .attr('x', 0)\n .attr('y', 0)\n .attr('width', entityWidth)\n .attr('height', entityHeight);\n\n const rectBBox = rectNode.node().getBBox();\n\n // Add the entity to the graph\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\nconst adjustEntities = function(svgNode, graph) {\n graph.nodes().forEach(function(v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode\n .select('#' + v)\n .attr(\n 'transform',\n 'translate(' +\n (graph.node(v).x - graph.node(v).width / 2) +\n ',' +\n (graph.node(v).y - graph.node(v).height / 2) +\n ' )'\n );\n }\n });\n return;\n};\n\nconst getEdgeName = function(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\nconst addRelationships = function(relationships, g) {\n relationships.forEach(function(r) {\n g.setEdge(r.entityA, r.entityB, { relationship: r }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\nlet relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\nconst drawRelationshipFromLayout = function(svg, rel, g, insert) {\n relCnt++;\n\n // Find the edge relating to this relationship\n const edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel));\n\n // Get a function that will generate the line path\n const lineFunction = line()\n .x(function(d) {\n return d.x;\n })\n .y(function(d) {\n return d.y;\n })\n .curve(curveBasis);\n\n // Insert the line at the right place\n const svgPath = svg\n .insert('path', '#' + insert)\n .attr('class', 'er relationshipLine')\n .attr('d', lineFunction(edge.points))\n .attr('stroke', conf.stroke)\n .attr('fill', 'none');\n\n // ...and with dashes if necessary\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n }\n\n // TODO: Understand this better\n let url = '';\n if (conf.arrowMarkerAbsolute) {\n url =\n window.location.protocol +\n '//' +\n window.location.host +\n window.location.pathname +\n window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')'\n );\n break;\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr(\n 'marker-start',\n 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')'\n );\n break;\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n }\n\n // Now label the relationship\n\n // Find the half-way point\n const len = svgPath.node().getTotalLength();\n const labelPoint = svgPath.node().getPointAtLength(len * 0.5);\n\n // Append a text node containing the label\n const labelId = 'rel' + relCnt;\n\n const labelNode = svg\n .append('text')\n .attr('class', 'er relationshipLabel')\n .attr('id', labelId)\n .attr('x', labelPoint.x)\n .attr('y', labelPoint.y)\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr(\n 'style',\n 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px'\n )\n .text(rel.roleA);\n\n // Figure out how big the opaque 'container' rectangle needs to be\n const labelBBox = labelNode.node().getBBox();\n\n // Insert the opaque rectangle before the text label\n svg\n .insert('rect', '#' + labelId)\n .attr('class', 'er relationshipLabelBox')\n .attr('x', labelPoint.x - labelBBox.width / 2)\n .attr('y', labelPoint.y - labelBBox.height / 2)\n .attr('width', labelBBox.width)\n .attr('height', labelBBox.height)\n .attr('fill', 'white')\n .attr('fill-opacity', '85%');\n\n return;\n};\n\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\nexport const draw = function(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n const parser = erParser.parser;\n parser.yy = erDb;\n\n // Parse the text to populate erDb\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n }\n\n // Get a reference to the svg node that contains the text\n const svg = select(`[id='${id}']`);\n\n // Add cardinality marker definitions to the svg\n erMarkers.insertMarkers(svg, conf);\n\n // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n\n // Create the graph\n let g;\n\n // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n })\n .setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n })\n .setDefaultEdgeLabel(function() {\n return {};\n });\n\n // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n const firstEntity = drawEntities(svg, erDb.getEntities(), g);\n\n // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n\n // Add all the relationships to the graph\n const relationships = addRelationships(erDb.getRelationships(), g);\n\n dagre.layout(g); // Node and edge positions will be updated\n\n // Adjust the positions of the entities so that they adhere to the layout\n adjustEntities(svg, g);\n\n // Draw the relationships\n relationships.forEach(function(rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n\n const padding = conf.diagramPadding;\n\n const svgBounds = svg.node().getBBox();\n const width = svgBounds.width + padding * 2;\n const height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', `max-width: ${width}px;`);\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', `${svgBounds.x - padding} ${svgBounds.y - padding} ${width} ${height}`);\n}; // draw\n\nexport default {\n setConf,\n draw\n};\n","import mermaidAPI from '../../mermaidAPI';\nimport * as configApi from '../../config';\n\nlet title = '';\nlet currentSection = '';\n\nconst sections = [];\nconst tasks = [];\nconst rawTasks = [];\n\nexport const parseDirective = function(statement, context, type) {\n mermaidAPI.parseDirective(this, statement, context, type);\n};\n\nexport const clear = function() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\n\nexport const setTitle = function(txt) {\n title = txt;\n};\n\nexport const getTitle = function() {\n return title;\n};\n\nexport const addSection = function(txt) {\n currentSection = txt;\n sections.push(txt);\n};\n\nexport const getSections = function() {\n return sections;\n};\n\nexport const getTasks = function() {\n let allItemsProcessed = compileTasks();\n const maxDepth = 100;\n let iterationCount = 0;\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push(...rawTasks);\n\n return tasks;\n};\n\nconst updateActors = function() {\n const tempActors = [];\n tasks.forEach(task => {\n if (task.people) {\n tempActors.push(...task.people);\n }\n });\n\n const unique = new Set(tempActors);\n return [...unique].sort();\n};\n\nexport const addTask = function(descr, taskData) {\n const pieces = taskData.substr(1).split(':');\n\n let score = 0;\n let peeps = [];\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n const peopleList = peeps.map(s => s.trim());\n\n const rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score\n };\n\n rawTasks.push(rawTask);\n};\n\nexport const addTaskOrg = function(descr) {\n const newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nconst compileTasks = function() {\n const compileTask = function(pos) {\n return rawTasks[pos].processed;\n };\n\n let allProcessed = true;\n for (let i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n return allProcessed;\n};\n\nconst getActors = function() {\n return updateActors();\n};\n\nexport default {\n parseDirective,\n getConfig: () => configApi.getConfig().journey,\n clear,\n setTitle,\n getTitle,\n addSection,\n getSections,\n getTasks,\n addTask,\n addTaskOrg,\n getActors\n};\n","import { arc as d3arc } from 'd3';\n\nexport const drawRect = function(elem, rectData) {\n const rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\n\nexport const drawFace = function(element, faceData) {\n const radius = 15;\n const circleElement = element\n .append('circle')\n .attr('cx', faceData.cx)\n .attr('cy', faceData.cy)\n .attr('class', 'face')\n .attr('r', radius)\n .attr('stroke-width', 2)\n .attr('overflow', 'visible');\n\n const face = element.append('g');\n\n //left eye\n face\n .append('circle')\n .attr('cx', faceData.cx - radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n //right eye\n face\n .append('circle')\n .attr('cx', faceData.cx + radius / 3)\n .attr('cy', faceData.cy - radius / 3)\n .attr('r', 1.5)\n .attr('stroke-width', 2)\n .attr('fill', '#666')\n .attr('stroke', '#666');\n\n function smile(face) {\n const arc = d3arc()\n .startAngle(Math.PI / 2)\n .endAngle(3 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n const arc = d3arc()\n .startAngle((3 * Math.PI) / 2)\n .endAngle(5 * (Math.PI / 2))\n .innerRadius(radius / 2)\n .outerRadius(radius / 2.2);\n //mouth\n face\n .append('path')\n .attr('class', 'mouth')\n .attr('d', arc)\n .attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face\n .append('line')\n .attr('class', 'mouth')\n .attr('stroke', 2)\n .attr('x1', faceData.cx - 5)\n .attr('y1', faceData.cy + 7)\n .attr('x2', faceData.cx + 5)\n .attr('y2', faceData.cy + 7)\n .attr('class', 'mouth')\n .attr('stroke-width', '1px')\n .attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\n\nexport const drawCircle = function(element, circleData) {\n const circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\n\nexport const drawText = function(elem, textData) {\n // Remove and ignore br:s\n const nText = textData.text.replace(//gi, ' ');\n\n const textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('class', 'legend');\n\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n const span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n\n return textElem;\n};\n\nexport const drawLabel = function(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return (\n x +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n y +\n ' ' +\n (x + width) +\n ',' +\n (y + height - cut) +\n ' ' +\n (x + width - cut * 1.2) +\n ',' +\n (y + height) +\n ' ' +\n x +\n ',' +\n (y + height)\n );\n }\n const polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\n\nexport const drawSection = function(elem, section, conf) {\n const g = elem.append('g');\n\n const rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section section-type-' + section.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(\n section.text,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'journey-section section-type-' + section.num },\n conf,\n section.colour\n );\n};\n\nlet taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\nexport const drawTask = function(elem, task, conf) {\n const center = task.x + conf.width / 2;\n const g = elem.append('g');\n taskCount++;\n const maxHeight = 300 + 5 * 30;\n g.append('line')\n .attr('id', 'task' + taskCount)\n .attr('x1', center)\n .attr('y1', task.y)\n .attr('x2', center)\n .attr('y2', maxHeight)\n .attr('class', 'task-line')\n .attr('stroke-width', '1px')\n .attr('stroke-dasharray', '4 2')\n .attr('stroke', '#666');\n\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n\n const rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task task-type-' + task.num;\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n let xPos = task.x + 14;\n task.people.forEach(person => {\n const colour = task.actors[person];\n\n const circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(\n task.task,\n g,\n rect.x,\n rect.y,\n rect.width,\n rect.height,\n { class: 'task' },\n conf,\n task.colour\n );\n};\n\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\nexport const drawBackgroundRect = function(elem, bounds) {\n const rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n\nexport const getTextObj = function() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\n\nexport const getNoteRect = function() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nconst _drawTextCandidateFunc = (function() {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y + height / 2 + 5)\n .style('font-color', colour)\n .style('text-anchor', 'middle')\n .text(content);\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n const { taskFontSize, taskFontFamily } = conf;\n\n const lines = content.split(//gi);\n for (let i = 0; i < lines.length; i++) {\n const dy = i * taskFontSize - (taskFontSize * (lines.length - 1)) / 2;\n const text = g\n .append('text')\n .attr('x', x + width / 2)\n .attr('y', y)\n .attr('fill', colour)\n .style('text-anchor', 'middle')\n .style('font-size', taskFontSize)\n .style('font-family', taskFontFamily);\n text\n .append('tspan')\n .attr('x', x + width / 2)\n .attr('dy', dy)\n .text(lines[i]);\n\n text\n .attr('y', y + height / 2.0)\n .attr('dominant-baseline', 'central')\n .attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n const body = g.append('switch');\n const f = body\n .append('foreignObject')\n .attr('x', x)\n .attr('y', y)\n .attr('width', width)\n .attr('height', height)\n .attr('position', 'fixed');\n\n const text = f\n .append('div')\n .style('display', 'table')\n .style('height', '100%')\n .style('width', '100%');\n\n text\n .append('div')\n .attr('class', 'label')\n .style('display', 'table-cell')\n .style('text-align', 'center')\n .style('vertical-align', 'middle')\n // .style('color', colour)\n .text(content);\n\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (const key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function(conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n})();\n\nconst initGraphics = function(graphics) {\n graphics\n .append('defs')\n .append('marker')\n .attr('id', 'arrowhead')\n .attr('refX', 5)\n .attr('refY', 2)\n .attr('markerWidth', 6)\n .attr('markerHeight', 4)\n .attr('orient', 'auto')\n .append('path')\n .attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect,\n drawCircle,\n drawSection,\n drawText,\n drawLabel,\n drawTask,\n drawBackgroundRect,\n getTextObj,\n getNoteRect,\n initGraphics\n};\n","import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\n\nparser.yy = journeyDb;\n\nconst conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n\n // width of activation box\n activationWidth: 10,\n\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\n\nexport const setConf = function(cnf) {\n const keys = Object.keys(cnf);\n\n keys.forEach(function(key) {\n conf[key] = cnf[key];\n });\n};\n\nconst actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n let yPos = 60;\n Object.keys(actors).forEach(person => {\n const colour = actors[person];\n\n const circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n\n const labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person,\n textMargin: conf.boxTextMargin | 5\n };\n svgDraw.drawText(diagram, labelData);\n\n yPos += 20;\n });\n}\n\nconst LEFT_MARGIN = conf.leftMargin;\nexport const draw = function(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n\n bounds.init();\n const diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n\n svgDraw.initGraphics(diagram);\n\n const tasks = parser.yy.getTasks();\n const title = parser.yy.getTitle();\n\n const actorNames = parser.yy.getActors();\n for (let member in actors) delete actors[member];\n let actorPos = 0;\n actorNames.forEach(actorName => {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n\n drawTasks(diagram, tasks, 0);\n\n const box = bounds.getBounds();\n if (title) {\n diagram\n .append('text')\n .text(title)\n .attr('x', LEFT_MARGIN)\n .attr('font-size', '4ex')\n .attr('font-weight', 'bold')\n .attr('y', 25);\n }\n const height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n const width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n // Draw activity line\n diagram\n .append('line')\n .attr('x1', LEFT_MARGIN)\n .attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4)\n .attr('stroke-width', 4)\n .attr('stroke', 'black')\n .attr('marker-end', 'url(#arrowhead)');\n\n const extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', `${box.startx} -25 ${width} ${height + extraVertForTitle}`);\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\n\nexport const bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n\n sequenceItems: [],\n init: function() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function(startx, starty, stopx, stopy) {\n const _self = this;\n let cnt = 0;\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++;\n // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n const n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function(startx, starty, stopx, stopy) {\n const _startx = Math.min(startx, stopx);\n const _stopx = Math.max(startx, stopx);\n const _starty = Math.min(starty, stopy);\n const _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function() {\n return this.verticalPos;\n },\n getBounds: function() {\n return this.data;\n }\n};\n\nconst fills = conf.sectionFills;\nconst textColours = conf.sectionColours;\n\nexport const drawTasks = function(diagram, tasks, verticalPos) {\n let lastSection = '';\n const sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n const taskPos = verticalPos + sectionVHeight;\n\n let sectionNumber = 0;\n let fill = '#CCC';\n let colour = 'black';\n let num = 0;\n\n // Draw the tasks\n for (let i = 0; i < tasks.length; i++) {\n let task = tasks[i];\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n num = sectionNumber % fills.length;\n colour = textColours[sectionNumber % textColours.length];\n\n const section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill,\n num,\n colour\n };\n\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n }\n\n // Collect the actors involved in the task\n const taskActors = task.people.reduce((acc, actorName) => {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {});\n\n // Add some rendering data to the object\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.num = num;\n task.actors = taskActors;\n\n // Draw the box with the attached line\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\n\nexport default {\n setConf,\n draw\n};\n","const getStyles = options =>\n `g.classGroup text {\n fill: ${options.nodeBorder};\n fill: ${options.classText};\n stroke: none;\n font-family: ${options.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${options.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${options.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${options.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${options.lineColor} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${options.nodeBkg} !important;\n stroke: ${options.lineColor} !important;\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `.label {\n font-family: ${options.fontFamily};\n color: ${options.textColor};\n }\n\n .label text {\n fill: ${options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `g.stateGroup text {\n fill: ${options.nodeBorder};\n stroke: none;\n font-size: 10px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\ng.stateGroup text {\n fill: ${options.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${options.labelColor};\n}\n\ng.stateGroup rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${options.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${options.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${options.nodeBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${options.tertiaryColor};\n opacity: 0.2;\n}\n.edgeLabel .label text {\n fill: ${options.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${options.labelColor};\n font-size: 10px;\n font-weight: bold;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n}\n\n.node circle.state-start {\n fill: ${options.primaryBorderColor};\n stroke: black;\n}\n.node circle.state-end {\n fill: ${options.primaryBorderColor};\n stroke: ${options.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${options.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${options.nodeBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${options.textColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${options.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${options.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${options.altBackground ? options.altBackground : '#efefef'};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${options.noteBkgColor};\n stroke: ${options.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${options.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${options.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${options.lineColor};\n stroke: ${options.lineColor};\n stroke-width: 1;\n}\n`;\n\nexport default getStyles;\n","import classDiagram from './diagrams/class/styles';\nimport er from './diagrams/er/styles';\nimport flowchart from './diagrams/flowchart/styles';\nimport gantt from './diagrams/gantt/styles';\nimport git from './diagrams/git/styles';\nimport info from './diagrams/info/styles';\nimport pie from './diagrams/pie/styles';\nimport sequence from './diagrams/sequence/styles';\nimport stateDiagram from './diagrams/state/styles';\nimport journey from './diagrams/user-journey/styles';\n\nconst themes = {\n flowchart,\n 'flowchart-v2': flowchart,\n sequence,\n gantt,\n classDiagram,\n 'classDiagram-v2': classDiagram,\n class: classDiagram,\n stateDiagram,\n state: stateDiagram,\n git,\n info,\n pie,\n er,\n journey\n};\n\nexport const calcThemeVariables = (theme, userOverRides) => theme.calcColors(userOverRides);\n\nconst getStyles = (type, userStyles, options) => {\n return ` {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n fill: ${options.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ${options.errorBkgColor};\n }\n .error-text {\n fill: ${options.errorTextColor};\n stroke: ${options.errorTextColor};\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ${options.lineColor};\n }\n .marker.cross {\n stroke: ${options.lineColor};\n }\n\n svg {\n font-family: ${options.fontFamily};\n font-size: ${options.fontSize};\n }\n\n ${themes[type](options)}\n\n ${userStyles}\n\n ${type} { fill: apa;}\n`;\n};\n\nexport default getStyles;\n","const getStyles = options =>\n `.actor {\n stroke: ${options.actorBorder};\n fill: ${options.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${options.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${options.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${options.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${options.signalColor};\n }\n\n #arrowhead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .sequenceNumber {\n fill: ${options.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${options.signalColor};\n }\n\n #crosshead path {\n fill: ${options.signalColor};\n stroke: ${options.signalColor};\n }\n\n .messageText {\n fill: ${options.signalTextColor};\n stroke: ${options.signalTextColor};\n }\n\n .labelBox {\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${options.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${options.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${options.labelBoxBorderColor};\n fill: ${options.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${options.noteBorderColor};\n fill: ${options.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${options.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation1 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n\n .activation2 {\n fill: ${options.activationBkgColor};\n stroke: ${options.activationBorderColor};\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `\n .mermaid-main-font {\n font-family: \"trebuchet ms\", verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${options.sectionBkgColor};\n }\n\n .section2 {\n fill: ${options.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${options.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${options.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${options.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${options.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ${options.taskTextDarkColor};\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${options.taskTextDarkColor};\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${options.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${options.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${options.taskBkgColor};\n stroke: ${options.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${options.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${options.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${options.activeTaskBkgColor};\n stroke: ${options.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${options.doneTaskBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${options.critBorderColor};\n fill: ${options.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${options.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor} ;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","const getStyles = () =>\n `\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n }\n`;\n\nexport default getStyles;\n","const getStyles = () => ``;\n\nexport default getStyles;\n","const getStyles = options =>\n `.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n }\n .slice {\n font-family: ${options.fontFamily};\n fill: ${options.textColor};\n // fill: white;\n }\n .legend text {\n fill: ${options.taskTextDarkColor};\n font-family: ${options.fontFamily};\n font-size: 17px;\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `\n .entityBox {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${options.tertiaryColor};\n opacity: 0.3;\n background-color: ${options.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${options.lineColor};\n }\n`;\n\nexport default getStyles;\n","const getStyles = options =>\n `.label {\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n color: ${options.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${options.textColor}\n }\n\n .legend {\n fill: ${options.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${options.textColor}\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${options.secondBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${options.secondBkg};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${options.fillType0 ? `fill: ${options.fillType0}` : ''};\n }\n .task-type-1, .section-type-1 {\n ${options.fillType0 ? `fill: ${options.fillType1}` : ''};\n }\n .task-type-2, .section-type-2 {\n ${options.fillType0 ? `fill: ${options.fillType2}` : ''};\n }\n .task-type-3, .section-type-3 {\n ${options.fillType0 ? `fill: ${options.fillType3}` : ''};\n }\n .task-type-4, .section-type-4 {\n ${options.fillType0 ? `fill: ${options.fillType4}` : ''};\n }\n .task-type-5, .section-type-5 {\n ${options.fillType0 ? `fill: ${options.fillType5}` : ''};\n }\n .task-type-6, .section-type-6 {\n ${options.fillType0 ? `fill: ${options.fillType6}` : ''};\n }\n .task-type-7, .section-type-7 {\n ${options.fillType0 ? `fill: ${options.fillType7}` : ''};\n }\n`;\n\nexport default getStyles;\n","/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](Setup.md?id=render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport Stylis from 'stylis';\nimport { select } from 'd3';\nimport pkg from '../package.json';\n// import * as configApi from './config';\n// // , {\n// // setConfig,\n// // configApi.getConfig,\n// // configApi.updateSiteConfig,\n// // configApi.setSiteConfig,\n// // configApi.getSiteConfig,\n// // configApi.defaultConfig\n// // }\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classRendererV2 from './diagrams/class/classRenderer-v2';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport * as configApi from './config';\nimport getStyles from './styles';\nimport theme from './themes';\n\nfunction parse(text) {\n const graphInit = utils.detectInit(text);\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n const graphType = utils.detectType(text);\n let parser;\n\n logger.debug('Type ' + graphType);\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'classDiagram':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n parser.parser.yy.graphType = graphType;\n parser.parser.yy.parseError = (str, hash) => {\n const error = { str, hash };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport const encodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/style.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function(s) {\n const innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n\n txt = txt.replace(/#\\w+;/g, function(s) {\n const innerTxt = s.substring(1, s.length - 1);\n\n const isInt = /^\\+?\\d+$/.test(innerTxt);\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n\n return txt;\n};\n\nexport const decodeEntities = function(text) {\n let txt = text;\n\n txt = txt.replace(/fl°°/g, function() {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function() {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function() {\n return ';';\n });\n\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\nconst render = function(id, _txt, cb, container) {\n configApi.reset();\n let txt = _txt;\n const graphInit = utils.detectInit(txt);\n if (graphInit) {\n configApi.addDirective(graphInit);\n } else {\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n configApi.addDirective(siteConfig);\n }\n\n const cnf = configApi.getConfig();\n console.log('Render', cnf);\n // Check the maximum allowed text size\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n\n select(container)\n .append('div')\n .attr('id', 'd' + id)\n .attr('style', 'font-family: ' + cnf.fontFamily)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n } else {\n const existingSvg = document.getElementById(id);\n if (existingSvg) {\n existingSvg.remove();\n }\n const element = document.querySelector('#' + 'd' + id);\n if (element) {\n element.remove();\n }\n\n select('body')\n .append('div')\n .attr('id', 'd' + id)\n .append('svg')\n .attr('id', id)\n .attr('width', '100%')\n .attr('xmlns', 'http://www.w3.org/2000/svg')\n .append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n\n const element = select('#d' + id).node();\n const graphType = utils.detectType(txt);\n\n // insert inline style into svg\n const svg = element.firstChild;\n const firstChild = svg.firstChild;\n\n let userStyles = '';\n // user provided theme CSS\n if (cnf.themeCSS !== undefined) {\n userStyles += `\\n${cnf.themeCSS}`;\n }\n // user provided theme CSS\n if (cnf.fontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-font-family: ${cnf.fontFamily}}`;\n }\n // user provided theme CSS\n if (cnf.altFontFamily !== undefined) {\n userStyles += `\\n:root { --mermaid-alt-font-family: ${cnf.altFontFamily}}`;\n }\n\n // classDef\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n const classes = flowRenderer.getClasses(txt);\n for (const className in classes) {\n userStyles += `\\n.${className} > * { ${classes[className].styles.join(\n ' !important; '\n )} !important; }`;\n if (classes[className].textStyles) {\n userStyles += `\\n.${className} tspan { ${classes[className].textStyles.join(\n ' !important; '\n )} !important; }`;\n }\n }\n }\n const stylis = new Stylis();\n const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables));\n\n const style1 = document.createElement('style');\n style1.innerHTML = rules;\n svg.insertBefore(style1, firstChild);\n\n // Verify that the generated svgs are ok before removing this\n\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error(\n '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.'\n );\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n sequenceRenderer.draw(txt, id);\n break;\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n case 'classDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRendererV2.setConf(cnf.class);\n classRendererV2.draw(txt, id);\n break;\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(`[id=\"${id}\"]`)\n .selectAll('foreignobject > *')\n .attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n\n // Fix for when the base tag is used\n let svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n const node = select('#d' + id).node();\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id)\n .node()\n .remove();\n }\n\n return svgCode;\n};\n\nlet currentDirective = {};\n\nconst parseDirective = function(p, statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n case 'close_directive':\n handleDirective(p, currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\n `Error while rendering sequenceDiagram directive: ${statement} jison context: ${context}`\n );\n logger.error(error.message);\n }\n};\n\nconst handleDirective = function(p, directive, type) {\n logger.debug(`Directive type=${directive.type} with args:`, directive.args);\n switch (directive.type) {\n case 'init':\n case 'initialize': {\n ['config'].forEach(prop => {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n\n reinitialize(directive.args);\n configApi.addDirective(directive.args);\n break;\n }\n case 'wrap':\n case 'nowrap':\n if (p && p['setWrap']) {\n p.setWrap(directive.type === 'wrap');\n }\n break;\n default:\n logger.warn(\n `Unhandled directive: source: '%%{${directive.type}: ${JSON.stringify(\n directive.args ? directive.args : {}\n )}}%%`,\n directive\n );\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n `mermaidAPI.reinitialize: v${pkg.version}`,\n JSON.stringify(options),\n options.themeVariables.primaryColor;\n // // if (options.theme && theme[options.theme]) {\n // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n // // }\n // // Set default options\n // const config =\n // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig();\n // updateRendererConfigs(config);\n // setLogLevel(config.logLevel);\n // logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n console.trace(`mermaidAPI.initialize: v${pkg.version} ${options}`);\n // Set default options\n\n if (options && options.theme && theme[options.theme]) {\n // Todo merge with user options\n options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables);\n } else {\n if (options) options.themeVariables = theme.default.getThemeVariables();\n }\n\n const config =\n typeof options === 'object' ? configApi.setSiteConfig(options) : configApi.getSiteConfig();\n\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n}\n\nconst mermaidAPI = Object.freeze({\n render,\n parse,\n parseDirective,\n initialize,\n reinitialize,\n getConfig: configApi.getConfig,\n getSiteConfig: configApi.getSiteConfig,\n updateSiteConfig: configApi.updateSiteConfig,\n reset: () => {\n console.warn('reset');\n configApi.reset();\n const siteConfig = configApi.getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: () => {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(configApi.getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\n\nsetLogLevel(configApi.getConfig().logLevel);\nconfigApi.reset(configApi.getConfig());\n\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *
\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */\n","/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\nconst init = function() {\n const conf = mermaidAPI.getConfig();\n console.log('Starting rendering diagrams (init) - mermaid.init', conf);\n let nodes;\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n }\n\n // if last argument is a function this is the callback function\n let callback;\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n nodes =\n nodes === undefined\n ? document.querySelectorAll('.mermaid')\n : typeof nodes === 'string'\n ? document.querySelectorAll(nodes)\n : nodes instanceof window.Node\n ? [nodes]\n : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.updateSiteConfig({ startOnLoad: mermaid.startOnLoad });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.updateSiteConfig({ gantt: mermaid.ganttConfig });\n }\n\n let txt;\n\n for (let i = 0; i < nodes.length; i++) {\n const element = nodes[i];\n\n /*! Check if previously processed */\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n continue;\n }\n\n const id = `mermaid-${Date.now()}`;\n\n // Fetch the graph definition including tags\n txt = element.innerHTML;\n\n // transforms the html to pure text\n txt = decode(txt)\n .trim()\n .replace(//gi, '
');\n\n const init = utils.detectInit(txt);\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(\n id,\n txt,\n (svgCode, bindFunctions) => {\n element.innerHTML = svgCode;\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n if (bindFunctions) bindFunctions(element);\n },\n element\n );\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n if (this.parseError) {\n this.parseError(e);\n }\n }\n }\n};\n\nconst initialize = function(config) {\n mermaidAPI.reset();\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n mermaidAPI.initialize(config);\n // mermaidAPI.reset();\n};\n\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\nconst contentLoaded = function() {\n let config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener(\n 'load',\n function() {\n contentLoaded();\n },\n false\n );\n}\n\nconst mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n\n mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n\n init,\n initialize,\n\n contentLoaded\n};\n\nexport default mermaid;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/8.6.0_docs.md b/docs/8.6.0_docs.md index a8882a4274..137f2b6294 100644 --- a/docs/8.6.0_docs.md +++ b/docs/8.6.0_docs.md @@ -25,7 +25,7 @@ The three levels of are Configuration, Global, Site and Current. # Limits to Modifying Configurations -secure Array +**secure Array** | Parameter | Description |Type | Required | Values| | --- | --- | --- | --- | --- | diff --git a/docs/Setup.md b/docs/Setup.md index 65df501ab8..556478d8c7 100644 --- a/docs/Setup.md +++ b/docs/Setup.md @@ -11,730 +11,105 @@ It is is then up to the user of the API to make use of the svg, either insert it In addition to the render function, a number of behavioral configuration options are available. -## Configuration - -**Configuration methods in Mermaid version 8.6.0 have been updated, to learn more\[[click here][2]].** - -## **What follows are config instructions for older versions** - -These are the default options which can be overridden with the initialization call like so: -**Example 1:** - -
-mermaid.initialize({
-  flowchart:{
-    htmlLabels: false
-  }
-});
-
- -**Example 2:** - -
-<script>
-  var config = {
-    startOnLoad:true,
-    flowchart:{
-      useMaxWidth:true,
-      htmlLabels:true,
-      curve:'cardinal',
-    },
-
-    securityLevel:'loose',
-  };
-  mermaid.initialize(config);
-</script>
-
- -A summary of all options and their defaults is found [here][3]. A description of each option follows below. - -## theme - -theme , the CSS style sheet - -theme , the CSS style sheet - -| Parameter | Description | Type | Required | Values | -| --------- | --------------- | ------ | -------- | ---------------------------------------------------- | -| Theme | Built in Themes | String | Optional | Values include, default, forest, dark, neutral, null | - -**Notes:**To disable any pre-defined mermaid theme, use "null". - -
- "theme": "forest",
- "themeCSS": ".node rect { fill: red; }"
-
- -## fontFamily - -| Parameter | Description | Type | Required | Values | -| ---------- | ------------------------------------------------------ | ------ | -------- | ----------------------------- | -| fontFamily | specifies the font to be used in the rendered diagrams | String | Required | Verdana, Arial, Trebuchet MS, | - -\*\*notes: Default value is \\"trebuchet ms\\". - -## logLevel - -| Parameter | Description | Type | Required | Values | -| --------- | ----------------------------------------------------- | ------ | -------- | ------------- | -| logLevel | This option decides the amount of logging to be used. | String | Required | 1, 2, 3, 4, 5 | - -**Notes:** - -- debug: 1. -- info: 2. -- warn: 3. -- error: 4. -- fatal: 5(default). - -## securityLevel - -| Parameter | Description | Type | Required | Values | -| ------------- | --------------------------------- | ------ | -------- | ------------------------- | -| securitylevel | Level of trust for parsed diagram | String | Required | Strict, Loose, antiscript | - -\*\*Notes: - -- **strict**: (**default**) tags in text are encoded, click functionality is disabeled -- **loose**: tags in text are allowed, click functionality is enabled -- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled - -## startOnLoad - -| Parameter | Description | Type | Required | Values | -| ----------- | --------------------------------------------- | ------- | -------- | ----------- | -| startOnLoad | Dictates whether mermaind starts on Page load | Boolean | Required | True, False | - -**Notes:** -**Default value: true** - -## arrowMarkerAbsolute - -| Parameter | Description | Type | Required | Values | -| ------------------- | ---------------------------------------------------------------------------- | ------- | -------- | ----------- | -| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | - -## Notes\*\*: This matters if you are using base tag settings. - -**Default value: false**. - -## secure - -This option controls which currentConfig keys are considered _secure_ and can only be changed via -call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to -the `secure` keys in the current currentConfig. This prevents malicious graph directives from -overriding a site's default security. - -## flowchart - -The object containing configurations specific for flowcharts - -### diagramPadding - -| Parameter | Description | Type | Required | Values | -| -------------- | ----------------------------------------------- | ------- | -------- | ------------------ | -| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - -**Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels -**Default value: 8**. - -### htmlLabels - -| Parameter | Description | Type | Required | Values | -| ---------- | -------------------------------------------------------------------------------------------- | ------- | -------- | ----------- | -| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean | Required | True, False | - -**Notes: Default value: true**. - -### nodeSpacing - -| Parameter | Description | Type | Required | Values | -| ----------- | --------------------------------------------------- | ------- | -------- | -------------------- | -| nodeSpacing | Defines the spacing between nodes on the same level | Integer | Required | Any positive Numbers | - -**Notes: -Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** -**Default value 50**. - -### rankSpacing - -| Parameter | Description | Type | Required | Values | -| ----------- | ----------------------------------------------------- | ------- | -------- | -------------------- | -| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required | Any Positive Numbers | - -**Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. -**Default value 50\*\*. - -### curve - -| Parameter | Description | Type | Required | Values | -| --------- | -------------------------------------------------- | ------ | -------- | ----------------------- | -| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal | - -**Notes: -Default Vaue: Linear** - -## sequence - -The object containing configurations specific for sequence diagrams - -### activationWidth - -widt of the activation rect -**Default value 10**. - -### diagramMarginX - -| Parameter | Description | Type | Required | Values | -| -------------- | ---------------------------------------------------- | ------- | -------- | ------------------- | -| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | - -**Notes:** -**Default value 50**. - -### diagramMarginY - -| Parameter | Description | Type | Required | Values | -| -------------- | ------------------------------------------------- | ------- | -------- | ------------------- | -| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values | - -**Notes:** -**Default value 10**. - -### actorMargin - -| Parameter | Description | Type | Required | Values | -| ----------- | ---------------------- | ------- | -------- | ------------------ | -| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 50**. - -### width - -| Parameter | Description | Type | Required | Values | -| --------- | -------------------- | ------- | -------- | ------------------ | -| width | Width of actor boxes | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 150**. - -### height - -| Parameter | Description | Type | Required | Values | -| --------- | --------------------- | ------- | -------- | ------------------ | -| height | Height of actor boxes | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 65**.. - -### boxMargin - -| Parameter | Description | Type | Required | Values | -| --------- | ------------------------ | ------- | -------- | ------------------ | -| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - -**Notes:** - -**Default value 10**. - -### boxTextMargin - -| Parameter | Description | Type | Required | Values | -| ------------- | -------------------------------------------- | ------- | -------- | ------------------ | -| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | - -**Notes:** - -**Default value 5**. - -### noteMargin - -| Parameter | Description | Type | Required | Values | -| ---------- | -------------------- | ------- | -------- | ------------------ | -| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - -**Notes:** - -**Default value 10**. - -### messageMargin - -| Parameter | Description | Type | Required | Values | -| ------------- | ----------------------- | ------- | -------- | ------------------ | -| messageMargin | Space between messages. | Integer | Required | Any Positive Value | - -**Notes:** - -Space between messages. -**Default value 35**. - -### messageAlign - -| Parameter | Description | Type | Required | Values | -| ------------ | --------------------------- | ------- | -------- | ------------------- | -| messageAlign | Multiline message alignment | Integer | Required | left, center, right | - -**Notes:**center **default** - -### mirrorActors - -| Parameter | Description | Type | Required | Values | -| ------------ | ---------------------------- | ------- | -------- | ----------- | -| mirrorActors | mirror actors under diagram. | Boolean | Required | True, False | - -**Notes:** - -**Default value true**. - -### bottomMarginAdj - -| Parameter | Description | Type | Required | Values | -| --------------- | ------------------------------------------- | ------- | -------- | ------------------ | -| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | - -**Notes:**Depending on css styling this might need adjustment. -**Default value 1**. - -### useMaxWidth - -| Parameter | Description | Type | Required | Values | -| ----------- | ----------- | ------- | -------- | ----------- | -| useMaxWidth | See Notes | Boolean | Required | True, False | - -**Notes:** -when this flag is set to true, the height and width is set to 100% and is then scaling with the -available space. If set to false, the absolute space required is used. -**Default value: True**. - -### rightAngles - -| Parameter | Description | Type | Required | Values | -| ----------- | ------------------------------------ | ------- | -------- | ----------- | -| rightAngles | display curve arrows as right angles | Boolean | Required | True, False | - -**Notes:** - -This will display arrows that start and begin at the same node as right angles, rather than a curve -**Default value false**. - -### showSequenceNumbers - -| Parameter | Description | Type | Required | Values | -| ------------------- | ------------------------------- | ------- | -------- | ----------- | -| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | - -**Notes:** -**Default value false**. - -### actorFontSize - -| Parameter | Description | Type | Required | Values | -| ------------- | -------------------------------------------------- | ------- | -------- | ------------------ | -| actorFontSize | This sets the font size of the actor's description | Integer | Require | Any Positive Value | - -**Notes:** -**Default value 14**.. - -### actorFontFamily - -| Parameter | Description | Type | Required | Values | -| --------------- | ---------------------------------------------------- | ---- | -------- | --------------------- | -| actorFontFamily | This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | - -**Notes:** -**Default value "Open-Sans", "sans-serif"**. - -### actorFontWeight - -This sets the font weight of the actor's description -\*\*Default value 400. - -### noteFontSize - -| Parameter | Description | Type | Required | Values | -| ------------ | ------------------------------------------------ | ------- | -------- | ------------------ | -| noteFontSize | This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 14**.. - -### noteFontFamily - -| Parameter | Description | Type | Required | Values | -| -------------- | -------------------------------------------------- | ------ | -------- | ---------------------------- | -| noteFontFamily | This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | - -**Notes:** -**Default value: trebuchet ms **. - -### noteFontWeight - -This sets the font weight of the note's description -\*\*Default value 400. - -### noteAlign - -| Parameter | Description | Type | Required | Values | -| --------- | ----------------------------------------------------- | ------ | -------- | ------------------- | -| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right | - -**Notes:** -**Default value center**. - -### messageFontSize - -| Parameter | Description | Type | Required | Values | -| --------------- | ------------------------------------------ | ------- | -------- | ------------------- | -| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | - -**Notes:** -**Default value 16**. - -### messageFontFamily - -| Parameter | Description | Type | Required | Values | -| ----------------- | -------------------------------------------- | ------ | -------- | ---------------------------- | -| messageFontFamily | This sets the font family of actor messages. | String | Required | trebuchet ms", verdana, aria | - -**Notes:** -**Default value:"trebuchet ms**. - -### messageFontWeight - -This sets the font weight of the message's description -\*\*Default value 400. - -### wrap - -This sets the auto-wrap state for the diagram -\*\*Default value false. - -### wrapPadding - -This sets the auto-wrap padding for the diagram (sides only) -\*\*Default value 10. - -### labelBoxWidth - -This sets the width of the loop-box (loop, alt, opt, par) -\*\*Default value 50. - -### labelBoxHeight - -This sets the height of the loop-box (loop, alt, opt, par) -\*\*Default value 20. - -## gantt - -The object containing configurations specific for gantt diagrams\* - -### titleTopMargin - -### titleTopMargin - -| Parameter | Description | Type | Required | Values | -| -------------- | ---------------------------------------------- | ------- | -------- | ------------------ | -| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 25**. - -### barHeight - -| Parameter | Description | Type | Required | Values | -| --------- | ----------------------------------- | ------- | -------- | ------------------ | -| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 20**. - -### barGap - -| Parameter | Description | Type | Required | Values | -| --------- | ----------------------------------------------------------------- | ------- | -------- | ------------------ | -| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional | Any Positive Value | - -**Notes:** -**Default value 4**. - -### topPadding - -| Parameter | Description | Type | Required | Values | -| ---------- | -------------------------------------------------------------------------- | ------- | -------- | ------------------ | -| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 50**. - -### leftPadding - -| Parameter | Description | Type | Required | Values | -| ----------- | ----------------------------------------------------------------------- | ------- | -------- | ------------------ | -| leftPadding | The space allocated for the section name to the left of the activities. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 75**. - -### gridLineStartPadding - -| Parameter | Description | Type | Required | Values | -| -------------------- | --------------------------------------------- | ------- | -------- | ------------------ | -| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 35**. - -### fontSize - -| Parameter | Description | Type | Required | Values | -| --------- | ----------- | ------- | -------- | ------------------ | -| fontSize | Font size | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 11**. - -### fontFamily - -| Parameter | Description | Type | Required | Values | -| ---------- | ----------- | ------ | -------- | ------------------------- | -| fontFamily | font Family | string | required | "Open-Sans", "sans-serif" | - -**Notes:** - -**Default value '"Open-Sans", "sans-serif"'**. - -### numberSectionStyles - -| Parameter | Description | Type | Required | Values | -| ------------------- | ---------------------------------------- | ------- | -------- | ------------------ | -| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | - -**Notes:** -**Default value 4**. - -### axisFormat - -| Parameter | Description | Type | Required | Values | -| ---------- | ---------------------------- | ---- | -------- | ---------------- | -| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | - -**Notes:** - -This might need adjustment to match your locale and preferences -**Default value '%Y-%m-%d'**. - -## journey - -The object containing configurations specific for journey diagrams - -### diagramMarginX - -| Parameter | Description | Type | Required | Values | -| -------------- | ---------------------------------------------------- | ------- | -------- | ------------------ | -| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 50**. - -### diagramMarginY - -| Parameter | Description | Type | Required | Values | -| -------------- | -------------------------------------------------- | ------- | -------- | ------------------ | -| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 10**.. - -### actorMargin - -| Parameter | Description | Type | Required | Values | -| ----------- | ---------------------- | ------- | -------- | ------------------ | -| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 50**. - -### width - -| Parameter | Description | Type | Required | Values | -| --------- | -------------------- | ------- | -------- | ------------------ | -| width | Width of actor boxes | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 150**. - -### height - -| Parameter | Description | Type | Required | Values | -| --------- | --------------------- | ------- | -------- | ------------------ | -| height | Height of actor boxes | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 65**. - -### boxMargin - -| Parameter | Description | Type | Required | Values | -| --------- | ------------------------ | ------- | -------- | ------------------ | -| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 10**. - -### boxTextMargin - -| Parameter | Description | Type | Required | Values | -| ------------- | -------------------------------------------- | ------- | -------- | ------------------ | -| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | - -**Notes:** - -### noteMargin - -| Parameter | Description | Type | Required | Values | -| ---------- | -------------------- | ------- | -------- | ------------------ | -| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - -**Notes:** -**Default value 10**. +## setSiteConfig -### messageMargin +## setSiteConfig -| Parameter | Description | Type | Required | Values | -| ------------- | ----------------------- | ------- | -------- | ------------------ | -| messageMargin | Space between messages. | Integer | Required | Any Positive Value | +| Function | Description | Type | Values | +| ------------- | ------------------------------------- | ----------- | --------------------------------------- | +| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array | **Notes:** +Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset +the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig +to the defaultConfig +Note: currentConfig is set in this function +\*Default value: At default, will mirror Global Config\*\* -Space between messages. -**Default value 35**. - -### messageAlign - -| Parameter | Description | Type | Required | Values | -| ------------ | --------------------------- | ---- | -------- | ------------------- | -| messageAlign | Multiline message alignment | 3 | 4 | left, center, right | - -**Notes:**default:center\*\* - -### bottomMarginAdj - -| Parameter | Description | Type | Required | Values | -| --------------- | ------------------------------------------- | ------- | -------- | ------------------ | -| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | - -**Notes:**Depending on css styling this might need adjustment. -**Default value 1**. - -### useMaxWidth - -| Parameter | Description | Type | Required | Values | -| ----------- | ----------- | ------- | -------- | ----------- | -| useMaxWidth | See notes | Boolean | 4 | True, False | - -**Notes:**when this flag is set the height and width is set to 100% and is then scaling with the -available space if not the absolute space required is used. - -**Default value true**. +### Parameters -### rightAngles +- `conf` the base currentConfig to use as siteConfig -| Parameter | Description | Type | Required | Values | -| ----------- | ---------------------------------- | ---- | -------- | ----------- | -| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | +Returns **any** the siteConfig -**Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves -**Default value false**. +## getSiteConfig -## er +## getSiteConfig -The object containing configurations specific for entity relationship diagrams +| Function | Description | Type | Values | +| ------------- | ------------------------------------------------- | ----------- | --------------------------------- | +| setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig | -### diagramPadding +**Notes**: +Returns **any** values in siteConfig. -| Parameter | Description | Type | Required | Values | -| -------------- | ----------------------------------------------- | ------- | -------- | ------------------ | -| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | +Returns **any** -**Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels -**Default value: 20**. +## setConfig -### layoutDirection +## setConfig -| Parameter | Description | Type | Required | Values | -| --------------- | ---------------------------------------- | ------ | -------- | -------------------- | -| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | +| Function | Description | Type | Values | +| ------------- | ------------------------------------- | ----------- | --------------------------------------- | +| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array | -**Notes:** -'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. -T = top, B = bottom, L = left, and R = right. -**Default value: TB **. +**Notes**: +Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any +values found in conf with key found in siteConfig.secure will be replaced with the corresponding +siteConfig value. -### minEntityWidth +### Parameters -| Parameter | Description | Type | Required | Values | -| -------------- | ----------------------------------- | ------- | -------- | ------------------ | -| minEntityWidth | The mimimum width of an entity box, | Integer | Required | Any Positive Value | +- `conf` the potential currentConfig -**Notes:**expressed in pixels -**Default value: 100**. +Returns **any** the currentConfig merged with the sanitized conf -### minEntityHeight +## getConfig -| Parameter | Description | Type | Required | Values | -| --------------- | ------------------------------------ | ------- | -------- | ------------------ | -| minEntityHeight | The minimum height of an entity box, | Integer | 4 | Any Positive Value | +## getConfig -**Notes:**expressed in pixels -**Default value: 75 ** +| Function | Description | Type | Return Values | +| --------- | ------------------------- | ----------- | ----------------------------- | +| getConfig | Obtains the currentConfig | Get Request | Any Values from currentConfig | -### entityPadding +**Notes**: +Returns **any** the currentConfig -| Parameter | Description | Type | Required | Values | -| ------------- | ------------------------------------------------------------ | ------- | -------- | ------------------ | -| entityPadding | minimum internal padding betweentext in box and box borders | Integer | 4 | Any Positive Value | +Returns **any** the currentConfig -**Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. -**Default value: 15 ** +## sanitize -### stroke +## sanitize -| Parameter | Description | Type | Required | Values | -| --------- | ----------------------------------- | ------ | -------- | -------------------- | -| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | +| Function | Description | Type | Values | +| -------- | -------------------------------------- | ----------- | ------ | +| sanitize | Sets the siteConfig to desired values. | Put Request | None | -**Default value: gray ** +Ensures options parameter does not attempt to override siteConfig secure keys +Note: modifies options in-place -### fill +### Parameters -| Parameter | Description | Type | Required | Values | -| --------- | -------------------------- | ------ | -------- | -------------------- | -| fill | Fill color of entity boxes | String | 4 | Any recognized color | +- `options` the potential setConfig parameter -**Notes:** -**Default value:'honeydew'** +## reset -### fontSize +## reset -| Parameter | Description | Type | Required | Values | -| --------- | ------------------- | ------- | -------- | ------------------ | -| fontSize | Font Size in pixels | Integer | | Any Positive Value | +| Function | Description | Type | Required | Values | +| -------- | ---------------------------- | ----------- | -------- | ------ | +| reset | Resets currentConfig to conf | Put Request | Required | None | -**Notes:**Font size (expressed as an integer representing a number of pixels) -**Default value: 12 ** +| Parameter | Description | Type | Required | Values | +| --------- | ------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- | +| conf | base set of values, which currentConfig coul be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array | -### useMaxWidth +\*Notes : +(default: current siteConfig ) (optional, default `getSiteConfig()`) -| Parameter | Description | Type | Required | Values | -| ----------- | ----------- | ------- | -------- | ----------- | -| useMaxWidth | See Notes | Boolean | Required | true, false | +### Parameters -**Notes:** -When this flag is set to true, the diagram width is locked to 100% and -scaled based on available space. If set to false, the diagram reserves its -absolute width. -**Default value: true**. +- `conf` the base currentConfig to reset to (default: current siteConfig ) (optional, default `getSiteConfig()`) ## render @@ -826,108 +201,4 @@ mermaidAPI.initialize({ </script> -## setSiteConfig - -## setSiteConfig - -| Function | Description | Type | Values | -| ------------- | ------------------------------------- | ----------- | --------------------------------------- | -| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array | - -**Notes:** -Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset -the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig -to the defaultConfig -Note: currentConfig is set in this function -\*Default value: At default, will mirror Global Config\*\* - -### Parameters - -- `conf` the base currentConfig to use as siteConfig - -Returns **any** the siteConfig - -## getSiteConfig - -## getSiteConfig - -| Function | Description | Type | Values | -| ------------- | ------------------------------------------------- | ----------- | --------------------------------- | -| setSiteConfig | Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig | - -**Notes**: -Returns **any** values in siteConfig. - -Returns **any** - -## setConfig - -## setConfig - -| Function | Description | Type | Values | -| ------------- | ------------------------------------- | ----------- | --------------------------------------- | -| setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array | - -**Notes**: -Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any -values found in conf with key found in siteConfig.secure will be replaced with the corresponding -siteConfig value. - -### Parameters - -- `conf` the potential currentConfig - -Returns **any** the currentConfig merged with the sanitized conf - -## getConfig - -## getConfig - -| Function | Description | Type | Return Values | -| --------- | ------------------------- | ----------- | ----------------------------- | -| getConfig | Obtains the currentConfig | Get Request | Any Values from currentConfig | - -**Notes**: -Returns **any** the currentConfig - -Returns **any** the currentConfig - -## sanitize - -## sanitize - -| Function | Description | Type | Values | -| -------- | -------------------------------------- | ----------- | ------ | -| sanitize | Sets the siteConfig to desired values. | Put Request | None | - -Ensures options parameter does not attempt to override siteConfig secure keys -Note: modifies options in-place - -### Parameters - -- `options` the potential setConfig parameter - -## reset - -## reset - -| Function | Description | Type | Required | Values | -| -------- | ---------------------------- | ----------- | -------- | ------ | -| reset | Resets currentConfig to conf | Put Request | Required | None | - -| Parameter | Description | Type | Required | Values | -| --------- | ------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- | -| conf | base set of values, which currentConfig coul be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array | - -\*Notes : -(default: current siteConfig ) (optional, default `getSiteConfig()`) - -### Parameters - -- `conf` the base currentConfig to reset to (default: current siteConfig ) (optional, default `getSiteConfig()`) - [1]: Setup.md?id=render - -[2]: 8.6.0_docs.md - -[3]: #mermaidapi-configuration-defaults diff --git a/docs/developer-docs/configuration.md b/docs/developer-docs/configuration.md new file mode 100644 index 0000000000..34c88212d9 --- /dev/null +++ b/docs/developer-docs/configuration.md @@ -0,0 +1,30 @@ +# Configuration + +When mermaid starts configuration is extracted to a configuration to be used for a diagram. There a 3 sources for configuration: + +* The default configuration +* Overrides on the site level, set is set by the initialize call and will be applied for all diagrams in the site/app. The term for this is the **siteConfig**. +* Directives - diagram authors can update select configuration parameters directly int he diagram code via directives and these are applied to the render config. + +**The render config** is configration that is used when rendering by applying these configurations. + +## Theme configuration + +## Starting mermaid + +```mermaid +sequenceDiagram + Site->>mermaid: initialize + Site->>mermaid: content loaded + mermaid->>mermaidAPI: init +``` + +## Initialize + +Intialize call is calloed **only once**. It is called by the site integrator in order to override the default configuration on a site level. + +## configApi.reset + +This method resets the configuration for a diagram to the site configuration, the configuration provided by the site integrator. Before each rendering of a diagram reset is called in the very beginning of render. + +## \ No newline at end of file diff --git a/docs/flowchart.md b/docs/flowchart.md index e00fbe1ff7..e9a9021b36 100644 --- a/docs/flowchart.md +++ b/docs/flowchart.md @@ -562,6 +562,23 @@ graph LR ?> Due to limitations with how Docsify handles JavaScript callback functions, an alternate working demo for the above code can be viewed at [this jsfiddle](https://jsfiddle.net/s37cjoau/3/). +Links are opened in the same browser tab/window by default. It is possible to change this by adding a link target to the click definition (`_self`, `_blank`, `_parent` and `_top` are supported): +``` +graph LR; + A-->B; + B-->C; + click A "http://www.github.com" _blank + click B "http://www.github.com" "Open this in a new tab" _blank +``` + +```mermaid +graph LR; + A-->B; + B-->C; + click A "http://www.github.com" _blank + click B "http://www.github.com" "Open this in a new tab" _blank +``` + Beginners tip, a full example using interactive links in a html context: ``` @@ -623,13 +640,13 @@ It is possible to apply specific styles such as a thicker border or a different graph LR id1(Start)-->id2(Stop) style id1 fill:#f9f,stroke:#333,stroke-width:4px - style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5, 5 + style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 ``` ```mermaid graph LR id1(Start)-->id2(Stop) style id1 fill:#f9f,stroke:#333,stroke-width:4px - style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5, 5 + style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 ``` diff --git a/docs/theming.md b/docs/theming.md index a7d0c9b2a4..6610c7359c 100644 --- a/docs/theming.md +++ b/docs/theming.md @@ -1,14 +1,25 @@ # Theming -Mermaid as a system for theming in place. With it a site integrator can override a vast majority of attributes used when rendering a diagram. +**Edit this Page** [![N|Solid](./img/GitHub-Mark-32px.png)](https://github.com/mermaid-js/mermaid/blob/develop/docs/theming.md) -The settings for a theme can be set globally for the site with the initialize call. The example below highlights how that can look: +With Version 8.7.0 Mermaid comes out with a system for dynamic and integrated setting of the diagram's theme. The objective of this is to increase the customizability of mermaid, by allowing for the customization of themes through the `%%init%%` directive and `initialize`. With it a site integrator can override a vast majority of attributes used when rendering a diagram. +Themes, for all intents and purposes also follow the Levels of Configuration and employ `directives` to modify configurations, as they were introduced in Version [8.6.0](./8.6.0_docs.md). + +## Site-wide Themes +Site-wide themes are still declared via `initialize` by site owners. + +Example of `Initalize` call: ``` - // example + mermaidAPI.initialize({ + 'securityLevel': 'loose', 'theme': 'base' + }); ``` +**Notes**: Only site owners can use the `mermaidAPI.initialize` call to set values. Site-Users will have to use `%%init%%` to modify configurations, everytime they create a diagram. + +## Themes at the Local or Current Level +When Generating a diagram using on a webpage that supports mermaid. It is also possible to override site-wide theme settings locally, for a specific diagram, using directives, as long as it is not prohibited by the `secure` array. -It is also possible to override theme settings locally in a diagram using directives. ``` %%{init: {'theme':'base'}}%% @@ -16,15 +27,11 @@ It is also possible to override theme settings locally in a diagram using direct a --> b ``` -The easiest way to make a custom theme is to start with the base theme, the theme named base and just modify these variables: -* primaryColor - the base color for the theme -More specific color variables it is possible to change: -* lineColor -* textColor +Here is an example of how `%%init%%` can set the theme to 'base', this assumes that `themeVariables` are set to default: -Here is an example of a showcase flowchart with theme set to base, with the default variables set: -```mermaid +``` +mermaid %%{init: {'theme':'base'}}%% graph TD A[Christmas] -->|Get money| B(Go shopping) @@ -42,8 +49,112 @@ Here is an example of a showcase flowchart with theme set to base, with the defa end ``` -Here is an example of overriding the primary color and giving everything a little different look. -```mermaid +# Making a Custom Theme with `themeVariables` + +The easiest way to make a custom theme is to start with the base theme, and just modify theme variables through `themeVariables`, via `%%init%%`. + +| Parameter | Description | Type | Required | Objects contained | +| -------------- | ------------------------------------------------------------------ | ----- | -------- | ---------------------------------- | +| themeVariables | Array containing objects, modifiable with the `%%init%%` directive | Array | Required | primaryColor, lineColor, textColor | + +**Notes**: +Leaving it empty will set the values to default +* primaryColor- the base color for the theme +* lineColor- the line color for the theme +* textColor-the text color for the theme + +The minimum required to create a custom rendering would be to change the primary color. If you are using a dark background, set dark mode to true as this will affect how colors are beeing calculated. It is possiebl to override the calculations using the variable names below. + +Reference over theme variables used in the base theme and their effect: + +| name | Default value | Calc | Description | +| -------------------- | ------------------------------ | ---- | -------------------------------------------------------------------------------------------------------------------------------- | +| darkMode | false | | Helps the theme to know how to calculate colors. | +| background | #f4f4f4 | | Used to calculate color for items that should either be background colored or contrasting to the background. | +| primaryColor | #fff4dd | | Color to be used as background in nodes, other colors will be derived from this | +| fontFamily | "trebuchet ms", verdana, arial | | | +| fontSize | 16px | | | +| secondaryColor | based on primaryColor | * | | +| tertiaryColor | based on primaryColor | * | | +| primaryBorderColor | based on primaryColor | * | Color to be used as border in nodes using primaryColor | +| primaryTextColor | based on darkMode #ddd/#333 | * | Color to be used as text color in nodesusing primaryColor | +| secondaryBorderColor | based on secondaryColor | * | Color to be used as border in nodes using secondaryColor | +| secondaryTextColor | based on secondaryColor | * | Color to be used as text color in nodesusing secondaryColor | +| tertiaryBorderColor | based on tertiaryColor | * | Color to be used as border in nodes using tertiaryColor | +| tertiaryTextColor | based on tertiaryColor | * | Color to be used as text color in nodesusing tertiaryColor | +| noteBkgColor | #fff5ad | | Color used as background in notes | +| noteTextColor | #333 | | Text color in note rects. | +| noteBorderColor | based on noteBkgColor | * | Border color in note rects. | +| lineColor | based on background | * | | +| textColor | based on primaryTextColor | * | Text in diagram over the background for instance text on labels and on signals in sequence diagram or the title in gantt diagram | +| mainBkg | based on primaryColor | * | Background in flowchart objects like rects/circles, class diagram classes, sequence diagram etc | +| errorBkgColor | tertiaryColor | * | Color for syntax error message | +| errorTextColor | tertiaryTextColor | * | Color for syntax error message | + +## Flowchart + +| name | Default value | Calc | Description | +| -------------------- | ------------------------------ | ---- | -------------------------------------------------------------------------------------------------------------------------------- | +| nodeBorder | primaryBorderColor | * | | +| clusterBkg | tertiaryColor | * | Background in subgraphs | +| clusterBorder | tertiaryBorderColor | * | | +| defaultLinkColor | lineColor | * | | +| titleColor | tertiaryTextColor | * | | +| edgeLabelBackground | based on secondaryColor | * | | +| nodeTextColor | primaryTextColor | * | | + +# sequence diagram +| name | Default value | Calc | Description | +| --------------------- | ----------------------- | ---- | ----------- | +| actorBorder | primaryBorderColor | * | | +| actorBkg | mainBkg | * | | +| actorTextColor | primaryTextColor | * | | +| actorLineColor | grey | * | | +| labelBoxBkgColor | actorBkg | * | | +| signalColor | textColor | * | | +| signalTextColor | textColor | * | | +| labelBoxBorderColor | actorBorder | * | | +| labelTextColor | actorTextColor | * | | +| loopTextColor | actorTextColor | * | | +| activationBorderColor | based on secondaryColor | * | | +| activationBkgColor | secondaryColor | * | | +| sequenceNumberColor | based on lineColor | * | | + +# state colors + +| name | Default value | Calc | Description | +| ------------- | ---------------- | ---- | ------------------------------------------- | +| labelColor | primaryTextColor | * | | +| altBackground | tertiaryColor | * | Used for background in deep composit states | + +# class colors + +| name | Default value | Calc | Description | +| --------- | ------------- | ---- | ---------------------- | +| classText | textColor | * | Text in class diagrams | + +# User journey colors + +| name | Default value | Calc | Description | +| --------- | ------------------------ | ---- | --------------------------------------- | +| fillType0 | primaryColor | * | Fill for 1st section in journey diagram | +| fillType1 | secondaryColor | * | Fill for 2nd section in journey diagram | +| fillType2 | based on primaryColor | * | Fill for 3rd section in journey diagram | +| fillType3 | based on secondaryColor | * | Fill for 4th section in journey diagram | +| fillType4 | based on primaryColor | * | Fill for 5th section in journey diagram | +| fillType5 | based on secondaryColor | * | Fill for 6th section in journey diagram | +| fillType6 | based on primaryColor | * | Fill for 7th section in journey diagram | +| fillType7 | based on secondaryColor | * | Fill for 8th section in journey diagram | + + +Variables derived from the ones above: + +| name | Default value | Description | + + +**Here is an example of overriding `primaryColor` and giving everything a ifferent look, using `%%init%%`. +``` +mermaid %%{init: {'theme':'base', 'themeVariables': {primaryColor: '#ff0000'}}%% graph TD A[Christmas] -->|Get money| B(Go shopping) @@ -60,13 +171,18 @@ Here is an example of overriding the primary color and giving everything a littl G end ``` -As the theming engine is using color codes to calculate values from the base color/base colors it needs proper color values contrain the actual color data. Aliases like color names is not supported so for instance, the color value 'red' will not work but '#ff0000' will work. +The Theming Engine does not admit color codes and will only accept proper color values. Color Names is not supported so for instance, the color value 'red' will not work, but '#ff0000' will work. + +# Common theming activities -## Showcases +## How to change the color of the arrows -When adjusting a theme it might be helpful to look at the theme with these diagrams to evaluate that everything is visiable and looks good. +# Examples: -### flowchart +When adjusting a theme it might be helpful to look at how your preferred theme goes with the diagrams, to evaluate whether everything is visible and looks good. +In the following examples, the directive `init` is used, with the `theme` being declared as `base`. For more information on using directives, read the documentation for [Version 8.6.0](/8.6.0_docs.md) + +### Flowchart ``` %%{init: {'securityLevel': 'loose', 'theme':'base'}}%% graph TD @@ -102,8 +218,9 @@ When adjusting a theme it might be helpful to look at the theme with these diagr end ``` -### flowchart (beta) -```mermaid +### Flowchart (beta) +``` +mermaid %%{init: {'securityLevel': 'loose', 'theme':'base'}}%% flowchart TD A[Christmas] -->|Get money| B(Go shopping) @@ -123,7 +240,8 @@ When adjusting a theme it might be helpful to look at the theme with these diagr ### Sequence diagram -```mermaid +``` +mermaid %%{init: {'securityLevel': 'loose', 'theme':'base'}}%% sequenceDiagram @@ -143,9 +261,39 @@ When adjusting a theme it might be helpful to look at the theme with these diagr end ``` -### Gantt +### class diagram ```mermaid +%%{init: {'securityLevel': 'loose', 'theme':'base'}}%% + +classDiagram + Animal "1" <|-- Duck + Animal <|-- Fish + Animal <--o Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } + +``` + +### Gantt + +``` +mermaid gantt dateFormat :YYYY-MM-DD title Adding GANTT diagram functionality to mermaid @@ -176,7 +324,8 @@ gantt ``` ### State diagram -```mermaid +``` +mermaid %%{init: {'securityLevel': 'loose', 'theme':'base'}}%% stateDiagram [*] --> Active @@ -208,7 +357,8 @@ gantt ### State diagram (beta) -```mermaid +``` +mermaid %%{init: {'securityLevel': 'loose', 'theme':'base'}}%% stateDiagram-v2 [*] --> Active @@ -239,7 +389,8 @@ stateDiagram-v2 ### Entity Relations diagram -```mermaid +``` +mermaid erDiagram CUSTOMER }|..|{ DELIVERY-ADDRESS : has CUSTOMER ||--o{ ORDER : places @@ -251,8 +402,9 @@ stateDiagram-v2 PRODUCT ||--o{ ORDER-ITEM : "ordered in" ``` -### User journet diagram -```mermaid +### User journey diagram +``` +mermaid journey title My working day section Go to work @@ -262,4 +414,4 @@ journey section Go home Go downstairs: 5: Me Sit down: 5: Me -``` \ No newline at end of file +``` diff --git a/package.json b/package.json index 94bd2ae34f..3daeffdd7b 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ }, "dependencies": { "@braintree/sanitize-url": "^3.1.0", + "babel-eslint": "^10.1.0", "d3": "^5.7.0", "dagre": "^0.8.4", "dagre-d3": "^0.6.4", diff --git a/src/config.js b/src/config.js index 68bd1016d4..b3b7a809d8 100644 --- a/src/config.js +++ b/src/config.js @@ -1,867 +1,39 @@ import { assignWithDepth } from './utils'; import { logger } from './logger'; import theme from './themes'; +import config from './defaultConfig'; -// import { unflatten } from 'flat'; -// import flatten from 'flat'; - -// import themeVariables from './theme-default'; -// import themeForestVariables from './theme-forest'; -// import themeNeutralVariables from './theme-neutral'; - -const handleThemeVariables = value => { - return theme[value] ? theme[value].getThemeVariables() : theme.default.getThemeVariables(); -}; - -const manipulators = { - themeVariables: handleThemeVariables -}; - -/** - * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** - * - * ## **What follows are config instructions for older versions** - * These are the default options which can be overridden with the initialization call like so: - * **Example 1:** - *
- * mermaid.initialize({
- *   flowchart:{
- *     htmlLabels: false
- *   }
- * });
- * 
- * - * **Example 2:** - *
- * <script>
- *   var config = {
- *     startOnLoad:true,
- *     flowchart:{
- *       useMaxWidth:true,
- *       htmlLabels:true,
- *       curve:'cardinal',
- *     },
- *
- *     securityLevel:'loose',
- *   };
- *   mermaid.initialize(config);
- * </script>
- * 
- * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. - * - * @name Configuration - */ -const config = { - /** theme , the CSS style sheet - * - * theme , the CSS style sheet - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| - * - ***Notes:**To disable any pre-defined mermaid theme, use "null". - *
-   *  "theme": "forest",
-   *  "themeCSS": ".node rect { fill: red; }"
-   * 
- */ - theme: 'default', - themeVariables: theme['default'].getThemeVariables(), - themeCSS: undefined, - /* **maxTextSize** - The maximum allowed size of the users text diamgram */ - maxTextSize: 50000, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| - * - ***notes: Default value is \\"trebuchet ms\\". - */ - fontFamily: '"trebuchet ms", verdana, arial;', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | - * - * - ***Notes:** - *- debug: 1. - *- info: 2. - *- warn: 3. - *- error: 4. - *- fatal: 5(default). - */ - logLevel: 5, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | - * - ***Notes: - *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled - *- **loose**: tags in text are allowed, click functionality is enabled - *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled - */ - securityLevel: 'strict', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | - * - ***Notes:** - ***Default value: true** - */ - startOnLoad: true, - - /** - *| Parameter | Description |Type | Required |Values| - *| --- | --- | --- | --- | --- | - *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | - * - * - *## Notes**: This matters if you are using base tag settings. - ***Default value: false**. - */ - arrowMarkerAbsolute: false, - - /** - * This option controls which currentConfig keys are considered _secure_ and can only be changed via - * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to - * the `secure` keys in the current currentConfig. This prevents malicious graph directives from - * overriding a site's default security. - */ - secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], - - /** - * The object containing configurations specific for flowcharts - */ - flowchart: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 8**. - */ - diagramPadding: 8, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| - * - ***Notes: Default value: true**. - */ - htmlLabels: true, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | - * - ***Notes: - *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** - ***Default value 50**. - */ - nodeSpacing: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | - * - ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. - ***Default value 50**. - */ - rankSpacing: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| - * - ***Notes: - *Default Vaue: Linear** - */ - curve: 'linear', - // Only used in new experimental rendering - // repreesents the padding between the labels and the shape - padding: 15 - }, - - /** - * The object containing configurations specific for sequence diagrams - */ - sequence: { - /** - * widt of the activation rect - * **Default value 10**. - */ - activationWidth: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| - * - ***Notes:** - ***Default value 10**. - */ - diagramMarginY: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 65**.. - */ - height: 65, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - boxMargin: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| - * - ***Notes:** - * - ***Default value 5**. - */ - boxTextMargin: 5, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - ***Default value 10**. - */ - noteMargin: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | - * - ***Notes:**center **default** - */ - messageAlign: 'center', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | - * - ***Notes:** - * - ***Default value true**. - */ - mirrorActors: true, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, +// debugger; - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | True, False | - * - ***Notes:** - *when this flag is set to true, the height and width is set to 100% and is then scaling with the - *available space. If set to false, the absolute space required is used. - ***Default value: True**. - */ - useMaxWidth: true, +export const defaultConfig = Object.freeze(config); - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | - * - ***Notes:** - * - *This will display arrows that start and begin at the same node as right angles, rather than a curve - ***Default value false**. - */ - rightAngles: false, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | - * - ***Notes:** - ***Default value false**. - */ - showSequenceNumbers: false, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - actorFontSize: 14, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | - * - ***Notes:** - ***Default value "Open-Sans", "sans-serif"**. - */ - actorFontFamily: '"Open-Sans", "sans-serif"', - /** - * This sets the font weight of the actor's description - * **Default value 400. - */ - actorFontWeight: 400, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 14**.. - */ - noteFontSize: 14, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | - * - ***Notes:** - ***Default value: trebuchet ms **. - */ - noteFontFamily: '"trebuchet ms", verdana, arial', - /** - * This sets the font weight of the note's description - * **Default value 400. - */ - noteFontWeight: 400, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| - * - ***Notes:** - ***Default value center**. - */ - noteAlign: 'center', - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | - * - ***Notes:** - ***Default value 16**. - */ - messageFontSize: 16, - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | - * - ***Notes:** - ***Default value:"trebuchet ms**. - */ - messageFontFamily: '"trebuchet ms", verdana, arial', - /** - * This sets the font weight of the message's description - * **Default value 400. - */ - messageFontWeight: 400, - /** - * This sets the auto-wrap state for the diagram - * **Default value false. - */ - wrap: false, - /** - * This sets the auto-wrap padding for the diagram (sides only) - * **Default value 10. - */ - wrapPadding: 10, - /** - * This sets the width of the loop-box (loop, alt, opt, par) - * **Default value 50. - */ - labelBoxWidth: 50, - /** - * This sets the height of the loop-box (loop, alt, opt, par) - * **Default value 20. - */ - labelBoxHeight: 20, - messageFont: function() { - return { - fontFamily: this.messageFontFamily, - fontSize: this.messageFontSize, - fontWeight: this.messageFontWeight - }; - }, - noteFont: function() { - return { - fontFamily: this.noteFontFamily, - fontSize: this.noteFontSize, - fontWeight: this.noteFontWeight - }; - }, - actorFont: function() { - return { - fontFamily: this.actorFontFamily, - fontSize: this.actorFontSize, - fontWeight: this.actorFontWeight - }; +let siteConfig = assignWithDepth({}, defaultConfig); +let directives = []; +let currentConfig = assignWithDepth({}, defaultConfig); + +export const updateCurrentConfig = (siteCfg, _directives) => { + let cfg = assignWithDepth({}, siteCfg); + + // Apply directives + let themeVariables = {}; + for (let i = 0; i < _directives.length; i++) { + const d = _directives[i]; + sanitize(d); + cfg = assignWithDepth(cfg, d); + if (d.theme) { + cfg.themeVariables = theme[cfg.theme].getThemeVariables(d.themeVariables); } - }, - - /** - * The object containing configurations specific for gantt diagrams* - */ - gantt: { - /** - *### titleTopMargin - * - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 25**. - */ - titleTopMargin: 25, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 20**. - */ - barHeight: 20, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - barGap: 4, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - topPadding: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | - * - ***Notes:** - ***Default value 75**. - */ - leftPadding: 75, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 35**. - */ - gridLineStartPadding: 35, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize | Font size| Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 11**. - */ - fontSize: 11, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | - * - ***Notes:** - * - ***Default value '"Open-Sans", "sans-serif"'**. - */ - fontFamily: '"Open-Sans", "sans-serif"', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | - * - ***Notes:** - ***Default value 4**. - */ - numberSectionStyles: 4, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | - * - ***Notes:** - * - * This might need adjustment to match your locale and preferences - ***Default value '%Y-%m-%d'**. - */ - axisFormat: '%Y-%m-%d' - }, - /** - * The object containing configurations specific for journey diagrams - */ - journey: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 50**. - */ - diagramMarginX: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 10**.. - */ - diagramMarginY: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| - * - ***Notes:** - ***Default value 50**. - */ - actorMargin: 50, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| width | Width of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 150**. - */ - width: 150, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| height | Height of actor boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 65**. - */ - height: 65, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - boxMargin: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | - * - ***Notes:** - */ - boxTextMargin: 5, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | - * - ***Notes:** - ***Default value 10**. - */ - noteMargin: 10, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | - * - ***Notes:** - * - *Space between messages. - ***Default value 35**. - */ - messageMargin: 35, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | - * - ***Notes:**default:center** - */ - messageAlign: 'center', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | - * - ***Notes:**Depending on css styling this might need adjustment. - ***Default value 1**. - */ - bottomMarginAdj: 1, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See notes | Boolean | 4 | True, False | - * - ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the - *available space if not the absolute space required is used. - * - ***Default value true**. - */ - useMaxWidth: true, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | - * - ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves - ***Default value false**. - */ - rightAngles: false - }, - class: { - arrowMarkerAbsolute: false - }, - git: { - arrowMarkerAbsolute: false - }, - state: { - dividerMargin: 10, - sizeUnit: 5, - padding: 8, - textHeight: 10, - titleShift: -15, - noteMargin: 10, - forkWidth: 70, - forkHeight: 7, - // Used - miniPadding: 2, - // Font size factor, this is used to guess the width of the edges labels before rendering by dagre - // layout. This might need updating if/when switching font - fontSizeFactor: 5.02, - fontSize: 24, - labelHeight: 16, - edgeLengthFactor: '20', - compositTitleSize: 35, - radius: 5 - }, - - /** - * The object containing configurations specific for entity relationship diagrams - */ - er: { - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | - * - ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels - ***Default value: 20**. - */ - diagramPadding: 20, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | - * - ***Notes:** - *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. - * T = top, B = bottom, L = left, and R = right. - ***Default value: TB **. - */ - layoutDirection: 'TB', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 100**. - */ - minEntityWidth: 100, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | - * - ***Notes:**expressed in pixels - ***Default value: 75 ** - */ - minEntityHeight: 75, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | - * - ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. - ***Default value: 15 ** - */ - entityPadding: 15, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | - ***Default value: gray ** - */ - stroke: 'gray', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fill | Fill color of entity boxes | String | 4 | Any recognized color | - * - ***Notes:** - ***Default value:'honeydew'** - */ - fill: 'honeydew', - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| fontSize| Font Size in pixels| Integer | | Any Positive Value | - * - ***Notes:**Font size (expressed as an integer representing a number of pixels) - ***Default value: 12 ** - */ - fontSize: 12, - - /** - *| Parameter | Description |Type | Required | Values| - *| --- | --- | --- | --- | --- | - *| useMaxWidth | See Notes | Boolean | Required | true, false | - * - ***Notes:** - *When this flag is set to true, the diagram width is locked to 100% and - *scaled based on available space. If set to false, the diagram reserves its - *absolute width. - ***Default value: true**. - */ - useMaxWidth: true } -}; - -// debugger; -config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; -export const defaultConfig = Object.freeze(config); - -const siteConfig = assignWithDepth({}, defaultConfig); -const currentConfig = assignWithDepth({}, defaultConfig); + if (cfg.theme && theme[cfg.theme]) { + let tVars = assignWithDepth({}, cfg.themeVariables); + tVars = assignWithDepth(tVars, themeVariables); + const variables = theme[cfg.theme].getThemeVariables(tVars); + cfg.themeVariables = variables; + } + currentConfig = cfg; + return cfg; +}; /** *## setSiteConfig *| Function | Description | Type | Values | @@ -877,16 +49,22 @@ const currentConfig = assignWithDepth({}, defaultConfig); * @returns {*} - the siteConfig */ export const setSiteConfig = conf => { - Object.keys(conf).forEach(key => { - const manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); + console.warn('Setting site config'); + siteConfig = assignWithDepth({}, defaultConfig); + siteConfig = assignWithDepth(siteConfig, conf); - assignWithDepth(currentConfig, conf, { clobber: true }); - // Set theme variables if user has set the theme option - assignWithDepth(siteConfig, conf); + if (conf.theme) { + siteConfig.themeVariables = theme[conf.theme].getThemeVariables(conf.themeVariables); + } + + currentConfig = updateCurrentConfig(siteConfig, directives); + return siteConfig; +}; +export const updateSiteConfig = conf => { + siteConfig = assignWithDepth(siteConfig, conf); + updateCurrentConfig(siteConfig, directives); - return getSiteConfig(); + return siteConfig; }; /** *## getSiteConfig @@ -913,15 +91,17 @@ export const getSiteConfig = () => { * @returns {*} - the currentConfig merged with the sanitized conf */ export const setConfig = conf => { - sanitize(conf); - Object.keys(conf).forEach(key => { - const manipulator = manipulators[key]; - conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; - }); + // sanitize(conf); + // Object.keys(conf).forEach(key => { + // const manipulator = manipulators[key]; + // conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; + // }); assignWithDepth(currentConfig, conf); + return getConfig(); }; + /** * ## getConfig *| Function | Description | Type | Return Values | @@ -948,7 +128,7 @@ export const sanitize = options => { if (typeof options[siteConfig.secure[key]] !== 'undefined') { // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script // can exploit the logger's attempt to stringify the value and execute arbitrary code - logger.warn( + logger.debug( `Denied attempt to modify a secure key ${siteConfig.secure[key]}`, options[siteConfig.secure[key]] ); @@ -956,6 +136,12 @@ export const sanitize = options => { } }); }; + +export const addDirective = directive => { + directives.push(directive); + updateCurrentConfig(siteConfig, directives); +}; + /** *## reset *| Function | Description | Type | Required | Values | @@ -970,20 +156,8 @@ export const sanitize = options => { (default: current siteConfig ) (optional, default `getSiteConfig()`) * @param conf - the base currentConfig to reset to (default: current siteConfig ) */ -export const reset = (conf = getSiteConfig()) => { - Object.keys(siteConfig).forEach(key => delete siteConfig[key]); - Object.keys(currentConfig).forEach(key => delete currentConfig[key]); - assignWithDepth(siteConfig, conf, { clobber: true }); - assignWithDepth(currentConfig, conf, { clobber: true }); +export const reset = () => { + // Replace current config with siteConfig + directives = []; + updateCurrentConfig(siteConfig, directives); }; - -const configApi = Object.freeze({ - sanitize, - setSiteConfig, - getSiteConfig, - setConfig, - getConfig, - reset, - defaultConfig -}); -export default configApi; diff --git a/src/config.spec.js b/src/config.spec.js index 5f17ead13a..596a27f7ff 100644 --- a/src/config.spec.js +++ b/src/config.spec.js @@ -1,9 +1,10 @@ /* eslint-env jasmine */ -import configApi from './config'; +import * as configApi from './config'; describe('when working with site config', function() { beforeEach(() => { - configApi.reset(configApi.defaultConfig); + // Resets the site config to default config + configApi.setSiteConfig({}); }); it('should set site config and config properly', function() { let config_0 = { foo: 'bar', bar: 0 }; @@ -14,14 +15,13 @@ describe('when working with site config', function() { expect(config_1.bar).toEqual(config_0.bar); expect(config_1).toEqual(config_2); }); - it('should set config and respect secure keys', function() { - let config_0 = { foo: 'bar', bar: 0, secure: [...configApi.defaultConfig.secure, 'bar'] }; + it('should respect secure keys when applying directives', function() { + let config_0 = { foo: 'bar', bar: 'cant-be-changed', secure: [...configApi.defaultConfig.secure, 'bar'] }; configApi.setSiteConfig(config_0); - let config_1 = { foo: 'baf', bar: 'foo'}; - configApi.setConfig(config_1); - let config_2 = configApi.getConfig(); - expect(config_2.foo).toEqual(config_1.foo); - expect(config_2.bar).toEqual(0); // Should be siteConfig.bar + const directive = { foo: 'baf', bar: 'should-not-be-allowed'}; + const cfg = configApi.updateCurrentConfig(config_0,[directive]); + expect(cfg.foo).toEqual(directive.foo); + expect(cfg.bar).toBe(config_0.bar) }); it('should set reset config properly', function() { let config_0 = { foo: 'bar', bar: 0}; @@ -43,10 +43,11 @@ describe('when working with site config', function() { expect(config_1.foo).toEqual(config_0.foo); let config_2 = configApi.getConfig(); expect(config_2.foo).toEqual(config_0.foo); - configApi.reset(configApi.defaultConfig); - let config_3 = configApi.getSiteConfig(); - expect(config_3.foo).toBeUndefined(); + configApi.setConfig({ foobar: 'bar0' }) + let config_3 = configApi.getConfig(); + expect(config_3.foobar).toEqual('bar0'); + configApi.reset(); let config_4 = configApi.getConfig(); - expect(config_4.foo).toBeUndefined(); + expect(config_4.foobar).toBeUndefined(); }); }); diff --git a/src/config_org.js b/src/config_org.js new file mode 100644 index 0000000000..01f606bc29 --- /dev/null +++ b/src/config_org.js @@ -0,0 +1,157 @@ +import { assignWithDepth } from './utils'; +import { logger } from './logger'; // eslint-disable-line +import theme from './themes'; +import config from './defaultConfig'; + +// import { unflatten } from 'flat'; +// import flatten from 'flat'; + +// import themeVariables from './theme-default'; +// import themeForestVariables from './theme-forest'; +// import themeNeutralVariables from './theme-neutral'; + +const handleThemeVariables = value => { + return theme[value] ? theme[value].getThemeVariables() : theme.default.getThemeVariables(); +}; + +const manipulators = { + themeVariables: handleThemeVariables +}; + +// debugger; +config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +export const defaultConfig = Object.freeze(config); + +const siteConfig = assignWithDepth({}, defaultConfig); +const currentConfig = assignWithDepth({}, defaultConfig); + +/** + *## setSiteConfig + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| setSiteConfig|Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array| + ***Notes:** + *Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset + *the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig + *to the defaultConfig + *Note: currentConfig is set in this function + **Default value: At default, will mirror Global Config** + * @param conf - the base currentConfig to use as siteConfig + * @returns {*} - the siteConfig + */ +export const setSiteConfig = conf => { + console.log('setSiteConfig'); + + Object.keys(conf).forEach(key => { + const manipulator = manipulators[key]; + conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; + }); + + assignWithDepth(currentConfig, conf, { clobber: true }); + // Set theme variables if user has set the theme option + assignWithDepth(siteConfig, conf); + + return getSiteConfig(); +}; +/** + *## getSiteConfig + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| setSiteConfig|Returns the current siteConfig base configuration | Get Request | Returns Any Values in siteConfig| + ***Notes**: + *Returns **any** values in siteConfig. + * @returns {*} + */ +export const getSiteConfig = () => { + return assignWithDepth({}, siteConfig); +}; +/** + *## setConfig + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| setSiteConfig|Sets the siteConfig to desired values | Put Request| Any Values, except ones in secure array| + ***Notes**: + *Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any + *values found in conf with key found in siteConfig.secure will be replaced with the corresponding + *siteConfig value. + * @param conf - the potential currentConfig + * @returns {*} - the currentConfig merged with the sanitized conf + */ +export const setConfig = conf => { + console.log('setConfig'); + sanitize(conf); + Object.keys(conf).forEach(key => { + const manipulator = manipulators[key]; + conf[key] = manipulator ? manipulator(conf[key]) : conf[key]; + }); + + assignWithDepth(currentConfig, conf); + return getConfig(); +}; +/** + * ## getConfig + *| Function | Description | Type | Return Values | + *| --------- | ------------------- | ------- | ------------------ | + *| getConfig |Obtains the currentConfig | Get Request | Any Values from currentConfig| + ***Notes**: + *Returns **any** the currentConfig + * @returns {*} - the currentConfig + */ +export const getConfig = () => { + return assignWithDepth({}, currentConfig); +}; +/** + *## sanitize + *| Function | Description | Type | Values | + *| --------- | ------------------- | ------- | ------------------ | + *| sanitize |Sets the siteConfig to desired values. | Put Request |None| + *Ensures options parameter does not attempt to override siteConfig secure keys + *Note: modifies options in-place + * @param options - the potential setConfig parameter + */ +export const sanitize = options => { + Object.keys(siteConfig.secure).forEach(key => { + if (typeof options[siteConfig.secure[key]] !== 'undefined') { + // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script + // can exploit the logger's attempt to stringify the value and execute arbitrary code + logger.trace( + `Denied attempt to modify a secure key ${siteConfig.secure[key]}`, + options[siteConfig.secure[key]] + ); + delete options[siteConfig.secure[key]]; + } + }); +}; +/** + *## reset + *| Function | Description | Type | Required | Values | + *| --------- | ------------------- | ------- | -------- | ------------------ | + *| reset|Resets currentConfig to conf| Put Request | Required | None| + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| conf| base set of values, which currentConfig coul be **reset** to.| Dictionary | Required | Any Values, with respect to the secure Array| + * + **Notes : + (default: current siteConfig ) (optional, default `getSiteConfig()`) + * @param conf - the base currentConfig to reset to (default: current siteConfig ) + */ +export const reset = (conf = getSiteConfig()) => { + console.warn('reset'); + Object.keys(siteConfig).forEach(key => delete siteConfig[key]); + Object.keys(currentConfig).forEach(key => delete currentConfig[key]); + assignWithDepth(siteConfig, conf, { clobber: true }); + assignWithDepth(currentConfig, conf, { clobber: true }); +}; + +const configApi = Object.freeze({ + sanitize, + setSiteConfig, + getSiteConfig, + setConfig, + getConfig, + reset, + defaultConfig +}); +export default configApi; diff --git a/src/dagre-wrapper/intersect/intersect-node.js b/src/dagre-wrapper/intersect/intersect-node.js index 8164f0f593..70255f46ae 100644 --- a/src/dagre-wrapper/intersect/intersect-node.js +++ b/src/dagre-wrapper/intersect/intersect-node.js @@ -1,6 +1,6 @@ module.exports = intersectNode; function intersectNode(node, point) { - console.info('Intersect Node'); + // console.info('Intersect Node'); return node.intersect(point); } diff --git a/src/dagre-wrapper/intersect/intersect-polygon.js b/src/dagre-wrapper/intersect/intersect-polygon.js index b40536d385..c505000b8d 100644 --- a/src/dagre-wrapper/intersect/intersect-polygon.js +++ b/src/dagre-wrapper/intersect/intersect-polygon.js @@ -44,7 +44,7 @@ function intersectPolygon(node, polyPoints, point) { } if (!intersections.length) { - console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); + // console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node); return node; } diff --git a/src/defaultConfig.js b/src/defaultConfig.js new file mode 100644 index 0000000000..8d1348b5be --- /dev/null +++ b/src/defaultConfig.js @@ -0,0 +1,842 @@ +import theme from './themes'; +/** + * **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].** + * + * ## **What follows are config instructions for older versions** + * These are the default options which can be overridden with the initialization call like so: + * **Example 1:** + *
+ * mermaid.initialize({
+ *   flowchart:{
+ *     htmlLabels: false
+ *   }
+ * });
+ * 
+ * + * **Example 2:** + *
+ * <script>
+ *   var config = {
+ *     startOnLoad:true,
+ *     flowchart:{
+ *       useMaxWidth:true,
+ *       htmlLabels:true,
+ *       curve:'cardinal',
+ *     },
+ *
+ *     securityLevel:'loose',
+ *   };
+ *   mermaid.initialize(config);
+ * </script>
+ * 
+ * A summary of all options and their defaults is found [here](#mermaidapi-configuration-defaults). A description of each option follows below. + * + * @name Configuration + */ +const config = { + /** theme , the CSS style sheet + * + * theme , the CSS style sheet + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null| + * + ***Notes:**To disable any pre-defined mermaid theme, use "null". + *
+   *  "theme": "forest",
+   *  "themeCSS": ".node rect { fill: red; }"
+   * 
+ */ + theme: 'default', + themeVariables: theme['default'].getThemeVariables(), + themeCSS: undefined, + /* **maxTextSize** - The maximum allowed size of the users text diamgram */ + maxTextSize: 50000, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,| + * + ***notes: Default value is \\"trebuchet ms\\". + */ + fontFamily: '"trebuchet ms", verdana, arial;', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 | + * + * + ***Notes:** + *- debug: 1. + *- info: 2. + *- warn: 3. + *- error: 4. + *- fatal: 5(default). + */ + logLevel: 5, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript | + * + ***Notes: + *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled + *- **loose**: tags in text are allowed, click functionality is enabled + *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled + */ + securityLevel: 'strict', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False | + * + ***Notes:** + ***Default value: true** + */ + startOnLoad: true, + + /** + *| Parameter | Description |Type | Required |Values| + *| --- | --- | --- | --- | --- | + *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False | + * + * + *## Notes**: This matters if you are using base tag settings. + ***Default value: false**. + */ + arrowMarkerAbsolute: false, + + /** + * This option controls which currentConfig keys are considered _secure_ and can only be changed via + * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to + * the `secure` keys in the current currentConfig. This prevents malicious graph directives from + * overriding a site's default security. + */ + secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'], + + /** + * The object containing configurations specific for flowcharts + */ + flowchart: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 8**. + */ + diagramPadding: 8, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False| + * + ***Notes: Default value: true**. + */ + htmlLabels: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers | + * + ***Notes: + *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.** + ***Default value 50**. + */ + nodeSpacing: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers | + * + ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs. + ***Default value 50**. + */ + rankSpacing: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal| + * + ***Notes: + *Default Vaue: Linear** + */ + curve: 'linear', + // Only used in new experimental rendering + // repreesents the padding between the labels and the shape + padding: 15 + }, + + /** + * The object containing configurations specific for sequence diagrams + */ + sequence: { + /** + * widt of the activation rect + * **Default value 10**. + */ + activationWidth: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values| + * + ***Notes:** + ***Default value 10**. + */ + diagramMarginY: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 65**.. + */ + height: 65, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + boxMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value| + * + ***Notes:** + * + ***Default value 5**. + */ + boxTextMargin: 5, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + ***Default value 10**. + */ + noteMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin | Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign | Multiline message alignment | Integer | Required | left, center, right | + * + ***Notes:**center **default** + */ + messageAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False | + * + ***Notes:** + * + ***Default value true**. + */ + mirrorActors: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | True, False | + * + ***Notes:** + *when this flag is set to true, the height and width is set to 100% and is then scaling with the + *available space. If set to false, the absolute space required is used. + ***Default value: True**. + */ + useMaxWidth: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False | + * + ***Notes:** + * + *This will display arrows that start and begin at the same node as right angles, rather than a curve + ***Default value false**. + */ + rightAngles: false, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False | + * + ***Notes:** + ***Default value false**. + */ + showSequenceNumbers: false, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + actorFontSize: 14, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif | + * + ***Notes:** + ***Default value "Open-Sans", "sans-serif"**. + */ + actorFontFamily: '"Open-Sans", "sans-serif"', + /** + * This sets the font weight of the actor's description + * **Default value 400. + */ + actorFontWeight: 400, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 14**.. + */ + noteFontSize: 14, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial | + * + ***Notes:** + ***Default value: trebuchet ms **. + */ + noteFontFamily: '"trebuchet ms", verdana, arial', + /** + * This sets the font weight of the note's description + * **Default value 400. + */ + noteFontWeight: 400, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right| + * + ***Notes:** + ***Default value center**. + */ + noteAlign: 'center', + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number | + * + ***Notes:** + ***Default value 16**. + */ + messageFontSize: 16, + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms", verdana, aria | + * + ***Notes:** + ***Default value:"trebuchet ms**. + */ + messageFontFamily: '"trebuchet ms", verdana, arial', + /** + * This sets the font weight of the message's description + * **Default value 400. + */ + messageFontWeight: 400, + /** + * This sets the auto-wrap state for the diagram + * **Default value false. + */ + wrap: false, + /** + * This sets the auto-wrap padding for the diagram (sides only) + * **Default value 10. + */ + wrapPadding: 10, + /** + * This sets the width of the loop-box (loop, alt, opt, par) + * **Default value 50. + */ + labelBoxWidth: 50, + /** + * This sets the height of the loop-box (loop, alt, opt, par) + * **Default value 20. + */ + labelBoxHeight: 20, + messageFont: function() { + return { + fontFamily: this.messageFontFamily, + fontSize: this.messageFontSize, + fontWeight: this.messageFontWeight + }; + }, + noteFont: function() { + return { + fontFamily: this.noteFontFamily, + fontSize: this.noteFontSize, + fontWeight: this.noteFontWeight + }; + }, + actorFont: function() { + return { + fontFamily: this.actorFontFamily, + fontSize: this.actorFontSize, + fontWeight: this.actorFontWeight + }; + } + }, + + /** + * The object containing configurations specific for gantt diagrams* + */ + gantt: { + /** + *### titleTopMargin + * + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 25**. + */ + titleTopMargin: 25, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 20**. + */ + barHeight: 20, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + barGap: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + topPadding: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value | + * + ***Notes:** + ***Default value 75**. + */ + leftPadding: 75, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 35**. + */ + gridLineStartPadding: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize | Font size| Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 11**. + */ + fontSize: 11, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontFamily | font Family | string | required |"Open-Sans", "sans-serif" | + * + ***Notes:** + * + ***Default value '"Open-Sans", "sans-serif"'**. + */ + fontFamily: '"Open-Sans", "sans-serif"', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value | + * + ***Notes:** + ***Default value 4**. + */ + numberSectionStyles: 4, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd | + * + ***Notes:** + * + * This might need adjustment to match your locale and preferences + ***Default value '%Y-%m-%d'**. + */ + axisFormat: '%Y-%m-%d' + }, + /** + * The object containing configurations specific for journey diagrams + */ + journey: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 50**. + */ + diagramMarginX: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 10**.. + */ + diagramMarginY: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value| + * + ***Notes:** + ***Default value 50**. + */ + actorMargin: 50, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| width | Width of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 150**. + */ + width: 150, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| height | Height of actor boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 65**. + */ + height: 65, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + boxMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value | + * + ***Notes:** + */ + boxTextMargin: 5, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| noteMargin | margin around notes. | Integer | Required | Any Positive Value | + * + ***Notes:** + ***Default value 10**. + */ + noteMargin: 10, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageMargin |Space between messages. | Integer | Required | Any Positive Value | + * + ***Notes:** + * + *Space between messages. + ***Default value 35**. + */ + messageMargin: 35, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right | + * + ***Notes:**default:center** + */ + messageAlign: 'center', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value | + * + ***Notes:**Depending on css styling this might need adjustment. + ***Default value 1**. + */ + bottomMarginAdj: 1, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See notes | Boolean | 4 | True, False | + * + ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the + *available space if not the absolute space required is used. + * + ***Default value true**. + */ + useMaxWidth: true, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False | + * + ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves + ***Default value false**. + */ + rightAngles: false + }, + class: { + arrowMarkerAbsolute: false + }, + git: { + arrowMarkerAbsolute: false + }, + state: { + dividerMargin: 10, + sizeUnit: 5, + padding: 8, + textHeight: 10, + titleShift: -15, + noteMargin: 10, + forkWidth: 70, + forkHeight: 7, + // Used + miniPadding: 2, + // Font size factor, this is used to guess the width of the edges labels before rendering by dagre + // layout. This might need updating if/when switching font + fontSizeFactor: 5.02, + fontSize: 24, + labelHeight: 16, + edgeLengthFactor: '20', + compositTitleSize: 35, + radius: 5 + }, + + /** + * The object containing configurations specific for entity relationship diagrams + */ + er: { + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value | + * + ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels + ***Default value: 20**. + */ + diagramPadding: 20, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| layoutDirection | Directional bias for layout of entities. | String | Required | "TB", "BT","LR","RL" | + * + ***Notes:** + *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left. + * T = top, B = bottom, L = left, and R = right. + ***Default value: TB **. + */ + layoutDirection: 'TB', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 100**. + */ + minEntityWidth: 100, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value | + * + ***Notes:**expressed in pixels + ***Default value: 75 ** + */ + minEntityHeight: 75, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value | + * + ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels. + ***Default value: 15 ** + */ + entityPadding: 15, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color | + ***Default value: gray ** + */ + stroke: 'gray', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fill | Fill color of entity boxes | String | 4 | Any recognized color | + * + ***Notes:** + ***Default value:'honeydew'** + */ + fill: 'honeydew', + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| fontSize| Font Size in pixels| Integer | | Any Positive Value | + * + ***Notes:**Font size (expressed as an integer representing a number of pixels) + ***Default value: 12 ** + */ + fontSize: 12, + + /** + *| Parameter | Description |Type | Required | Values| + *| --- | --- | --- | --- | --- | + *| useMaxWidth | See Notes | Boolean | Required | true, false | + * + ***Notes:** + *When this flag is set to true, the diagram width is locked to 100% and + *scaled based on available space. If set to false, the diagram reserves its + *absolute width. + ***Default value: true**. + */ + useMaxWidth: true + } +}; + +config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute; +config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute; + +export default config; diff --git a/src/diagrams/class/classDb.js b/src/diagrams/class/classDb.js index 0421cdb147..fdb1b3d19c 100644 --- a/src/diagrams/class/classDb.js +++ b/src/diagrams/class/classDb.js @@ -1,13 +1,13 @@ import { select } from 'd3'; import { logger } from '../../logger'; -import configApi, { getConfig } from '../../config'; +import * as configApi from '../../config'; import common from '../common/common'; import utils from '../../utils'; import mermaidAPI from '../../mermaidAPI'; const MERMAID_DOM_ID_PREFIX = 'classid-'; -const config = getConfig(); +const config = configApi.getConfig(); let relations = []; let classes = {}; diff --git a/src/diagrams/class/styles.js b/src/diagrams/class/styles.js index 781f3cd9da..5196023349 100644 --- a/src/diagrams/class/styles.js +++ b/src/diagrams/class/styles.js @@ -31,7 +31,7 @@ g.clickable { } g.classGroup rect { - fill: ${options.nodeBkg}; + fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; } @@ -43,7 +43,7 @@ g.classGroup line { .classLabel .box { stroke: none; stroke-width: 0; - fill: ${options.nodeBkg}; + fill: ${options.mainBkg}; opacity: 0.5; } @@ -99,13 +99,13 @@ g.classGroup line { } #aggregationStart, .aggregation { - fill: ${options.nodeBkg} !important; + fill: ${options.mainBkg} !important; stroke: ${options.lineColor} !important; stroke-width: 1; } #aggregationEnd, .aggregation { - fill: ${options.nodeBkg} !important; + fill: ${options.mainBkg} !important; stroke: ${options.lineColor} !important; stroke-width: 1; } diff --git a/src/diagrams/er/erDb.js b/src/diagrams/er/erDb.js index 0c05223384..56ebbfb0a8 100644 --- a/src/diagrams/er/erDb.js +++ b/src/diagrams/er/erDb.js @@ -3,7 +3,7 @@ */ import { logger } from '../../logger'; import mermaidAPI from '../../mermaidAPI'; -import configApi from '../../config'; +import * as configApi from '../../config'; let entities = {}; let relationships = []; diff --git a/src/diagrams/er/styles.js b/src/diagrams/er/styles.js index 82e43dc6e6..f659f071e3 100644 --- a/src/diagrams/er/styles.js +++ b/src/diagrams/er/styles.js @@ -7,7 +7,7 @@ const getStyles = options => .relationshipLabelBox { fill: ${options.tertiaryColor}; - opacity: 0.3; + opacity: 0.7; background-color: ${options.tertiaryColor}; rect { opacity: 0.5; diff --git a/src/diagrams/flowchart/flowDb.js b/src/diagrams/flowchart/flowDb.js index 8ae3af4678..a803cf74cc 100644 --- a/src/diagrams/flowchart/flowDb.js +++ b/src/diagrams/flowchart/flowDb.js @@ -1,13 +1,13 @@ import { select } from 'd3'; import utils from '../../utils'; -import configApi, { getConfig } from '../../config'; +import * as configApi from '../../config'; import common from '../common/common'; import mermaidAPI from '../../mermaidAPI'; // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-'; const MERMAID_DOM_ID_PREFIX = ''; -let config = getConfig(); +let config = configApi.defaultConfig; let vertices = {}; let edges = []; let classes = []; @@ -48,7 +48,7 @@ export const addVertex = function(_id, text, type, style, classes) { vertices[id] = { id: id, styles: [], classes: [] }; } if (typeof text !== 'undefined') { - config = getConfig(); + config = configApi.defaultConfig; txt = common.sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote @@ -224,7 +224,7 @@ const setTooltip = function(ids, tooltip) { const setClickFun = function(_id, functionName) { let id = _id; if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id; - if (getConfig().securityLevel !== 'loose') { + if (configApi.getConfig().securityLevel !== 'loose') { return; } if (typeof functionName === 'undefined') { @@ -252,12 +252,13 @@ const setClickFun = function(_id, functionName) { * @param linkStr URL to create a link for * @param tooltip Tooltip for the clickable element */ -export const setLink = function(ids, linkStr, tooltip) { +export const setLink = function(ids, linkStr, tooltip, target) { ids.split(',').forEach(function(_id) { let id = _id; if (_id[0].match(/\d/)) id = MERMAID_DOM_ID_PREFIX + id; if (typeof vertices[id] !== 'undefined') { vertices[id].link = utils.formatUrl(linkStr, config); + vertices[id].linkTarget = target; } }); setTooltip(ids, tooltip); @@ -622,7 +623,7 @@ const destructLink = (_str, _startStr) => { export default { parseDirective, - getConfig: () => configApi.getConfig().flowchart, + defaultConfig: () => configApi.defaultConfig.flowchart, addVertex, addLink, updateLinkInterpolate, diff --git a/src/diagrams/flowchart/flowRenderer-v2.js b/src/diagrams/flowchart/flowRenderer-v2.js index 1bd2db9de6..a8c548dceb 100644 --- a/src/diagrams/flowchart/flowRenderer-v2.js +++ b/src/diagrams/flowchart/flowRenderer-v2.js @@ -468,7 +468,7 @@ export const draw = function(text, id) { rect.setAttribute('ry', 0); rect.setAttribute('width', dim.width); rect.setAttribute('height', dim.height); - rect.setAttribute('style', 'fill:#e8e8e8;'); + // rect.setAttribute('style', 'fill:#e8e8e8;'); label.insertBefore(rect, label.firstChild); } @@ -486,6 +486,9 @@ export const draw = function(text, id) { link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' ')); link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link); link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener'); + if (vertex.linkTarget) { + link.setAttributeNS('http://www.w3.org/2000/svg', 'target', vertex.linkTarget); + } const linkNode = node.insert(function() { return link; diff --git a/src/diagrams/flowchart/flowRenderer.js b/src/diagrams/flowchart/flowRenderer.js index 51ef4edd5f..d844c47fa3 100644 --- a/src/diagrams/flowchart/flowRenderer.js +++ b/src/diagrams/flowchart/flowRenderer.js @@ -451,7 +451,7 @@ export const draw = function(text, id) { rect.setAttribute('ry', 0); rect.setAttribute('width', dim.width); rect.setAttribute('height', dim.height); - rect.setAttribute('style', 'fill:#e8e8e8;'); + // rect.setAttribute('style', 'fill:#e8e8e8;'); label.insertBefore(rect, label.firstChild); } @@ -469,6 +469,9 @@ export const draw = function(text, id) { link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' ')); link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link); link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener'); + if (vertex.linkTarget) { + link.setAttributeNS('http://www.w3.org/2000/svg', 'target', vertex.linkTarget); + } const linkNode = node.insert(function() { return link; diff --git a/src/diagrams/flowchart/parser/flow-interactions.spec.js b/src/diagrams/flowchart/parser/flow-interactions.spec.js index 1ddb710a8a..9255b9ce9c 100644 --- a/src/diagrams/flowchart/parser/flow-interactions.spec.js +++ b/src/diagrams/flowchart/parser/flow-interactions.spec.js @@ -39,7 +39,7 @@ describe('[Interactions] when parsing', () => { const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges(); - expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', undefined); + expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', undefined, undefined); }); it('should handle interaction - click to a link with tooltip', function() { @@ -49,6 +49,26 @@ describe('[Interactions] when parsing', () => { const vert = flow.parser.yy.getVertices(); const edges = flow.parser.yy.getEdges(); - expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', 'tooltip'); + expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', 'tooltip', undefined); + }); + + it('should handle interaction - click to a link with target', function() { + spyOn(flowDb, 'setLink'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html" _blank'); + + const vert = flow.parser.yy.getVertices(); + const edges = flow.parser.yy.getEdges(); + + expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', undefined, '_blank'); + }); + + it('should handle interaction - click to a link with tooltip and target', function() { + spyOn(flowDb, 'setLink'); + const res = flow.parser.parse('graph TD\nA-->B\nclick A "click.html" "tooltip" _blank'); + + const vert = flow.parser.yy.getVertices(); + const edges = flow.parser.yy.getEdges(); + + expect(flowDb.setLink).toHaveBeenCalledWith('A', 'click.html', 'tooltip', '_blank'); }); }); diff --git a/src/diagrams/flowchart/parser/flow.jison b/src/diagrams/flowchart/parser/flow.jison index d6f8861925..2245dc85e4 100644 --- a/src/diagrams/flowchart/parser/flow.jison +++ b/src/diagrams/flowchart/parser/flow.jison @@ -36,6 +36,12 @@ "flowchart" {if(yy.lex.firstGraph()){this.begin("dir");} return 'GRAPH';} "subgraph" return 'subgraph'; "end"\b\s* return 'end'; + +"_self" return 'LINK_TARGET'; +"_blank" return 'LINK_TARGET'; +"_parent" return 'LINK_TARGET'; +"_top" return 'LINK_TARGET'; + (\r?\n)*\s*\n { this.popState(); return 'NODIR'; } \s*"LR" { this.popState(); return 'DIR'; } \s*"RL" { this.popState(); return 'DIR'; } @@ -439,10 +445,12 @@ classStatement:CLASS SPACE alphaNum SPACE alphaNum ; clickStatement - : CLICK SPACE alphaNum SPACE alphaNum {$$ = $1;yy.setClickEvent($3, $5, undefined);} - | CLICK SPACE alphaNum SPACE alphaNum SPACE STR {$$ = $1;yy.setClickEvent($3, $5, $7) ;} - | CLICK SPACE alphaNum SPACE STR {$$ = $1;yy.setLink($3, $5, undefined);} - | CLICK SPACE alphaNum SPACE STR SPACE STR {$$ = $1;yy.setLink($3, $5, $7 );} + : CLICK SPACE alphaNum SPACE alphaNum {$$ = $1;yy.setClickEvent($3, $5, undefined);} + | CLICK SPACE alphaNum SPACE alphaNum SPACE STR {$$ = $1;yy.setClickEvent($3, $5, $7) ;} + | CLICK SPACE alphaNum SPACE STR {$$ = $1;yy.setLink($3, $5, undefined, undefined);} + | CLICK SPACE alphaNum SPACE STR SPACE STR {$$ = $1;yy.setLink($3, $5, $7, undefined );} + | CLICK SPACE alphaNum SPACE STR SPACE LINK_TARGET {$$ = $1;yy.setLink($3, $5, undefined, $7 );} + | CLICK SPACE alphaNum SPACE STR SPACE STR SPACE LINK_TARGET {$$ = $1;yy.setLink($3, $5, $7, $9 );} ; styleStatement:STYLE SPACE alphaNum SPACE stylesOpt diff --git a/src/diagrams/flowchart/styles.js b/src/diagrams/flowchart/styles.js index c4c39293a7..e9a94be097 100644 --- a/src/diagrams/flowchart/styles.js +++ b/src/diagrams/flowchart/styles.js @@ -1,11 +1,11 @@ const getStyles = options => `.label { font-family: ${options.fontFamily}; - color: ${options.textColor}; + color: ${options.nodeTextColor || options.textColor}; } .label text { - fill: ${options.textColor}; + fill: ${options.nodeTextColor || options.textColor}; } .node rect, @@ -43,12 +43,14 @@ const getStyles = options => background-color: ${options.edgeLabelBackground}; rect { opacity: 0.5; + background-color: ${options.edgeLabelBackground}; + fill: ${options.edgeLabelBackground}; } text-align: center; } .cluster rect { - fill: ${options.secondBkg}; + fill: ${options.clusterBkg}; stroke: ${options.clusterBorder}; stroke-width: 1px; } @@ -64,7 +66,7 @@ const getStyles = options => padding: 2px; font-family: ${options.fontFamily}; font-size: 12px; - background: ${options.secondBkg}; + background: ${options.tertiaryColor}; border: 1px solid ${options.border2}; border-radius: 2px; pointer-events: none; diff --git a/src/diagrams/gantt/ganttDb.js b/src/diagrams/gantt/ganttDb.js index 7c04ba7a6e..d6352315b2 100644 --- a/src/diagrams/gantt/ganttDb.js +++ b/src/diagrams/gantt/ganttDb.js @@ -1,7 +1,7 @@ import moment from 'moment-mini'; import { sanitizeUrl } from '@braintree/sanitize-url'; import { logger } from '../../logger'; -import configApi, { getConfig } from '../../config'; +import * as configApi from '../../config'; import utils from '../../utils'; import mermaidAPI from '../../mermaidAPI'; @@ -473,7 +473,7 @@ const compileTasks = function() { */ export const setLink = function(ids, _linkStr) { let linkStr = _linkStr; - if (getConfig().securityLevel !== 'loose') { + if (configApi.getConfig().securityLevel !== 'loose') { linkStr = sanitizeUrl(_linkStr); } ids.split(',').forEach(function(id) { @@ -502,7 +502,7 @@ export const setClass = function(ids, className) { }; const setClickFun = function(id, functionName, functionArgs) { - if (getConfig().securityLevel !== 'loose') { + if (configApi.getConfig().securityLevel !== 'loose') { return; } if (typeof functionName === 'undefined') { diff --git a/src/diagrams/pie/pieDb.js b/src/diagrams/pie/pieDb.js index 57147a6f17..aa5072f062 100644 --- a/src/diagrams/pie/pieDb.js +++ b/src/diagrams/pie/pieDb.js @@ -3,7 +3,7 @@ */ import { logger } from '../../logger'; import mermaidAPI from '../../mermaidAPI'; -import configApi from '../../config'; +import * as configApi from '../../config'; let sections = {}; let title = ''; diff --git a/src/diagrams/sequence/sequenceDb.js b/src/diagrams/sequence/sequenceDb.js index 92574dac72..db9a158763 100644 --- a/src/diagrams/sequence/sequenceDb.js +++ b/src/diagrams/sequence/sequenceDb.js @@ -1,5 +1,5 @@ import mermaidAPI from '../../mermaidAPI'; -import configApi from '../../config'; +import * as configApi from '../../config'; import common from '../common/common'; import { logger } from '../../logger'; diff --git a/src/diagrams/sequence/sequenceDiagram.spec.js b/src/diagrams/sequence/sequenceDiagram.spec.js index 52428cdd91..f8f11a4a52 100644 --- a/src/diagrams/sequence/sequenceDiagram.spec.js +++ b/src/diagrams/sequence/sequenceDiagram.spec.js @@ -1,6 +1,7 @@ /* eslint-env jasmine */ import { parser } from './parser/sequenceDiagram'; import sequenceDb from './sequenceDb'; +import * as configApi from '../../config'; import renderer from './sequenceRenderer'; import mermaidAPI from '../../mermaidAPI'; @@ -925,7 +926,7 @@ describe('when checking the bounds in a sequenceDiagram', function() { }); }); -describe('when rendering a sequenceDiagram', function() { +describe('when rendering a sequenceDiagram APA', function() { beforeAll(() => { let conf = { diagramMarginX: 50, @@ -941,14 +942,30 @@ describe('when rendering a sequenceDiagram', function() { wrap: false, mirrorActors: false }; - mermaidAPI.initialize({ sequence: conf }); + console.warn('Set site config'); + configApi.setSiteConfig({ logLevel: 5, sequence: conf }); }); let conf; beforeEach(function() { mermaidAPI.reset(); + conf = { + diagramMarginX: 50, + diagramMarginY: 10, + actorMargin: 50, + width: 150, + // Height of actor boxes + height: 65, + boxMargin: 10, + messageMargin: 40, + boxTextMargin: 15, + noteMargin: 25, + wrap: false, + mirrorActors: false + }; + configApi.setSiteConfig({ logLevel: 5, sequence: conf }); parser.yy = sequenceDb; parser.yy.clear(); - conf = parser.yy.getConfig(); + // conf = parser.yy.getConfig(); }); ['tspan', 'fo', 'old', undefined].forEach(function(textPlacement) { it(` @@ -1093,7 +1110,7 @@ Alice->Bob: Hello Bob, how are you? Note over Alice,Bob: Looks Note over Bob,Alice: Looks back `; - mermaidAPI.initialize({logLevel:0}) + // mermaidAPI.initialize({logLevel:0}) mermaidAPI.parse(str); renderer.draw(str, 'tst'); @@ -1221,7 +1238,7 @@ Bob->>Alice: Fine!`; }); it('it should draw two actors, notes to the left with text wrapped and the init directive sets the theme to dark and fontFamily to Menlo, fontSize to 18, and fontWeight to 800', function() { const str = ` -%%{init: { "theme": "dark", 'config': { "fontFamily": "Menlo", "fontSize": 18, "fontWeight": 400, "wrap": true }}}%% + %%{init: { "theme": "dark", 'config': { "fontFamily": "Menlo", "fontSize": 18, "fontWeight": 400, "wrap": true }}}%% sequenceDiagram Alice->>Bob: Hello Bob, how are you? If you are not available right now, I can leave you a message. Please get back to me as soon as you can! Note left of Alice: Bob thinks @@ -1232,6 +1249,7 @@ Bob->>Alice: Fine!`; const { bounds, models } = renderer.bounds.getBounds(); const msgs = parser.yy.getMessages(); const mermaid = mermaidAPI.getConfig(); + console.log(mermaid) expect(bounds.startx).toBe(-(conf.width / 2) - conf.actorMargin / 2); expect(bounds.starty).toBe(0); expect(mermaid.theme).toBe('dark'); diff --git a/src/diagrams/sequence/sequenceRenderer.js b/src/diagrams/sequence/sequenceRenderer.js index e8da85436c..cc2e140f2c 100644 --- a/src/diagrams/sequence/sequenceRenderer.js +++ b/src/diagrams/sequence/sequenceRenderer.js @@ -4,11 +4,12 @@ import { logger } from '../../logger'; import { parser } from './parser/sequenceDiagram'; import common from '../common/common'; import sequenceDb from './sequenceDb'; +import * as configApi from '../../config'; import utils, { assignWithDepth } from '../../utils'; parser.yy = sequenceDb; -const conf = {}; +let conf = {}; export const bounds = { data: { @@ -191,6 +192,7 @@ export const bounds = { return this.verticalPos; }, getBounds: function() { + console.log('here', this.data); return { bounds: this.data, models: this.models }; } }; @@ -242,6 +244,28 @@ const drawNote = function(elem, noteModel) { bounds.models.addNote(noteModel); }; +const messageFont = cnf => { + return { + fontFamily: cnf.messageFontFamily, + fontSize: cnf.messageFontSize, + fontWeight: cnf.messageFontWeight + }; +}; +const noteFont = cnf => { + return { + fontFamily: cnf.noteFontFamily, + fontSize: cnf.noteFontSize, + fontWeight: cnf.noteFontWeight + }; +}; +const actorFont = cnf => { + return { + fontFamily: cnf.actorFontFamily, + fontSize: cnf.actorFontSize, + fontWeight: cnf.actorFontWeight + }; +}; + /** * Draws a message * @param g - the parent of the message element @@ -251,7 +275,7 @@ const drawMessage = function(g, msgModel) { bounds.bumpVerticalPos(10); const { startx, stopx, starty, message, type, sequenceIndex, wrap } = msgModel; const lines = common.splitBreaks(message).length; - let textDims = utils.calculateTextDimensions(message, conf.messageFont()); + let textDims = utils.calculateTextDimensions(message, messageFont(conf)); const lineHeight = textDims.height / lines; msgModel.height += lineHeight; @@ -457,7 +481,7 @@ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoop let heightAdjust = postMargin; if (msg.id && msg.message && loopWidths[msg.id]) { let loopWidth = loopWidths[msg.id].width; - let textConf = conf.messageFont(); + let textConf = messageFont(conf); msg.message = utils.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf); msg.width = loopWidth; msg.wrap = true; @@ -478,6 +502,8 @@ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoop * @param id */ export const draw = function(text, id) { + conf = configApi.getConfig().sequence; + console.log('there ', conf); parser.yy.clear(); parser.yy.setWrap(conf.wrap); parser.parse(text + '\n'); @@ -734,7 +760,7 @@ const getMaxMessageWidthPerActor = function(actors, messages) { const isNote = msg.placement !== undefined; const isMessage = !isNote; - const textFont = isNote ? conf.noteFont() : conf.messageFont(); + const textFont = isNote ? noteFont(conf) : messageFont(conf); let wrappedMessage = msg.wrap ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message; @@ -827,10 +853,10 @@ const calculateActorMargins = function(actors, actorToMessageWidth) { actor.description = utils.wrapLabel( actor.description, conf.width - 2 * conf.wrapPadding, - conf.actorFont() + actorFont(conf) ); } - const actDims = utils.calculateTextDimensions(actor.description, conf.actorFont()); + const actDims = utils.calculateTextDimensions(actor.description, actorFont(conf)); actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding); @@ -868,8 +894,8 @@ const buildNoteModel = function(msg, actors) { let shouldWrap = msg.wrap && msg.message; let textDimensions = utils.calculateTextDimensions( - shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, - conf.noteFont() + shouldWrap ? utils.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message, + noteFont(conf) ); let noteModel = { width: shouldWrap @@ -901,13 +927,9 @@ const buildNoteModel = function(msg, actors) { } else if (msg.to === msg.from) { textDimensions = utils.calculateTextDimensions( shouldWrap - ? utils.wrapLabel( - msg.message, - Math.max(conf.width, actors[msg.from].width), - conf.noteFont() - ) + ? utils.wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), noteFont(conf)) : msg.message, - conf.noteFont() + noteFont(conf) ); noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) @@ -926,7 +948,7 @@ const buildNoteModel = function(msg, actors) { noteModel.message = utils.wrapLabel( msg.message, noteModel.width - 2 * conf.wrapPadding, - conf.noteFont() + noteFont(conf) ); } logger.debug( @@ -958,12 +980,12 @@ const buildMessageModel = function(msg, actors) { const toIdx = fromBounds[0] < toBounds[0] ? 0 : 1; const allBounds = fromBounds.concat(toBounds); const boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]); - const msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont()); + const msgDims = utils.calculateTextDimensions(msg.message, messageFont(conf)); if (msg.wrap && msg.message) { msg.message = utils.wrapLabel( msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), - conf.messageFont() + messageFont(conf) ); } return { diff --git a/src/diagrams/state/shapes.js b/src/diagrams/state/shapes.js index 34a4de8f6e..e6c2df3ced 100644 --- a/src/diagrams/state/shapes.js +++ b/src/diagrams/state/shapes.js @@ -14,8 +14,9 @@ import { logger } from '../../logger'; export const drawStartState = g => g .append('circle') - .style('stroke', 'black') - .style('fill', 'black') + // .style('stroke', 'black') + // .style('fill', 'black') + .attr('class', 'start-state') .attr('r', getConfig().state.sizeUnit) .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit) .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit); @@ -241,8 +242,9 @@ export const addTitleAndBox = (g, stateDef, altBkg) => { const drawEndState = g => { g.append('circle') - .style('stroke', 'black') - .style('fill', 'white') + // .style('stroke', 'black') + // .style('fill', 'white') + .attr('class', 'end-state-outer') .attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding) .attr( 'cx', @@ -253,13 +255,16 @@ const drawEndState = g => { getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding ); - return g - .append('circle') - .style('stroke', 'black') - .style('fill', 'black') - .attr('r', getConfig().state.sizeUnit) - .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2) - .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2); + return ( + g + .append('circle') + // .style('stroke', 'black') + // .style('fill', 'black') + .attr('class', 'end-state-inner') + .attr('r', getConfig().state.sizeUnit) + .attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2) + .attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2) + ); }; const drawForkJoinState = (g, stateDef) => { let width = getConfig().state.forkWidth; diff --git a/src/diagrams/state/stateDb.js b/src/diagrams/state/stateDb.js index 7ce507d2c1..f3e7380796 100644 --- a/src/diagrams/state/stateDb.js +++ b/src/diagrams/state/stateDb.js @@ -1,7 +1,7 @@ import { logger } from '../../logger'; import { generateId } from '../../utils'; import mermaidAPI from '../../mermaidAPI'; -import configApi from '../../config'; +import * as configApi from '../../config'; const clone = o => JSON.parse(JSON.stringify(o)); diff --git a/src/diagrams/state/styles.js b/src/diagrams/state/styles.js index 7cbbd26bdf..0a667b3fef 100644 --- a/src/diagrams/state/styles.js +++ b/src/diagrams/state/styles.js @@ -18,7 +18,7 @@ g.stateGroup .state-title { } g.stateGroup rect { - fill: ${options.nodeBkg}; + fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; } @@ -57,17 +57,20 @@ g.stateGroup line { .stateLabel .box { stroke: none; stroke-width: 0; - fill: ${options.nodeBkg}; + fill: ${options.mainBkg}; opacity: 0.5; } .edgeLabel .label rect { fill: ${options.tertiaryColor}; - opacity: 0.2; + opacity: 0.5; } .edgeLabel .label text { fill: ${options.tertiaryTextColor}; } +.label div .edgeLabel { + color: ${options.tertiaryTextColor}; +} .stateLabel text { fill: ${options.labelColor}; @@ -78,7 +81,7 @@ g.stateGroup line { } .node circle.state-start { - fill: ${options.primaryBorderColor}; + fill: ${options.lineColor}; stroke: black; } .node circle.state-end { @@ -86,6 +89,11 @@ g.stateGroup line { stroke: ${options.background}; stroke-width: 1.5 } +.end-state-inner { + fill: ${options.background}; + // stroke: ${options.background}; + stroke-width: 1.5 +} .node rect { fill: ${options.mainBkg}; @@ -97,7 +105,7 @@ g.stateGroup line { } .statediagram-cluster rect { - fill: ${options.nodeBkg}; + fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; stroke-width: 1px; } diff --git a/src/diagrams/user-journey/journeyDb.js b/src/diagrams/user-journey/journeyDb.js index 0f0475709f..241a527581 100644 --- a/src/diagrams/user-journey/journeyDb.js +++ b/src/diagrams/user-journey/journeyDb.js @@ -1,5 +1,5 @@ import mermaidAPI from '../../mermaidAPI'; -import configApi from '../../config'; +import * as configApi from '../../config'; let title = ''; let currentSection = ''; diff --git a/src/diagrams/user-journey/styles.js b/src/diagrams/user-journey/styles.js index aabd4c0e9a..fb85725976 100644 --- a/src/diagrams/user-journey/styles.js +++ b/src/diagrams/user-journey/styles.js @@ -68,9 +68,6 @@ const getStyles = options => } .cluster rect { - fill: ${options.secondBkg}; - stroke: ${options.clusterBorder}; - stroke-width: 1px; } .cluster text { @@ -85,7 +82,7 @@ const getStyles = options => font-family: 'trebuchet ms', verdana, arial; font-family: var(--mermaid-font-family); font-size: 12px; - background: ${options.secondBkg}; + background: ${options.tertiaryColor}; border: 1px solid ${options.border2}; border-radius: 2px; pointer-events: none; diff --git a/src/mermaid.js b/src/mermaid.js index ca6034c89f..966db20fd3 100644 --- a/src/mermaid.js +++ b/src/mermaid.js @@ -31,7 +31,7 @@ import utils from './utils'; */ const init = function() { const conf = mermaidAPI.getConfig(); - // console.log('Starting rendering diagrams (init) - mermaid.init'); + // console.log('Starting rendering diagrams (init) - mermaid.init', conf); let nodes; if (arguments.length >= 2) { /*! sequence config was passed as #1 */ @@ -71,11 +71,11 @@ const init = function() { logger.debug('Start On Load before: ' + mermaid.startOnLoad); if (typeof mermaid.startOnLoad !== 'undefined') { logger.debug('Start On Load inner: ' + mermaid.startOnLoad); - mermaidAPI.initialize({ startOnLoad: mermaid.startOnLoad }); + mermaidAPI.updateSiteConfig({ startOnLoad: mermaid.startOnLoad }); } if (typeof mermaid.ganttConfig !== 'undefined') { - mermaidAPI.initialize({ gantt: mermaid.ganttConfig }); + mermaidAPI.updateSiteConfig({ gantt: mermaid.ganttConfig }); } let txt; @@ -129,7 +129,7 @@ const init = function() { }; const initialize = function(config) { - mermaidAPI.reset(); + // mermaidAPI.reset(); if (typeof config.mermaid !== 'undefined') { if (typeof config.mermaid.startOnLoad !== 'undefined') { mermaid.startOnLoad = config.mermaid.startOnLoad; diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index 9ab2ce9c73..dba8f67504 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -13,7 +13,15 @@ import Stylis from 'stylis'; import { select } from 'd3'; import pkg from '../package.json'; -import { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config'; +// import * as configApi from './config'; +// // , { +// // setConfig, +// // configApi.getConfig, +// // configApi.updateSiteConfig, +// // configApi.setSiteConfig, +// // configApi.getSiteConfig, +// // configApi.defaultConfig +// // } import { logger, setLogLevel } from './logger'; import utils, { assignWithDepth } from './utils'; import flowRenderer from './diagrams/flowchart/flowRenderer'; @@ -50,7 +58,7 @@ import erRenderer from './diagrams/er/erRenderer'; import journeyParser from './diagrams/user-journey/parser/journey'; import journeyDb from './diagrams/user-journey/journeyDb'; import journeyRenderer from './diagrams/user-journey/journeyRenderer'; -import configApi from './config'; +import * as configApi from './config'; import getStyles from './styles'; import theme from './themes'; @@ -198,17 +206,21 @@ export const decodeEntities = function(text) { * completed. */ const render = function(id, _txt, cb, container) { + configApi.reset(); let txt = _txt; const graphInit = utils.detectInit(txt); if (graphInit) { - reinitialize(graphInit); - } else { - configApi.reset(); - const siteConfig = getSiteConfig(); - reinitialize(siteConfig); + configApi.addDirective(graphInit); } + // else { + // configApi.reset(); + // const siteConfig = configApi.getSiteConfig(); + // configApi.addDirective(siteConfig); + // } + // console.warn('Render fetching config'); - const cnf = getConfig(); + const cnf = configApi.getConfig(); + console.warn('Render with config after adding new directives', cnf.themeVariables.primaryColor); // Check the maximum allowed text size if (_txt.length > cnf.maxTextSize) { txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'; @@ -284,6 +296,9 @@ const render = function(id, _txt, cb, container) { } } } + + // logger.warn(cnf.themeVariables); + const stylis = new Stylis(); const rules = stylis(`#${id}`, getStyles(graphType, userStyles, cnf.themeVariables)); @@ -482,6 +497,7 @@ const handleDirective = function(p, directive, type) { }); reinitialize(directive.args); + configApi.addDirective(directive.args); break; } case 'wrap': @@ -520,22 +536,23 @@ function updateRendererConfigs(conf) { errorRenderer.setConf(conf.class); } -function reinitialize(options) { - // console.warn(`mermaidAPI.reinitialize: v${pkg.version}`, options); - if (options.theme && theme[options.theme]) { - // Todo merge with user options - options.themeVariables = options.theme; - } - - // Set default options - const config = typeof options === 'object' ? setConfig(options) : getSiteConfig(); - updateRendererConfigs(config); - setLogLevel(config.logLevel); - logger.debug('mermaidAPI.reinitialize: ', config); +function reinitialize() { + // `mermaidAPI.reinitialize: v${pkg.version}`, + // JSON.stringify(options), + // options.themeVariables.primaryColor; + // // if (options.theme && theme[options.theme]) { + // // options.themeVariables = theme[options.theme].getThemeVariables(options.themeVariables); + // // } + // // Set default options + // const config = + // typeof options === 'object' ? configApi.setConfig(options) : configApi.getSiteConfig(); + // updateRendererConfigs(config); + // setLogLevel(config.logLevel); + // logger.debug('mermaidAPI.reinitialize: ', config); } function initialize(options) { - // console.log(`mermaidAPI.initialize: v${pkg.version} ${options}`); + console.warn(`mermaidAPI.initialize: v${pkg.version} `, options); // Set default options if (options && options.theme && theme[options.theme]) { @@ -545,40 +562,39 @@ function initialize(options) { if (options) options.themeVariables = theme.default.getThemeVariables(); } - const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig(); + const config = + typeof options === 'object' ? configApi.setSiteConfig(options) : configApi.getSiteConfig(); updateRendererConfigs(config); setLogLevel(config.logLevel); - logger.debug('mermaidAPI.initialize: ', config); + // logger.debug('mermaidAPI.initialize: ', config); } -// function getConfig () { -// console.warn('get config') -// return config -// } const mermaidAPI = Object.freeze({ render, parse, parseDirective, initialize, reinitialize, - getConfig, - getSiteConfig, + getConfig: configApi.getConfig, + setConfig: configApi.setConfig, + getSiteConfig: configApi.getSiteConfig, + updateSiteConfig: configApi.updateSiteConfig, reset: () => { // console.warn('reset'); configApi.reset(); - const siteConfig = getSiteConfig(); - updateRendererConfigs(siteConfig); + // const siteConfig = configApi.getSiteConfig(); + // updateRendererConfigs(siteConfig); }, globalReset: () => { configApi.reset(configApi.defaultConfig); - updateRendererConfigs(getConfig()); + updateRendererConfigs(configApi.getConfig()); }, defaultConfig: configApi.defaultConfig }); -setLogLevel(getConfig().logLevel); -configApi.reset(getConfig()); +setLogLevel(configApi.getConfig().logLevel); +configApi.reset(configApi.getConfig()); export default mermaidAPI; /** diff --git a/src/mermaidAPI.spec.js b/src/mermaidAPI.spec.js index 157f5b3ac9..bc9298941c 100644 --- a/src/mermaidAPI.spec.js +++ b/src/mermaidAPI.spec.js @@ -31,7 +31,7 @@ describe('when using mermaidAPI and ', function() { let config = mermaidAPI.getConfig(); expect(config.testObject.test1).toBe(1); - mermaidAPI.initialize({ testObject: { test3: true } }); + mermaidAPI.updateSiteConfig({ testObject: { test3: true } }); config = mermaidAPI.getConfig(); expect(config.testObject.test1).toBe(1); @@ -44,49 +44,14 @@ describe('when using mermaidAPI and ', function() { securityLevel: 'loose' }; mermaidAPI.initialize(config); - expect(mermaidAPI.getConfig().logLevel).toBe(0); - expect(mermaidAPI.getConfig().securityLevel).toBe('loose'); - mermaidAPI.globalReset(); - expect(mermaidAPI.getConfig()).toEqual(mermaidAPI.defaultConfig); - }); - it('should reset mermaid config to site defaults', function() { - let config = { - logLevel: 0 - }; - mermaidAPI.initialize(config); - const siteConfig = mermaidAPI.getSiteConfig(); - expect(mermaidAPI.getConfig().logLevel).toBe(0); - config.logLevel = 3; - config.securityLevel = 'loose'; - mermaidAPI.reinitialize(config); - expect(mermaidAPI.getConfig().logLevel).toBe(3); + mermaidAPI.setConfig({securityLevel:'strict', logLevel: 1}); + expect(mermaidAPI.getConfig().logLevel).toBe(1); expect(mermaidAPI.getConfig().securityLevel).toBe('strict'); - mermaidAPI.reset(); - expect(mermaidAPI.getSiteConfig()).toEqual(siteConfig) - expect(mermaidAPI.getConfig()).toEqual(siteConfig); - }); - it('should allow site config secure to global defaults', function() { - let config = { - logLevel: 0, - secure: ['foo'] - }; - mermaidAPI.initialize(config); - const siteConfig = mermaidAPI.getSiteConfig(); + mermaidAPI.globalReset(); expect(mermaidAPI.getConfig().logLevel).toBe(0); - expect(mermaidAPI.getConfig().secure).toContain('foo'); - config = { - logLevel: 3, - securityLevel: 'loose', - secure: ['foo', 'bar'] - }; - mermaidAPI.reinitialize(config); - expect(mermaidAPI.getConfig().secure).toEqual(mermaidAPI.getSiteConfig().secure); - expect(mermaidAPI.getConfig().securityLevel).toBe('strict'); - expect(mermaidAPI.getConfig().secure).not.toContain('bar'); - mermaidAPI.reset(); - expect(mermaidAPI.getSiteConfig()).toEqual(siteConfig) - expect(mermaidAPI.getConfig()).toEqual(siteConfig); + expect(mermaidAPI.getConfig().securityLevel).toBe('loose'); }); + it('should prevent changes to site defaults (sneaky)', function() { let config = { logLevel: 0 diff --git a/src/themes/theme-base.js b/src/themes/theme-base.js index 66dd6275a6..e90a1b0f52 100644 --- a/src/themes/theme-base.js +++ b/src/themes/theme-base.js @@ -1,132 +1,131 @@ import { darken, lighten, adjust, invert } from 'khroma'; - -const mkBorder = (col, darkMode) => - darkMode ? adjust(col, { s: -40, l: 10 }) : adjust(col, { s: -40, l: -10 }); +import { mkBorder } from './theme-helpers'; class Theme { constructor() { /** # Base variables */ /** * background - used to know what the background color is of the diagram. This is used for deducing colors for istance line color. Defaulr value is #f4f4f4. */ this.background = '#f4f4f4'; - // this.background = '#0c0c0c'; - /** * darkMode -In darkMode the color generation deduces other colors from the primary colors */ this.darkMode = false; + + // this.background = '#0c0c0c'; // this.darkMode = true; + this.primaryColor = '#fff4dd'; + // this.background = '#0c0c0c'; // this.primaryColor = '#1f1f00'; this.noteBkgColor = '#fff5ad'; this.noteTextColor = '#333'; + + // dark + + // this.primaryColor = '#034694'; + // this.primaryColor = '#f2ee7e'; // this.primaryColor = '#9f33be'; - this.primaryColor = '#f0fff0'; + // this.primaryColor = '#f0fff0'; // this.primaryColor = '#fa255e'; // this.primaryColor = '#ECECFF'; // this.secondaryColor = '#c39ea0'; // this.tertiaryColor = '#f8e5e5'; - this.secondaryColor = '#dfdfde'; - this.tertiaryColor = '#CCCCFF'; + // this.secondaryColor = '#dfdfde'; + // this.tertiaryColor = '#CCCCFF'; - this.border1 = '#9370DB'; - this.arrowheadColor = '#333333'; this.fontFamily = '"trebuchet ms", verdana, arial'; this.fontSize = '16px'; - this.textColor = '#333'; - this.updateColors(); - this.relationColor = '#000'; + // this.updateColors(); } updateColors() { - this.secondBkg = this.tertiaryColor; + // The || is to make sure that if the variable has been defiend by a user override that value is to be used /* Main */ - this.secondaryColor = adjust(this.primaryColor, { h: 120 }); - this.tertiaryColor = adjust(this.primaryColor, { h: -160 }); - - this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); - this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); - this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); - this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode); - - this.primaryTextColor = invert(this.primaryColor); - this.secondaryTextColor = invert(this.secondaryColor); - this.tertiaryTextColor = invert(this.tertiaryColor); - this.lineColor = invert(this.background); - this.textColor = invert(this.background); + this.primaryTextColor = this.primaryTextColor || (this.darkMode ? '#ddd' : '#333'); // invert(this.primaryColor); + this.secondaryColor = this.secondaryColor || adjust(this.primaryColor, { h: -120 }); + this.tertiaryColor = this.tertiaryColor || adjust(this.primaryColor, { h: 180, l: 5 }); + + this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = + this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = + this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode); + this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode); + + this.secondaryTextColor = this.secondaryTextColor || invert(this.secondaryColor); + this.tertiaryTextColor = this.tertiaryTextColor || invert(this.tertiaryColor); + this.lineColor = this.lineColor || invert(this.background); + this.textColor = this.textColor || this.primaryTextColor; /* Flowchart variables */ - - this.nodeBkg = this.primaryColor; - this.mainBkg = this.primaryColor; - this.nodeBorder = this.primaryBorderColor; - this.clusterBkg = this.tertiaryColor; - this.clusterBorder = this.tertiaryBorderColor; - this.defaultLinkColor = this.lineColor; - this.titleColor = this.tertiaryTextColor; - this.edgeLabelBackground = this.labelBackground; - + this.nodeBkg = this.nodeBkg || this.primaryColor; + this.mainBkg = this.mainBkg || this.primaryColor; + this.nodeBorder = this.nodeBorder || this.primaryBorderColor; + this.clusterBkg = this.clusterBkg || this.tertiaryColor; + this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor; + this.defaultLinkColor = this.defaultLinkColor || this.lineColor; + this.titleColor = this.titleColor || this.tertiaryTextColor; + this.edgeLabelBackground = + this.edgeLabelBackground || this.darkMode + ? darken(this.secondaryColor, 30) + : this.secondaryColor; + this.nodeTextColor = this.nodeTextColor || this.primaryTextColor; /* Sequence Diagram variables */ // this.actorBorder = lighten(this.border1, 0.5); - this.actorBorder = this.primaryBorderColor; - this.actorBkg = this.mainBkg; - this.actorTextColor = this.primaryTextColor; - this.actorLineColor = 'grey'; - this.labelBoxBkgColor = this.actorBkg; - this.signalColor = this.textColor; - this.signalTextColor = this.textColor; - this.labelBoxBorderColor = this.actorBorder; - this.labelTextColor = this.actorTextColor; - this.loopTextColor = this.actorTextColor; - // this.noteTextColor = this.actorTextColor; - this.activationBorderColor = darken(this.secondaryColor, 10); - this.activationBkgColor = this.secondaryColor; - this.sequenceNumberColor = 'white'; + this.actorBorder = this.actorBorder || this.primaryBorderColor; + this.actorBkg = this.actorBkg || this.mainBkg; + this.actorTextColor = this.actorTextColor || this.primaryTextColor; + this.actorLineColor = this.actorLineColor || 'grey'; + this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg; + this.signalColor = this.signalColor || this.textColor; + this.signalTextColor = this.signalTextColor || this.textColor; + this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder; + this.labelTextColor = this.labelTextColor || this.actorTextColor; + this.loopTextColor = this.loopTextColor || this.actorTextColor; + this.activationBorderColor = this.activationBorderColor || darken(this.secondaryColor, 10); + this.activationBkgColor = this.activationBkgColor || this.secondaryColor; + this.sequenceNumberColor = this.sequenceNumberColor || invert(this.lineColor); /* Gantt chart variables */ - this.sectionBkgColor = this.tertiaryColor; - this.altSectionBkgColor = 'white'; - this.sectionBkgColor = this.secondaryColor; - this.sectionBkgColor2 = this.tertiaryColor; - this.altSectionBkgColor = 'white'; - this.sectionBkgColor2 = this.primaryColor; - this.taskBorderColor = this.primaryBorderColor; - this.taskBkgColor = this.primaryColor; - this.activeTaskBorderColor = this.primaryColor; - this.activeTaskBkgColor = lighten(this.primaryColor, 23); - this.gridColor = 'lightgrey'; - this.doneTaskBkgColor = 'lightgrey'; - this.doneTaskBorderColor = 'grey'; - this.critBorderColor = '#ff8888'; - this.critBkgColor = 'red'; - this.todayLineColor = 'red'; - this.taskTextColor = this.textColor; - this.taskTextOutsideColor = this.textColor; - this.taskTextLightColor = this.textColor; - this.taskTextColor = this.primaryTextColor; - this.taskTextDarkColor = this.textColor; - this.taskTextOutsideColor = 'calculated'; - this.taskTextClickableColor = '#003163'; - - /* state colors */ - this.labelColor = this.primaryTextColor; - this.altBackground = this.tertiaryColor; - this.errorBkgColor = '#552222'; - this.errorTextColor = '#552222'; + this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor; + this.altSectionBkgColor = this.altSectionBkgColor || 'white'; + this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor; + this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor; + this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor; + this.taskBkgColor = this.taskBkgColor || this.primaryColor; + this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor; + this.activeTaskBkgColor = this.activeTaskBkgColor || lighten(this.primaryColor, 23); + this.gridColor = this.gridColor || 'lightgrey'; + this.doneTaskBkgColor = this.doneTaskBkgColor || 'lightgrey'; + this.doneTaskBorderColor = this.doneTaskBorderColor || 'grey'; + this.critBorderColor = this.critBorderColor || '#ff8888'; + this.critBkgColor = this.critBkgColor || 'red'; + this.todayLineColor = this.todayLineColor || 'red'; + this.taskTextColor = this.taskTextColor || this.textColor; + this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor; + this.taskTextLightColor = this.taskTextLightColor || this.textColor; + this.taskTextColor = this.taskTextColor || this.primaryTextColor; + this.taskTextDarkColor = this.taskTextDarkColor || this.textColor; + this.taskTextClickableColor = this.taskTextClickableColor || '#003163'; /* state colors */ + this.labelColor = this.labelColor || this.primaryTextColor; + this.altBackground = this.altBackground || this.tertiaryColor; + this.errorBkgColor = this.errorBkgColor || this.tertiaryColor; + this.errorTextColor = this.errorTextColor || this.tertiaryTextColor; /* class */ - this.classText = this.textColor; + this.classText = this.classText || this.textColor; /* user-journey */ - this.fillType0 = this.primaryColor; - this.fillType1 = this.secondaryColor; - this.fillType2 = adjust(this.primaryColor, { h: 64 }); - this.fillType3 = adjust(this.secondaryColor, { h: 64 }); - this.fillType4 = adjust(this.primaryColor, { h: -64 }); - this.fillType5 = adjust(this.secondaryColor, { h: -64 }); - this.fillType6 = adjust(this.primaryColor, { h: 128 }); - this.fillType7 = adjust(this.secondaryColor, { h: 128 }); + this.fillType0 = this.fillType0 || this.primaryColor; + this.fillType1 = this.fillType1 || this.secondaryColor; + this.fillType2 = this.fillType2 || adjust(this.primaryColor, { h: 64 }); + this.fillType3 = this.fillType3 || adjust(this.secondaryColor, { h: 64 }); + this.fillType4 = this.fillType4 || adjust(this.primaryColor, { h: -64 }); + this.fillType5 = this.fillType5 || adjust(this.secondaryColor, { h: -64 }); + this.fillType6 = this.fillType6 || adjust(this.primaryColor, { h: 128 }); + this.fillType7 = this.fillType7 || adjust(this.secondaryColor, { h: 128 }); } calculate(overrides) { if (typeof overrides !== 'object') { diff --git a/src/themes/theme-dark.js b/src/themes/theme-dark.js index 666da235fb..c912f61a6a 100644 --- a/src/themes/theme-dark.js +++ b/src/themes/theme-dark.js @@ -1,10 +1,21 @@ import { invert, lighten, darken, rgba, adjust } from 'khroma'; - +import { mkBorder } from './theme-helpers'; class Theme { constructor() { this.background = '#333'; this.primaryColor = '#1f2020'; this.secondaryColor = lighten(this.primaryColor, 16); + + this.tertiaryColor = adjust(this.primaryColor, { h: -160 }); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + this.primaryTextColor = invert(this.primaryColor); + this.secondaryTextColor = invert(this.secondaryColor); + this.tertiaryTextColor = invert(this.tertiaryColor); + this.lineColor = invert(this.background); + this.textColor = invert(this.background); + this.mainBkg = '#1f2020'; this.secondBkg = 'calculated'; this.mainContrastColor = 'lightgrey'; @@ -127,7 +138,7 @@ class Theme { this.fillType6 = adjust(this.primaryColor, { h: 128 }); this.fillType7 = adjust(this.secondaryColor, { h: 128 }); /* class */ - this.classText = this.nodeBorder; + this.classText = this.primaryTextColor; } calculate(overrides) { if (typeof overrides !== 'object') { diff --git a/src/themes/theme-default.js b/src/themes/theme-default.js index a783e4b816..41e6a96d47 100644 --- a/src/themes/theme-default.js +++ b/src/themes/theme-default.js @@ -1,10 +1,26 @@ -import { lighten, rgba, adjust } from 'khroma'; +import { invert, lighten, rgba, adjust } from 'khroma'; +import { mkBorder } from './theme-helpers'; class Theme { constructor() { /* Base variables */ + this.background = '#f4f4f4'; this.primaryColor = '#ECECFF'; + + this.secondaryColor = adjust(this.primaryColor, { h: 120 }); this.secondaryColor = '#ffffde'; + this.tertiaryColor = adjust(this.primaryColor, { h: -160 }); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + // this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode); + + this.primaryTextColor = invert(this.primaryColor); + this.secondaryTextColor = invert(this.secondaryColor); + this.tertiaryTextColor = invert(this.tertiaryColor); + this.lineColor = invert(this.background); + this.textColor = invert(this.background); + this.background = 'white'; this.mainBkg = '#ECECFF'; this.secondBkg = '#ffffde'; @@ -124,7 +140,7 @@ class Theme { /* state colors */ /* class */ - this.classText = this.nodeBorder; + this.classText = this.primaryTextColor; /* journey */ this.fillType0 = this.primaryColor; this.fillType1 = this.secondaryColor; @@ -161,6 +177,6 @@ class Theme { export const getThemeVariables = userOverrides => { const theme = new Theme(); theme.calculate(userOverrides); - console.info('Theme(default)', { userOverrides, theme }); + // console.info('Theme(default)', { userOverrides, theme }); return theme; }; diff --git a/src/themes/theme-forest.js b/src/themes/theme-forest.js index 9d1ed28ff7..d8592f233d 100644 --- a/src/themes/theme-forest.js +++ b/src/themes/theme-forest.js @@ -1,7 +1,9 @@ -import { darken, adjust } from 'khroma'; +import { darken, lighten, adjust, invert } from 'khroma'; +import { mkBorder } from './theme-helpers'; class Theme { constructor() { /* Base vales */ + this.background = '#f4f4f4'; this.primaryColor = '#cde498'; this.secondaryColor = '#cdffb2'; this.background = 'white'; @@ -14,8 +16,17 @@ class Theme { this.fontFamily = '"trebuchet ms", verdana, arial'; this.fontSize = '16px'; - /* Flowchart variables */ + this.tertiaryColor = lighten('#cde498', 10); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + this.primaryTextColor = invert(this.primaryColor); + this.secondaryTextColor = invert(this.secondaryColor); + this.tertiaryTextColor = invert(this.primaryColor); + this.lineColor = invert(this.background); + this.textColor = invert(this.background); + /* Flowchart variables */ this.nodeBkg = 'calculated'; this.nodeBorder = 'calculated'; this.clusterBkg = 'calculated'; @@ -99,7 +110,7 @@ class Theme { /* state colors */ /* class */ - this.classText = this.nodeBorder; + this.classText = this.primaryTextColor; /* journey */ this.fillType0 = this.primaryColor; this.fillType1 = this.secondaryColor; diff --git a/src/themes/theme-helpers.js b/src/themes/theme-helpers.js new file mode 100644 index 0000000000..491b03aa51 --- /dev/null +++ b/src/themes/theme-helpers.js @@ -0,0 +1,4 @@ +import { adjust } from 'khroma'; + +export const mkBorder = (col, darkMode) => + darkMode ? adjust(col, { s: -40, l: 10 }) : adjust(col, { s: -40, l: -10 }); diff --git a/src/themes/theme-neutral.js b/src/themes/theme-neutral.js index e93d3542f8..4d35183654 100644 --- a/src/themes/theme-neutral.js +++ b/src/themes/theme-neutral.js @@ -1,4 +1,5 @@ -import { darken, lighten, adjust } from 'khroma'; +import { invert, darken, lighten, adjust } from 'khroma'; +import { mkBorder } from './theme-helpers'; // const Color = require ( 'khroma/dist/color' ).default // Color.format.hex.stringify(Color.parse('hsl(210, 66.6666666667%, 95%)')); // => "#EAF2FB" @@ -8,7 +9,23 @@ class Theme { this.primaryColor = '#eee'; this.contrast = '#26a'; this.secondaryColor = lighten(this.contrast, 55); - this.background = 'white'; + this.background = '#ffffff'; + + // this.secondaryColor = adjust(this.primaryColor, { h: 120 }); + this.tertiaryColor = adjust(this.primaryColor, { h: -160 }); + console.warn('primary color', this.primaryColor, 'tertiary - color', this.tertiaryColor); + this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode); + this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode); + this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode); + // this.noteBorderColor = mkBorder(this.noteBkgColor, this.darkMode); + + this.primaryTextColor = invert(this.primaryColor); + this.secondaryTextColor = invert(this.secondaryColor); + this.tertiaryTextColor = invert(this.tertiaryColor); + this.lineColor = invert(this.background); + this.textColor = invert(this.background); + + this.altBackground = lighten(this.contrast, 55); this.mainBkg = '#eee'; this.secondBkg = 'calculated'; this.lineColor = '#666'; @@ -131,7 +148,7 @@ class Theme { /* state colors */ /* class */ - this.classText = this.nodeBorder; + this.classText = this.primaryTextColor; /* journey */ this.fillType0 = this.primaryColor; this.fillType1 = this.secondaryColor; diff --git a/stats.json b/stats.json deleted file mode 100644 index c32004174a..0000000000 --- a/stats.json +++ /dev/null @@ -1,308795 +0,0 @@ -{ - "errors": [], - "warnings": [ - "(undefined) asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n mermaid.js (764 KiB)", - "(undefined) entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n mermaid (764 KiB)\n mermaid.js\n", - "(undefined) webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/", - "(undefined) asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n mermaid.core.js (351 KiB)", - "(undefined) entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n mermaid (351 KiB)\n mermaid.core.js\n", - "(undefined) webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/" - ], - "version": "4.41.6", - "hash": "34133397a158b354f98be15ea5577431b72c683d", - "children": [ - { - "errors": [], - "warnings": [ - "asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n mermaid.js (764 KiB)", - "entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n mermaid (764 KiB)\n mermaid.js\n", - "webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/" - ], - "hash": "34133397a158b354f98b", - "time": 16315, - "builtAt": 1594888060861, - "publicPath": "", - "outputPath": "/Users/knuts/source/priv/atlantica/mermaid/dist/", - "assetsByChunkName": { - "mermaid": [ - "mermaid.js", - "mermaid.js.map" - ] - }, - "assets": [ - { - "name": "mermaid.js", - "size": 782657, - "chunks": [ - 0 - ], - "chunkNames": [ - "mermaid" - ], - "info": {}, - "emitted": true, - "isOverSizeLimit": true - }, - { - "name": "mermaid.js.map", - "size": 2907015, - "chunks": [ - 0 - ], - "chunkNames": [ - "mermaid" - ], - "info": { - "development": true - }, - "emitted": true - } - ], - "filteredAssets": 0, - "entrypoints": { - "mermaid": { - "chunks": [ - 0 - ], - "assets": [ - "mermaid.js", - "mermaid.js.map" - ], - "children": {}, - "childAssets": {}, - "isOverSizeLimit": true - } - }, - "namedChunkGroups": { - "mermaid": { - "chunks": [ - 0 - ], - "assets": [ - "mermaid.js", - "mermaid.js.map" - ], - "children": {}, - "childAssets": {}, - "isOverSizeLimit": true - } - }, - "chunks": [ - { - "id": 0, - "rendered": true, - "initial": true, - "entry": true, - "size": 1721503, - "names": [ - "mermaid" - ], - "files": [ - "mermaid.js", - "mermaid.js.map" - ], - "hash": "c89ab2fe2b61fb133679", - "siblings": [], - "parents": [], - "children": [], - "childrenByOrder": {}, - "modules": [ - { - "id": 0, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js daa161b1f30eb913167fb63d2cd63e08", - "name": "./node_modules/d3/index.js + 520 modules", - "index": 3, - "index2": 521, - "size": 554982, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "module": "./node_modules/dagre-d3/lib/d3.js", - "moduleName": "./node_modules/dagre-d3/lib/d3.js", - "type": "cjs require", - "userRequest": "d3", - "loc": "7:11-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": true, - "providedExports": [ - "version", - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip", - "axisTop", - "axisRight", - "axisBottom", - "axisLeft", - "brush", - "brushX", - "brushY", - "brushSelection", - "chord", - "ribbon", - "nest", - "set", - "map", - "keys", - "values", - "entries", - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix", - "contours", - "contourDensity", - "dispatch", - "drag", - "dragDisable", - "dragEnable", - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType", - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut", - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg", - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY", - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound", - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform", - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize", - "path", - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength", - "quadtree", - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent", - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse", - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears", - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse", - "now", - "timer", - "timerFlush", - "timeout", - "interval", - "transition", - "active", - "interrupt", - "voronoi", - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [], - "depth": 2, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "index": 3, - "index2": 521, - "size": 893, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "module": "./node_modules/dagre-d3/lib/d3.js", - "moduleName": "./node_modules/dagre-d3/lib/d3.js", - "type": "cjs require", - "userRequest": "d3", - "loc": "7:11-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": true, - "providedExports": [ - "version", - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip", - "axisTop", - "axisRight", - "axisBottom", - "axisLeft", - "brush", - "brushX", - "brushY", - "brushSelection", - "chord", - "ribbon", - "nest", - "set", - "map", - "keys", - "values", - "entries", - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix", - "contours", - "contourDensity", - "dispatch", - "drag", - "dragDisable", - "dragEnable", - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType", - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut", - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg", - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY", - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound", - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform", - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize", - "path", - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength", - "quadtree", - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent", - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse", - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears", - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse", - "now", - "timer", - "timerFlush", - "timeout", - "interval", - "transition", - "active", - "interrupt", - "voronoi", - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./node_modules/dagre-d3/lib/d3.js (referenced with cjs require)" - ], - "depth": 2, - "source": "export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/dist/package.js", - "name": "./node_modules/d3/dist/package.js", - "index": 4, - "index2": 1, - "size": 2149, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dist/package.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dist/package.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "version" - ], - "providedExports": [ - "name", - "version", - "description", - "keywords", - "homepage", - "license", - "author", - "main", - "unpkg", - "jsdelivr", - "module", - "repository", - "files", - "scripts", - "devDependencies", - "dependencies" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export var name = \"d3\";\nexport var version = \"5.15.0\";\nexport var description = \"Data-Driven Documents\";\nexport var keywords = [\"dom\",\"visualization\",\"svg\",\"animation\",\"canvas\"];\nexport var homepage = \"https://d3js.org\";\nexport var license = \"BSD-3-Clause\";\nexport var author = {\"name\":\"Mike Bostock\",\"url\":\"https://bost.ocks.org/mike\"};\nexport var main = \"dist/d3.node.js\";\nexport var unpkg = \"dist/d3.min.js\";\nexport var jsdelivr = \"dist/d3.min.js\";\nexport var module = \"index.js\";\nexport var repository = {\"type\":\"git\",\"url\":\"https://github.com/d3/d3.git\"};\nexport var files = [\"dist/**/*.js\",\"index.js\"];\nexport var scripts = {\"pretest\":\"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "index": 5, - "index2": 33, - "size": 1321, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "2:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-array", - "loc": "2:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "5:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "5:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "5:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "10:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "10:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "11:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "12:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "14:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "15:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "17:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "19:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "22:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "26:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "27:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "28:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "29:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "29:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "31:18-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "32:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "34:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "34:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "39:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "39:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "40:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "40:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "41:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "43:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "52:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "57:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "58:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "59:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "78:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "80:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "87:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "96:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "106:10-15" - } - ], - "usedExports": [ - "tickStep", - "bisect", - "ticks", - "tickIncrement", - "ascending", - "bisector", - "quantile", - "range", - "max", - "thresholdSturges", - "extent", - "min", - "bisectRight", - "bisectLeft", - "cross", - "descending", - "deviation", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "mean", - "median", - "merge", - "pairs", - "permute", - "scan", - "shuffle", - "sum", - "transpose", - "variance", - "zip" - ], - "providedExports": [ - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as bisect, bisectRight, bisectLeft} from \"./bisect\";\nexport {default as ascending} from \"./ascending\";\nexport {default as bisector} from \"./bisector\";\nexport {default as cross} from \"./cross\";\nexport {default as descending} from \"./descending\";\nexport {default as deviation} from \"./deviation\";\nexport {default as extent} from \"./extent\";\nexport {default as histogram} from \"./histogram\";\nexport {default as thresholdFreedmanDiaconis} from \"./threshold/freedmanDiaconis\";\nexport {default as thresholdScott} from \"./threshold/scott\";\nexport {default as thresholdSturges} from \"./threshold/sturges\";\nexport {default as max} from \"./max\";\nexport {default as mean} from \"./mean\";\nexport {default as median} from \"./median\";\nexport {default as merge} from \"./merge\";\nexport {default as min} from \"./min\";\nexport {default as pairs} from \"./pairs\";\nexport {default as permute} from \"./permute\";\nexport {default as quantile} from \"./quantile\";\nexport {default as range} from \"./range\";\nexport {default as scan} from \"./scan\";\nexport {default as shuffle} from \"./shuffle\";\nexport {default as sum} from \"./sum\";\nexport {default as ticks, tickIncrement, tickStep} from \"./ticks\";\nexport {default as transpose} from \"./transpose\";\nexport {default as variance} from \"./variance\";\nexport {default as zip} from \"./zip\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "index": 37, - "index2": 37, - "size": 75, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-axis", - "loc": "3:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-axis", - "loc": "3:0-24" - } - ], - "usedExports": [ - "axisBottom", - "axisTop", - "axisRight", - "axisLeft" - ], - "providedExports": [ - "axisTop", - "axisRight", - "axisBottom", - "axisLeft" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n axisTop,\n axisRight,\n axisBottom,\n axisLeft\n} from \"./axis\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "index": 43, - "index2": 122, - "size": 192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "5:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "5:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "30:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-transition", - "loc": "30:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "236:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "248:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "261:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "313:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "390:4-13" - } - ], - "usedExports": [ - "interrupt", - "transition", - "active" - ], - "providedExports": [ - "transition", - "active", - "interrupt" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import \"./selection/index.js\";\nexport {default as transition} from \"./transition/index.js\";\nexport {default as active} from \"./active.js\";\nexport {default as interrupt} from \"./interrupt.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "index": 41, - "index2": 139, - "size": 87, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-brush", - "loc": "4:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-brush", - "loc": "4:0-25" - } - ], - "usedExports": [ - "brush", - "brushX", - "brushY", - "brushSelection" - ], - "providedExports": [ - "brush", - "brushX", - "brushY", - "brushSelection" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as brush,\n brushX,\n brushY,\n brushSelection\n} from \"./brush.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "index": 143, - "index2": 146, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-chord", - "loc": "5:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-chord", - "loc": "5:0-25" - } - ], - "usedExports": [ - "chord", - "ribbon" - ], - "providedExports": [ - "chord", - "ribbon" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as chord} from \"./chord\";\nexport {default as ribbon} from \"./ribbon\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "index": 150, - "index2": 153, - "size": 246, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "6:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-collection", - "loc": "6:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "8:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "23:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "24:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "55:19-22" - } - ], - "usedExports": [ - "map", - "entries", - "nest", - "set", - "keys", - "values" - ], - "providedExports": [ - "nest", - "set", - "map", - "keys", - "values", - "entries" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as nest} from \"./nest\";\nexport {default as set} from \"./set\";\nexport {default as map} from \"./map\";\nexport {default as keys} from \"./keys\";\nexport {default as values} from \"./values\";\nexport {default as entries} from \"./entries\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "index": 157, - "index2": 157, - "size": 165, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "7:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-color", - "loc": "7:0-25" - } - ], - "usedExports": [ - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix" - ], - "providedExports": [ - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as color, rgb, hsl} from \"./color.js\";\nexport {default as lab, hcl, lch, gray} from \"./lab.js\";\nexport {default as cubehelix} from \"./cubehelix.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "index": 161, - "index2": 167, - "size": 101, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-contour", - "loc": "8:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-contour", - "loc": "8:0-27" - } - ], - "usedExports": [ - "contours", - "contourDensity" - ], - "providedExports": [ - "contours", - "contourDensity" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as contours} from \"./contours\";\nexport {default as contourDensity} from \"./density\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "name": "./node_modules/d3-dispatch/src/index.js", - "index": 171, - "index2": 168, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-dispatch", - "loc": "9:0-28" - } - ], - "usedExports": [ - "dispatch" - ], - "providedExports": [ - "dispatch" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as dispatch} from \"./dispatch.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "index": 172, - "index2": 172, - "size": 118, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "10:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-drag", - "loc": "10:0-24" - } - ], - "usedExports": [ - "drag", - "dragDisable", - "dragEnable" - ], - "providedExports": [ - "drag", - "dragDisable", - "dragEnable" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as drag} from \"./drag.js\";\nexport {default as dragDisable, yesdrag as dragEnable} from \"./nodrag.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "index": 176, - "index2": 177, - "size": 338, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dsv", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dsv", - "loc": "11:0-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-dsv", - "loc": "11:0-23" - } - ], - "usedExports": [ - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType" - ], - "providedExports": [ - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as dsvFormat} from \"./dsv.js\";\nexport {csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue} from \"./csv.js\";\nexport {tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue} from \"./tsv.js\";\nexport {default as autoType} from \"./autoType.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "index": 181, - "index2": 187, - "size": 1310, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-ease", - "loc": "3:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-ease", - "loc": "12:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-ease", - "loc": "12:0-24" - } - ], - "usedExports": [ - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut" - ], - "providedExports": [ - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n linear as easeLinear\n} from \"./linear.js\";\n\nexport {\n quadInOut as easeQuad,\n quadIn as easeQuadIn,\n quadOut as easeQuadOut,\n quadInOut as easeQuadInOut\n} from \"./quad.js\";\n\nexport {\n cubicInOut as easeCubic,\n cubicIn as easeCubicIn,\n cubicOut as easeCubicOut,\n cubicInOut as easeCubicInOut\n} from \"./cubic.js\";\n\nexport {\n polyInOut as easePoly,\n polyIn as easePolyIn,\n polyOut as easePolyOut,\n polyInOut as easePolyInOut\n} from \"./poly.js\";\n\nexport {\n sinInOut as easeSin,\n sinIn as easeSinIn,\n sinOut as easeSinOut,\n sinInOut as easeSinInOut\n} from \"./sin.js\";\n\nexport {\n expInOut as easeExp,\n expIn as easeExpIn,\n expOut as easeExpOut,\n expInOut as easeExpInOut\n} from \"./exp.js\";\n\nexport {\n circleInOut as easeCircle,\n circleIn as easeCircleIn,\n circleOut as easeCircleOut,\n circleInOut as easeCircleInOut\n} from \"./circle.js\";\n\nexport {\n bounceOut as easeBounce,\n bounceIn as easeBounceIn,\n bounceOut as easeBounceOut,\n bounceInOut as easeBounceInOut\n} from \"./bounce.js\";\n\nexport {\n backInOut as easeBack,\n backIn as easeBackIn,\n backOut as easeBackOut,\n backInOut as easeBackInOut\n} from \"./back.js\";\n\nexport {\n elasticOut as easeElastic,\n elasticIn as easeElasticIn,\n elasticOut as easeElasticOut,\n elasticInOut as easeElasticInOut\n} from \"./elastic.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "index": 191, - "index2": 195, - "size": 303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-fetch", - "loc": "13:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-fetch", - "loc": "13:0-25" - } - ], - "usedExports": [ - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg" - ], - "providedExports": [ - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as blob} from \"./blob\";\nexport {default as buffer} from \"./buffer\";\nexport {default as dsv, csv, tsv} from \"./dsv\";\nexport {default as image} from \"./image\";\nexport {default as json} from \"./json\";\nexport {default as text} from \"./text\";\nexport {default as xml, html, svg} from \"./xml\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "index": 199, - "index2": 220, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-force", - "loc": "14:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-force", - "loc": "14:0-25" - } - ], - "usedExports": [ - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY" - ], - "providedExports": [ - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as forceCenter} from \"./center\";\nexport {default as forceCollide} from \"./collide\";\nexport {default as forceLink} from \"./link\";\nexport {default as forceManyBody} from \"./manyBody\";\nexport {default as forceRadial} from \"./radial\";\nexport {default as forceSimulation} from \"./simulation\";\nexport {default as forceX} from \"./x\";\nexport {default as forceY} from \"./y\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "index": 224, - "index2": 236, - "size": 415, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "2:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "15:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-format", - "loc": "15:0-26" - } - ], - "usedExports": [ - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound" - ], - "providedExports": [ - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as formatDefaultLocale, format, formatPrefix} from \"./defaultLocale.js\";\nexport {default as formatLocale} from \"./locale.js\";\nexport {default as formatSpecifier, FormatSpecifier} from \"./formatSpecifier.js\";\nexport {default as precisionFixed} from \"./precisionFixed.js\";\nexport {default as precisionPrefix} from \"./precisionPrefix.js\";\nexport {default as precisionRound} from \"./precisionRound.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "index": 240, - "index2": 295, - "size": 2872, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-geo", - "loc": "16:0-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-geo", - "loc": "16:0-23" - } - ], - "usedExports": [ - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform" - ], - "providedExports": [ - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as geoArea} from \"./area.js\";\nexport {default as geoBounds} from \"./bounds.js\";\nexport {default as geoCentroid} from \"./centroid.js\";\nexport {default as geoCircle} from \"./circle.js\";\nexport {default as geoClipAntimeridian} from \"./clip/antimeridian.js\";\nexport {default as geoClipCircle} from \"./clip/circle.js\";\nexport {default as geoClipExtent} from \"./clip/extent.js\"; // DEPRECATED! Use d3.geoIdentity().clipExtent(…).\nexport {default as geoClipRectangle} from \"./clip/rectangle.js\";\nexport {default as geoContains} from \"./contains.js\";\nexport {default as geoDistance} from \"./distance.js\";\nexport {default as geoGraticule, graticule10 as geoGraticule10} from \"./graticule.js\";\nexport {default as geoInterpolate} from \"./interpolate.js\";\nexport {default as geoLength} from \"./length.js\";\nexport {default as geoPath} from \"./path/index.js\";\nexport {default as geoAlbers} from \"./projection/albers.js\";\nexport {default as geoAlbersUsa} from \"./projection/albersUsa.js\";\nexport {default as geoAzimuthalEqualArea, azimuthalEqualAreaRaw as geoAzimuthalEqualAreaRaw} from \"./projection/azimuthalEqualArea.js\";\nexport {default as geoAzimuthalEquidistant, azimuthalEquidistantRaw as geoAzimuthalEquidistantRaw} from \"./projection/azimuthalEquidistant.js\";\nexport {default as geoConicConformal, conicConformalRaw as geoConicConformalRaw} from \"./projection/conicConformal.js\";\nexport {default as geoConicEqualArea, conicEqualAreaRaw as geoConicEqualAreaRaw} from \"./projection/conicEqualArea.js\";\nexport {default as geoConicEquidistant, conicEquidistantRaw as geoConicEquidistantRaw} from \"./projection/conicEquidistant.js\";\nexport {default as geoEqualEarth, equalEarthRaw as geoEqualEarthRaw} from \"./projection/equalEarth.js\";\nexport {default as geoEquirectangular, equirectangularRaw as geoEquirectangularRaw} from \"./projection/equirectangular.js\";\nexport {default as geoGnomonic, gnomonicRaw as geoGnomonicRaw} from \"./projection/gnomonic.js\";\nexport {default as geoIdentity} from \"./projection/identity.js\";\nexport {default as geoProjection, projectionMutator as geoProjectionMutator} from \"./projection/index.js\";\nexport {default as geoMercator, mercatorRaw as geoMercatorRaw} from \"./projection/mercator.js\";\nexport {default as geoNaturalEarth1, naturalEarth1Raw as geoNaturalEarth1Raw} from \"./projection/naturalEarth1.js\";\nexport {default as geoOrthographic, orthographicRaw as geoOrthographicRaw} from \"./projection/orthographic.js\";\nexport {default as geoStereographic, stereographicRaw as geoStereographicRaw} from \"./projection/stereographic.js\";\nexport {default as geoTransverseMercator, transverseMercatorRaw as geoTransverseMercatorRaw} from \"./projection/transverseMercator.js\";\nexport {default as geoRotation} from \"./rotation.js\";\nexport {default as geoStream} from \"./stream.js\";\nexport {default as geoTransform} from \"./transform.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "index": 299, - "index2": 326, - "size": 861, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-hierarchy", - "loc": "17:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-hierarchy", - "loc": "17:0-29" - } - ], - "usedExports": [ - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify" - ], - "providedExports": [ - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as cluster} from \"./cluster.js\";\nexport {default as hierarchy} from \"./hierarchy/index.js\";\nexport {default as pack} from \"./pack/index.js\";\nexport {default as packSiblings} from \"./pack/siblings.js\";\nexport {default as packEnclose} from \"./pack/enclose.js\";\nexport {default as partition} from \"./partition.js\";\nexport {default as stratify} from \"./stratify.js\";\nexport {default as tree} from \"./tree.js\";\nexport {default as treemap} from \"./treemap/index.js\";\nexport {default as treemapBinary} from \"./treemap/binary.js\";\nexport {default as treemapDice} from \"./treemap/dice.js\";\nexport {default as treemapSlice} from \"./treemap/slice.js\";\nexport {default as treemapSliceDice} from \"./treemap/sliceDice.js\";\nexport {default as treemapSquarify} from \"./treemap/squarify.js\";\nexport {default as treemapResquarify} from \"./treemap/resquarify.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "index": 330, - "index2": 337, - "size": 1397, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "module": "./node_modules/d3-scale-chromatic/src/ramp.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/ramp.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "18:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-interpolate", - "loc": "18:0-31" - } - ], - "usedExports": [ - "interpolateHcl", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize" - ], - "providedExports": [ - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as interpolate} from \"./value.js\";\nexport {default as interpolateArray} from \"./array.js\";\nexport {default as interpolateBasis} from \"./basis.js\";\nexport {default as interpolateBasisClosed} from \"./basisClosed.js\";\nexport {default as interpolateDate} from \"./date.js\";\nexport {default as interpolateDiscrete} from \"./discrete.js\";\nexport {default as interpolateHue} from \"./hue.js\";\nexport {default as interpolateNumber} from \"./number.js\";\nexport {default as interpolateNumberArray} from \"./numberArray.js\";\nexport {default as interpolateObject} from \"./object.js\";\nexport {default as interpolateRound} from \"./round.js\";\nexport {default as interpolateString} from \"./string.js\";\nexport {interpolateTransformCss, interpolateTransformSvg} from \"./transform/index.js\";\nexport {default as interpolateZoom} from \"./zoom.js\";\nexport {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from \"./rgb.js\";\nexport {default as interpolateHsl, hslLong as interpolateHslLong} from \"./hsl.js\";\nexport {default as interpolateLab} from \"./lab.js\";\nexport {default as interpolateHcl, hclLong as interpolateHclLong} from \"./hcl.js\";\nexport {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from \"./cubehelix.js\";\nexport {default as piecewise} from \"./piecewise.js\";\nexport {default as quantize} from \"./quantize.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "name": "./node_modules/d3-path/src/index.js", - "index": 341, - "index2": 338, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "19:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-path", - "loc": "19:0-24" - } - ], - "usedExports": [ - "path" - ], - "providedExports": [ - "path" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as path} from \"./path.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "index": 342, - "index2": 345, - "size": 270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-polygon", - "loc": "20:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-polygon", - "loc": "20:0-27" - } - ], - "usedExports": [ - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength" - ], - "providedExports": [ - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as polygonArea} from \"./area.js\";\nexport {default as polygonCentroid} from \"./centroid.js\";\nexport {default as polygonHull} from \"./hull.js\";\nexport {default as polygonContains} from \"./contains.js\";\nexport {default as polygonLength} from \"./length.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "index": 349, - "index2": 346, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "21:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-quadtree", - "loc": "21:0-28" - } - ], - "usedExports": [ - "quadtree" - ], - "providedExports": [ - "quadtree" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as quadtree} from \"./quadtree.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "index": 350, - "index2": 354, - "size": 322, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-random", - "loc": "22:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-random", - "loc": "22:0-26" - } - ], - "usedExports": [ - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential" - ], - "providedExports": [ - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as randomUniform} from \"./uniform\";\nexport {default as randomNormal} from \"./normal\";\nexport {default as randomLogNormal} from \"./logNormal\";\nexport {default as randomBates} from \"./bates\";\nexport {default as randomIrwinHall} from \"./irwinHall\";\nexport {default as randomExponential} from \"./exponential\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "index": 358, - "index2": 395, - "size": 1295, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-scale", - "loc": "23:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-scale", - "loc": "23:0-25" - } - ], - "usedExports": [ - "scaleOrdinal", - "scaleTime", - "scaleLinear", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLog", - "scaleSymlog", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat" - ], - "providedExports": [ - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as scaleBand,\n point as scalePoint\n} from \"./band\";\n\nexport {\n default as scaleIdentity\n} from \"./identity\";\n\nexport {\n default as scaleLinear\n} from \"./linear\";\n\nexport {\n default as scaleLog\n} from \"./log\";\n\nexport {\n default as scaleSymlog\n} from \"./symlog\";\n\nexport {\n default as scaleOrdinal,\n implicit as scaleImplicit\n} from \"./ordinal\";\n\nexport {\n default as scalePow,\n sqrt as scaleSqrt\n} from \"./pow\";\n\nexport {\n default as scaleQuantile\n} from \"./quantile\";\n\nexport {\n default as scaleQuantize\n} from \"./quantize\";\n\nexport {\n default as scaleThreshold\n} from \"./threshold\";\n\nexport {\n default as scaleTime\n} from \"./time\";\n\nexport {\n default as scaleUtc\n} from \"./utcTime\";\n\nexport {\n default as scaleSequential,\n sequentialLog as scaleSequentialLog,\n sequentialPow as scaleSequentialPow,\n sequentialSqrt as scaleSequentialSqrt,\n sequentialSymlog as scaleSequentialSymlog\n} from \"./sequential\";\n\nexport {\n default as scaleSequentialQuantile\n} from \"./sequentialQuantile\";\n\nexport {\n default as scaleDiverging,\n divergingLog as scaleDivergingLog,\n divergingPow as scaleDivergingPow,\n divergingSqrt as scaleDivergingSqrt,\n divergingSymlog as scaleDivergingSymlog\n} from \"./diverging\";\n\nexport {\n default as tickFormat\n} from \"./tickFormat\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "index": 399, - "index2": 441, - "size": 3792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-scale-chromatic", - "loc": "24:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-scale-chromatic", - "loc": "24:0-35" - } - ], - "usedExports": [ - "schemeSet2", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma" - ], - "providedExports": [ - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as schemeCategory10} from \"./categorical/category10.js\";\nexport {default as schemeAccent} from \"./categorical/Accent.js\";\nexport {default as schemeDark2} from \"./categorical/Dark2.js\";\nexport {default as schemePaired} from \"./categorical/Paired.js\";\nexport {default as schemePastel1} from \"./categorical/Pastel1.js\";\nexport {default as schemePastel2} from \"./categorical/Pastel2.js\";\nexport {default as schemeSet1} from \"./categorical/Set1.js\";\nexport {default as schemeSet2} from \"./categorical/Set2.js\";\nexport {default as schemeSet3} from \"./categorical/Set3.js\";\nexport {default as schemeTableau10} from \"./categorical/Tableau10.js\";\nexport {default as interpolateBrBG, scheme as schemeBrBG} from \"./diverging/BrBG.js\";\nexport {default as interpolatePRGn, scheme as schemePRGn} from \"./diverging/PRGn.js\";\nexport {default as interpolatePiYG, scheme as schemePiYG} from \"./diverging/PiYG.js\";\nexport {default as interpolatePuOr, scheme as schemePuOr} from \"./diverging/PuOr.js\";\nexport {default as interpolateRdBu, scheme as schemeRdBu} from \"./diverging/RdBu.js\";\nexport {default as interpolateRdGy, scheme as schemeRdGy} from \"./diverging/RdGy.js\";\nexport {default as interpolateRdYlBu, scheme as schemeRdYlBu} from \"./diverging/RdYlBu.js\";\nexport {default as interpolateRdYlGn, scheme as schemeRdYlGn} from \"./diverging/RdYlGn.js\";\nexport {default as interpolateSpectral, scheme as schemeSpectral} from \"./diverging/Spectral.js\";\nexport {default as interpolateBuGn, scheme as schemeBuGn} from \"./sequential-multi/BuGn.js\";\nexport {default as interpolateBuPu, scheme as schemeBuPu} from \"./sequential-multi/BuPu.js\";\nexport {default as interpolateGnBu, scheme as schemeGnBu} from \"./sequential-multi/GnBu.js\";\nexport {default as interpolateOrRd, scheme as schemeOrRd} from \"./sequential-multi/OrRd.js\";\nexport {default as interpolatePuBuGn, scheme as schemePuBuGn} from \"./sequential-multi/PuBuGn.js\";\nexport {default as interpolatePuBu, scheme as schemePuBu} from \"./sequential-multi/PuBu.js\";\nexport {default as interpolatePuRd, scheme as schemePuRd} from \"./sequential-multi/PuRd.js\";\nexport {default as interpolateRdPu, scheme as schemeRdPu} from \"./sequential-multi/RdPu.js\";\nexport {default as interpolateYlGnBu, scheme as schemeYlGnBu} from \"./sequential-multi/YlGnBu.js\";\nexport {default as interpolateYlGn, scheme as schemeYlGn} from \"./sequential-multi/YlGn.js\";\nexport {default as interpolateYlOrBr, scheme as schemeYlOrBr} from \"./sequential-multi/YlOrBr.js\";\nexport {default as interpolateYlOrRd, scheme as schemeYlOrRd} from \"./sequential-multi/YlOrRd.js\";\nexport {default as interpolateBlues, scheme as schemeBlues} from \"./sequential-single/Blues.js\";\nexport {default as interpolateGreens, scheme as schemeGreens} from \"./sequential-single/Greens.js\";\nexport {default as interpolateGreys, scheme as schemeGreys} from \"./sequential-single/Greys.js\";\nexport {default as interpolatePurples, scheme as schemePurples} from \"./sequential-single/Purples.js\";\nexport {default as interpolateReds, scheme as schemeReds} from \"./sequential-single/Reds.js\";\nexport {default as interpolateOranges, scheme as schemeOranges} from \"./sequential-single/Oranges.js\";\nexport {default as interpolateCividis} from \"./sequential-multi/cividis.js\";\nexport {default as interpolateCubehelixDefault} from \"./sequential-multi/cubehelix.js\";\nexport {default as interpolateRainbow, warm as interpolateWarm, cool as interpolateCool} from \"./sequential-multi/rainbow.js\";\nexport {default as interpolateSinebow} from \"./sequential-multi/sinebow.js\";\nexport {default as interpolateTurbo} from \"./sequential-multi/turbo.js\";\nexport {default as interpolateViridis, magma as interpolateMagma, inferno as interpolateInferno, plasma as interpolatePlasma} from \"./sequential-multi/viridis.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "index": 445, - "index2": 446, - "size": 860, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "module": "./node_modules/d3-transition/src/transition/selection.js", - "moduleName": "./node_modules/d3-transition/src/transition/selection.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "module": "./node_modules/d3-transition/src/transition/attrTween.js", - "moduleName": "./node_modules/d3-transition/src/transition/attrTween.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "4:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "4:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "25:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-selection", - "loc": "25:0-29" - } - ], - "usedExports": [ - "select", - "selectAll", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent" - ], - "providedExports": [ - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as create} from \"./create\";\nexport {default as creator} from \"./creator\";\nexport {default as local} from \"./local\";\nexport {default as matcher} from \"./matcher\";\nexport {default as mouse} from \"./mouse\";\nexport {default as namespace} from \"./namespace\";\nexport {default as namespaces} from \"./namespaces\";\nexport {default as clientPoint} from \"./point\";\nexport {default as select} from \"./select\";\nexport {default as selectAll} from \"./selectAll\";\nexport {default as selection} from \"./selection/index\";\nexport {default as selector} from \"./selector\";\nexport {default as selectorAll} from \"./selectorAll\";\nexport {styleValue as style} from \"./selection/style\";\nexport {default as touch} from \"./touch\";\nexport {default as touches} from \"./touches\";\nexport {default as window} from \"./window\";\nexport {event, customEvent} from \"./selection/on\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "index": 450, - "index2": 498, - "size": 2848, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-shape", - "loc": "26:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-shape", - "loc": "26:0-25" - } - ], - "usedExports": [ - "curveBasis", - "curveBasisClosed", - "curveBasisOpen", - "curveLinear", - "curveLinearClosed", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "arc", - "line", - "pie", - "area", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse" - ], - "providedExports": [ - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as arc} from \"./arc.js\";\nexport {default as area} from \"./area.js\";\nexport {default as line} from \"./line.js\";\nexport {default as pie} from \"./pie.js\";\nexport {default as areaRadial, default as radialArea} from \"./areaRadial.js\"; // Note: radialArea is deprecated!\nexport {default as lineRadial, default as radialLine} from \"./lineRadial.js\"; // Note: radialLine is deprecated!\nexport {default as pointRadial} from \"./pointRadial.js\";\nexport {linkHorizontal, linkVertical, linkRadial} from \"./link/index.js\";\n\nexport {default as symbol, symbols} from \"./symbol.js\";\nexport {default as symbolCircle} from \"./symbol/circle.js\";\nexport {default as symbolCross} from \"./symbol/cross.js\";\nexport {default as symbolDiamond} from \"./symbol/diamond.js\";\nexport {default as symbolSquare} from \"./symbol/square.js\";\nexport {default as symbolStar} from \"./symbol/star.js\";\nexport {default as symbolTriangle} from \"./symbol/triangle.js\";\nexport {default as symbolWye} from \"./symbol/wye.js\";\n\nexport {default as curveBasisClosed} from \"./curve/basisClosed.js\";\nexport {default as curveBasisOpen} from \"./curve/basisOpen.js\";\nexport {default as curveBasis} from \"./curve/basis.js\";\nexport {default as curveBundle} from \"./curve/bundle.js\";\nexport {default as curveCardinalClosed} from \"./curve/cardinalClosed.js\";\nexport {default as curveCardinalOpen} from \"./curve/cardinalOpen.js\";\nexport {default as curveCardinal} from \"./curve/cardinal.js\";\nexport {default as curveCatmullRomClosed} from \"./curve/catmullRomClosed.js\";\nexport {default as curveCatmullRomOpen} from \"./curve/catmullRomOpen.js\";\nexport {default as curveCatmullRom} from \"./curve/catmullRom.js\";\nexport {default as curveLinearClosed} from \"./curve/linearClosed.js\";\nexport {default as curveLinear} from \"./curve/linear.js\";\nexport {monotoneX as curveMonotoneX, monotoneY as curveMonotoneY} from \"./curve/monotone.js\";\nexport {default as curveNatural} from \"./curve/natural.js\";\nexport {default as curveStep, stepAfter as curveStepAfter, stepBefore as curveStepBefore} from \"./curve/step.js\";\n\nexport {default as stack} from \"./stack.js\";\nexport {default as stackOffsetExpand} from \"./offset/expand.js\";\nexport {default as stackOffsetDiverging} from \"./offset/diverging.js\";\nexport {default as stackOffsetNone} from \"./offset/none.js\";\nexport {default as stackOffsetSilhouette} from \"./offset/silhouette.js\";\nexport {default as stackOffsetWiggle} from \"./offset/wiggle.js\";\nexport {default as stackOrderAppearance} from \"./order/appearance.js\";\nexport {default as stackOrderAscending} from \"./order/ascending.js\";\nexport {default as stackOrderDescending} from \"./order/descending.js\";\nexport {default as stackOrderInsideOut} from \"./order/insideOut.js\";\nexport {default as stackOrderNone} from \"./order/none.js\";\nexport {default as stackOrderReverse} from \"./order/reverse.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "index": 502, - "index2": 499, - "size": 2081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "1:0-12:17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "2:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "3:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "27:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-time", - "loc": "27:0-24" - } - ], - "usedExports": [ - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears" - ], - "providedExports": [ - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as timeInterval\n} from \"./interval.js\";\n\nexport {\n default as timeMillisecond,\n milliseconds as timeMilliseconds,\n default as utcMillisecond,\n milliseconds as utcMilliseconds\n} from \"./millisecond.js\";\n\nexport {\n default as timeSecond,\n seconds as timeSeconds,\n default as utcSecond,\n seconds as utcSeconds\n} from \"./second.js\";\n\nexport {\n default as timeMinute,\n minutes as timeMinutes\n} from \"./minute.js\";\n\nexport {\n default as timeHour,\n hours as timeHours\n} from \"./hour.js\";\n\nexport {\n default as timeDay,\n days as timeDays\n} from \"./day.js\";\n\nexport {\n sunday as timeWeek,\n sundays as timeWeeks,\n sunday as timeSunday,\n sundays as timeSundays,\n monday as timeMonday,\n mondays as timeMondays,\n tuesday as timeTuesday,\n tuesdays as timeTuesdays,\n wednesday as timeWednesday,\n wednesdays as timeWednesdays,\n thursday as timeThursday,\n thursdays as timeThursdays,\n friday as timeFriday,\n fridays as timeFridays,\n saturday as timeSaturday,\n saturdays as timeSaturdays\n} from \"./week.js\";\n\nexport {\n default as timeMonth,\n months as timeMonths\n} from \"./month.js\";\n\nexport {\n default as timeYear,\n years as timeYears\n} from \"./year.js\";\n\nexport {\n default as utcMinute,\n utcMinutes as utcMinutes\n} from \"./utcMinute.js\";\n\nexport {\n default as utcHour,\n utcHours as utcHours\n} from \"./utcHour.js\";\n\nexport {\n default as utcDay,\n utcDays as utcDays\n} from \"./utcDay.js\";\n\nexport {\n utcSunday as utcWeek,\n utcSundays as utcWeeks,\n utcSunday as utcSunday,\n utcSundays as utcSundays,\n utcMonday as utcMonday,\n utcMondays as utcMondays,\n utcTuesday as utcTuesday,\n utcTuesdays as utcTuesdays,\n utcWednesday as utcWednesday,\n utcWednesdays as utcWednesdays,\n utcThursday as utcThursday,\n utcThursdays as utcThursdays,\n utcFriday as utcFriday,\n utcFridays as utcFridays,\n utcSaturday as utcSaturday,\n utcSaturdays as utcSaturdays\n} from \"./utcWeek.js\";\n\nexport {\n default as utcMonth,\n utcMonths as utcMonths\n} from \"./utcMonth.js\";\n\nexport {\n default as utcYear,\n utcYears as utcYears\n} from \"./utcYear.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "index": 503, - "index2": 502, - "size": 276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "28:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-time-format", - "loc": "28:0-31" - } - ], - "usedExports": [ - "timeFormat", - "timeFormatDefaultLocale", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse" - ], - "providedExports": [ - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from \"./defaultLocale.js\";\nexport {default as timeFormatLocale} from \"./locale.js\";\nexport {default as isoFormat} from \"./isoFormat.js\";\nexport {default as isoParse} from \"./isoParse.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "index": 506, - "index2": 504, - "size": 169, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "3:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "29:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-timer", - "loc": "29:0-25" - } - ], - "usedExports": [ - "now", - "timer", - "timerFlush", - "timeout", - "interval" - ], - "providedExports": [ - "now", - "timer", - "timerFlush", - "timeout", - "interval" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n now,\n timer,\n timerFlush\n} from \"./timer.js\";\n\nexport {\n default as timeout\n} from \"./timeout.js\";\n\nexport {\n default as interval\n} from \"./interval.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "index": 508, - "index2": 514, - "size": 46, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-voronoi", - "loc": "31:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-voronoi", - "loc": "31:0-27" - } - ], - "usedExports": [ - "voronoi" - ], - "providedExports": [ - "voronoi" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as voronoi} from \"./voronoi\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "index": 518, - "index2": 520, - "size": 126, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-zoom", - "loc": "32:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-zoom", - "loc": "32:0-24" - } - ], - "usedExports": [ - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "providedExports": [ - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as zoom} from \"./zoom.js\";\nexport {default as zoomTransform, identity as zoomIdentity} from \"./transform.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/ascending.js", - "name": "./node_modules/d3-array/src/ascending.js", - "index": 7, - "index2": 2, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "module": "./node_modules/d3-array/src/bisector.js", - "moduleName": "./node_modules/d3-array/src/bisector.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "module": "./node_modules/d3-array/src/scan.js", - "moduleName": "./node_modules/d3-array/src/scan.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ascending", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../ascending", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "4:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../ascending", - "loc": "7:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "module": "./node_modules/d3-array/src/scan.js", - "moduleName": "./node_modules/d3-array/src/scan.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "11:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "27:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "module": "./node_modules/d3-array/src/bisector.js", - "moduleName": "./node_modules/d3-array/src/bisector.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "31:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "name": "./node_modules/d3-array/src/bisector.js", - "index": 8, - "index2": 3, - "size": 786, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisector", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisector", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisector", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony import specifier", - "userRequest": "./bisector", - "loc": "4:22-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "name": "./node_modules/d3-array/src/bisect.js", - "index": 6, - "index2": 4, - "size": 238, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisect", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./bisect", - "loc": "55:13-19" - } - ], - "usedExports": [ - "default", - "bisectRight", - "bisectLeft" - ], - "providedExports": [ - "bisectRight", - "bisectLeft", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/pairs.js", - "name": "./node_modules/d3-array/src/pairs.js", - "index": 10, - "index2": 5, - "size": 262, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "module": "./node_modules/d3-array/src/cross.js", - "moduleName": "./node_modules/d3-array/src/cross.js", - "type": "harmony side effect evaluation", - "userRequest": "./pairs", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "module": "./node_modules/d3-array/src/cross.js", - "moduleName": "./node_modules/d3-array/src/cross.js", - "type": "harmony import specifier", - "userRequest": "./pairs", - "loc": "12:31-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pairs", - "loc": "17:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pairs", - "loc": "17:0-41" - } - ], - "usedExports": [ - "pair", - "default" - ], - "providedExports": [ - "default", - "pair" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "name": "./node_modules/d3-array/src/cross.js", - "index": 9, - "index2": 6, - "size": 428, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cross", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cross", - "loc": "4:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/descending.js", - "name": "./node_modules/d3-array/src/descending.js", - "index": 11, - "index2": 7, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./descending", - "loc": "5:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./descending", - "loc": "5:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "name": "./node_modules/d3-array/src/variance.js", - "index": 13, - "index2": 9, - "size": 648, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "module": "./node_modules/d3-array/src/deviation.js", - "moduleName": "./node_modules/d3-array/src/deviation.js", - "type": "harmony side effect evaluation", - "userRequest": "./variance", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "module": "./node_modules/d3-array/src/deviation.js", - "moduleName": "./node_modules/d3-array/src/deviation.js", - "type": "harmony import specifier", - "userRequest": "./variance", - "loc": "4:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./variance", - "loc": "26:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./variance", - "loc": "26:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "name": "./node_modules/d3-array/src/deviation.js", - "index": 12, - "index2": 10, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "module": "./node_modules/d3-array/src/threshold/scott.js", - "moduleName": "./node_modules/d3-array/src/threshold/scott.js", - "type": "harmony side effect evaluation", - "userRequest": "../deviation", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "module": "./node_modules/d3-array/src/threshold/scott.js", - "moduleName": "./node_modules/d3-array/src/threshold/scott.js", - "type": "harmony import specifier", - "userRequest": "../deviation", - "loc": "4:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./deviation", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./deviation", - "loc": "6:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/extent.js", - "name": "./node_modules/d3-array/src/extent.js", - "index": 15, - "index2": 11, - "size": 961, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent", - "loc": "7:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./extent", - "loc": "7:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./extent", - "loc": "12:15-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/range.js", - "name": "./node_modules/d3-array/src/range.js", - "index": 20, - "index2": 15, - "size": 344, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./range", - "loc": "6:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./range", - "loc": "20:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./range", - "loc": "20:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./range", - "loc": "33:11-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/ticks.js", - "name": "./node_modules/d3-array/src/ticks.js", - "index": 21, - "index2": 16, - "size": 1635, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./ticks", - "loc": "7:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./ticks", - "loc": "32:11-19" - } - ], - "usedExports": [ - "tickStep", - "default", - "tickIncrement" - ], - "providedExports": [ - "default", - "tickIncrement", - "tickStep" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/sturges.js", - "name": "./node_modules/d3-array/src/threshold/sturges.js", - "index": 22, - "index2": 17, - "size": 96, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/sturges", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/sturges", - "loc": "11:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/sturges", - "loc": "11:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./threshold/sturges", - "loc": "13:18-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "index": 16, - "index2": 18, - "size": 1990, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./histogram", - "loc": "8:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./histogram", - "loc": "8:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "name": "./node_modules/d3-array/src/quantile.js", - "index": 24, - "index2": 19, - "size": 499, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../quantile", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../quantile", - "loc": "8:39-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../quantile", - "loc": "8:64-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantile", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./quantile", - "loc": "27:9-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "name": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "index": 23, - "index2": 20, - "size": 361, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/freedmanDiaconis", - "loc": "9:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/freedmanDiaconis", - "loc": "9:0-82" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "name": "./node_modules/d3-array/src/threshold/scott.js", - "index": 25, - "index2": 21, - "size": 180, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/scott", - "loc": "10:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/scott", - "loc": "10:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/max.js", - "name": "./node_modules/d3-array/src/max.js", - "index": 26, - "index2": 22, - "size": 843, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./max", - "loc": "12:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./max", - "loc": "12:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "name": "./node_modules/d3-array/src/mean.js", - "index": 27, - "index2": 23, - "size": 453, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mean", - "loc": "13:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./mean", - "loc": "13:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "name": "./node_modules/d3-array/src/median.js", - "index": 28, - "index2": 24, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./median", - "loc": "14:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./median", - "loc": "14:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/merge.js", - "name": "./node_modules/d3-array/src/merge.js", - "index": 29, - "index2": 25, - "size": 339, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./merge", - "loc": "15:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/min.js", - "name": "./node_modules/d3-array/src/min.js", - "index": 30, - "index2": 26, - "size": 843, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "module": "./node_modules/d3-array/src/transpose.js", - "moduleName": "./node_modules/d3-array/src/transpose.js", - "type": "harmony side effect evaluation", - "userRequest": "./min", - "loc": "1:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "module": "./node_modules/d3-array/src/transpose.js", - "moduleName": "./node_modules/d3-array/src/transpose.js", - "type": "harmony import specifier", - "userRequest": "./min", - "loc": "5:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./min", - "loc": "16:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./min", - "loc": "16:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/permute.js", - "name": "./node_modules/d3-array/src/permute.js", - "index": 31, - "index2": 27, - "size": 161, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./permute", - "loc": "18:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./permute", - "loc": "18:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "name": "./node_modules/d3-array/src/scan.js", - "index": 32, - "index2": 28, - "size": 392, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./scan", - "loc": "21:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./scan", - "loc": "21:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/shuffle.js", - "name": "./node_modules/d3-array/src/shuffle.js", - "index": 33, - "index2": 29, - "size": 285, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shuffle", - "loc": "22:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./shuffle", - "loc": "22:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/sum.js", - "name": "./node_modules/d3-array/src/sum.js", - "index": 34, - "index2": 30, - "size": 374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sum", - "loc": "23:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sum", - "loc": "23:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "name": "./node_modules/d3-array/src/transpose.js", - "index": 35, - "index2": 31, - "size": 356, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "module": "./node_modules/d3-array/src/zip.js", - "moduleName": "./node_modules/d3-array/src/zip.js", - "type": "harmony side effect evaluation", - "userRequest": "./transpose", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "module": "./node_modules/d3-array/src/zip.js", - "moduleName": "./node_modules/d3-array/src/zip.js", - "type": "harmony import specifier", - "userRequest": "./transpose", - "loc": "4:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transpose", - "loc": "25:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transpose", - "loc": "25:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "name": "./node_modules/d3-array/src/zip.js", - "index": 36, - "index2": 32, - "size": 99, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zip", - "loc": "27:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zip", - "loc": "27:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "index": 38, - "index2": 36, - "size": 5299, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - } - ], - "usedExports": [ - "axisBottom", - "axisTop", - "axisRight", - "axisLeft" - ], - "providedExports": [ - "axisTop", - "axisRight", - "axisBottom", - "axisLeft" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/dispatch.js", - "name": "./node_modules/d3-dispatch/src/dispatch.js", - "index": 48, - "index2": 38, - "size": 2748, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dispatch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "name": "./node_modules/d3-dispatch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 57 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "module": "./node_modules/d3-dispatch/src/index.js", - "moduleName": "./node_modules/d3-dispatch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dispatch.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "module": "./node_modules/d3-dispatch/src/index.js", - "moduleName": "./node_modules/d3-dispatch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dispatch.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "4:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "25:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "31:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "62:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "162:18-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selector.js", - "name": "./node_modules/d3-selection/src/selector.js", - "index": 80, - "index2": 70, - "size": 152, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/select.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "name": "./node_modules/d3-selection/src/selection/select.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 58, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony side effect evaluation", - "userRequest": "../selector", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony side effect evaluation", - "userRequest": "../selector", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony import specifier", - "userRequest": "../selector", - "loc": "5:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony import specifier", - "userRequest": "../selector", - "loc": "10:87-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selector", - "loc": "12:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selector", - "loc": "12:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectorAll.js", - "name": "./node_modules/d3-selection/src/selectorAll.js", - "index": 82, - "index2": 72, - "size": 171, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/selectAll.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "name": "./node_modules/d3-selection/src/selection/selectAll.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 82, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "../selectorAll", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony import specifier", - "userRequest": "../selectorAll", - "loc": "5:45-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:45-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectorAll", - "loc": "13:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selectorAll", - "loc": "13:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/matcher.js", - "name": "./node_modules/d3-selection/src/matcher.js", - "index": 75, - "index2": 65, - "size": 100, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "name": "./node_modules/d3-selection/src/selection/filter.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 80, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "../matcher", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./matcher", - "loc": "4:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./matcher", - "loc": "4:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony import specifier", - "userRequest": "../matcher", - "loc": "5:43-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "5:43-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespaces.js", - "name": "./node_modules/d3-selection/src/namespaces.js", - "index": 66, - "index2": 55, - "size": 254, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/creator.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 78, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "6:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "6:53-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./namespaces", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "8:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "8:70-75" - } - ], - "usedExports": [ - "xhtml", - "default" - ], - "providedExports": [ - "xhtml", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "name": "./node_modules/d3-selection/src/namespace.js", - "index": 65, - "index2": 56, - "size": 303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/creator.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 78, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespace", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "module": "./node_modules/d3-selection/src/selection/attr.js", - "moduleName": "./node_modules/d3-selection/src/selection/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "../namespace", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespace", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./namespace", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespace", - "loc": "21:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "module": "./node_modules/d3-transition/src/transition/attrTween.js", - "moduleName": "./node_modules/d3-transition/src/transition/attrTween.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "42:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "module": "./node_modules/d3-selection/src/selection/attr.js", - "moduleName": "./node_modules/d3-selection/src/selection/attr.js", - "type": "harmony import specifier", - "userRequest": "../namespace", - "loc": "44:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/window.js", - "name": "./node_modules/d3-selection/src/window.js", - "index": 105, - "index2": 93, - "size": 218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/dispatch.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "name": "./node_modules/d3-selection/src/selection/dispatch.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 60, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "module": "./node_modules/d3-selection/src/selection/dispatch.js", - "moduleName": "./node_modules/d3-selection/src/selection/dispatch.js", - "type": "harmony side effect evaluation", - "userRequest": "../window", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "module": "./node_modules/d3-selection/src/selection/style.js", - "moduleName": "./node_modules/d3-selection/src/selection/style.js", - "type": "harmony side effect evaluation", - "userRequest": "../window", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "module": "./node_modules/d3-selection/src/selection/dispatch.js", - "moduleName": "./node_modules/d3-selection/src/selection/dispatch.js", - "type": "harmony import specifier", - "userRequest": "../window", - "loc": "4:15-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./window", - "loc": "17:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./window", - "loc": "17:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "module": "./node_modules/d3-selection/src/selection/style.js", - "moduleName": "./node_modules/d3-selection/src/selection/style.js", - "type": "harmony import specifier", - "userRequest": "../window", - "loc": "34:9-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "name": "./node_modules/d3-selection/src/selection/style.js", - "index": 104, - "index2": 94, - "size": 968, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "12:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:52-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/style", - "loc": "14:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/style", - "loc": "14:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./style", - "loc": "18:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "31:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "43:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "46:77-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./style", - "loc": "63:9-24" - } - ], - "usedExports": [ - "default", - "styleValue" - ], - "providedExports": [ - "default", - "styleValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "index": 113, - "index2": 101, - "size": 662, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/create.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 102, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony side effect evaluation", - "userRequest": "./creator", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony side effect evaluation", - "userRequest": "../creator", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "module": "./node_modules/d3-selection/src/selection/append.js", - "moduleName": "./node_modules/d3-selection/src/selection/append.js", - "type": "harmony side effect evaluation", - "userRequest": "../creator", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./creator", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./creator", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "module": "./node_modules/d3-selection/src/selection/append.js", - "moduleName": "./node_modules/d3-selection/src/selection/append.js", - "type": "harmony import specifier", - "userRequest": "../creator", - "loc": "4:51-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony import specifier", - "userRequest": "./creator", - "loc": "5:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony import specifier", - "userRequest": "../creator", - "loc": "9:51-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/on.js", - "name": "./node_modules/d3-selection/src/selection/on.js", - "index": 118, - "index2": 107, - "size": 3119, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "module": "./node_modules/d3-selection/src/sourceEvent.js", - "moduleName": "./node_modules/d3-selection/src/sourceEvent.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/on", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "module": "./node_modules/d3-selection/src/sourceEvent.js", - "moduleName": "./node_modules/d3-selection/src/sourceEvent.js", - "type": "harmony import specifier", - "userRequest": "./selection/on", - "loc": "4:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "10:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "10:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "18:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "18:37-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "25:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./on", - "loc": "30:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:57-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "54:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "55:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "58:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "59:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "66:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "66:48-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "74:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./on", - "loc": "75:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "81:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "94:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "106:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "113:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "113:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "123:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "124:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "137:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "210:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "253:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "255:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "256:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "258:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "267:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "267:42-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "275:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "286:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "296:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "298:37-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "320:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "321:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "325:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "329:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "330:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "330:104-109" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "343:45-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:42-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "350:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "375:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "379:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "386:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "463:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "464:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "468:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "479:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "509:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "528:16-21" - } - ], - "usedExports": [ - "event", - "customEvent", - "default" - ], - "providedExports": [ - "event", - "default", - "customEvent" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "index": 84, - "index2": 109, - "size": 2342, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/select.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 81, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "module": "./node_modules/d3-selection/src/selection/sort.js", - "moduleName": "./node_modules/d3-selection/src/selection/sort.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "module": "./node_modules/d3-selection/src/selection/merge.js", - "moduleName": "./node_modules/d3-selection/src/selection/merge.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "module": "./node_modules/d3-transition/src/transition/selection.js", - "moduleName": "./node_modules/d3-transition/src/transition/selection.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "3:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "5:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "5:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "5:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "6:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:58-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/index", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "15:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "16:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "16:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "module": "./node_modules/d3-selection/src/selection/merge.js", - "moduleName": "./node_modules/d3-selection/src/selection/merge.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "17:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "module": "./node_modules/d3-selection/src/selection/sort.js", - "moduleName": "./node_modules/d3-selection/src/selection/sort.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "19:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "39:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "114:15-24" - } - ], - "usedExports": [ - "Selection", - "root", - "default" - ], - "providedExports": [ - "root", - "Selection", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "index": 134, - "index2": 129, - "size": 259, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/create.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 102, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony import specifier", - "userRequest": "./select", - "loc": "5:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "6:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "9:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./select", - "loc": "9:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "17:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "54:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "179:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "253:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "261:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "290:22-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "291:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "367:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "369:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "379:17-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "name": "./node_modules/d3-drag/src/nodrag.js", - "index": 141, - "index2": 137, - "size": 860, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodrag.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./nodrag.js", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./nodrag.js", - "loc": "74:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "258:4-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "275:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "386:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "468:8-18" - } - ], - "usedExports": [ - "default", - "yesdrag" - ], - "providedExports": [ - "default", - "yesdrag" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "name": "./node_modules/d3-color/src/color.js", - "index": 57, - "index2": 47, - "size": 10673, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "3:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:52-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "7:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "8:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "10:27-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "10:54-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "15:31-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "16:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "16:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "16:31-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "18:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "18:31-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "36:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "39:36-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "41:20-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "41:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:20-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:38-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "54:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "113:24-29" - } - ], - "usedExports": [ - "default", - "rgb", - "Rgb", - "rgbConvert", - "Color", - "brighter", - "darker", - "hsl" - ], - "providedExports": [ - "Color", - "darker", - "brighter", - "default", - "rgbConvert", - "rgb", - "Rgb", - "hslConvert", - "hsl" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basis.js", - "name": "./node_modules/d3-interpolate/src/basis.js", - "index": 62, - "index2": 50, - "size": 600, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "module": "./node_modules/d3-interpolate/src/basisClosed.js", - "moduleName": "./node_modules/d3-interpolate/src/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./basis.js", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "module": "./node_modules/d3-interpolate/src/basisClosed.js", - "moduleName": "./node_modules/d3-interpolate/src/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "11:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "54:32-37" - } - ], - "usedExports": [ - "default", - "basis" - ], - "providedExports": [ - "basis", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "name": "./node_modules/d3-interpolate/src/basisClosed.js", - "index": 63, - "index2": 51, - "size": 363, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./basisClosed.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./basisClosed.js", - "loc": "4:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./basisClosed.js", - "loc": "4:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./basisClosed.js", - "loc": "55:38-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "index": 59, - "index2": 52, - "size": 1297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./rgb.js", - "loc": "2:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "module": "./node_modules/d3-scale-chromatic/src/ramp.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/ramp.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:9-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "7:29-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "8:33-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./rgb.js", - "loc": "15:51-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./rgb.js", - "loc": "16:29-32" - } - ], - "usedExports": [ - "default", - "rgbBasis", - "rgbBasisClosed" - ], - "providedExports": [ - "default", - "rgbBasis", - "rgbBasisClosed" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/numberArray.js", - "name": "./node_modules/d3-interpolate/src/numberArray.js", - "index": 137, - "index2": 131, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "5:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "5:29-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./numberArray.js", - "loc": "9:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "9:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "9:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "18:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "18:27-38" - } - ], - "usedExports": [ - "isNumberArray", - "default" - ], - "providedExports": [ - "default", - "isNumberArray" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "name": "./node_modules/d3-interpolate/src/array.js", - "index": 138, - "index2": 132, - "size": 540, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "2:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./array.js", - "loc": "2:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "19:27-39" - } - ], - "usedExports": [ - "genericArray", - "default" - ], - "providedExports": [ - "default", - "genericArray" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/date.js", - "name": "./node_modules/d3-interpolate/src/date.js", - "index": 136, - "index2": 130, - "size": 144, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./date.js", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./date.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./date.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./date.js", - "loc": "17:28-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/number.js", - "name": "./node_modules/d3-interpolate/src/number.js", - "index": 56, - "index2": 45, - "size": 110, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "module": "./node_modules/d3-interpolate/src/string.js", - "moduleName": "./node_modules/d3-interpolate/src/string.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../number.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "6:34-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "8:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./number.js", - "loc": "8:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "13:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "13:58-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "14:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "21:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "22:68-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "30:67-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "39:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "39:58-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "module": "./node_modules/d3-interpolate/src/string.js", - "moduleName": "./node_modules/d3-interpolate/src/string.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "43:23-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "89:88-105" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "name": "./node_modules/d3-interpolate/src/object.js", - "index": 139, - "index2": 133, - "size": 393, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./object.js", - "loc": "6:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./object.js", - "loc": "10:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./object.js", - "loc": "10:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./object.js", - "loc": "20:90-96" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "name": "./node_modules/d3-interpolate/src/string.js", - "index": 64, - "index2": 53, - "size": 1761, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "7:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "9:8-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./string.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./string.js", - "loc": "15:58-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "index": 135, - "index2": 134, - "size": 806, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./value.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "module": "./node_modules/d3-interpolate/src/object.js", - "moduleName": "./node_modules/d3-interpolate/src/object.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "module": "./node_modules/d3-interpolate/src/object.js", - "moduleName": "./node_modules/d3-interpolate/src/object.js", - "type": "harmony import specifier", - "userRequest": "./value.js", - "loc": "13:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./value.js", - "loc": "15:34-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "69:20-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "229:20-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/point.js", - "name": "./node_modules/d3-selection/src/point.js", - "index": 133, - "index2": 127, - "size": 448, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "7:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "8:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./point", - "loc": "8:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "8:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "9:13-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "name": "./node_modules/d3-selection/src/touch.js", - "index": 131, - "index2": 128, - "size": 407, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./touch", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./touch", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "25:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "86:58-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "303:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "328:26-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "name": "./node_modules/d3-selection/src/mouse.js", - "index": 140, - "index2": 135, - "size": 224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mouse", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./mouse", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "52:73-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "219:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "254:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "270:70-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "284:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:80-85" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timer.js", - "name": "./node_modules/d3-timer/src/timer.js", - "index": 49, - "index2": 39, - "size": 2905, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "module": "./node_modules/d3-timer/src/timeout.js", - "moduleName": "./node_modules/d3-timer/src/timeout.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "4:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "module": "./node_modules/d3-timer/src/timeout.js", - "moduleName": "./node_modules/d3-timer/src/timeout.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "4:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "6:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "17:34-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "24:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "30:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "59:15-20" - } - ], - "usedExports": [ - "timer", - "Timer", - "now", - "timerFlush" - ], - "providedExports": [ - "now", - "Timer", - "timer", - "timerFlush" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "name": "./node_modules/d3-timer/src/timeout.js", - "index": 50, - "index2": 40, - "size": 253, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./timeout.js", - "loc": "7:0-9:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timeout.js", - "loc": "7:0-9:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "82:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "105:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "name": "./node_modules/d3-transition/src/interrupt.js", - "index": 46, - "index2": 42, - "size": 676, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "module": "./node_modules/d3-transition/src/selection/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/selection/interrupt.js", - "type": "harmony side effect evaluation", - "userRequest": "../interrupt.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interrupt.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interrupt.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "module": "./node_modules/d3-transition/src/selection/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/selection/interrupt.js", - "type": "harmony import specifier", - "userRequest": "../interrupt.js", - "loc": "5:4-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "index": 67, - "index2": 59, - "size": 2070, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "70:41-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "73:65-85" - } - ], - "usedExports": [ - "interpolateTransformCss", - "interpolateTransformSvg" - ], - "providedExports": [ - "interpolateTransformCss", - "interpolateTransformSvg" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "index": 52, - "index2": 117, - "size": 2091, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/transition.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "../transition/index.js", - "loc": "1:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/index.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "module": "./node_modules/d3-transition/src/transition/merge.js", - "moduleName": "./node_modules/d3-transition/src/transition/merge.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/index.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transition/index.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "15:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony import specifier", - "userRequest": "./transition/index.js", - "loc": "15:19-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "module": "./node_modules/d3-transition/src/transition/merge.js", - "moduleName": "./node_modules/d3-transition/src/transition/merge.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "18:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "21:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "23:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "25:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "27:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "30:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "41:13-23" - } - ], - "usedExports": [ - "Transition", - "newId", - "default" - ], - "providedExports": [ - "Transition", - "default", - "newId" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/cubic.js", - "name": "./node_modules/d3-ease/src/cubic.js", - "index": 126, - "index2": 118, - "size": 210, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-ease", - "loc": "10:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - } - ], - "usedExports": [ - "cubicInOut", - "cubicIn", - "cubicOut" - ], - "providedExports": [ - "cubicIn", - "cubicOut", - "cubicInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "index": 44, - "index2": 120, - "size": 251, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index.js", - "loc": "1:0-30" - } - ], - "usedExports": false, - "providedExports": [], - "optimizationBailout": [], - "depth": 4, - "source": "import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "name": "./node_modules/d3-transition/src/active.js", - "index": 127, - "index2": 121, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./active.js", - "loc": "3:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./active.js", - "loc": "3:0-46" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "index": 42, - "index2": 138, - "size": 17019, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - } - ], - "usedExports": [ - "default", - "brushX", - "brushY", - "brushSelection" - ], - "providedExports": [ - "brushSelection", - "brushX", - "brushY", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "name": "./node_modules/d3-chord/src/chord.js", - "index": 144, - "index2": 141, - "size": 3178, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./chord", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./chord", - "loc": "1:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/path.js", - "name": "./node_modules/d3-path/src/path.js", - "index": 149, - "index2": 144, - "size": 4189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-path/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "name": "./node_modules/d3-path/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 70, - "building": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "module": "./node_modules/d3-path/src/index.js", - "moduleName": "./node_modules/d3-path/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "module": "./node_modules/d3-path/src/index.js", - "moduleName": "./node_modules/d3-path/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./path.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "21:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "24:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "28:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "28:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "48:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "97:37-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "index": 146, - "index2": 145, - "size": 2340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ribbon", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ribbon", - "loc": "2:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/map.js", - "name": "./node_modules/d3-collection/src/map.js", - "index": 152, - "index2": 147, - "size": 1988, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "1:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./map", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "5:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "12:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "21:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "68:9-12" - } - ], - "usedExports": [ - "default", - "prefix" - ], - "providedExports": [ - "prefix", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "name": "./node_modules/d3-collection/src/nest.js", - "index": 151, - "index2": 148, - "size": 2017, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nest", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nest", - "loc": "1:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "name": "./node_modules/d3-collection/src/set.js", - "index": 153, - "index2": 149, - "size": 800, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./set", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./set", - "loc": "2:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/keys.js", - "name": "./node_modules/d3-collection/src/keys.js", - "index": 154, - "index2": 150, - "size": 104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./keys", - "loc": "4:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./keys", - "loc": "4:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/values.js", - "name": "./node_modules/d3-collection/src/values.js", - "index": 155, - "index2": 151, - "size": 115, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./values", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./values", - "loc": "5:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/entries.js", - "name": "./node_modules/d3-collection/src/entries.js", - "index": 156, - "index2": 152, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./entries", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./entries", - "loc": "6:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "name": "./node_modules/d3-color/src/lab.js", - "index": 158, - "index2": 155, - "size": 3661, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "5:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "5:52-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:52-60" - } - ], - "usedExports": [ - "hcl", - "default", - "lch", - "gray" - ], - "providedExports": [ - "gray", - "default", - "Lab", - "lch", - "hcl", - "Hcl" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "name": "./node_modules/d3-color/src/cubehelix.js", - "index": 160, - "index2": 156, - "size": 1864, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubehelix.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:66-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:72-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:71-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "8:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "9:27-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "9:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default", - "Cubehelix" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "index": 162, - "index2": 164, - "size": 6224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contours", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contours", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./contours", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./contours", - "loc": "63:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "index": 169, - "index2": 166, - "size": 3990, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./density", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./density", - "loc": "2:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "index": 173, - "index2": 171, - "size": 5073, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./drag.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./drag.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/dsv.js", - "name": "./node_modules/d3-dsv/src/dsv.js", - "index": 177, - "index2": 173, - "size": 4838, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv.js", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "module": "./node_modules/d3-dsv/src/csv.js", - "moduleName": "./node_modules/d3-dsv/src/csv.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "module": "./node_modules/d3-dsv/src/tsv.js", - "moduleName": "./node_modules/d3-dsv/src/tsv.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "module": "./node_modules/d3-dsv/src/csv.js", - "moduleName": "./node_modules/d3-dsv/src/csv.js", - "type": "harmony import specifier", - "userRequest": "./dsv.js", - "loc": "3:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "module": "./node_modules/d3-dsv/src/tsv.js", - "moduleName": "./node_modules/d3-dsv/src/tsv.js", - "type": "harmony import specifier", - "userRequest": "./dsv.js", - "loc": "3:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "15:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "name": "./node_modules/d3-dsv/src/csv.js", - "index": 178, - "index2": 174, - "size": 331, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "21:26-34" - } - ], - "usedExports": [ - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue" - ], - "providedExports": [ - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "name": "./node_modules/d3-dsv/src/tsv.js", - "index": 179, - "index2": 175, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "22:26-34" - } - ], - "usedExports": [ - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue" - ], - "providedExports": [ - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/autoType.js", - "name": "./node_modules/d3-dsv/src/autoType.js", - "index": 180, - "index2": 176, - "size": 794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./autoType.js", - "loc": "4:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./autoType.js", - "loc": "4:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/linear.js", - "name": "./node_modules/d3-ease/src/linear.js", - "index": 182, - "index2": 178, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear.js", - "loc": "1:0-3:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./linear.js", - "loc": "1:0-3:21" - } - ], - "usedExports": [ - "linear" - ], - "providedExports": [ - "linear" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function linear(t) {\n return +t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/quad.js", - "name": "./node_modules/d3-ease/src/quad.js", - "index": 183, - "index2": 179, - "size": 192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - } - ], - "usedExports": [ - "quadInOut", - "quadIn", - "quadOut" - ], - "providedExports": [ - "quadIn", - "quadOut", - "quadInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/poly.js", - "name": "./node_modules/d3-ease/src/poly.js", - "index": 184, - "index2": 180, - "size": 596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - } - ], - "usedExports": [ - "polyInOut", - "polyIn", - "polyOut" - ], - "providedExports": [ - "polyIn", - "polyOut", - "polyInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/sin.js", - "name": "./node_modules/d3-ease/src/sin.js", - "index": 185, - "index2": 181, - "size": 236, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - } - ], - "usedExports": [ - "sinInOut", - "sinIn", - "sinOut" - ], - "providedExports": [ - "sinIn", - "sinOut", - "sinInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/exp.js", - "name": "./node_modules/d3-ease/src/exp.js", - "index": 186, - "index2": 182, - "size": 251, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - } - ], - "usedExports": [ - "expInOut", - "expIn", - "expOut" - ], - "providedExports": [ - "expIn", - "expOut", - "expInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/circle.js", - "name": "./node_modules/d3-ease/src/circle.js", - "index": 187, - "index2": 183, - "size": 261, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - } - ], - "usedExports": [ - "circleInOut", - "circleIn", - "circleOut" - ], - "providedExports": [ - "circleIn", - "circleOut", - "circleInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/bounce.js", - "name": "./node_modules/d3-ease/src/bounce.js", - "index": 188, - "index2": 184, - "size": 521, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - } - ], - "usedExports": [ - "bounceOut", - "bounceIn", - "bounceInOut" - ], - "providedExports": [ - "bounceIn", - "bounceOut", - "bounceInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/back.js", - "name": "./node_modules/d3-ease/src/back.js", - "index": 189, - "index2": 185, - "size": 653, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - } - ], - "usedExports": [ - "backInOut", - "backIn", - "backOut" - ], - "providedExports": [ - "backIn", - "backOut", - "backInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/elastic.js", - "name": "./node_modules/d3-ease/src/elastic.js", - "index": 190, - "index2": 186, - "size": 1309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - } - ], - "usedExports": [ - "elasticOut", - "elasticIn", - "elasticInOut" - ], - "providedExports": [ - "elasticIn", - "elasticOut", - "elasticInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/blob.js", - "name": "./node_modules/d3-fetch/src/blob.js", - "index": 192, - "index2": 188, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./blob", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./blob", - "loc": "1:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/buffer.js", - "name": "./node_modules/d3-fetch/src/buffer.js", - "index": 193, - "index2": 189, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./buffer", - "loc": "2:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/text.js", - "name": "./node_modules/d3-fetch/src/text.js", - "index": 195, - "index2": 190, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "module": "./node_modules/d3-fetch/src/xml.js", - "moduleName": "./node_modules/d3-fetch/src/xml.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "1:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "2:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "module": "./node_modules/d3-fetch/src/xml.js", - "moduleName": "./node_modules/d3-fetch/src/xml.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "5:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./text", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "7:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "16:9-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "name": "./node_modules/d3-fetch/src/dsv.js", - "index": 194, - "index2": 191, - "size": 707, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - } - ], - "usedExports": [ - "default", - "csv", - "tsv" - ], - "providedExports": [ - "default", - "csv", - "tsv" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/image.js", - "name": "./node_modules/d3-fetch/src/image.js", - "index": 196, - "index2": 192, - "size": 275, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./image", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./image", - "loc": "4:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/json.js", - "name": "./node_modules/d3-fetch/src/json.js", - "index": 197, - "index2": 193, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./json", - "loc": "5:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./json", - "loc": "5:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "name": "./node_modules/d3-fetch/src/xml.js", - "index": 198, - "index2": 194, - "size": 336, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - } - ], - "usedExports": [ - "default", - "html", - "svg" - ], - "providedExports": [ - "default", - "html", - "svg" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/center.js", - "name": "./node_modules/d3-force/src/center.js", - "index": 200, - "index2": 196, - "size": 654, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./center", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./center", - "loc": "1:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "index": 204, - "index2": 212, - "size": 2113, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 73, - "building": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "module": "./node_modules/d3-quadtree/src/index.js", - "moduleName": "./node_modules/d3-quadtree/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quadtree.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "module": "./node_modules/d3-quadtree/src/index.js", - "moduleName": "./node_modules/d3-quadtree/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quadtree.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-quadtree", - "loc": "17:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-quadtree", - "loc": "31:13-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "name": "./node_modules/d3-force/src/collide.js", - "index": 201, - "index2": 213, - "size": 2447, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./collide", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./collide", - "loc": "2:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "name": "./node_modules/d3-force/src/link.js", - "index": 218, - "index2": 214, - "size": 3213, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./link", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link", - "loc": "3:0-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "name": "./node_modules/d3-force/src/simulation.js", - "index": 220, - "index2": 215, - "size": 3691, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./simulation", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./simulation", - "loc": "6:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./simulation", - "loc": "6:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./simulation", - "loc": "17:52-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./simulation", - "loc": "17:55-56" - } - ], - "usedExports": [ - "x", - "y", - "default" - ], - "providedExports": [ - "x", - "y", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "name": "./node_modules/d3-force/src/manyBody.js", - "index": 219, - "index2": 216, - "size": 3218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./manyBody", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./manyBody", - "loc": "4:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "name": "./node_modules/d3-force/src/radial.js", - "index": 221, - "index2": 217, - "size": 1477, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./radial", - "loc": "5:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./radial", - "loc": "5:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "name": "./node_modules/d3-force/src/x.js", - "index": 222, - "index2": 218, - "size": 1030, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./x", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./x", - "loc": "7:0-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "name": "./node_modules/d3-force/src/y.js", - "index": 223, - "index2": 219, - "size": 1030, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./y", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./y", - "loc": "8:0-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatSpecifier.js", - "name": "./node_modules/d3-format/src/formatSpecifier.js", - "index": 230, - "index2": 224, - "size": 1719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatSpecifier.js", - "loc": "4:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "7:14-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatSpecifier.js", - "loc": "24:16-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatSpecifier.js", - "loc": "134:35-50" - } - ], - "usedExports": [ - "default", - "FormatSpecifier" - ], - "providedExports": [ - "default", - "FormatSpecifier" - ], - "optimizationBailout": [], - "depth": 4, - "source": "// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "index": 226, - "index2": 231, - "size": 6031, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/defaultLocale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 50, - "building": 45 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "module": "./node_modules/d3-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-format/src/defaultLocale.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./locale.js", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "module": "./node_modules/d3-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-format/src/defaultLocale.js", - "type": "harmony import specifier", - "userRequest": "./locale.js", - "loc": "16:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "index": 225, - "index2": 232, - "size": 378, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "12:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "28:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "114:53-59" - } - ], - "usedExports": [ - "formatPrefix", - "format", - "default" - ], - "providedExports": [ - "format", - "formatPrefix", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "name": "./node_modules/d3-format/src/precisionFixed.js", - "index": 237, - "index2": 233, - "size": 122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionFixed.js", - "loc": "4:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionFixed.js", - "loc": "4:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "24:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "name": "./node_modules/d3-format/src/precisionPrefix.js", - "index": 238, - "index2": 234, - "size": 193, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionPrefix.js", - "loc": "5:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionPrefix.js", - "loc": "5:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "11:60-75" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "name": "./node_modules/d3-format/src/precisionRound.js", - "index": 239, - "index2": 235, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionRound.js", - "loc": "6:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionRound.js", - "loc": "6:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "19:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/stream.js", - "name": "./node_modules/d3-geo/src/stream.js", - "index": 245, - "index2": 240, - "size": 2303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony side effect evaluation", - "userRequest": "../stream.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../stream.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "8:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "18:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "24:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "29:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "33:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stream.js", - "loc": "33:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "34:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "51:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "122:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "149:2-8" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "index": 241, - "index2": 241, - "size": 1970, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "24:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "27:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "31:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "113:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "118:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "123:2-12" - } - ], - "usedExports": [ - "default", - "areaStream", - "areaRingSum" - ], - "providedExports": [ - "areaRingSum", - "areaStream", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "name": "./node_modules/d3-geo/src/bounds.js", - "index": 246, - "index2": 243, - "size": 5550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounds.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounds.js", - "loc": "2:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "name": "./node_modules/d3-geo/src/centroid.js", - "index": 248, - "index2": 244, - "size": 3792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "3:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./centroid.js", - "loc": "3:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "name": "./node_modules/d3-geo/src/rotation.js", - "index": 251, - "index2": 247, - "size": 2523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../rotation.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./rotation.js", - "loc": "4:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../rotation.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rotation.js", - "loc": "32:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rotation.js", - "loc": "32:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../rotation.js", - "loc": "44:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./rotation.js", - "loc": "52:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../rotation.js", - "loc": "147:13-26" - } - ], - "usedExports": [ - "default", - "rotateRadians" - ], - "providedExports": [ - "rotateRadians", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "name": "./node_modules/d3-geo/src/circle.js", - "index": 249, - "index2": 248, - "size": 2385, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../circle.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./circle.js", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../circle.js", - "loc": "14:4-16" - } - ], - "usedExports": [ - "default", - "circleStream" - ], - "providedExports": [ - "circleStream", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "name": "./node_modules/d3-geo/src/clip/antimeridian.js", - "index": 253, - "index2": 254, - "size": 2903, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/antimeridian.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/antimeridian.js", - "loc": "5:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/antimeridian.js", - "loc": "5:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/antimeridian.js", - "loc": "66:30-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/antimeridian.js", - "loc": "97:95-111" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "index": 259, - "index2": 255, - "size": 6011, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/circle.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/circle.js", - "loc": "6:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/circle.js", - "loc": "6:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/circle.js", - "loc": "97:46-56" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "index": 261, - "index2": 257, - "size": 5054, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/rectangle.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "module": "./node_modules/d3-geo/src/clip/extent.js", - "moduleName": "./node_modules/d3-geo/src/clip/extent.js", - "type": "harmony side effect evaluation", - "userRequest": "./rectangle.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/rectangle.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/rectangle.js", - "loc": "8:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/rectangle.js", - "loc": "8:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "module": "./node_modules/d3-geo/src/clip/extent.js", - "moduleName": "./node_modules/d3-geo/src/clip/extent.js", - "type": "harmony import specifier", - "userRequest": "./rectangle.js", - "loc": "14:63-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../clip/rectangle.js", - "loc": "35:95-108" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/rectangle.js", - "loc": "101:93-106" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "name": "./node_modules/d3-geo/src/clip/extent.js", - "index": 260, - "index2": 258, - "size": 540, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/extent.js", - "loc": "7:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/extent.js", - "loc": "7:0-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "name": "./node_modules/d3-geo/src/length.js", - "index": 265, - "index2": 259, - "size": 1321, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "module": "./node_modules/d3-geo/src/distance.js", - "moduleName": "./node_modules/d3-geo/src/distance.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "module": "./node_modules/d3-geo/src/distance.js", - "moduleName": "./node_modules/d3-geo/src/distance.js", - "type": "harmony import specifier", - "userRequest": "./length.js", - "loc": "9:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "13:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./length.js", - "loc": "13:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "name": "./node_modules/d3-geo/src/distance.js", - "index": 264, - "index2": 260, - "size": 232, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./distance.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./distance.js", - "loc": "10:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./distance.js", - "loc": "10:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "58:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "64:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "67:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "name": "./node_modules/d3-geo/src/contains.js", - "index": 263, - "index2": 261, - "size": 2998, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains.js", - "loc": "9:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contains.js", - "loc": "9:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "name": "./node_modules/d3-geo/src/graticule.js", - "index": 266, - "index2": 262, - "size": 3037, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./graticule.js", - "loc": "11:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./graticule.js", - "loc": "11:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./graticule.js", - "loc": "11:0-86" - } - ], - "usedExports": [ - "default", - "graticule10" - ], - "providedExports": [ - "default", - "graticule10" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "name": "./node_modules/d3-geo/src/interpolate.js", - "index": 267, - "index2": 263, - "size": 914, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interpolate.js", - "loc": "12:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "index": 268, - "index2": 271, - "size": 1877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path/index.js", - "loc": "14:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./path/index.js", - "loc": "14:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/transform.js", - "name": "./node_modules/d3-geo/src/transform.js", - "index": 281, - "index2": 273, - "size": 701, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "7:67-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "8:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "12:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "13:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "19:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "34:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "34:0-55" - } - ], - "usedExports": [ - "default", - "transformer" - ], - "providedExports": [ - "default", - "transformer" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "name": "./node_modules/d3-geo/src/projection/index.js", - "index": 280, - "index2": 276, - "size": 5455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "module": "./node_modules/d3-geo/src/projection/equirectangular.js", - "moduleName": "./node_modules/d3-geo/src/projection/equirectangular.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "7:10-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "module": "./node_modules/d3-geo/src/projection/equirectangular.js", - "moduleName": "./node_modules/d3-geo/src/projection/equirectangular.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "10:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "12:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "13:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "14:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "14:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "15:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "19:10-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "26:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "34:9-19" - } - ], - "usedExports": [ - "default", - "projectionMutator" - ], - "providedExports": [ - "default", - "projectionMutator" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "index": 277, - "index2": 278, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "module": "./node_modules/d3-geo/src/projection/albers.js", - "moduleName": "./node_modules/d3-geo/src/projection/albers.js", - "type": "harmony side effect evaluation", - "userRequest": "./conicEqualArea.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./conicEqualArea.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "module": "./node_modules/d3-geo/src/projection/albers.js", - "moduleName": "./node_modules/d3-geo/src/projection/albers.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "4:9-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "29:15-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "30:15-29" - } - ], - "usedExports": [ - "default", - "conicEqualAreaRaw" - ], - "providedExports": [ - "conicEqualAreaRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "name": "./node_modules/d3-geo/src/projection/albers.js", - "index": 276, - "index2": 279, - "size": 238, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./albers.js", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/albers.js", - "loc": "15:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/albers.js", - "loc": "15:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./albers.js", - "loc": "28:16-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "name": "./node_modules/d3-geo/src/projection/albersUsa.js", - "index": 284, - "index2": 280, - "size": 4227, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/albersUsa.js", - "loc": "16:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/albersUsa.js", - "loc": "16:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "index": 285, - "index2": 282, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - } - ], - "usedExports": [ - "default", - "azimuthalEqualAreaRaw" - ], - "providedExports": [ - "azimuthalEqualAreaRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "index": 287, - "index2": 283, - "size": 452, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - } - ], - "usedExports": [ - "default", - "azimuthalEquidistantRaw" - ], - "providedExports": [ - "azimuthalEquidistantRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "name": "./node_modules/d3-geo/src/projection/mercator.js", - "index": 289, - "index2": 284, - "size": 1557, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony side effect evaluation", - "userRequest": "./mercator.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "./mercator.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "./mercator.js", - "loc": "13:10-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "./mercator.js", - "loc": "14:17-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - } - ], - "usedExports": [ - "default", - "mercatorRaw", - "mercatorProjection" - ], - "providedExports": [ - "mercatorRaw", - "default", - "mercatorProjection" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "name": "./node_modules/d3-geo/src/projection/conicConformal.js", - "index": 288, - "index2": 285, - "size": 1026, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - } - ], - "usedExports": [ - "default", - "conicConformalRaw" - ], - "providedExports": [ - "conicConformalRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "name": "./node_modules/d3-geo/src/projection/equirectangular.js", - "index": 291, - "index2": 286, - "size": 256, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./equirectangular.js", - "loc": "3:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./equirectangular.js", - "loc": "10:31-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - } - ], - "usedExports": [ - "default", - "equirectangularRaw" - ], - "providedExports": [ - "equirectangularRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "index": 290, - "index2": 287, - "size": 780, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - } - ], - "usedExports": [ - "default", - "conicEquidistantRaw" - ], - "providedExports": [ - "conicEquidistantRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "name": "./node_modules/d3-geo/src/projection/equalEarth.js", - "index": 292, - "index2": 288, - "size": 1024, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - } - ], - "usedExports": [ - "default", - "equalEarthRaw" - ], - "providedExports": [ - "equalEarthRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "name": "./node_modules/d3-geo/src/projection/gnomonic.js", - "index": 293, - "index2": 289, - "size": 396, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - } - ], - "usedExports": [ - "default", - "gnomonicRaw" - ], - "providedExports": [ - "gnomonicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "index": 294, - "index2": 290, - "size": 2307, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/identity.js", - "loc": "25:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/identity.js", - "loc": "25:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "name": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "index": 295, - "index2": 291, - "size": 1046, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - } - ], - "usedExports": [ - "default", - "naturalEarth1Raw" - ], - "providedExports": [ - "naturalEarth1Raw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "name": "./node_modules/d3-geo/src/projection/orthographic.js", - "index": 296, - "index2": 292, - "size": 385, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - } - ], - "usedExports": [ - "default", - "orthographicRaw" - ], - "providedExports": [ - "orthographicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "name": "./node_modules/d3-geo/src/projection/stereographic.js", - "index": 297, - "index2": 293, - "size": 445, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - } - ], - "usedExports": [ - "default", - "stereographicRaw" - ], - "providedExports": [ - "stereographicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "name": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "index": 298, - "index2": 294, - "size": 768, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - } - ], - "usedExports": [ - "default", - "transverseMercatorRaw" - ], - "providedExports": [ - "transverseMercatorRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/cluster.js", - "name": "./node_modules/d3-hierarchy/src/cluster.js", - "index": 300, - "index2": 296, - "size": 2093, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cluster.js", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cluster.js", - "loc": "1:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "index": 301, - "index2": 308, - "size": 1907, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "module": "./node_modules/d3-hierarchy/src/tree.js", - "moduleName": "./node_modules/d3-hierarchy/src/tree.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "33:41-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "57:92-105" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "module": "./node_modules/d3-hierarchy/src/tree.js", - "moduleName": "./node_modules/d3-hierarchy/src/tree.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "74:35-39" - } - ], - "usedExports": [ - "default", - "Node", - "computeHeight" - ], - "providedExports": [ - "default", - "computeHeight", - "Node" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "name": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "index": 317, - "index2": 312, - "size": 2979, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "module": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "type": "harmony side effect evaluation", - "userRequest": "./enclose.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/enclose.js", - "loc": "5:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/enclose.js", - "loc": "5:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "module": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "type": "harmony import specifier", - "userRequest": "./enclose.js", - "loc": "107:64-71" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "name": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "index": 316, - "index2": 313, - "size": 3170, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./siblings.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/siblings.js", - "loc": "4:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/siblings.js", - "loc": "4:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "./siblings.js", - "loc": "63:10-21" - } - ], - "usedExports": [ - "default", - "packEnclose" - ], - "providedExports": [ - "packEnclose", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "name": "./node_modules/d3-hierarchy/src/pack/index.js", - "index": 313, - "index2": 314, - "size": 1926, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/index.js", - "loc": "3:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/index.js", - "loc": "3:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/dice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/dice.js", - "index": 321, - "index2": 316, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/dice.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "5:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/dice.js", - "loc": "11:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/dice.js", - "loc": "11:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "21:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony import specifier", - "userRequest": "./treemap/dice.js", - "loc": "24:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "47:18-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "name": "./node_modules/d3-hierarchy/src/partition.js", - "index": 319, - "index2": 317, - "size": 1272, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./partition.js", - "loc": "6:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./partition.js", - "loc": "6:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "name": "./node_modules/d3-hierarchy/src/stratify.js", - "index": 322, - "index2": 318, - "size": 1940, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stratify.js", - "loc": "7:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stratify.js", - "loc": "7:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "name": "./node_modules/d3-hierarchy/src/tree.js", - "index": 323, - "index2": 319, - "size": 7063, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tree.js", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tree.js", - "loc": "8:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/slice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/slice.js", - "index": 326, - "index2": 320, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "5:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/slice.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/slice.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "22:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "48:9-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "name": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "index": 325, - "index2": 321, - "size": 1874, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./squarify.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./squarify.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "7:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/squarify.js", - "loc": "14:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/squarify.js", - "loc": "14:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "26:32-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "36:3-6" - } - ], - "usedExports": [ - "default", - "squarifyRatio", - "phi" - ], - "providedExports": [ - "phi", - "squarifyRatio", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "index": 324, - "index2": 322, - "size": 2822, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/index.js", - "loc": "9:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/index.js", - "loc": "9:0-54" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/binary.js", - "name": "./node_modules/d3-hierarchy/src/treemap/binary.js", - "index": 327, - "index2": 323, - "size": 1266, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/binary.js", - "loc": "10:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/binary.js", - "loc": "10:0-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "index": 328, - "index2": 324, - "size": 176, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/sliceDice.js", - "loc": "13:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/sliceDice.js", - "loc": "13:0-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "name": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "index": 329, - "index2": 325, - "size": 1038, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/resquarify.js", - "loc": "15:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/resquarify.js", - "loc": "15:0-69" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/discrete.js", - "name": "./node_modules/d3-interpolate/src/discrete.js", - "index": 331, - "index2": 327, - "size": 154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./discrete.js", - "loc": "6:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./discrete.js", - "loc": "6:0-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "name": "./node_modules/d3-interpolate/src/hue.js", - "index": 332, - "index2": 328, - "size": 178, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hue.js", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hue.js", - "loc": "7:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/round.js", - "name": "./node_modules/d3-interpolate/src/round.js", - "index": 333, - "index2": 329, - "size": 122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./round.js", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./round.js", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "101:48-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/zoom.js", - "name": "./node_modules/d3-interpolate/src/zoom.js", - "index": 334, - "index2": 330, - "size": 1387, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zoom.js", - "loc": "14:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zoom.js", - "loc": "14:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "61:20-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "name": "./node_modules/d3-interpolate/src/hsl.js", - "index": 335, - "index2": 331, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hsl.js", - "loc": "16:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hsl.js", - "loc": "16:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hsl.js", - "loc": "16:0-82" - } - ], - "usedExports": [ - "default", - "hslLong" - ], - "providedExports": [ - "default", - "hslLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "name": "./node_modules/d3-interpolate/src/lab.js", - "index": 336, - "index2": 332, - "size": 450, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lab.js", - "loc": "17:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "17:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "name": "./node_modules/d3-interpolate/src/hcl.js", - "index": 337, - "index2": 333, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hcl.js", - "loc": "18:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hcl.js", - "loc": "18:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hcl.js", - "loc": "18:0-82" - } - ], - "usedExports": [ - "default", - "hclLong" - ], - "providedExports": [ - "default", - "hclLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "name": "./node_modules/d3-interpolate/src/cubehelix.js", - "index": 338, - "index2": 334, - "size": 763, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:15-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:18-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "6:18-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - } - ], - "usedExports": [ - "cubehelixLong", - "default" - ], - "providedExports": [ - "default", - "cubehelixLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/piecewise.js", - "name": "./node_modules/d3-interpolate/src/piecewise.js", - "index": 339, - "index2": 335, - "size": 310, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./piecewise.js", - "loc": "20:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./piecewise.js", - "loc": "20:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/quantize.js", - "name": "./node_modules/d3-interpolate/src/quantize.js", - "index": 340, - "index2": 336, - "size": 163, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantize.js", - "loc": "21:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantize.js", - "loc": "21:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/area.js", - "name": "./node_modules/d3-polygon/src/area.js", - "index": 343, - "index2": 339, - "size": 243, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "1:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/centroid.js", - "name": "./node_modules/d3-polygon/src/centroid.js", - "index": 344, - "index2": 340, - "size": 346, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./centroid.js", - "loc": "2:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "name": "./node_modules/d3-polygon/src/hull.js", - "index": 345, - "index2": 342, - "size": 1713, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hull.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hull.js", - "loc": "3:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/contains.js", - "name": "./node_modules/d3-polygon/src/contains.js", - "index": 347, - "index2": 343, - "size": 411, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains.js", - "loc": "4:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contains.js", - "loc": "4:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/length.js", - "name": "./node_modules/d3-polygon/src/length.js", - "index": 348, - "index2": 344, - "size": 375, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./length.js", - "loc": "5:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "name": "./node_modules/d3-random/src/uniform.js", - "index": 351, - "index2": 348, - "size": 440, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./uniform", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./uniform", - "loc": "1:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "name": "./node_modules/d3-random/src/normal.js", - "index": 353, - "index2": 349, - "size": 713, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./normal", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./normal", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony side effect evaluation", - "userRequest": "./normal", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony import specifier", - "userRequest": "./normal", - "loc": "6:23-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "name": "./node_modules/d3-random/src/logNormal.js", - "index": 354, - "index2": 350, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./logNormal", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./logNormal", - "loc": "3:0-55" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "name": "./node_modules/d3-random/src/irwinHall.js", - "index": 356, - "index2": 351, - "size": 345, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony side effect evaluation", - "userRequest": "./irwinHall", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./irwinHall", - "loc": "5:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./irwinHall", - "loc": "5:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony import specifier", - "userRequest": "./irwinHall", - "loc": "6:26-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "name": "./node_modules/d3-random/src/bates.js", - "index": 355, - "index2": 352, - "size": 375, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bates", - "loc": "4:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bates", - "loc": "4:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "name": "./node_modules/d3-random/src/exponential.js", - "index": 357, - "index2": 353, - "size": 329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponential", - "loc": "6:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exponential", - "loc": "6:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "name": "./node_modules/d3-scale/src/ordinal.js", - "index": 361, - "index2": 357, - "size": 1108, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/band.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "./ordinal", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "./ordinal", - "loc": "6:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - } - ], - "usedExports": [ - "default", - "implicit" - ], - "providedExports": [ - "implicit", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "index": 359, - "index2": 358, - "size": 2637, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./band", - "loc": "1:0-4:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./band", - "loc": "1:0-4:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./band", - "loc": "1:0-4:16" - } - ], - "usedExports": [ - "default", - "point" - ], - "providedExports": [ - "default", - "point" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "name": "./node_modules/d3-scale/src/tickFormat.js", - "index": 368, - "index2": 362, - "size": 1122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./tickFormat", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./tickFormat", - "loc": "16:11-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tickFormat", - "loc": "72:0-74:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tickFormat", - "loc": "72:0-74:22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "name": "./node_modules/d3-scale/src/linear.js", - "index": 364, - "index2": 363, - "size": 1757, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "10:0-12:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./linear", - "loc": "10:0-12:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "24:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "28:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "33:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "50:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "54:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "56:25-34" - } - ], - "usedExports": [ - "linearish", - "default" - ], - "providedExports": [ - "linearish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "name": "./node_modules/d3-scale/src/identity.js", - "index": 363, - "index2": 364, - "size": 660, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "6:0-8:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./identity", - "loc": "6:0-8:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "name": "./node_modules/d3-scale/src/log.js", - "index": 369, - "index2": 366, - "size": 3384, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "14:0-16:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./log", - "loc": "14:0-16:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./log", - "loc": "60:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./log", - "loc": "64:14-21" - } - ], - "usedExports": [ - "loggish", - "default" - ], - "providedExports": [ - "loggish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "name": "./node_modules/d3-scale/src/symlog.js", - "index": 371, - "index2": 367, - "size": 839, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "5:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "6:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "18:0-20:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symlog", - "loc": "18:0-20:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./symlog", - "loc": "70:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./symlog", - "loc": "74:14-23" - } - ], - "usedExports": [ - "symlogish", - "default" - ], - "providedExports": [ - "symlogish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "name": "./node_modules/d3-scale/src/pow.js", - "index": 372, - "index2": 368, - "size": 1174, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "7:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./pow", - "loc": "80:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./pow", - "loc": "84:14-20" - } - ], - "usedExports": [ - "powish", - "default", - "sqrt" - ], - "providedExports": [ - "powish", - "default", - "sqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "name": "./node_modules/d3-scale/src/quantile.js", - "index": 373, - "index2": 369, - "size": 1489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "32:0-34:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantile", - "loc": "32:0-34:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "name": "./node_modules/d3-scale/src/quantize.js", - "index": 374, - "index2": 370, - "size": 1341, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantize", - "loc": "36:0-38:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantize", - "loc": "36:0-38:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "name": "./node_modules/d3-scale/src/threshold.js", - "index": 375, - "index2": 371, - "size": 1012, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold", - "loc": "40:0-42:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold", - "loc": "40:0-42:21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/interval.js", - "name": "./node_modules/d3-time/src/interval.js", - "index": 378, - "index2": 372, - "size": 2164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-3:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interval.js", - "loc": "1:0-3:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "module": "./node_modules/d3-time/src/utcMonth.js", - "moduleName": "./node_modules/d3-time/src/utcMonth.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "module": "./node_modules/d3-time/src/month.js", - "moduleName": "./node_modules/d3-time/src/month.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "module": "./node_modules/d3-time/src/month.js", - "moduleName": "./node_modules/d3-time/src/month.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "module": "./node_modules/d3-time/src/utcMonth.js", - "moduleName": "./node_modules/d3-time/src/utcMonth.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "5:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "5:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:59-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:59-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "name": "./node_modules/d3-time/src/year.js", - "index": 377, - "index2": 373, - "size": 757, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:34-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "521:31-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "550:30-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:32-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:51-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "564:30-38" - } - ], - "usedExports": [ - "default", - "years" - ], - "providedExports": [ - "default", - "years" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "name": "./node_modules/d3-time/src/month.js", - "index": 379, - "index2": 374, - "size": 417, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:44-53" - } - ], - "usedExports": [ - "default", - "months" - ], - "providedExports": [ - "default", - "months" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "name": "./node_modules/d3-time/src/week.js", - "index": 380, - "index2": 376, - "size": 969, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:55-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "225:40-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "225:64-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "550:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "555:32-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "555:50-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "564:13-23" - } - ], - "usedExports": [ - "monday", - "sunday", - "thursday", - "sundays", - "mondays", - "tuesday", - "tuesdays", - "wednesday", - "wednesdays", - "thursdays", - "friday", - "fridays", - "saturday", - "saturdays" - ], - "providedExports": [ - "sunday", - "monday", - "tuesday", - "wednesday", - "thursday", - "friday", - "saturday", - "sundays", - "mondays", - "tuesdays", - "wednesdays", - "thursdays", - "fridays", - "saturdays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "name": "./node_modules/d3-time/src/day.js", - "index": 382, - "index2": 377, - "size": 468, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:65-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "226:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "521:17-24" - } - ], - "usedExports": [ - "default", - "days" - ], - "providedExports": [ - "default", - "days" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "name": "./node_modules/d3-time/src/hour.js", - "index": 383, - "index2": 378, - "size": 512, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:74-82" - } - ], - "usedExports": [ - "default", - "hours" - ], - "providedExports": [ - "default", - "hours" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "name": "./node_modules/d3-time/src/minute.js", - "index": 384, - "index2": 379, - "size": 475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:84-94" - } - ], - "usedExports": [ - "default", - "minutes" - ], - "providedExports": [ - "default", - "minutes" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "name": "./node_modules/d3-time/src/second.js", - "index": 385, - "index2": 380, - "size": 425, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:90-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:96-106" - } - ], - "usedExports": [ - "default", - "seconds" - ], - "providedExports": [ - "default", - "seconds" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "name": "./node_modules/d3-time/src/millisecond.js", - "index": 386, - "index2": 381, - "size": 671, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:101-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:108-123" - } - ], - "usedExports": [ - "default", - "milliseconds" - ], - "providedExports": [ - "default", - "milliseconds" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "name": "./node_modules/d3-time/src/utcWeek.js", - "index": 389, - "index2": 382, - "size": 985, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "218:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "218:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "624:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "629:32-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "629:49-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:13-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "638:13-22" - } - ], - "usedExports": [ - "utcSunday", - "utcMonday", - "utcThursday", - "utcSundays", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays" - ], - "providedExports": [ - "utcSunday", - "utcMonday", - "utcTuesday", - "utcWednesday", - "utcThursday", - "utcFriday", - "utcSaturday", - "utcSundays", - "utcMondays", - "utcTuesdays", - "utcWednesdays", - "utcThursdays", - "utcFridays", - "utcSaturdays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "name": "./node_modules/d3-time/src/utcDay.js", - "index": 390, - "index2": 383, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:62-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "219:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "595:17-23" - } - ], - "usedExports": [ - "default", - "utcDays" - ], - "providedExports": [ - "default", - "utcDays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "name": "./node_modules/d3-time/src/utcYear.js", - "index": 391, - "index2": 384, - "size": 811, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "595:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "624:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "638:29-36" - } - ], - "usedExports": [ - "default", - "utcYears" - ], - "providedExports": [ - "default", - "utcYears" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "name": "./node_modules/d3-time-format/src/locale.js", - "index": 388, - "index2": 385, - "size": 17799, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/defaultLocale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "name": "./node_modules/d3-time-format/src/defaultLocale.js", - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 31, - "building": 51, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "module": "./node_modules/d3-time-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-time-format/src/defaultLocale.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./locale.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "module": "./node_modules/d3-time-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-time-format/src/defaultLocale.js", - "type": "harmony import specifier", - "userRequest": "./locale.js", - "loc": "21:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "name": "./node_modules/d3-time-format/src/defaultLocale.js", - "index": 387, - "index2": 386, - "size": 870, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "module": "./node_modules/d3-time-format/src/isoFormat.js", - "moduleName": "./node_modules/d3-time-format/src/isoFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time-format", - "loc": "7:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony import specifier", - "userRequest": "./defaultLocale.js", - "loc": "11:6-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "module": "./node_modules/d3-time-format/src/isoFormat.js", - "moduleName": "./node_modules/d3-time-format/src/isoFormat.js", - "type": "harmony import specifier", - "userRequest": "./defaultLocale.js", - "loc": "11:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time-format", - "loc": "134:125-135" - } - ], - "usedExports": [ - "utcFormat", - "timeFormat", - "default", - "timeParse", - "utcParse" - ], - "providedExports": [ - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "name": "./node_modules/d3-scale/src/time.js", - "index": 376, - "index2": 387, - "size": 4524, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "./time", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "userRequest": "./time", - "loc": "7:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./time", - "loc": "44:0-46:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./time", - "loc": "44:0-46:16" - } - ], - "usedExports": [ - "calendar", - "default" - ], - "providedExports": [ - "calendar", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "name": "./node_modules/d3-time/src/utcMonth.js", - "index": 393, - "index2": 388, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:43-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - } - ], - "usedExports": [ - "default", - "utcMonths" - ], - "providedExports": [ - "default", - "utcMonths" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "name": "./node_modules/d3-time/src/utcHour.js", - "index": 394, - "index2": 389, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:70-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - } - ], - "usedExports": [ - "default", - "utcHours" - ], - "providedExports": [ - "default", - "utcHours" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "name": "./node_modules/d3-time/src/utcMinute.js", - "index": 395, - "index2": 390, - "size": 418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - } - ], - "usedExports": [ - "default", - "utcMinutes" - ], - "providedExports": [ - "default", - "utcMinutes" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "name": "./node_modules/d3-scale/src/utcTime.js", - "index": 392, - "index2": 391, - "size": 441, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcTime", - "loc": "48:0-50:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcTime", - "loc": "48:0-50:19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "name": "./node_modules/d3-scale/src/sequential.js", - "index": 396, - "index2": 392, - "size": 2384, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "53:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "63:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "73:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "83:11-15" - } - ], - "usedExports": [ - "copy", - "default", - "sequentialLog", - "sequentialPow", - "sequentialSqrt", - "sequentialSymlog" - ], - "providedExports": [ - "copy", - "default", - "sequentialLog", - "sequentialSymlog", - "sequentialPow", - "sequentialSqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "name": "./node_modules/d3-scale/src/sequentialQuantile.js", - "index": 397, - "index2": 393, - "size": 862, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequentialQuantile", - "loc": "60:0-62:30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequentialQuantile", - "loc": "60:0-62:30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "index": 398, - "index2": 394, - "size": 2394, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - } - ], - "usedExports": [ - "default", - "divergingLog", - "divergingPow", - "divergingSqrt", - "divergingSymlog" - ], - "providedExports": [ - "default", - "divergingLog", - "divergingSymlog", - "divergingPow", - "divergingSqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "index": 400, - "index2": 397, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/category10.js", - "loc": "1:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/category10.js", - "loc": "1:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "index": 402, - "index2": 398, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Accent.js", - "loc": "2:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Accent.js", - "loc": "2:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "index": 403, - "index2": 399, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Dark2.js", - "loc": "3:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Dark2.js", - "loc": "3:0-62" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "index": 404, - "index2": 400, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Paired.js", - "loc": "4:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Paired.js", - "loc": "4:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "index": 405, - "index2": 401, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Pastel1.js", - "loc": "5:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Pastel1.js", - "loc": "5:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "index": 406, - "index2": 402, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Pastel2.js", - "loc": "6:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Pastel2.js", - "loc": "6:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "index": 407, - "index2": 403, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set1.js", - "loc": "7:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set1.js", - "loc": "7:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "index": 408, - "index2": 404, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set2.js", - "loc": "8:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set2.js", - "loc": "8:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "index": 409, - "index2": 405, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set3.js", - "loc": "9:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set3.js", - "loc": "9:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "index": 410, - "index2": 406, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Tableau10.js", - "loc": "10:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Tableau10.js", - "loc": "10:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "index": 411, - "index2": 408, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "index": 413, - "index2": 409, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "index": 414, - "index2": 410, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "index": 415, - "index2": 411, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "index": 416, - "index2": 412, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "index": 417, - "index2": 413, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "index": 418, - "index2": 414, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "index": 419, - "index2": 415, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "index": 420, - "index2": 416, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "index": 421, - "index2": 417, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "index": 422, - "index2": 418, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "index": 423, - "index2": 419, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "index": 424, - "index2": 420, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "index": 425, - "index2": 421, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "index": 426, - "index2": 422, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "index": 427, - "index2": 423, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "index": 428, - "index2": 424, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "index": 429, - "index2": 425, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "index": 430, - "index2": 426, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "index": 431, - "index2": 427, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "index": 432, - "index2": 428, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "index": 433, - "index2": 429, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "index": 434, - "index2": 430, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "index": 435, - "index2": 431, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "index": 436, - "index2": 432, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "index": 437, - "index2": 433, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "index": 438, - "index2": 434, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js", - "index": 439, - "index2": 435, - "size": 494, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/cividis.js", - "loc": "38:0-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/cividis.js", - "loc": "38:0-76" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "index": 440, - "index2": 436, - "size": 188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/cubehelix.js", - "loc": "39:0-87" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/cubehelix.js", - "loc": "39:0-87" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "index": 441, - "index2": 437, - "size": 506, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - } - ], - "usedExports": [ - "default", - "warm", - "cool" - ], - "providedExports": [ - "warm", - "cool", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "index": 442, - "index2": 438, - "size": 316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/sinebow.js", - "loc": "41:0-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/sinebow.js", - "loc": "41:0-76" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js", - "index": 443, - "index2": 439, - "size": 505, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/turbo.js", - "loc": "42:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/turbo.js", - "loc": "42:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "index": 444, - "index2": 440, - "size": 6475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - } - ], - "usedExports": [ - "default", - "magma", - "inferno", - "plasma" - ], - "providedExports": [ - "default", - "magma", - "inferno", - "plasma" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "index": 446, - "index2": 442, - "size": 162, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./create", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./create", - "loc": "1:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/local.js", - "name": "./node_modules/d3-selection/src/local.js", - "index": 447, - "index2": 443, - "size": 536, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./local", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./local", - "loc": "3:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "name": "./node_modules/d3-selection/src/selectAll.js", - "index": 448, - "index2": 444, - "size": 282, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll", - "loc": "10:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selectAll", - "loc": "10:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "name": "./node_modules/d3-selection/src/touches.js", - "index": 449, - "index2": 445, - "size": 323, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./touches", - "loc": "16:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./touches", - "loc": "16:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "index": 451, - "index2": 449, - "size": 8589, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./arc.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./arc.js", - "loc": "1:0-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linear.js", - "name": "./node_modules/d3-shape/src/curve/linear.js", - "index": 456, - "index2": 451, - "size": 738, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "module": "./node_modules/d3-shape/src/curve/radial.js", - "moduleName": "./node_modules/d3-shape/src/curve/radial.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "module": "./node_modules/d3-shape/src/curve/radial.js", - "moduleName": "./node_modules/d3-shape/src/curve/radial.js", - "type": "harmony import specifier", - "userRequest": "./linear.js", - "loc": "3:43-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./curve/linear.js", - "loc": "11:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./curve/linear.js", - "loc": "14:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "30:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/linear.js", - "loc": "30:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "name": "./node_modules/d3-shape/src/line.js", - "index": 457, - "index2": 452, - "size": 1525, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./line.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "18:20-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "56:11-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "name": "./node_modules/d3-shape/src/area.js", - "index": 454, - "index2": 453, - "size": 2929, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "6:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "index": 458, - "index2": 456, - "size": 2348, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pie.js", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pie.js", - "loc": "4:0-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "name": "./node_modules/d3-shape/src/lineRadial.js", - "index": 463, - "index2": 458, - "size": 402, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./lineRadial.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "19:41-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "20:39-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "21:42-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "22:42-52" - } - ], - "usedExports": [ - "default", - "lineRadial" - ], - "providedExports": [ - "lineRadial", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "name": "./node_modules/d3-shape/src/areaRadial.js", - "index": 461, - "index2": 459, - "size": 944, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pointRadial.js", - "name": "./node_modules/d3-shape/src/pointRadial.js", - "index": 464, - "index2": 460, - "size": 101, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointRadial.js", - "loc": "5:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pointRadial.js", - "loc": "7:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pointRadial.js", - "loc": "7:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "63:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "64:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "65:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "66:11-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "name": "./node_modules/d3-shape/src/link/index.js", - "index": 465, - "index2": 462, - "size": 2230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - } - ], - "usedExports": [ - "linkHorizontal", - "linkVertical", - "linkRadial" - ], - "providedExports": [ - "linkHorizontal", - "linkVertical", - "linkRadial" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "name": "./node_modules/d3-shape/src/symbol/circle.js", - "index": 468, - "index2": 463, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/circle.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/circle.js", - "loc": "11:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/circle.js", - "loc": "11:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/circle.js", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/circle.js", - "loc": "22:22-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/cross.js", - "name": "./node_modules/d3-shape/src/symbol/cross.js", - "index": 469, - "index2": 464, - "size": 476, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/cross.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/cross.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/cross.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/cross.js", - "loc": "13:2-7" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/diamond.js", - "name": "./node_modules/d3-shape/src/symbol/diamond.js", - "index": 470, - "index2": 465, - "size": 307, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/diamond.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/diamond.js", - "loc": "13:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/diamond.js", - "loc": "13:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/diamond.js", - "loc": "14:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "name": "./node_modules/d3-shape/src/symbol/star.js", - "index": 472, - "index2": 467, - "size": 612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/star.js", - "loc": "5:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/star.js", - "loc": "15:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/star.js", - "loc": "15:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/star.js", - "loc": "16:2-6" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/square.js", - "name": "./node_modules/d3-shape/src/symbol/square.js", - "index": 471, - "index2": 466, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/square.js", - "loc": "6:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/square.js", - "loc": "14:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/square.js", - "loc": "14:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/square.js", - "loc": "15:2-8" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/triangle.js", - "name": "./node_modules/d3-shape/src/symbol/triangle.js", - "index": 473, - "index2": 468, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/triangle.js", - "loc": "7:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/triangle.js", - "loc": "16:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/triangle.js", - "loc": "16:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/triangle.js", - "loc": "17:2-10" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/wye.js", - "name": "./node_modules/d3-shape/src/symbol/wye.js", - "index": 474, - "index2": 469, - "size": 733, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/wye.js", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/wye.js", - "loc": "17:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/wye.js", - "loc": "17:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/wye.js", - "loc": "18:2-5" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "name": "./node_modules/d3-shape/src/symbol.js", - "index": 467, - "index2": 470, - "size": 1184, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol.js", - "loc": "10:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol.js", - "loc": "10:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol.js", - "loc": "10:0-55" - } - ], - "usedExports": [ - "default", - "symbols" - ], - "providedExports": [ - "symbols", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basis.js", - "name": "./node_modules/d3-shape/src/curve/basis.js", - "index": 477, - "index2": 472, - "size": 1436, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "module": "./node_modules/d3-shape/src/curve/basisOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "4:20-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basis.js", - "loc": "21:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basis.js", - "loc": "21:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "module": "./node_modules/d3-shape/src/curve/basisOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisOpen.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "30:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "43:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "48:28-33" - } - ], - "usedExports": [ - "default", - "point", - "Basis" - ], - "providedExports": [ - "point", - "Basis", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "name": "./node_modules/d3-shape/src/curve/basisClosed.js", - "index": 475, - "index2": 473, - "size": 1536, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basisClosed.js", - "loc": "19:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basisClosed.js", - "loc": "19:0-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "name": "./node_modules/d3-shape/src/curve/basisOpen.js", - "index": 478, - "index2": 474, - "size": 1072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basisOpen.js", - "loc": "20:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basisOpen.js", - "loc": "20:0-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "name": "./node_modules/d3-shape/src/curve/bundle.js", - "index": 479, - "index2": 475, - "size": 1084, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/bundle.js", - "loc": "22:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/bundle.js", - "loc": "22:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinal.js", - "name": "./node_modules/d3-shape/src/curve/cardinal.js", - "index": 481, - "index2": 476, - "size": 1633, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "module": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "2:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinal.js", - "loc": "25:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinal.js", - "loc": "25:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "module": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "31:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "43:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "80:56-64" - } - ], - "usedExports": [ - "default", - "Cardinal", - "point" - ], - "providedExports": [ - "point", - "Cardinal", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "name": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "index": 480, - "index2": 477, - "size": 1611, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinalClosed.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinalClosed.js", - "loc": "23:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinalClosed.js", - "loc": "23:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "./cardinalClosed.js", - "loc": "66:62-76" - } - ], - "usedExports": [ - "default", - "CardinalClosed" - ], - "providedExports": [ - "CardinalClosed", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "name": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "index": 482, - "index2": 478, - "size": 1291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinalOpen.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinalOpen.js", - "loc": "24:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinalOpen.js", - "loc": "24:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony import specifier", - "userRequest": "./cardinalOpen.js", - "loc": "54:60-72" - } - ], - "usedExports": [ - "default", - "CardinalOpen" - ], - "providedExports": [ - "CardinalOpen", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "name": "./node_modules/d3-shape/src/curve/catmullRom.js", - "index": 484, - "index2": 479, - "size": 2643, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./catmullRom.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./catmullRom.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRom.js", - "loc": "28:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRom.js", - "loc": "28:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony import specifier", - "userRequest": "./catmullRom.js", - "loc": "41:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "./catmullRom.js", - "loc": "53:15-20" - } - ], - "usedExports": [ - "default", - "point" - ], - "providedExports": [ - "point", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "name": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "index": 483, - "index2": 480, - "size": 2092, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRomClosed.js", - "loc": "26:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRomClosed.js", - "loc": "26:0-77" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "name": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "index": 485, - "index2": 481, - "size": 1766, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRomOpen.js", - "loc": "27:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRomOpen.js", - "loc": "27:0-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "name": "./node_modules/d3-shape/src/curve/linearClosed.js", - "index": 486, - "index2": 482, - "size": 517, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linearClosed.js", - "loc": "29:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/linearClosed.js", - "loc": "29:0-69" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/monotone.js", - "name": "./node_modules/d3-shape/src/curve/monotone.js", - "index": 487, - "index2": 483, - "size": 3203, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - } - ], - "usedExports": [ - "monotoneX", - "monotoneY" - ], - "providedExports": [ - "monotoneX", - "monotoneY" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/natural.js", - "name": "./node_modules/d3-shape/src/curve/natural.js", - "index": 488, - "index2": 484, - "size": 1761, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/natural.js", - "loc": "32:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/natural.js", - "loc": "32:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/step.js", - "name": "./node_modules/d3-shape/src/curve/step.js", - "index": 489, - "index2": 485, - "size": 1367, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - } - ], - "usedExports": [ - "default", - "stepAfter", - "stepBefore" - ], - "providedExports": [ - "default", - "stepBefore", - "stepAfter" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/none.js", - "name": "./node_modules/d3-shape/src/offset/none.js", - "index": 492, - "index2": 487, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "module": "./node_modules/d3-shape/src/offset/wiggle.js", - "moduleName": "./node_modules/d3-shape/src/offset/wiggle.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "module": "./node_modules/d3-shape/src/offset/silhouette.js", - "moduleName": "./node_modules/d3-shape/src/offset/silhouette.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "module": "./node_modules/d3-shape/src/offset/expand.js", - "moduleName": "./node_modules/d3-shape/src/offset/expand.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/none.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "module": "./node_modules/d3-shape/src/offset/silhouette.js", - "moduleName": "./node_modules/d3-shape/src/offset/silhouette.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "9:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "module": "./node_modules/d3-shape/src/offset/expand.js", - "moduleName": "./node_modules/d3-shape/src/offset/expand.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "9:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./offset/none.js", - "loc": "13:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "module": "./node_modules/d3-shape/src/offset/wiggle.js", - "moduleName": "./node_modules/d3-shape/src/offset/wiggle.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "23:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/none.js", - "loc": "38:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/none.js", - "loc": "38:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./offset/none.js", - "loc": "53:52-62" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/none.js", - "name": "./node_modules/d3-shape/src/order/none.js", - "index": 491, - "index2": 486, - "size": 120, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/order/reverse.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "name": "./node_modules/d3-shape/src/order/reverse.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 14, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "module": "./node_modules/d3-shape/src/order/reverse.js", - "moduleName": "./node_modules/d3-shape/src/order/reverse.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "module": "./node_modules/d3-shape/src/order/ascending.js", - "moduleName": "./node_modules/d3-shape/src/order/ascending.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "module": "./node_modules/d3-shape/src/order/appearance.js", - "moduleName": "./node_modules/d3-shape/src/order/appearance.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/none.js", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "module": "./node_modules/d3-shape/src/order/reverse.js", - "moduleName": "./node_modules/d3-shape/src/order/reverse.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "4:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "module": "./node_modules/d3-shape/src/order/ascending.js", - "moduleName": "./node_modules/d3-shape/src/order/ascending.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "5:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "module": "./node_modules/d3-shape/src/order/appearance.js", - "moduleName": "./node_modules/d3-shape/src/order/appearance.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "5:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./order/none.js", - "loc": "12:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/none.js", - "loc": "45:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/none.js", - "loc": "45:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./order/none.js", - "loc": "49:51-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "name": "./node_modules/d3-shape/src/stack.js", - "index": 490, - "index2": 488, - "size": 1444, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stack.js", - "loc": "35:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stack.js", - "loc": "35:0-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "name": "./node_modules/d3-shape/src/offset/expand.js", - "index": 493, - "index2": 489, - "size": 322, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/expand.js", - "loc": "36:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/expand.js", - "loc": "36:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/diverging.js", - "name": "./node_modules/d3-shape/src/offset/diverging.js", - "index": 494, - "index2": 490, - "size": 431, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/diverging.js", - "loc": "37:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/diverging.js", - "loc": "37:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "name": "./node_modules/d3-shape/src/offset/silhouette.js", - "index": 495, - "index2": 491, - "size": 317, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/silhouette.js", - "loc": "39:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/silhouette.js", - "loc": "39:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "name": "./node_modules/d3-shape/src/offset/wiggle.js", - "index": 496, - "index2": 492, - "size": 743, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/wiggle.js", - "loc": "40:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/wiggle.js", - "loc": "40:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "name": "./node_modules/d3-shape/src/order/appearance.js", - "index": 497, - "index2": 493, - "size": 339, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/order/insideOut.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "name": "./node_modules/d3-shape/src/order/insideOut.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 16, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony side effect evaluation", - "userRequest": "./appearance.js", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony import specifier", - "userRequest": "./appearance.js", - "loc": "9:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/appearance.js", - "loc": "41:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/appearance.js", - "loc": "41:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "name": "./node_modules/d3-shape/src/order/ascending.js", - "index": 498, - "index2": 494, - "size": 308, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "module": "./node_modules/d3-shape/src/order/descending.js", - "moduleName": "./node_modules/d3-shape/src/order/descending.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending.js", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "module": "./node_modules/d3-shape/src/order/descending.js", - "moduleName": "./node_modules/d3-shape/src/order/descending.js", - "type": "harmony import specifier", - "userRequest": "./ascending.js", - "loc": "4:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony import specifier", - "userRequest": "./ascending.js", - "loc": "8:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/ascending.js", - "loc": "42:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/ascending.js", - "loc": "42:0-68" - } - ], - "usedExports": [ - "default", - "sum" - ], - "providedExports": [ - "default", - "sum" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "name": "./node_modules/d3-shape/src/order/descending.js", - "index": 499, - "index2": 495, - "size": 115, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/descending.js", - "loc": "43:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/descending.js", - "loc": "43:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "name": "./node_modules/d3-shape/src/order/insideOut.js", - "index": 500, - "index2": 496, - "size": 518, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/insideOut.js", - "loc": "44:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/insideOut.js", - "loc": "44:0-68" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "name": "./node_modules/d3-shape/src/order/reverse.js", - "index": 501, - "index2": 497, - "size": 100, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/reverse.js", - "loc": "46:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/reverse.js", - "loc": "46:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "name": "./node_modules/d3-time-format/src/isoFormat.js", - "index": 504, - "index2": 500, - "size": 287, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoFormat.js", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoFormat.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./isoFormat.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony import specifier", - "userRequest": "./isoFormat.js", - "loc": "11:15-27" - } - ], - "usedExports": [ - "default", - "isoSpecifier" - ], - "providedExports": [ - "isoSpecifier", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "name": "./node_modules/d3-time-format/src/isoParse.js", - "index": 505, - "index2": 501, - "size": 325, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoParse.js", - "loc": "4:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./isoParse.js", - "loc": "4:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "name": "./node_modules/d3-timer/src/interval.js", - "index": 507, - "index2": 503, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "11:0-13:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interval.js", - "loc": "11:0-13:23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "index": 509, - "index2": 513, - "size": 1420, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 174, - "building": 44 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "module": "./node_modules/d3-voronoi/src/index.js", - "moduleName": "./node_modules/d3-voronoi/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./voronoi", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "module": "./node_modules/d3-voronoi/src/index.js", - "moduleName": "./node_modules/d3-voronoi/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./voronoi", - "loc": "1:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/transform.js", - "name": "./node_modules/d3-zoom/src/transform.js", - "index": 522, - "index2": 517, - "size": 1395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "8:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "30:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "131:23-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "140:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "145:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "168:55-64" - } - ], - "usedExports": [ - "identity", - "Transform", - "default" - ], - "providedExports": [ - "Transform", - "identity", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "index": 519, - "index2": 519, - "size": 14591, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zoom.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zoom.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/number.js", - "name": "./node_modules/d3-array/src/number.js", - "index": 14, - "index2": 8, - "size": 63, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/mean.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "name": "./node_modules/d3-array/src/mean.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 117, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "module": "./node_modules/d3-array/src/quantile.js", - "moduleName": "./node_modules/d3-array/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../number", - "loc": "3:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "module": "./node_modules/d3-array/src/quantile.js", - "moduleName": "./node_modules/d3-array/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "4:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../number", - "loc": "7:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "12:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "13:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "14:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "19:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "21:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "24:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x === null ? NaN : +x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/array.js", - "name": "./node_modules/d3-array/src/array.js", - "index": 17, - "index2": 12, - "size": 90, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../array", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../array", - "loc": "7:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "71:101-106" - } - ], - "usedExports": [ - "map", - "slice" - ], - "providedExports": [ - "slice", - "map" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/constant.js", - "name": "./node_modules/d3-array/src/constant.js", - "index": 18, - "index2": 13, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "63:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "67:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:118-126" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/identity.js", - "name": "./node_modules/d3-array/src/identity.js", - "index": 19, - "index2": 14, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./identity", - "loc": "11:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/array.js", - "name": "./node_modules/d3-axis/src/array.js", - "index": 39, - "index2": 34, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/axis.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "profile": { - "factory": 187, - "building": 33 - } - } - ], - "profile": { - "factory": 124, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "126:27-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "130:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "134:63-68" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/identity.js", - "name": "./node_modules/d3-axis/src/identity.js", - "index": 40, - "index2": 35, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/axis.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "profile": { - "factory": 187, - "building": 33 - } - } - ], - "profile": { - "factory": 124, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./identity", - "loc": "49:105-113" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "name": "./node_modules/d3-selection/src/selection/select.js", - "index": 85, - "index2": 74, - "size": 653, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./select", - "loc": "46:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "name": "./node_modules/d3-selection/src/selection/selectAll.js", - "index": 86, - "index2": 75, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./selectAll", - "loc": "47:13-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "name": "./node_modules/d3-selection/src/selection/filter.js", - "index": 87, - "index2": 76, - "size": 546, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./filter", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./filter", - "loc": "48:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "name": "./node_modules/d3-selection/src/selection/enter.js", - "index": 89, - "index2": 78, - "size": 792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "./enter", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./enter", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "21:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "50:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "65:21-30" - } - ], - "usedExports": [ - "default", - "EnterNode" - ], - "providedExports": [ - "default", - "EnterNode" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "name": "./node_modules/d3-selection/src/selection/data.js", - "index": 88, - "index2": 80, - "size": 3597, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./data", - "loc": "4:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./data", - "loc": "49:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "name": "./node_modules/d3-selection/src/selection/exit.js", - "index": 92, - "index2": 81, - "size": 176, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exit", - "loc": "6:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./exit", - "loc": "51:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/join.js", - "name": "./node_modules/d3-selection/src/selection/join.js", - "index": 93, - "index2": 82, - "size": 377, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./join", - "loc": "7:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./join", - "loc": "52:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "name": "./node_modules/d3-selection/src/selection/merge.js", - "index": 94, - "index2": 83, - "size": 575, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./merge", - "loc": "53:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/order.js", - "name": "./node_modules/d3-selection/src/selection/order.js", - "index": 95, - "index2": 84, - "size": 380, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./order", - "loc": "54:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "name": "./node_modules/d3-selection/src/selection/sort.js", - "index": 96, - "index2": 85, - "size": 681, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sort", - "loc": "10:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./sort", - "loc": "55:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/call.js", - "name": "./node_modules/d3-selection/src/selection/call.js", - "index": 97, - "index2": 86, - "size": 134, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./call", - "loc": "11:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./call", - "loc": "56:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/nodes.js", - "name": "./node_modules/d3-selection/src/selection/nodes.js", - "index": 98, - "index2": 87, - "size": 140, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "12:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "57:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/node.js", - "name": "./node_modules/d3-selection/src/selection/node.js", - "index": 99, - "index2": 88, - "size": 258, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./node", - "loc": "13:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./node", - "loc": "58:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/size.js", - "name": "./node_modules/d3-selection/src/selection/size.js", - "index": 100, - "index2": 89, - "size": 98, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./size", - "loc": "14:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./size", - "loc": "59:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/empty.js", - "name": "./node_modules/d3-selection/src/selection/empty.js", - "index": 101, - "index2": 90, - "size": 53, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./empty", - "loc": "15:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./empty", - "loc": "60:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return !this.node();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/each.js", - "name": "./node_modules/d3-selection/src/selection/each.js", - "index": 102, - "index2": 91, - "size": 289, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./each", - "loc": "16:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./each", - "loc": "61:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "name": "./node_modules/d3-selection/src/selection/attr.js", - "index": 103, - "index2": 92, - "size": 1460, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attr", - "loc": "17:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./attr", - "loc": "62:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/property.js", - "name": "./node_modules/d3-selection/src/selection/property.js", - "index": 106, - "index2": 95, - "size": 617, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./property", - "loc": "19:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./property", - "loc": "64:12-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/classed.js", - "name": "./node_modules/d3-selection/src/selection/classed.js", - "index": 107, - "index2": 96, - "size": 1740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./classed", - "loc": "20:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./classed", - "loc": "65:11-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/text.js", - "name": "./node_modules/d3-selection/src/selection/text.js", - "index": 108, - "index2": 97, - "size": 528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "21:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "66:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/html.js", - "name": "./node_modules/d3-selection/src/selection/html.js", - "index": 109, - "index2": 98, - "size": 520, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./html", - "loc": "22:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./html", - "loc": "67:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/raise.js", - "name": "./node_modules/d3-selection/src/selection/raise.js", - "index": 110, - "index2": 99, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./raise", - "loc": "23:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./raise", - "loc": "68:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/lower.js", - "name": "./node_modules/d3-selection/src/selection/lower.js", - "index": 111, - "index2": 100, - "size": 171, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lower", - "loc": "24:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./lower", - "loc": "69:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "name": "./node_modules/d3-selection/src/selection/append.js", - "index": 112, - "index2": 102, - "size": 235, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./append", - "loc": "25:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./append", - "loc": "70:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "name": "./node_modules/d3-selection/src/selection/insert.js", - "index": 114, - "index2": 103, - "size": 468, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./insert", - "loc": "26:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./insert", - "loc": "71:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/remove.js", - "name": "./node_modules/d3-selection/src/selection/remove.js", - "index": 115, - "index2": 104, - "size": 153, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove", - "loc": "27:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./remove", - "loc": "72:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/clone.js", - "name": "./node_modules/d3-selection/src/selection/clone.js", - "index": 116, - "index2": 105, - "size": 453, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clone", - "loc": "28:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./clone", - "loc": "73:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/datum.js", - "name": "./node_modules/d3-selection/src/selection/datum.js", - "index": 117, - "index2": 106, - "size": 132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./datum", - "loc": "29:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./datum", - "loc": "74:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "name": "./node_modules/d3-selection/src/selection/dispatch.js", - "index": 119, - "index2": 108, - "size": 891, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dispatch", - "loc": "31:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./dispatch", - "loc": "76:12-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "name": "./node_modules/d3-drag/src/noevent.js", - "index": 142, - "index2": 136, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/nodrag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "name": "./node_modules/d3-drag/src/nodrag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 57, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "6:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "8:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "19:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "56:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "75:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "87:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "99:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "113:8-21" - } - ], - "usedExports": [ - "default", - "nopropagation" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/define.js", - "name": "./node_modules/d3-color/src/define.js", - "index": 58, - "index2": 46, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/color.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "name": "./node_modules/d3-color/src/color.js", - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - } - } - ], - "profile": { - "factory": 63, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "39:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "39:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "45:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "45:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "113:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "113:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "170:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "242:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "242:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "328:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "328:17-23" - } - ], - "usedExports": [ - "default", - "extend" - ], - "providedExports": [ - "default", - "extend" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/constant.js", - "name": "./node_modules/d3-interpolate/src/constant.js", - "index": 61, - "index2": 48, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "13:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "17:82-90" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "22:42-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "28:28-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "name": "./node_modules/d3-interpolate/src/color.js", - "index": 60, - "index2": 49, - "size": 700, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "module": "./node_modules/d3-interpolate/src/hue.js", - "moduleName": "./node_modules/d3-interpolate/src/hue.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "module": "./node_modules/d3-interpolate/src/hue.js", - "moduleName": "./node_modules/d3-interpolate/src/hue.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "4:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "6:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "9:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "9:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "10:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "11:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "12:20-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "13:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "20:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "20:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "21:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "21:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "28:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "29:37-42" - } - ], - "usedExports": [ - "gamma", - "default", - "hue" - ], - "providedExports": [ - "hue", - "gamma", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "name": "./node_modules/d3-selection/src/sourceEvent.js", - "index": 132, - "index2": 126, - "size": 175, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/touches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "name": "./node_modules/d3-selection/src/touches.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 95, - "building": 17, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:33-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:60-71" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "name": "./node_modules/d3-transition/src/transition/schedule.js", - "index": 47, - "index2": 41, - "size": 4617, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/interrupt.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "name": "./node_modules/d3-transition/src/interrupt.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 39, - "building": 57, - "dependencies": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/schedule.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "module": "./node_modules/d3-transition/src/transition/end.js", - "moduleName": "./node_modules/d3-transition/src/transition/end.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "../transition/schedule.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/schedule.js", - "loc": "2:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "5:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "5:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "6:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "module": "./node_modules/d3-transition/src/transition/end.js", - "moduleName": "./node_modules/d3-transition/src/transition/end.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "10:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "11:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "11:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:43-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "13:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "14:44-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "14:89-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "15:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "16:30-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:53-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "16:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "17:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "22:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "22:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "30:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "31:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/schedule.js", - "loc": "36:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "56:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "58:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "74:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "79:11-14" - } - ], - "usedExports": [ - "STARTING", - "ENDING", - "ENDED", - "SCHEDULED", - "set", - "get", - "init", - "default" - ], - "providedExports": [ - "CREATED", - "SCHEDULED", - "STARTING", - "STARTED", - "RUNNING", - "ENDING", - "ENDED", - "default", - "init", - "set", - "get" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "name": "./node_modules/d3-transition/src/selection/interrupt.js", - "index": 45, - "index2": 43, - "size": 141, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interrupt.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./interrupt.js", - "loc": "5:32-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "name": "./node_modules/d3-interpolate/src/transform/parse.js", - "index": 68, - "index2": 58, - "size": 983, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/transform/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 54, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./parse.js", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "./parse.js", - "loc": "62:58-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "./parse.js", - "loc": "63:58-66" - } - ], - "usedExports": [ - "parseCss", - "parseSvg" - ], - "providedExports": [ - "parseCss", - "parseSvg" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "name": "./node_modules/d3-transition/src/transition/tween.js", - "index": 54, - "index2": 44, - "size": 2029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "module": "./node_modules/d3-transition/src/transition/text.js", - "moduleName": "./node_modules/d3-transition/src/transition/text.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "module": "./node_modules/d3-transition/src/transition/text.js", - "moduleName": "./node_modules/d3-transition/src/transition/text.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "18:21-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "19:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "63:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "75:47-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "75:70-80" - } - ], - "usedExports": [ - "default", - "tweenValue" - ], - "providedExports": [ - "default", - "tweenValue" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "name": "./node_modules/d3-transition/src/transition/attr.js", - "index": 53, - "index2": 60, - "size": 2673, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attr.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./attr.js", - "loc": "56:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "name": "./node_modules/d3-transition/src/transition/attrTween.js", - "index": 70, - "index2": 61, - "size": 1148, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attrTween.js", - "loc": "3:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./attrTween.js", - "loc": "57:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "name": "./node_modules/d3-transition/src/transition/delay.js", - "index": 71, - "index2": 62, - "size": 513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./delay.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./delay.js", - "loc": "64:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "name": "./node_modules/d3-transition/src/transition/duration.js", - "index": 72, - "index2": 63, - "size": 531, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "5:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "65:12-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "name": "./node_modules/d3-transition/src/transition/ease.js", - "index": 73, - "index2": 64, - "size": 351, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ease.js", - "loc": "6:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./ease.js", - "loc": "66:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "name": "./node_modules/d3-transition/src/transition/filter.js", - "index": 74, - "index2": 66, - "size": 577, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./filter.js", - "loc": "7:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./filter.js", - "loc": "45:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "name": "./node_modules/d3-transition/src/transition/merge.js", - "index": 76, - "index2": 67, - "size": 656, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge.js", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./merge.js", - "loc": "46:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "name": "./node_modules/d3-transition/src/transition/on.js", - "index": 77, - "index2": 68, - "size": 856, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./on.js", - "loc": "9:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./on.js", - "loc": "55:6-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/remove.js", - "name": "./node_modules/d3-transition/src/transition/remove.js", - "index": 78, - "index2": 69, - "size": 284, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove.js", - "loc": "10:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "62:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "name": "./node_modules/d3-transition/src/transition/select.js", - "index": 79, - "index2": 71, - "size": 832, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select.js", - "loc": "11:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./select.js", - "loc": "43:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "name": "./node_modules/d3-transition/src/transition/selectAll.js", - "index": 81, - "index2": 73, - "size": 889, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll.js", - "loc": "12:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./selectAll.js", - "loc": "44:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "name": "./node_modules/d3-transition/src/transition/selection.js", - "index": 83, - "index2": 110, - "size": 174, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection.js", - "loc": "13:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./selection.js", - "loc": "47:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "name": "./node_modules/d3-transition/src/transition/style.js", - "index": 120, - "index2": 111, - "size": 2748, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./style.js", - "loc": "14:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./style.js", - "loc": "58:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/styleTween.js", - "name": "./node_modules/d3-transition/src/transition/styleTween.js", - "index": 121, - "index2": 112, - "size": 742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./styleTween.js", - "loc": "15:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./styleTween.js", - "loc": "59:14-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "name": "./node_modules/d3-transition/src/transition/text.js", - "index": 122, - "index2": 113, - "size": 476, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text.js", - "loc": "16:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./text.js", - "loc": "60:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/textTween.js", - "name": "./node_modules/d3-transition/src/transition/textTween.js", - "index": 123, - "index2": 114, - "size": 599, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./textTween.js", - "loc": "17:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./textTween.js", - "loc": "61:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "name": "./node_modules/d3-transition/src/transition/transition.js", - "index": 124, - "index2": 115, - "size": 697, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition.js", - "loc": "18:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./transition.js", - "loc": "48:14-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "name": "./node_modules/d3-transition/src/transition/end.js", - "index": 125, - "index2": 116, - "size": 747, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./end.js", - "loc": "20:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./end.js", - "loc": "67:7-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "index": 51, - "index2": 119, - "size": 1096, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition.js", - "loc": "3:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./transition.js", - "loc": "6:33-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/constant.js", - "name": "./node_modules/d3-brush/src/constant.js", - "index": 128, - "index2": 123, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "6:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "564:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "568:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "572:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/event.js", - "name": "./node_modules/d3-brush/src/event.js", - "index": 129, - "index2": 124, - "size": 127, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "7:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "320:22-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "name": "./node_modules/d3-brush/src/noevent.js", - "index": 130, - "index2": 125, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "8:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "389:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "402:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "462:6-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "505:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "544:6-13" - } - ], - "usedExports": [ - "nopropagation", - "default" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/math.js", - "name": "./node_modules/d3-chord/src/math.js", - "index": 145, - "index2": 140, - "size": 159, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony side effect evaluation", - "userRequest": "./math", - "loc": "2:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./math", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "40:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "41:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "42:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "43:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "45:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "46:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "53:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "53:57-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "59:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "60:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "105:42-45" - } - ], - "usedExports": [ - "halfPi", - "cos", - "sin", - "max", - "tau" - ], - "providedExports": [ - "cos", - "sin", - "pi", - "halfPi", - "tau", - "max" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/array.js", - "name": "./node_modules/d3-chord/src/array.js", - "index": 147, - "index2": 142, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "36:15-20" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/constant.js", - "name": "./node_modules/d3-chord/src/constant.js", - "index": 148, - "index2": 143, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "63:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "67:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/math.js", - "name": "./node_modules/d3-color/src/math.js", - "index": 159, - "index2": 154, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/cubehelix.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "name": "./node_modules/d3-color/src/cubehelix.js", - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - } - } - ], - "profile": { - "factory": 61, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "88:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:16-23" - } - ], - "usedExports": [ - "rad2deg", - "deg2rad" - ], - "providedExports": [ - "deg2rad", - "rad2deg" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/array.js", - "name": "./node_modules/d3-contour/src/array.js", - "index": 163, - "index2": 158, - "size": 62, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "123:101-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "195:101-106" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var slice = array.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/ascending.js", - "name": "./node_modules/d3-contour/src/ascending.js", - "index": 164, - "index2": 159, - "size": 50, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "43:27-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n return a - b;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/area.js", - "name": "./node_modules/d3-contour/src/area.js", - "index": 165, - "index2": 160, - "size": 230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./area", - "loc": "4:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./area", - "loc": "59:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/constant.js", - "name": "./node_modules/d3-contour/src/constant.js", - "index": 166, - "index2": 161, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "30:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "98:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "102:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "106:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "123:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "123:118-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "195:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "195:118-126" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contains.js", - "name": "./node_modules/d3-contour/src/contains.js", - "index": 167, - "index2": 162, - "size": 871, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains", - "loc": "6:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./contains", - "loc": "65:12-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/noop.js", - "name": "./node_modules/d3-contour/src/noop.js", - "index": 168, - "index2": 163, - "size": 29, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop", - "loc": "7:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./noop", - "loc": "199:59-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/blur.js", - "name": "./node_modules/d3-contour/src/blur.js", - "index": 170, - "index2": 165, - "size": 1095, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./blur", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "46:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "47:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "48:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "49:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "50:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "51:4-9" - } - ], - "usedExports": [ - "blurX", - "blurY" - ], - "providedExports": [ - "blurX", - "blurY" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/constant.js", - "name": "./node_modules/d3-drag/src/constant.js", - "index": 175, - "index2": 170, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/drag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 58, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "5:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "142:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "146:73-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "150:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "154:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/event.js", - "name": "./node_modules/d3-drag/src/event.js", - "index": 174, - "index2": 169, - "size": 430, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/drag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 58, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "6:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "123:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "137:22-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/constant.js", - "name": "./node_modules/d3-force/src/constant.js", - "index": 202, - "index2": 197, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/y.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "name": "./node_modules/d3-force/src/y.js", - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - } - } - ], - "profile": { - "factory": 17, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "4:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "4:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "5:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "10:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "19:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "19:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "33:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "33:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "37:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "37:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "41:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "45:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "94:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "98:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "108:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "112:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/jiggle.js", - "name": "./node_modules/d3-force/src/jiggle.js", - "index": 203, - "index2": 198, - "size": 69, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/manyBody.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "name": "./node_modules/d3-force/src/manyBody.js", - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - } - } - ], - "profile": { - "factory": 11, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "36:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "37:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "49:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "50:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "66:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "67:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "80:23-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "81:23-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/add.js", - "name": "./node_modules/d3-quadtree/src/add.js", - "index": 207, - "index2": 201, - "size": 2368, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./add.js", - "loc": "1:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./add.js", - "loc": "60:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./add.js", - "loc": "61:19-30" - } - ], - "usedExports": [ - "default", - "addAll" - ], - "providedExports": [ - "default", - "addAll" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/cover.js", - "name": "./node_modules/d3-quadtree/src/cover.js", - "index": 208, - "index2": 202, - "size": 1164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./cover.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./cover.js", - "loc": "62:18-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/data.js", - "name": "./node_modules/d3-quadtree/src/data.js", - "index": 209, - "index2": 203, - "size": 170, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./data.js", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./data.js", - "loc": "63:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/extent.js", - "name": "./node_modules/d3-quadtree/src/extent.js", - "index": 210, - "index2": 204, - "size": 206, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent.js", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./extent.js", - "loc": "64:19-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "name": "./node_modules/d3-quadtree/src/find.js", - "index": 211, - "index2": 206, - "size": 1699, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./find.js", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./find.js", - "loc": "65:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/remove.js", - "name": "./node_modules/d3-quadtree/src/remove.js", - "index": 213, - "index2": 207, - "size": 1898, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove.js", - "loc": "6:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "66:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "67:22-36" - } - ], - "usedExports": [ - "default", - "removeAll" - ], - "providedExports": [ - "default", - "removeAll" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/root.js", - "name": "./node_modules/d3-quadtree/src/root.js", - "index": 214, - "index2": 208, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./root.js", - "loc": "7:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./root.js", - "loc": "68:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return this._root;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/size.js", - "name": "./node_modules/d3-quadtree/src/size.js", - "index": 215, - "index2": 209, - "size": 155, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./size.js", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./size.js", - "loc": "69:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "name": "./node_modules/d3-quadtree/src/visit.js", - "index": 216, - "index2": 210, - "size": 698, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./visit.js", - "loc": "9:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./visit.js", - "loc": "70:18-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "name": "./node_modules/d3-quadtree/src/visitAfter.js", - "index": 217, - "index2": 211, - "size": 776, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./visitAfter.js", - "loc": "10:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./visitAfter.js", - "loc": "71:23-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/x.js", - "name": "./node_modules/d3-quadtree/src/x.js", - "index": 205, - "index2": 199, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./x.js", - "loc": "11:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./x.js", - "loc": "15:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./x.js", - "loc": "72:14-20" - } - ], - "usedExports": [ - "defaultX", - "default" - ], - "providedExports": [ - "defaultX", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/y.js", - "name": "./node_modules/d3-quadtree/src/y.js", - "index": 206, - "index2": 200, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./y.js", - "loc": "12:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./y.js", - "loc": "15:64-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./y.js", - "loc": "73:14-20" - } - ], - "usedExports": [ - "defaultY", - "default" - ], - "providedExports": [ - "defaultY", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "name": "./node_modules/d3-format/src/exponent.js", - "index": 236, - "index2": 230, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "module": "./node_modules/d3-format/src/precisionFixed.js", - "moduleName": "./node_modules/d3-format/src/precisionFixed.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "module": "./node_modules/d3-format/src/precisionFixed.js", - "moduleName": "./node_modules/d3-format/src/precisionFixed.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:22-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:57-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:86-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "5:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "5:37-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "135:48-56" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatGroup.js", - "name": "./node_modules/d3-format/src/formatGroup.js", - "index": 228, - "index2": 222, - "size": 475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatGroup.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatGroup.js", - "loc": "14:91-102" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatNumerals.js", - "name": "./node_modules/d3-format/src/formatNumerals.js", - "index": 229, - "index2": 223, - "size": 154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatNumerals.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatNumerals.js", - "loc": "18:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTrim.js", - "name": "./node_modules/d3-format/src/formatTrim.js", - "index": 235, - "index2": 229, - "size": 399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatTrim.js", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTrim.js", - "loc": "81:26-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "name": "./node_modules/d3-format/src/formatPrefixAuto.js", - "index": 234, - "index2": 227, - "size": 614, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatPrefixAuto.js", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatPrefixAuto.js", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatPrefixAuto.js", - "loc": "15:7-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatPrefixAuto.js", - "loc": "89:51-65" - } - ], - "usedExports": [ - "prefixExponent", - "default" - ], - "providedExports": [ - "prefixExponent", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "name": "./node_modules/d3-format/src/formatTypes.js", - "index": 231, - "index2": 228, - "size": 786, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatTypes.js", - "loc": "6:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTypes.js", - "loc": "41:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTypes.js", - "loc": "54:21-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/identity.js", - "name": "./node_modules/d3-format/src/identity.js", - "index": 227, - "index2": 221, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "14:80-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "18:49-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/adder.js", - "name": "./node_modules/d3-geo/src/adder.js", - "index": 242, - "index2": 237, - "size": 906, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../adder.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../adder.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "5:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "5:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "6:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "6:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "6:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "8:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "11:15-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/math.js", - "name": "./node_modules/d3-geo/src/math.js", - "index": 244, - "index2": 239, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "3:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "4:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:39-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:45-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:24-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:59-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:66-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "6:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:13-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "6:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "7:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:39-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:4-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:23-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:58-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:18-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:41-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:41-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:54-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:32-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:32-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:40-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:46-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:52-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:53-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:58-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:69-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:88-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:104-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "12:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "13:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "13:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "14:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:29-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "15:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:38-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:19-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:56-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "17:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "17:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:49-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:41-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:50-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:61-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:44-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:50-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:58-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:60-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:74-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:88-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "20:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:36-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:48-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:47-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:68-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "22:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "22:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "23:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "24:24-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "24:34-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "25:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "25:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:50-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:55-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:76-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:31-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "26:32-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "26:38-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "27:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:22-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:63-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:78-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:92-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:61-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:71-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:78-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:92-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:34-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:47-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:56-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:64-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:69-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "32:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "32:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:27-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:27-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:49-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:74-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:110-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "34:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "35:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "36:45-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "37:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "37:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "38:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "38:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "39:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "39:49-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "40:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "40:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "41:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "41:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "41:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "41:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "42:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "42:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "42:48-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "42:54-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "43:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "43:12-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "44:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "44:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:36-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:50-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:72-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "47:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "49:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:31-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:44-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:70-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:7-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "50:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:45-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:47-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "51:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "51:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "52:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "52:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "54:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "55:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "56:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "56:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "57:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "57:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "58:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:60-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "60:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "60:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "60:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "62:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "62:33-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "63:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "63:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:99-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "64:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "64:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:48-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "66:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "66:68-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "67:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "67:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "71:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "71:75-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:61-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "73:22-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "74:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:65-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "77:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:19-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:90-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:115-122" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "80:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:32-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "82:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:90-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:115-122" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "84:35-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "84:41-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "86:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "86:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "87:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "88:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "89:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:41-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "91:7-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "96:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "96:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "97:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "97:69-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "97:133-140" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "98:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:54-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:54-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "104:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "105:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:81-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:114-121" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:129-136" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:91-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:141-148" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:183-190" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:203-210" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:225-232" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "121:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "121:80-87" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "125:104-108" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:55-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "130:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:55-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "135:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "136:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:33-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:28-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "153:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "160:38-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "160:60-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "162:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "172:35-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "181:77-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "181:90-92" - } - ], - "usedExports": [ - "abs", - "pi", - "tau", - "cos", - "sin", - "atan2", - "asin", - "radians", - "degrees", - "log", - "tan", - "halfPi", - "atan", - "exp", - "sqrt", - "epsilon", - "epsilon2", - "sign", - "pow", - "acos", - "haversin", - "ceil", - "quarterPi" - ], - "providedExports": [ - "epsilon", - "epsilon2", - "pi", - "halfPi", - "quarterPi", - "tau", - "degrees", - "radians", - "abs", - "atan", - "atan2", - "cos", - "ceil", - "exp", - "floor", - "log", - "pow", - "sin", - "sign", - "sqrt", - "tan", - "acos", - "asin", - "haversin" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/noop.js", - "name": "./node_modules/d3-geo/src/noop.js", - "index": 243, - "index2": 238, - "size": 34, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "module": "./node_modules/d3-geo/src/clip/buffer.js", - "moduleName": "./node_modules/d3-geo/src/clip/buffer.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "3:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "3:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "12:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "12:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "13:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "module": "./node_modules/d3-geo/src/clip/buffer.js", - "moduleName": "./node_modules/d3-geo/src/clip/buffer.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "14:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "15:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "15:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "16:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "16:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "17:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "17:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "18:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "19:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "21:67-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "26:46-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "27:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "44:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function noop() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "name": "./node_modules/d3-geo/src/cartesian.js", - "index": 247, - "index2": 242, - "size": 932, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../cartesian.js", - "loc": "1:0-120" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../cartesian.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "2:0-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "3:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "21:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "28:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "29:2-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "48:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "50:17-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "52:21-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "53:4-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "54:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:18-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "56:8-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "57:27-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "58:8-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "73:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "106:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "107:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "112:13-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "113:15-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "122:16-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "123:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "124:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "125:4-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "129:12-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "130:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "131:27-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "136:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "137:4-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "138:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "163:15-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "164:6-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "165:17-26" - } - ], - "usedExports": [ - "cartesian", - "cartesianCross", - "cartesianNormalizeInPlace", - "cartesianDot", - "cartesianScale", - "cartesianAddInPlace", - "spherical" - ], - "providedExports": [ - "spherical", - "cartesian", - "cartesianDot", - "cartesianCross", - "cartesianAddInPlace", - "cartesianScale", - "cartesianNormalizeInPlace" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/constant.js", - "name": "./node_modules/d3-geo/src/constant.js", - "index": 250, - "index2": 245, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "name": "./node_modules/d3-geo/src/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "35:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "36:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "37:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "60:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "64:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "68:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/compose.js", - "name": "./node_modules/d3-geo/src/compose.js", - "index": 252, - "index2": 246, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/rotation.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "name": "./node_modules/d3-geo/src/rotation.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 47, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony side effect evaluation", - "userRequest": "./compose.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../compose.js", - "loc": "4:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./compose.js", - "loc": "11:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../compose.js", - "loc": "148:23-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../compose.js", - "loc": "149:29-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "name": "./node_modules/d3-geo/src/clip/buffer.js", - "index": 255, - "index2": 249, - "size": 473, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "./buffer.js", - "loc": "10:21-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./buffer.js", - "loc": "53:23-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "name": "./node_modules/d3-geo/src/pointEqual.js", - "index": 258, - "index2": 251, - "size": 142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "module": "./node_modules/d3-geo/src/clip/rejoin.js", - "moduleName": "./node_modules/d3-geo/src/clip/rejoin.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointEqual.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointEqual.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "module": "./node_modules/d3-geo/src/clip/rejoin.js", - "moduleName": "./node_modules/d3-geo/src/clip/rejoin.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "28:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "48:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "48:55-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "87:30-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "name": "./node_modules/d3-geo/src/clip/rejoin.js", - "index": 257, - "index2": 252, - "size": 2805, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rejoin.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./rejoin.js", - "loc": "4:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "./rejoin.js", - "loc": "36:10-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./rejoin.js", - "loc": "105:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "name": "./node_modules/d3-geo/src/polygonContains.js", - "index": 256, - "index2": 250, - "size": 2813, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/contains.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "name": "./node_modules/d3-geo/src/contains.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 19, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./polygonContains.js", - "loc": "1:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../polygonContains.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../polygonContains.js", - "loc": "33:26-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./polygonContains.js", - "loc": "82:11-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "name": "./node_modules/d3-geo/src/clip/index.js", - "index": 254, - "index2": 253, - "size": 3596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "4:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "181:9-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/line.js", - "name": "./node_modules/d3-geo/src/clip/line.js", - "index": 262, - "index2": 256, - "size": 1099, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "148:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/identity.js", - "name": "./node_modules/d3-geo/src/identity.js", - "index": 273, - "index2": 268, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 24, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "7:56-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "15:57-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "17:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "35:83-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "44:82-90" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "67:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "101:81-89" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "name": "./node_modules/d3-geo/src/path/area.js", - "index": 269, - "index2": 264, - "size": 954, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "24:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "25:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "name": "./node_modules/d3-geo/src/path/bounds.js", - "index": 271, - "index2": 266, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony side effect evaluation", - "userRequest": "../path/bounds.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounds.js", - "loc": "4:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../path/bounds.js", - "loc": "8:38-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../path/bounds.js", - "loc": "9:12-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./bounds.js", - "loc": "34:36-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./bounds.js", - "loc": "35:11-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "name": "./node_modules/d3-geo/src/path/centroid.js", - "index": 272, - "index2": 267, - "size": 2036, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./centroid.js", - "loc": "39:36-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./centroid.js", - "loc": "40:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "name": "./node_modules/d3-geo/src/path/context.js", - "index": 275, - "index2": 270, - "size": 920, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./context.js", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./context.js", - "loc": "49:71-82" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "name": "./node_modules/d3-geo/src/path/measure.js", - "index": 270, - "index2": 265, - "size": 845, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./measure.js", - "loc": "7:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./measure.js", - "loc": "29:36-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./measure.js", - "loc": "30:11-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/string.js", - "name": "./node_modules/d3-geo/src/path/string.js", - "index": 274, - "index2": 269, - "size": 1316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./string.js", - "loc": "49:53-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "name": "./node_modules/d3-geo/src/projection/fit.js", - "index": 283, - "index2": 275, - "size": 1594, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 24, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "4:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "4:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "9:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "50:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "53:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "56:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "59:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "90:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "94:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "98:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "102:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "129:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "133:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "137:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "141:11-20" - } - ], - "usedExports": [ - "fitExtent", - "fitSize", - "fitWidth", - "fitHeight" - ], - "providedExports": [ - "fitExtent", - "fitSize", - "fitWidth", - "fitHeight" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "name": "./node_modules/d3-geo/src/projection/resample.js", - "index": 282, - "index2": 274, - "size": 3284, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "name": "./node_modules/d3-geo/src/projection/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 25, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./resample.js", - "loc": "10:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./resample.js", - "loc": "125:49-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./resample.js", - "loc": "150:22-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "name": "./node_modules/d3-geo/src/projection/conic.js", - "index": 279, - "index2": 277, - "size": 408, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 21, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "26:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "27:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "32:9-24" - } - ], - "usedExports": [ - "conicProjection" - ], - "providedExports": [ - "conicProjection" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "index": 278, - "index2": 272, - "size": 317, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 19, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./cylindricalEqualArea.js", - "loc": "3:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./cylindricalEqualArea.js", - "loc": "9:31-54" - } - ], - "usedExports": [ - "cylindricalEqualAreaRaw" - ], - "providedExports": [ - "cylindricalEqualAreaRaw" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "name": "./node_modules/d3-geo/src/projection/azimuthal.js", - "index": 286, - "index2": 281, - "size": 505, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/stereographic.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "name": "./node_modules/d3-geo/src/projection/stereographic.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 29, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "5:35-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "5:37-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:25-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:31-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:33-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "10:21-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "10:26-41" - } - ], - "usedExports": [ - "azimuthalInvert", - "azimuthalRaw" - ], - "providedExports": [ - "azimuthalRaw", - "azimuthalInvert" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/count.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/count.js", - "index": 302, - "index2": 297, - "size": 263, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./count.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./count.js", - "loc": "67:9-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/each.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/each.js", - "index": 303, - "index2": 298, - "size": 381, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./each.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./each.js", - "loc": "68:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js", - "index": 305, - "index2": 300, - "size": 282, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./eachBefore.js", - "loc": "3:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./eachBefore.js", - "loc": "70:14-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js", - "index": 304, - "index2": 299, - "size": 353, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./eachAfter.js", - "loc": "4:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./eachAfter.js", - "loc": "69:13-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/sum.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/sum.js", - "index": 306, - "index2": 301, - "size": 264, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sum.js", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./sum.js", - "loc": "71:7-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/sort.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/sort.js", - "index": 307, - "index2": 302, - "size": 151, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sort.js", - "loc": "6:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./sort.js", - "loc": "72:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/path.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/path.js", - "index": 308, - "index2": 303, - "size": 606, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path.js", - "loc": "7:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./path.js", - "loc": "73:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/ancestors.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js", - "index": 309, - "index2": 304, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ancestors.js", - "loc": "8:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./ancestors.js", - "loc": "74:13-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/descendants.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/descendants.js", - "index": 310, - "index2": 305, - "size": 121, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./descendants.js", - "loc": "9:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./descendants.js", - "loc": "75:15-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/leaves.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/leaves.js", - "index": 311, - "index2": 306, - "size": 164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./leaves.js", - "loc": "10:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./leaves.js", - "loc": "76:10-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/links.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/links.js", - "index": 312, - "index2": 307, - "size": 246, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./links.js", - "loc": "11:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./links.js", - "loc": "77:9-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/array.js", - "name": "./node_modules/d3-hierarchy/src/array.js", - "index": 318, - "index2": 311, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "name": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 37, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony side effect evaluation", - "userRequest": "../array.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "4:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "4:36-41" - } - ], - "usedExports": [ - "shuffle", - "slice" - ], - "providedExports": [ - "slice", - "shuffle" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/accessors.js", - "name": "./node_modules/d3-hierarchy/src/accessors.js", - "index": 315, - "index2": 310, - "size": 166, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/stratify.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "name": "./node_modules/d3-hierarchy/src/stratify.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 49, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony side effect evaluation", - "userRequest": "./accessors.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../accessors.js", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../accessors.js", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../accessors.js", - "loc": "31:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../accessors.js", - "loc": "62:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./accessors.js", - "loc": "65:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./accessors.js", - "loc": "69:42-50" - } - ], - "usedExports": [ - "required", - "optional" - ], - "providedExports": [ - "optional", - "required" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/constant.js", - "name": "./node_modules/d3-hierarchy/src/constant.js", - "index": 314, - "index2": 309, - "size": 120, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 52, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "3:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "4:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "12:21-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "13:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "13:19-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "14:21-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "15:22-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "16:20-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "23:34-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "39:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "70:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "78:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "82:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "86:77-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "90:75-83" - } - ], - "usedExports": [ - "constantZero", - "default" - ], - "providedExports": [ - "constantZero", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/round.js", - "name": "./node_modules/d3-hierarchy/src/treemap/round.js", - "index": 320, - "index2": 315, - "size": 166, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 52, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./round.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/round.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony import specifier", - "userRequest": "./treemap/round.js", - "loc": "17:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "./round.js", - "loc": "25:31-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/cross.js", - "name": "./node_modules/d3-polygon/src/cross.js", - "index": 346, - "index2": 341, - "size": 402, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/hull.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "name": "./node_modules/d3-polygon/src/hull.js", - "profile": { - "factory": 765, - "building": 20 - } - } - ], - "profile": { - "factory": 32, - "building": 53 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "module": "./node_modules/d3-polygon/src/hull.js", - "moduleName": "./node_modules/d3-polygon/src/hull.js", - "type": "harmony side effect evaluation", - "userRequest": "./cross.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "module": "./node_modules/d3-polygon/src/hull.js", - "moduleName": "./node_modules/d3-polygon/src/hull.js", - "type": "harmony import specifier", - "userRequest": "./cross.js", - "loc": "16:23-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/defaultSource.js", - "name": "./node_modules/d3-random/src/defaultSource.js", - "index": 352, - "index2": 347, - "size": 54, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/uniform.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "name": "./node_modules/d3-random/src/uniform.js", - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 97, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "module": "./node_modules/d3-random/src/uniform.js", - "moduleName": "./node_modules/d3-random/src/uniform.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "module": "./node_modules/d3-random/src/exponential.js", - "moduleName": "./node_modules/d3-random/src/exponential.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "module": "./node_modules/d3-random/src/irwinHall.js", - "moduleName": "./node_modules/d3-random/src/irwinHall.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "module": "./node_modules/d3-random/src/normal.js", - "moduleName": "./node_modules/d3-random/src/normal.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "module": "./node_modules/d3-random/src/exponential.js", - "moduleName": "./node_modules/d3-random/src/exponential.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "13:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "module": "./node_modules/d3-random/src/irwinHall.js", - "moduleName": "./node_modules/d3-random/src/irwinHall.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "14:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "15:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "15:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "module": "./node_modules/d3-random/src/uniform.js", - "moduleName": "./node_modules/d3-random/src/uniform.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "17:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "module": "./node_modules/d3-random/src/normal.js", - "moduleName": "./node_modules/d3-random/src/normal.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "28:3-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return Math.random();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/init.js", - "name": "./node_modules/d3-scale/src/init.js", - "index": 360, - "index2": 355, - "size": 448, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/band.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "6:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "7:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "29:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "34:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "39:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "42:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "43:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "56:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "56:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "57:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "60:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "66:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "69:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "70:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "76:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "80:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "81:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "86:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "90:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "134:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "142:2-11" - } - ], - "usedExports": [ - "initInterpolator", - "initRange" - ], - "providedExports": [ - "initRange", - "initInterpolator" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/array.js", - "name": "./node_modules/d3-scale/src/array.js", - "index": 362, - "index2": 356, - "size": 90, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/ordinal.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "name": "./node_modules/d3-scale/src/ordinal.js", - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 74, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "4:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "15:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "16:40-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "20:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "26:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "30:44-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "31:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "39:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "93:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "97:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "100:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "101:19-24" - } - ], - "usedExports": [ - "map", - "slice" - ], - "providedExports": [ - "map", - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/number.js", - "name": "./node_modules/d3-scale/src/number.js", - "index": 367, - "index2": 360, - "size": 44, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "name": "./node_modules/d3-scale/src/identity.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 69, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "15:52-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "26:47-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "93:52-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return +x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "name": "./node_modules/d3-scale/src/continuous.js", - "index": 365, - "index2": 361, - "size": 3528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/diverging.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 89, - "building": 20, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "4:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "5:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "7:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "15:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "18:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "20:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "20:34-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "24:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "24:48-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "28:24-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "31:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "37:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "40:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "50:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "54:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "66:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "127:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "136:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "139:11-15" - } - ], - "usedExports": [ - "identity", - "transformer", - "copy", - "default" - ], - "providedExports": [ - "identity", - "copy", - "transformer", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/nice.js", - "name": "./node_modules/d3-scale/src/nice.js", - "index": 370, - "index2": 365, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/time.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "name": "./node_modules/d3-scale/src/time.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 83, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./nice", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./nice", - "loc": "7:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./nice", - "loc": "122:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./nice", - "loc": "126:18-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/duration.js", - "name": "./node_modules/d3-time/src/duration.js", - "index": 381, - "index2": 375, - "size": 164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/utcWeek.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "name": "./node_modules/d3-time/src/utcWeek.js", - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - } - } - ], - "profile": { - "factory": 26, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:67-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:67-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:104-118" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:80-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:98-109" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:27-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:82-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:100-112" - } - ], - "usedExports": [ - "durationWeek", - "durationMinute", - "durationDay", - "durationSecond", - "durationHour" - ], - "providedExports": [ - "durationSecond", - "durationMinute", - "durationHour", - "durationDay", - "durationWeek" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/colors.js", - "name": "./node_modules/d3-scale-chromatic/src/colors.js", - "index": 401, - "index2": 396, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - } - } - ], - "profile": { - "factory": 19, - "building": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "10:20-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:24-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "16:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "name": "./node_modules/d3-scale-chromatic/src/ramp.js", - "index": 412, - "index2": 407, - "size": 146, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - } - } - ], - "profile": { - "factory": 22, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/constant.js", - "name": "./node_modules/d3-shape/src/constant.js", - "index": 453, - "index2": 448, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/arc.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 34, - "building": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "9:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "9:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "10:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "10:19-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "11:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "11:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "12:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "12:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "22:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "23:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "34:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "35:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "38:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "38:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "39:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "41:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "42:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "43:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "45:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "49:93-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "55:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "60:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "64:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "67:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "68:85-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "71:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "72:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "75:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "76:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "80:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "80:85-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "97:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "229:75-83" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "233:75-83" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "237:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "241:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "245:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "249:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "253:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function constant() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/math.js", - "name": "./node_modules/d3-shape/src/math.js", - "index": 452, - "index2": 447, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/arc.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 34, - "building": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:42-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:29-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:28-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "16:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "23:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "23:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:29-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "53:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "53:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "92:49-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "93:47-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "94:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "103:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "106:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "106:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "107:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "107:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "110:28-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "110:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:82-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "125:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "125:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "132:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "134:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "134:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "135:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "137:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "141:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "142:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "143:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "144:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "147:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "148:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "149:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "150:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "151:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "155:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:55-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:81-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "161:19-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "162:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "163:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "168:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "171:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "178:53-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "178:76-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "182:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "182:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "183:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "183:71-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "184:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "184:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "193:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "193:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "196:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "203:53-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "203:76-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "207:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "207:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "208:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "208:71-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "209:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "209:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "224:90-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "225:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "225:24-27" - } - ], - "usedExports": [ - "epsilon", - "sqrt", - "max", - "halfPi", - "abs", - "tau", - "cos", - "sin", - "min", - "asin", - "pi", - "acos", - "atan2" - ], - "providedExports": [ - "abs", - "atan2", - "cos", - "max", - "min", - "sin", - "sqrt", - "epsilon", - "pi", - "halfPi", - "tau", - "acos", - "asin" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/point.js", - "name": "./node_modules/d3-shape/src/point.js", - "index": 455, - "index2": 450, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/line.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "name": "./node_modules/d3-shape/src/line.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 22, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./point.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../point.js", - "loc": "4:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./point.js", - "loc": "5:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "7:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "8:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "8:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "11:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../point.js", - "loc": "18:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../point.js", - "loc": "19:10-16" - } - ], - "usedExports": [ - "x", - "y" - ], - "providedExports": [ - "x", - "y" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/descending.js", - "name": "./node_modules/d3-shape/src/descending.js", - "index": 460, - "index2": 455, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/pie.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 26, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./descending.js", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./descending.js", - "loc": "8:19-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/identity.js", - "name": "./node_modules/d3-shape/src/identity.js", - "index": 459, - "index2": 454, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/pie.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 26, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity.js", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "7:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n return d;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "name": "./node_modules/d3-shape/src/curve/radial.js", - "index": 462, - "index2": 457, - "size": 658, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/lineRadial.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "name": "./node_modules/d3-shape/src/lineRadial.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 24, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/radial.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/radial.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "6:23-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "11:32-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "18:33-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "25:32-43" - } - ], - "usedExports": [ - "default", - "curveRadialLinear" - ], - "providedExports": [ - "curveRadialLinear", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/array.js", - "name": "./node_modules/d3-shape/src/array.js", - "index": 466, - "index2": 461, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "name": "./node_modules/d3-shape/src/stack.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 32, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../array.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "23:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "41:77-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "49:102-107" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/noop.js", - "name": "./node_modules/d3-shape/src/noop.js", - "index": 476, - "index2": 471, - "size": 29, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "name": "./node_modules/d3-shape/src/curve/linearClosed.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 27, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "8:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "9:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "9:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "12:11-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/constant.js", - "name": "./node_modules/d3-voronoi/src/constant.js", - "index": 510, - "index2": 505, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "32:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "36:65-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/point.js", - "name": "./node_modules/d3-voronoi/src/point.js", - "index": 511, - "index2": 506, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "6:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "7:10-16" - } - ], - "usedExports": [ - "x", - "y" - ], - "providedExports": [ - "x", - "y" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "index": 512, - "index2": 512, - "size": 3567, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "5:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "5:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "10:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "11:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "11:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:89-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:100-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "31:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "32:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "35:79-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "37:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "42:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "43:40-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "44:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "53:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "55:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "56:40-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "60:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "65:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "67:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "73:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "75:36-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "76:40-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "77:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "77:75-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "78:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:59-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:98-105" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:96-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:100-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:96-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "89:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "93:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "95:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "98:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "102:19-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "105:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "110:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "111:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "112:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "113:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "118:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "120:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "122:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "125:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "157:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "161:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "163:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "164:51-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "165:13-18" - } - ], - "usedExports": [ - "default", - "epsilon", - "cells", - "edges", - "beaches", - "epsilon2", - "circles" - ], - "providedExports": [ - "epsilon", - "epsilon2", - "beaches", - "cells", - "circles", - "edges", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/constant.js", - "name": "./node_modules/d3-zoom/src/constant.js", - "index": 520, - "index2": 515, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "6:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "374:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "378:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "382:73-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "386:70-78" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/event.js", - "name": "./node_modules/d3-zoom/src/event.js", - "index": 521, - "index2": 516, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "7:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "210:22-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "name": "./node_modules/d3-zoom/src/noevent.js", - "index": 523, - "index2": 518, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "9:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "240:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "259:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "265:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "276:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "289:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "301:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "324:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "353:4-17" - } - ], - "usedExports": [ - "default", - "nopropagation" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sparse.js", - "name": "./node_modules/d3-selection/src/selection/sparse.js", - "index": 90, - "index2": 77, - "size": 71, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/exit.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "name": "./node_modules/d3-selection/src/selection/exit.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony side effect evaluation", - "userRequest": "./sparse", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony side effect evaluation", - "userRequest": "./sparse", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony import specifier", - "userRequest": "./sparse", - "loc": "5:54-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony import specifier", - "userRequest": "./sparse", - "loc": "5:55-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(update) {\n return new Array(update.length);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/constant.js", - "name": "./node_modules/d3-selection/src/constant.js", - "index": 91, - "index2": 79, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/data.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "name": "./node_modules/d3-selection/src/selection/data.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 77, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "../constant", - "loc": "88:43-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/decompose.js", - "name": "./node_modules/d3-interpolate/src/transform/decompose.js", - "index": 69, - "index2": 57, - "size": 672, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/transform/parse.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "name": "./node_modules/d3-interpolate/src/transform/parse.js", - "profile": { - "factory": 54, - "building": 20 - } - } - ], - "profile": { - "factory": 16, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony side effect evaluation", - "userRequest": "./decompose.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "9:31-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "15:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "19:28-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "22:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "24:9-18" - } - ], - "usedExports": [ - "identity", - "default" - ], - "providedExports": [ - "identity", - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "name": "./node_modules/d3-transition/src/transition/interpolate.js", - "index": 55, - "index2": 54, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/style.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "name": "./node_modules/d3-transition/src/transition/style.js", - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - } - } - ], - "profile": { - "factory": 27, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "4:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./interpolate.js", - "loc": "70:64-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "userRequest": "./interpolate.js", - "loc": "73:88-99" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quad.js", - "name": "./node_modules/d3-quadtree/src/quad.js", - "index": 212, - "index2": 205, - "size": 134, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/visitAfter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "name": "./node_modules/d3-quadtree/src/visitAfter.js", - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "5:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "5:33-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "9:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "10:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "10:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "11:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "11:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "12:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "12:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "13:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "18:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "41:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "42:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "43:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "44:12-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatDecimal.js", - "name": "./node_modules/d3-format/src/formatDecimal.js", - "index": 233, - "index2": 225, - "size": 656, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/exponent.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "name": "./node_modules/d3-format/src/exponent.js", - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - } - } - ], - "profile": { - "factory": 29, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "module": "./node_modules/d3-format/src/exponent.js", - "moduleName": "./node_modules/d3-format/src/exponent.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "module": "./node_modules/d3-format/src/formatRounded.js", - "moduleName": "./node_modules/d3-format/src/formatRounded.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "module": "./node_modules/d3-format/src/formatRounded.js", - "moduleName": "./node_modules/d3-format/src/formatRounded.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "4:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "module": "./node_modules/d3-format/src/exponent.js", - "moduleName": "./node_modules/d3-format/src/exponent.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "4:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "6:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "15:44-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "name": "./node_modules/d3-format/src/formatRounded.js", - "index": 232, - "index2": 226, - "size": 461, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/formatTypes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "name": "./node_modules/d3-format/src/formatTypes.js", - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - } - } - ], - "profile": { - "factory": 28, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatRounded.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatRounded.js", - "loc": "13:31-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatRounded.js", - "loc": "14:7-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/constant.js", - "name": "./node_modules/d3-scale/src/constant.js", - "index": 366, - "index2": 359, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/continuous.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "name": "./node_modules/d3-scale/src/continuous.js", - "profile": { - "factory": 89, - "building": 20, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 7, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "16:8-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/RedBlackTree.js", - "name": "./node_modules/d3-voronoi/src/RedBlackTree.js", - "index": 514, - "index2": 507, - "size": 5302, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "5:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "9:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "10:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "26:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "31:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "32:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "75:4-16" - } - ], - "usedExports": [ - "default", - "RedBlackNode" - ], - "providedExports": [ - "RedBlackNode", - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "name": "./node_modules/d3-voronoi/src/Edge.js", - "index": 516, - "index2": 508, - "size": 3634, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "56:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "71:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "76:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "78:52-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "110:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "111:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "112:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "113:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "126:30-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "133:18-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "154:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "155:16-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "156:14-24" - } - ], - "usedExports": [ - "clipEdges", - "createBorderEdge", - "setEdgeEnd", - "createEdge" - ], - "providedExports": [ - "createEdge", - "createBorderEdge", - "setEdgeEnd", - "clipEdges" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "name": "./node_modules/d3-voronoi/src/Cell.js", - "index": 515, - "index2": 509, - "size": 4087, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Cell", - "loc": "2:0-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Cell", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "49:2-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "57:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "76:60-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "116:2-12" - } - ], - "usedExports": [ - "sortCellHalfedges", - "clipCells", - "cellHalfedgeStart", - "createCell" - ], - "providedExports": [ - "createCell", - "cellHalfedgeStart", - "cellHalfedgeEnd", - "sortCellHalfedges", - "clipCells" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "name": "./node_modules/d3-voronoi/src/Circle.js", - "index": 517, - "index2": 510, - "size": 1632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Circle", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Circle", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "23:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "35:13-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "51:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "64:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "78:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "79:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "123:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "127:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "128:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "138:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "139:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "157:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "158:2-14" - } - ], - "usedExports": [ - "firstCircle", - "detachCircle", - "attachCircle" - ], - "providedExports": [ - "firstCircle", - "attachCircle", - "detachCircle" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "name": "./node_modules/d3-voronoi/src/Beach.js", - "index": 513, - "index2": 511, - "size": 4381, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Beach", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Beach", - "loc": "38:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Beach", - "loc": "43:6-17" - } - ], - "usedExports": [ - "addBeach", - "removeBeach" - ], - "providedExports": [ - "removeBeach", - "addBeach" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n" - } - ], - "filteredModules": 0 - }, - { - "id": 1, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "name": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "index": 555, - "index2": 553, - "size": 32724, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/sequenceDiagram", - "loc": "4:0-50" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "26:0-72" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "84:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "93:15-29" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:53-59" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:97-103" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:52-58" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:58-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "458:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "459:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "460:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "465:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "466:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "467:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "468:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "496:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "501:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "505:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "509:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "515:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "522:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "528:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "535:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "541:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "548:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "554:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "560:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "567:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "573:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "579:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:9-15" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:40-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:72-78" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:98-104" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:125-131" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:157-163" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "661:28-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "666:28-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "700:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "702:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "704:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "781:24-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "784:31-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:7-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:38-44" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:70-76" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:96-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:123-129" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:155-161" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "852:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "853:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "854:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "855:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "865:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "866:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "876:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "877:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "878:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "879:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "884:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "899:11-17" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('OPEN_DIRECTIVE'); return 56; \nbreak;\ncase 1: this.begin('TYPE_DIRECTIVE'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('ARG_DIRECTIVE'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"ARG_DIRECTIVE\":{\"rules\":[3,4,8],\"inclusive\":false},\"TYPE_DIRECTIVE\":{\"rules\":[2,3,8],\"inclusive\":false},\"OPEN_DIRECTIVE\":{\"rules\":[1,8],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "index": 572, - "index2": 783, - "size": 1723, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 13, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/graphlib.js", - "module": "./node_modules/dagre/lib/graphlib.js", - "moduleName": "./node_modules/dagre/lib/graphlib.js", - "type": "cjs require", - "userRequest": "graphlib", - "loc": "7:15-34" - }, - { - "moduleId": 281, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/graphlib.js", - "module": "./node_modules/dagre-d3/lib/graphlib.js", - "moduleName": "./node_modules/dagre-d3/lib/graphlib.js", - "type": "cjs require", - "userRequest": "graphlib", - "loc": "7:15-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "2:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "5:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "12:41-49" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "40:18-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "66:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "76:18-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "92:35-43" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "130:28-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "132:27-35" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "223:10-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "237:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "253:29-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "262:35-43" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "301:29-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "312:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "314:41-49" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "323:40-48" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "324:40-48" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "335:14-22" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n" - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "index": 793, - "index2": 830, - "size": 1255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "module": "./node_modules/dagre/lib/util.js", - "moduleName": "./node_modules/dagre/lib/util.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "5:8-27" - }, - { - "moduleId": 62, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/util.js", - "module": "./node_modules/dagre/lib/rank/util.js", - "moduleName": "./node_modules/dagre/lib/rank/util.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 315, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "module": "./node_modules/dagre/lib/acyclic.js", - "moduleName": "./node_modules/dagre/lib/acyclic.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 318, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "module": "./node_modules/dagre/lib/normalize.js", - "moduleName": "./node_modules/dagre/lib/normalize.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 321, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/parent-dummy-chains.js", - "module": "./node_modules/dagre/lib/parent-dummy-chains.js", - "moduleName": "./node_modules/dagre/lib/parent-dummy-chains.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 322, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "module": "./node_modules/dagre/lib/nesting-graph.js", - "moduleName": "./node_modules/dagre/lib/nesting-graph.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 323, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "module": "./node_modules/dagre/lib/add-border-segments.js", - "moduleName": "./node_modules/dagre/lib/add-border-segments.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 324, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/coordinate-system.js", - "module": "./node_modules/dagre/lib/coordinate-system.js", - "moduleName": "./node_modules/dagre/lib/coordinate-system.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 326, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/init-order.js", - "module": "./node_modules/dagre/lib/order/init-order.js", - "moduleName": "./node_modules/dagre/lib/order/init-order.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 327, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/cross-count.js", - "module": "./node_modules/dagre/lib/order/cross-count.js", - "moduleName": "./node_modules/dagre/lib/order/cross-count.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 329, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/barycenter.js", - "module": "./node_modules/dagre/lib/order/barycenter.js", - "moduleName": "./node_modules/dagre/lib/order/barycenter.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 330, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/resolve-conflicts.js", - "module": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "moduleName": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 331, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "module": "./node_modules/dagre/lib/order/sort.js", - "moduleName": "./node_modules/dagre/lib/order/sort.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 332, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "module": "./node_modules/dagre/lib/order/build-layer-graph.js", - "moduleName": "./node_modules/dagre/lib/order/build-layer-graph.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 333, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/add-subgraph-constraints.js", - "module": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "moduleName": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 4, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArray.js", - "name": "./node_modules/lodash/isArray.js", - "index": 635, - "index2": 623, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isArray", - "loc": "13:15-40" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "1:14-34" - }, - { - "moduleId": 84, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "module": "./node_modules/lodash/_isKey.js", - "moduleName": "./node_modules/lodash/_isKey.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "1:14-34" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "16:14-34" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 103, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "module": "./node_modules/lodash/_baseGetAllKeys.js", - "moduleName": "./node_modules/lodash/_baseGetAllKeys.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "2:14-34" - }, - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "5:14-34" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "6:14-34" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "2:14-34" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "6:14-34" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "7:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n" - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "index": 787, - "index2": 885, - "size": 1374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "1:0-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "6:0-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "23:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "56:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "84:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "109:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "134:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "159:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "184:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "212:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "224:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "267:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "282:14-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "349:15-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "357:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n" - }, - { - "id": 6, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/module.js", - "name": "(webpack)/buildin/module.js", - "index": 543, - "index2": 538, - "size": 497, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "issuerId": 18, - "issuerName": "./node_modules/moment-mini/moment.min.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - } - ], - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "module": "./node_modules/moment-mini/moment.min.js", - "moduleName": "./node_modules/moment-mini/moment.min.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 73, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "module": "./node_modules/lodash/_nodeUtil.js", - "moduleName": "./node_modules/lodash/_nodeUtil.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 97, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "module": "./node_modules/lodash/_cloneBuffer.js", - "moduleName": "./node_modules/lodash/_cloneBuffer.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n" - }, - { - "id": 7, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "name": "./node_modules/dagre/lib/util.js", - "index": 842, - "index2": 834, - "size": 5785, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "29:10-31" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "30:12-33" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "7:21-38" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "9:23-40" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "15:11-28" - }, - { - "moduleId": 318, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "module": "./node_modules/dagre/lib/normalize.js", - "moduleName": "./node_modules/dagre/lib/normalize.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "4:11-28" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "9:15-33" - }, - { - "moduleId": 322, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "module": "./node_modules/dagre/lib/nesting-graph.js", - "moduleName": "./node_modules/dagre/lib/nesting-graph.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - }, - { - "moduleId": 323, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "module": "./node_modules/dagre/lib/add-border-segments.js", - "moduleName": "./node_modules/dagre/lib/add-border-segments.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "10:11-29" - }, - { - "moduleId": 331, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "module": "./node_modules/dagre/lib/order/sort.js", - "moduleName": "./node_modules/dagre/lib/order/sort.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "2:11-29" - }, - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "4:11-29" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "5:11-29" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n" - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "index": 575, - "index2": 764, - "size": 868, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "issuerId": 271, - "issuerName": "./node_modules/graphlib/lib/json.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 68, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/graph.js", - "module": "./node_modules/graphlib/lib/graph.js", - "moduleName": "./node_modules/graphlib/lib/graph.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 131, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 132, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/data/priority-queue.js", - "module": "./node_modules/graphlib/lib/data/priority-queue.js", - "moduleName": "./node_modules/graphlib/lib/data/priority-queue.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 133, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/tarjan.js", - "module": "./node_modules/graphlib/lib/alg/tarjan.js", - "moduleName": "./node_modules/graphlib/lib/alg/tarjan.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 134, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/topsort.js", - "module": "./node_modules/graphlib/lib/alg/topsort.js", - "moduleName": "./node_modules/graphlib/lib/alg/topsort.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 135, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dfs.js", - "module": "./node_modules/graphlib/lib/alg/dfs.js", - "moduleName": "./node_modules/graphlib/lib/alg/dfs.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 271, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "module": "./node_modules/graphlib/lib/json.js", - "moduleName": "./node_modules/graphlib/lib/json.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 273, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/components.js", - "module": "./node_modules/graphlib/lib/alg/components.js", - "moduleName": "./node_modules/graphlib/lib/alg/components.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 274, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "2:8-28" - }, - { - "moduleId": 275, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "module": "./node_modules/graphlib/lib/alg/find-cycles.js", - "moduleName": "./node_modules/graphlib/lib/alg/find-cycles.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 276, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/floyd-warshall.js", - "module": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "moduleName": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 9, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isObject.js", - "name": "./node_modules/lodash/isObject.js", - "index": 603, - "index2": 588, - "size": 733, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "issuerId": 32, - "issuerName": "./node_modules/lodash/isFunction.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "name": "./node_modules/lodash/isFunction.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 64, - "building": 40 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "module": "./node_modules/lodash/isFunction.js", - "moduleName": "./node_modules/lodash/isFunction.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "2:15-36" - }, - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "4:15-36" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "19:15-36" - }, - { - "moduleId": 108, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseCreate.js", - "module": "./node_modules/lodash/_baseCreate.js", - "moduleName": "./node_modules/lodash/_baseCreate.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 116, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isStrictComparable.js", - "module": "./node_modules/lodash/_isStrictComparable.js", - "moduleName": "./node_modules/lodash/_isStrictComparable.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "3:15-36" - }, - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "9:15-36" - }, - { - "moduleId": 288, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "module": "./node_modules/lodash/toNumber.js", - "moduleName": "./node_modules/lodash/toNumber.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "5:15-36" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "11:15-36" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "4:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n" - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "index": 877, - "index2": 869, - "size": 1124, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "issuerId": 44, - "issuerName": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 512, - "building": 394 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "28:8-29" - }, - { - "moduleId": 44, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 342, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-text-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 343, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-svg-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "1:11-28" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 347, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "module": "./node_modules/dagre-d3/lib/position-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/position-nodes.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 349, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "module": "./node_modules/dagre-d3/lib/position-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/position-clusters.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 351, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/arrows.js", - "module": "./node_modules/dagre-d3/lib/arrows.js", - "moduleName": "./node_modules/dagre-d3/lib/arrows.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "1:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n" - }, - { - "id": 11, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/process/browser.js", - "name": "./node_modules/process/browser.js", - "index": 548, - "index2": 545, - "size": 5418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "module": "./node_modules/path-browserify/index.js", - "moduleName": "./node_modules/path-browserify/index.js", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-34" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n" - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "index": 598, - "index2": 583, - "size": 300, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "issuerId": 301, - "issuerName": "./node_modules/lodash/now.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 33, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Symbol.js", - "module": "./node_modules/lodash/_Symbol.js", - "moduleName": "./node_modules/lodash/_Symbol.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 69, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "module": "./node_modules/lodash/_Map.js", - "moduleName": "./node_modules/lodash/_Map.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 97, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "module": "./node_modules/lodash/_cloneBuffer.js", - "moduleName": "./node_modules/lodash/_cloneBuffer.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 104, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "module": "./node_modules/lodash/_Set.js", - "moduleName": "./node_modules/lodash/_Set.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 105, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Uint8Array.js", - "module": "./node_modules/lodash/_Uint8Array.js", - "moduleName": "./node_modules/lodash/_Uint8Array.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 185, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_coreJsData.js", - "module": "./node_modules/lodash/_coreJsData.js", - "moduleName": "./node_modules/lodash/_coreJsData.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 211, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "module": "./node_modules/lodash/_DataView.js", - "moduleName": "./node_modules/lodash/_DataView.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 212, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "module": "./node_modules/lodash/_Promise.js", - "moduleName": "./node_modules/lodash/_Promise.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 213, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "module": "./node_modules/lodash/_WeakMap.js", - "moduleName": "./node_modules/lodash/_WeakMap.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 301, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "module": "./node_modules/lodash/now.js", - "moduleName": "./node_modules/lodash/now.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n" - }, - { - "id": 13, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/graphlib.js", - "name": "./node_modules/dagre/lib/graphlib.js", - "index": 791, - "index2": 785, - "size": 253, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "module": "./node_modules/dagre/lib/util.js", - "moduleName": "./node_modules/dagre/lib/util.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "6:12-33" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/graphlib", - "loc": "24:12-37" - }, - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "4:12-34" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "16:12-33" - }, - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "2:12-33" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "7:15-37" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "8:16-38" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "9:12-34" - }, - { - "moduleId": 332, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "module": "./node_modules/dagre/lib/order/build-layer-graph.js", - "moduleName": "./node_modules/dagre/lib/order/build-layer-graph.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "2:12-34" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "4:12-34" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "3:12-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n" - }, - { - "id": 14, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/node-libs-browser/mock/empty.js", - "name": "./node_modules/node-libs-browser/mock/empty.js", - "index": 549, - "index2": 546, - "size": 0, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "835:17-30" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "769:17-30" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "993:17-30" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "722:17-30" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "640:17-30" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "776:17-30" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "690:17-30" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "616:17-30" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "628:17-30" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "673:17-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "" - }, - { - "id": 15, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "name": "./node_modules/path-browserify/index.js", - "index": 550, - "index2": 547, - "size": 8742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "835:44-59" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "769:44-59" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "993:44-59" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "722:44-59" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "640:44-59" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "776:44-59" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "690:44-59" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "616:44-59" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "628:44-59" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "673:44-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n" - }, - { - "id": 16, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isObjectLike.js", - "name": "./node_modules/lodash/isObjectLike.js", - "index": 634, - "index2": 620, - "size": 614, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 37, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "module": "./node_modules/lodash/isSymbol.js", - "moduleName": "./node_modules/lodash/isSymbol.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 41, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "module": "./node_modules/lodash/isArguments.js", - "moduleName": "./node_modules/lodash/isArguments.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 112, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "module": "./node_modules/lodash/_baseIsEqual.js", - "moduleName": "./node_modules/lodash/_baseIsEqual.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 129, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLikeObject.js", - "module": "./node_modules/lodash/isArrayLikeObject.js", - "moduleName": "./node_modules/lodash/isArrayLikeObject.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - }, - { - "moduleId": 201, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "module": "./node_modules/lodash/_baseIsArguments.js", - "moduleName": "./node_modules/lodash/_baseIsArguments.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - }, - { - "moduleId": 220, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "module": "./node_modules/lodash/_baseIsMap.js", - "moduleName": "./node_modules/lodash/_baseIsMap.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 222, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "module": "./node_modules/lodash/_baseIsSet.js", - "moduleName": "./node_modules/lodash/_baseIsSet.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n" - }, - { - "id": 17, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "name": "./src/diagrams/state/parser/stateDiagram.jison", - "index": 561, - "index2": 559, - "size": 29755, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "7:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "11:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "25:15-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "33:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "34:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "36:0-63" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "108:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "113:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "217:15-20" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "index": 542, - "index2": 541, - "size": 53324, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "issuerId": null, - "issuerName": "./src/logger.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1976, - "building": 181 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "1:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "9:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "63:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "115:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "117:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "177:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "223:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "233:62-68" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "301:25-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "451:38-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTC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S\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n" - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "index": 697, - "index2": 725, - "size": 895, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "4:19-45" - }, - { - "moduleId": 285, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "module": "./node_modules/lodash/_createFind.js", - "moduleName": "./node_modules/lodash/_createFind.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "1:19-45" - }, - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n" - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "index": 790, - "index2": 858, - "size": 1329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 136, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/dagre.js", - "module": "./node_modules/dagre-d3/lib/dagre.js", - "moduleName": "./node_modules/dagre-d3/lib/dagre.js", - "type": "cjs require", - "userRequest": "dagre", - "loc": "7:12-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "1:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "5:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "91:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "98:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "201:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "243:2-7" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n" - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "index": 554, - "index2": 552, - "size": 57072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "23:0-58" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "82:15-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "88:15-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "275:17-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "293:15-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "295:15-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "316:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,3],$V2=[1,5],$V3=[1,8,9,10,11,26,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,22],$Va=[1,46],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,40],$Vh=[1,35],$Vi=[1,37],$Vj=[1,32],$Vk=[1,36],$Vl=[1,39],$Vm=[1,43],$Vn=[1,44],$Vo=[1,45],$Vp=[1,34],$Vq=[1,38],$Vr=[1,41],$Vs=[1,42],$Vt=[1,33],$Vu=[1,51],$Vv=[1,8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vw=[1,55],$Vx=[1,54],$Vy=[1,56],$Vz=[8,9,11,57,58],$VA=[8,9,10,11,57,58],$VB=[8,9,10,11,35,57,58],$VC=[8,9,10,11,28,34,35,37,39,41,43,45,47,49,50,52,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VD=[8,9,11,34,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VE=[34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VF=[1,101],$VG=[1,122],$VH=[1,123],$VI=[1,124],$VJ=[1,125],$VK=[1,105],$VL=[1,96],$VM=[1,97],$VN=[1,93],$VO=[1,117],$VP=[1,118],$VQ=[1,119],$VR=[1,120],$VS=[1,121],$VT=[1,126],$VU=[1,127],$VV=[1,99],$VW=[1,107],$VX=[1,110],$VY=[1,108],$VZ=[1,109],$V_=[1,102],$V$=[1,115],$V01=[1,114],$V11=[1,98],$V21=[1,95],$V31=[1,104],$V41=[1,106],$V51=[1,111],$V61=[1,112],$V71=[1,113],$V81=[1,116],$V91=[8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Va1=[1,130],$Vb1=[1,134],$Vc1=[1,136],$Vd1=[1,137],$Ve1=[8,9,10,11,12,13,26,28,29,30,34,38,40,42,44,46,48,49,51,53,57,58,59,63,64,65,66,67,68,69,72,78,79,82,83,84,86,87,88,89,93,94,95,96,97,98],$Vf1=[8,9,10,11,13,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vg1=[10,79],$Vh1=[1,204],$Vi1=[1,208],$Vj1=[1,205],$Vk1=[1,202],$Vl1=[1,199],$Vm1=[1,200],$Vn1=[1,201],$Vo1=[1,203],$Vp1=[1,206],$Vq1=[1,207],$Vr1=[1,209],$Vs1=[8,9,11],$Vt1=[1,225],$Vu1=[8,9,11,79],$Vv1=[8,9,10,11,63,75,78,79,82,83,84,85,86,87,88];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"line\":6,\"statement\":7,\"SEMI\":8,\"NEWLINE\":9,\"SPACE\":10,\"EOF\":11,\"GRAPH\":12,\"DIR\":13,\"FirstStmtSeperator\":14,\"ending\":15,\"endToken\":16,\"spaceList\":17,\"spaceListNewline\":18,\"verticeStatement\":19,\"separator\":20,\"styleStatement\":21,\"linkStyleStatement\":22,\"classDefStatement\":23,\"classStatement\":24,\"clickStatement\":25,\"subgraph\":26,\"text\":27,\"SQS\":28,\"SQE\":29,\"end\":30,\"link\":31,\"node\":32,\"vertex\":33,\"AMP\":34,\"STYLE_SEPARATOR\":35,\"idString\":36,\"PS\":37,\"PE\":38,\"(-\":39,\"-)\":40,\"STADIUMSTART\":41,\"STADIUMEND\":42,\"SUBROUTINESTART\":43,\"SUBROUTINEEND\":44,\"CYLINDERSTART\":45,\"CYLINDEREND\":46,\"DIAMOND_START\":47,\"DIAMOND_STOP\":48,\"TAGEND\":49,\"TRAPSTART\":50,\"TRAPEND\":51,\"INVTRAPSTART\":52,\"INVTRAPEND\":53,\"linkStatement\":54,\"arrowText\":55,\"TESTSTR\":56,\"START_LINK\":57,\"LINK\":58,\"PIPE\":59,\"textToken\":60,\"STR\":61,\"keywords\":62,\"STYLE\":63,\"LINKSTYLE\":64,\"CLASSDEF\":65,\"CLASS\":66,\"CLICK\":67,\"DOWN\":68,\"UP\":69,\"textNoTags\":70,\"textNoTagsToken\":71,\"DEFAULT\":72,\"stylesOpt\":73,\"alphaNum\":74,\"HEX\":75,\"numList\":76,\"INTERPOLATE\":77,\"NUM\":78,\"COMMA\":79,\"style\":80,\"styleComponent\":81,\"ALPHA\":82,\"COLON\":83,\"MINUS\":84,\"UNIT\":85,\"BRKT\":86,\"DOT\":87,\"PCT\":88,\"TAGSTART\":89,\"alphaNumToken\":90,\"idStringToken\":91,\"alphaNumStatement\":92,\"PUNCTUATION\":93,\"UNICODE_TEXT\":94,\"PLUS\":95,\"EQUALS\":96,\"MULT\":97,\"UNDERSCORE\":98,\"graphCodeTokens\":99,\"ARROW_CROSS\":100,\"ARROW_POINT\":101,\"ARROW_CIRCLE\":102,\"ARROW_OPEN\":103,\"QUOTE\":104,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",26:\"subgraph\",28:\"SQS\",29:\"SQE\",30:\"end\",34:\"AMP\",35:\"STYLE_SEPARATOR\",37:\"PS\",38:\"PE\",39:\"(-\",40:\"-)\",41:\"STADIUMSTART\",42:\"STADIUMEND\",43:\"SUBROUTINESTART\",44:\"SUBROUTINEEND\",45:\"CYLINDERSTART\",46:\"CYLINDEREND\",47:\"DIAMOND_START\",48:\"DIAMOND_STOP\",49:\"TAGEND\",50:\"TRAPSTART\",51:\"TRAPEND\",52:\"INVTRAPSTART\",53:\"INVTRAPEND\",56:\"TESTSTR\",57:\"START_LINK\",58:\"LINK\",59:\"PIPE\",61:\"STR\",63:\"STYLE\",64:\"LINKSTYLE\",65:\"CLASSDEF\",66:\"CLASS\",67:\"CLICK\",68:\"DOWN\",69:\"UP\",72:\"DEFAULT\",75:\"HEX\",77:\"INTERPOLATE\",78:\"NUM\",79:\"COMMA\",82:\"ALPHA\",83:\"COLON\",84:\"MINUS\",85:\"UNIT\",86:\"BRKT\",87:\"DOT\",88:\"PCT\",89:\"TAGSTART\",93:\"PUNCTUATION\",94:\"UNICODE_TEXT\",95:\"PLUS\",96:\"EQUALS\",97:\"MULT\",98:\"UNDERSCORE\",100:\"ARROW_CROSS\",101:\"ARROW_POINT\",102:\"ARROW_CIRCLE\",103:\"ARROW_OPEN\",104:\"QUOTE\"},\nproductions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,3],[15,2],[15,1],[16,1],[16,1],[16,1],[14,1],[14,1],[14,2],[18,2],[18,2],[18,1],[18,1],[17,2],[17,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[20,1],[20,1],[20,1],[19,3],[19,4],[19,2],[19,1],[32,1],[32,5],[32,3],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,1],[31,2],[31,3],[31,3],[31,1],[31,3],[54,1],[55,3],[27,1],[27,2],[27,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[70,1],[70,2],[23,5],[23,5],[24,5],[25,5],[25,7],[25,5],[25,7],[21,5],[21,5],[22,5],[22,5],[22,9],[22,9],[22,7],[22,7],[76,1],[76,3],[73,1],[73,3],[80,1],[80,2],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[60,1],[60,1],[60,1],[60,1],[60,1],[60,1],[71,1],[71,1],[71,1],[71,1],[36,1],[36,2],[74,1],[74,2],[92,1],[92,1],[92,1],[92,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n this.$ = [];\nbreak;\ncase 3:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 4: case 67: case 69: case 81: case 127: case 129: case 130:\nthis.$=$$[$0];\nbreak;\ncase 11:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 26:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 27: case 28: case 29: case 30: case 31:\nthis.$=[];\nbreak;\ncase 32:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 33:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 34:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 38:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 39:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 40:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 41:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 42:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 43:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 44:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 45:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 46:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 47:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 48:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 50:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 53:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 59:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 60:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 61: case 62:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 63:\nthis.$ = $$[$0];\nbreak;\ncase 64:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 65:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 66:\nthis.$ = $$[$0-1];\nbreak;\ncase 68: case 82: case 128:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 83: case 84:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 85:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 86:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 87:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 89:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 90:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 91: case 93:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 92:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 98: case 100:\nthis.$ = [$$[$0]]\nbreak;\ncase 99: case 101:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 103:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 125:\nthis.$=$$[$0]\nbreak;\ncase 126:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 131:\nthis.$='v';\nbreak;\ncase 132:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,9:$V0,10:$V1,12:$V2},{1:[3]},o($V3,$V4,{5:6}),{4:7,9:$V0,10:$V1,12:$V2},{4:8,9:$V0,10:$V1,12:$V2},{13:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($V3,[2,9]),o($V3,[2,10]),{8:[1,48],9:[1,49],10:$Vu,14:47,17:50},o($Vv,[2,3]),o($Vv,[2,4]),o($Vv,[2,5]),o($Vv,[2,6]),o($Vv,[2,7]),o($Vv,[2,8]),{8:$Vw,9:$Vx,11:$Vy,20:52,31:53,54:57,57:[1,58],58:[1,59]},{8:$Vw,9:$Vx,11:$Vy,20:60},{8:$Vw,9:$Vx,11:$Vy,20:61},{8:$Vw,9:$Vx,11:$Vy,20:62},{8:$Vw,9:$Vx,11:$Vy,20:63},{8:$Vw,9:$Vx,11:$Vy,20:64},{8:$Vw,9:$Vx,10:[1,65],11:$Vy,20:66},o($Vz,[2,41],{17:67,10:$Vu}),{10:[1,68]},{10:[1,69]},{10:[1,70]},{10:[1,71]},{10:[1,72]},o($VA,[2,42],{35:[1,73]}),o($VB,[2,59],{91:84,28:[1,74],34:$Va,37:[1,75],39:[1,76],41:[1,77],43:[1,78],45:[1,79],47:[1,80],49:[1,81],50:[1,82],52:[1,83],68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),o($VC,[2,125]),o($VC,[2,146]),o($VC,[2,147]),o($VC,[2,148]),o($VC,[2,149]),o($VC,[2,150]),o($VC,[2,151]),o($VC,[2,152]),o($VC,[2,153]),o($VC,[2,154]),o($VC,[2,155]),o($VC,[2,156]),o($VC,[2,157]),o($VC,[2,158]),o($VC,[2,159]),o($VC,[2,160]),o($V3,[2,11]),o($V3,[2,17]),o($V3,[2,18]),{9:[1,85]},o($VD,[2,25],{17:86,10:$Vu}),o($Vv,[2,26]),{32:87,33:29,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($Vv,[2,35]),o($Vv,[2,36]),o($Vv,[2,37]),o($VE,[2,63],{55:88,56:[1,89],59:[1,90]}),{10:$VF,12:$VG,13:$VH,26:$VI,27:91,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o([34,56,59,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,65]),o($Vv,[2,27]),o($Vv,[2,28]),o($Vv,[2,29]),o($Vv,[2,30]),o($Vv,[2,31]),{10:$VF,12:$VG,13:$VH,26:$VI,27:128,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:129}),o($Vz,[2,40],{34:$Va1}),{13:$Vb1,34:$VK,68:$Vc1,74:131,75:[1,132],78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{72:[1,138],76:139,78:[1,140]},{13:$Vb1,34:$VK,68:$Vc1,72:[1,141],74:142,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:143,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:144,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{34:$Va,36:145,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$VF,12:$VG,13:$VH,26:$VI,27:146,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:148,30:$VJ,34:$VK,37:[1,147],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:149,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:150,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:151,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:152,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:153,30:$VJ,34:$VK,47:[1,154],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:155,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:156,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:157,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VC,[2,126]),o($V3,[2,19]),o($VD,[2,24]),o($Vz,[2,38],{17:158,10:$Vu}),o($VE,[2,60],{10:[1,159]}),{10:[1,160]},{10:$VF,12:$VG,13:$VH,26:$VI,27:161,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,58:[1,162],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Ve1,[2,67]),o($Ve1,[2,69]),o($Ve1,[2,115]),o($Ve1,[2,116]),o($Ve1,[2,117]),o($Ve1,[2,118]),o($Ve1,[2,119]),o($Ve1,[2,120]),o($Ve1,[2,121]),o($Ve1,[2,122]),o($Ve1,[2,123]),o($Ve1,[2,124]),o($Ve1,[2,133]),o($Ve1,[2,134]),o($Ve1,[2,135]),o($Ve1,[2,136]),o($Ve1,[2,137]),o($Ve1,[2,138]),o($Ve1,[2,139]),o($Ve1,[2,140]),o($Ve1,[2,141]),o($Ve1,[2,142]),o($Ve1,[2,143]),o($Ve1,[2,144]),o($Ve1,[2,145]),o($Ve1,[2,70]),o($Ve1,[2,71]),o($Ve1,[2,72]),o($Ve1,[2,73]),o($Ve1,[2,74]),o($Ve1,[2,75]),o($Ve1,[2,76]),o($Ve1,[2,77]),o($Ve1,[2,78]),o($Ve1,[2,79]),o($Ve1,[2,80]),{8:$Vw,9:$Vx,10:$VF,11:$Vy,12:$VG,13:$VH,20:165,26:$VI,28:[1,164],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,166],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vu,17:167},{10:[1,168],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,170]},o($Vf1,[2,127]),o($Vf1,[2,129]),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),{10:[1,171]},{10:[1,172],79:[1,173]},o($Vg1,[2,98]),{10:[1,174]},{10:[1,175],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,176],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,177],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VA,[2,44],{91:84,34:$Va,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,178],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:179,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,180],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,40:[1,181],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,42:[1,182],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,44:[1,183],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,46:[1,184],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,185],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:186,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,187],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,188],53:[1,189],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,191],53:[1,190],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Vz,[2,39],{34:$Va1}),o($VE,[2,62]),o($VE,[2,61]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,59:[1,192],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VE,[2,64]),o($Ve1,[2,68]),{10:$VF,12:$VG,13:$VH,26:$VI,27:193,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:194}),o($Vv,[2,34]),{33:195,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:196,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vf1,[2,128]),{10:$Vh1,63:$Vi1,73:210,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:211,75:$Vj1,77:[1,212],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:213,75:$Vj1,77:[1,214],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{78:[1,215]},{10:$Vh1,63:$Vi1,73:216,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:217,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{13:$Vb1,34:$VK,68:$Vc1,74:218,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,61:[1,220],68:$Vc1,74:219,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,45]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,221],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,51]),o($VB,[2,47]),o($VB,[2,48]),o($VB,[2,49]),o($VB,[2,50]),o($VB,[2,52]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,222],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,54]),o($VB,[2,55]),o($VB,[2,57]),o($VB,[2,56]),o($VB,[2,58]),o([10,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,66]),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,223],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,224],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($VA,[2,43]),o($Vs1,[2,90],{79:$Vt1}),o($Vu1,[2,100],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vv1,[2,102]),o($Vv1,[2,104]),o($Vv1,[2,105]),o($Vv1,[2,106]),o($Vv1,[2,107]),o($Vv1,[2,108]),o($Vv1,[2,109]),o($Vv1,[2,110]),o($Vv1,[2,111]),o($Vv1,[2,112]),o($Vv1,[2,113]),o($Vv1,[2,114]),o($Vs1,[2,91],{79:$Vt1}),o($Vs1,[2,92],{79:$Vt1}),{10:[1,227]},o($Vs1,[2,93],{79:$Vt1}),{10:[1,228]},o($Vg1,[2,99]),o($Vs1,[2,83],{79:$Vt1}),o($Vs1,[2,84],{79:$Vt1}),o($Vs1,[2,85],{90:135,92:169,13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,86],{90:135,92:169,10:[1,229],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,88],{10:[1,230]}),{38:[1,231]},{48:[1,232]},{8:$Vw,9:$Vx,11:$Vy,20:233},o($Vv,[2,33]),{10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,80:234,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv1,[2,103]),{13:$Vb1,34:$VK,68:$Vc1,74:235,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:236,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{61:[1,237]},{61:[1,238]},o($VB,[2,46]),o($VB,[2,53]),o($V91,$V4,{5:239}),o($Vu1,[2,101],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vs1,[2,96],{90:135,92:169,10:[1,240],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,97],{90:135,92:169,10:[1,241],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,87]),o($Vs1,[2,89]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,242],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:243,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:244,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv,[2,32]),o($Vs1,[2,94],{79:$Vt1}),o($Vs1,[2,95],{79:$Vt1})],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:this.begin(\"string\");\nbreak;\ncase 2:this.popState();\nbreak;\ncase 3:return \"STR\";\nbreak;\ncase 4:return 63;\nbreak;\ncase 5:return 72;\nbreak;\ncase 6:return 64;\nbreak;\ncase 7:return 77;\nbreak;\ncase 8:return 65;\nbreak;\ncase 9:return 66;\nbreak;\ncase 10:return 67;\nbreak;\ncase 11:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 12:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 13:return 26;\nbreak;\ncase 14:return 30;\nbreak;\ncase 15: this.popState(); return 13; \nbreak;\ncase 16: this.popState(); return 13; \nbreak;\ncase 17: this.popState(); return 13; \nbreak;\ncase 18: this.popState(); return 13; \nbreak;\ncase 19: this.popState(); return 13; \nbreak;\ncase 20: this.popState(); return 13; \nbreak;\ncase 21: this.popState(); return 13; \nbreak;\ncase 22: this.popState(); return 13; \nbreak;\ncase 23: this.popState(); return 13; \nbreak;\ncase 24: this.popState(); return 13; \nbreak;\ncase 25: return 78;\nbreak;\ncase 26:return 86;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 83;\nbreak;\ncase 29:return 34;\nbreak;\ncase 30:return 8;\nbreak;\ncase 31:return 79;\nbreak;\ncase 32:return 97;\nbreak;\ncase 33:return 58;\nbreak;\ncase 34:return 58;\nbreak;\ncase 35:return 58;\nbreak;\ncase 36:return 58;\nbreak;\ncase 37:return 58;\nbreak;\ncase 38:return 58;\nbreak;\ncase 39:return 58;\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 58;\nbreak;\ncase 42:return 58;\nbreak;\ncase 43:return 58;\nbreak;\ncase 44:return 58;\nbreak;\ncase 45:return 58;\nbreak;\ncase 46:return 58;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 58;\nbreak;\ncase 49:return 58;\nbreak;\ncase 50:return 58;\nbreak;\ncase 51:return 58;\nbreak;\ncase 52:return 58;\nbreak;\ncase 53:return 58;\nbreak;\ncase 54:return 58;\nbreak;\ncase 55:return 58;\nbreak;\ncase 56:return 58;\nbreak;\ncase 57:return 58;\nbreak;\ncase 58:return 58;\nbreak;\ncase 59:return 58;\nbreak;\ncase 60:return 58;\nbreak;\ncase 61:return 57;\nbreak;\ncase 62:return 57;\nbreak;\ncase 63:return 57;\nbreak;\ncase 64:return 57;\nbreak;\ncase 65:return 57;\nbreak;\ncase 66:return 57;\nbreak;\ncase 67:return 57;\nbreak;\ncase 68:return 57;\nbreak;\ncase 69:return 57;\nbreak;\ncase 70:return 57;\nbreak;\ncase 71:return 57;\nbreak;\ncase 72:return 57;\nbreak;\ncase 73:return 39;\nbreak;\ncase 74:return 40;\nbreak;\ncase 75:return 41;\nbreak;\ncase 76:return 42;\nbreak;\ncase 77:return 43;\nbreak;\ncase 78:return 44;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 84;\nbreak;\ncase 82:return 87;\nbreak;\ncase 83:return 98;\nbreak;\ncase 84:return 95;\nbreak;\ncase 85:return 88;\nbreak;\ncase 86:return 96;\nbreak;\ncase 87:return 96;\nbreak;\ncase 88:return 89;\nbreak;\ncase 89:return 49;\nbreak;\ncase 90:return 69;\nbreak;\ncase 91:return 'SEP';\nbreak;\ncase 92:return 68;\nbreak;\ncase 93:return 82;\nbreak;\ncase 94:return 51;\nbreak;\ncase 95:return 50;\nbreak;\ncase 96:return 53;\nbreak;\ncase 97:return 52;\nbreak;\ncase 98:return 93;\nbreak;\ncase 99:return 94;\nbreak;\ncase 100:return 59;\nbreak;\ncase 101:return 37;\nbreak;\ncase 102:return 38;\nbreak;\ncase 103:return 28;\nbreak;\ncase 104:return 29;\nbreak;\ncase 105:return 47\nbreak;\ncase 106:return 48\nbreak;\ncase 107:return 104;\nbreak;\ncase 108:return 9;\nbreak;\ncase 109:return 10;\nbreak;\ncase 110:return 11;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*<-->\\s*)/,/^(?:\\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/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\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u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[15,16,17,18,19,20,21,22,23,24],\"inclusive\":false},\"string\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,4,5,6,7,8,9,10,11,12,13,14,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 23, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "name": "./src/diagrams/gantt/parser/gantt.jison", - "index": 557, - "index2": 555, - "size": 25297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gantt", - "loc": "2:0-40" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "5:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "25:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "26:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "29:0-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "38:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "84:26-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "98:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "281:113-119" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 24, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "name": "./src/diagrams/user-journey/parser/journey.jison", - "index": 569, - "index2": 567, - "size": 21995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/journey", - "loc": "2:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "5:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "51:0-67" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "71:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "72:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "77:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "78:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "79:19-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "137:15-28" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13],$V1=[1,9],$V2=[1,10],$V3=[1,11];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"title\":11,\"section\":12,\"taskName\":13,\"taskData\":14,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"title\",12:\"section\",13:\"taskName\",14:\"taskData\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 9:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 10:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:12,11:$V1,12:$V2,13:$V3},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),{14:[1,13]},o($V0,[2,4]),o($V0,[2,10])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 11;\nbreak;\ncase 6:return 12;\nbreak;\ncase 7:return 13;\nbreak;\ncase 8:return 14;\nbreak;\ncase 9:return ':';\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 25, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "name": "./node_modules/lodash/keys.js", - "index": 629, - "index2": 638, - "size": 884, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/keys", - "loc": "17:12-34" - }, - { - "moduleId": 80, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "module": "./node_modules/lodash/_baseForOwn.js", - "moduleName": "./node_modules/lodash/_baseForOwn.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "21:11-28" - }, - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "3:11-28" - }, - { - "moduleId": 130, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "module": "./node_modules/lodash/values.js", - "moduleName": "./node_modules/lodash/values.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 199, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "module": "./node_modules/lodash/_baseAssign.js", - "moduleName": "./node_modules/lodash/_baseAssign.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 235, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "module": "./node_modules/lodash/_getMatchData.js", - "moduleName": "./node_modules/lodash/_getMatchData.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 285, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "module": "./node_modules/lodash/_createFind.js", - "moduleName": "./node_modules/lodash/_createFind.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "3:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n" - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "name": "./node_modules/dagre-d3/lib/d3.js", - "index": 873, - "index2": 868, - "size": 280, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "2:9-24" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "2:9-24" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 347, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "module": "./node_modules/dagre-d3/lib/position-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/position-nodes.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - }, - { - "moduleId": 349, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "module": "./node_modules/dagre-d3/lib/position-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/position-clusters.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n" - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "index": 593, - "index2": 595, - "size": 483, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "issuerId": 94, - "issuerName": "./node_modules/lodash/_defineProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - } - ], - "profile": { - "factory": 64, - "building": 40 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 49, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeCreate.js", - "module": "./node_modules/lodash/_nativeCreate.js", - "moduleName": "./node_modules/lodash/_nativeCreate.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 69, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "module": "./node_modules/lodash/_Map.js", - "moduleName": "./node_modules/lodash/_Map.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 94, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "module": "./node_modules/lodash/_defineProperty.js", - "moduleName": "./node_modules/lodash/_defineProperty.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 104, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "module": "./node_modules/lodash/_Set.js", - "moduleName": "./node_modules/lodash/_Set.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 211, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "module": "./node_modules/lodash/_DataView.js", - "moduleName": "./node_modules/lodash/_DataView.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 212, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "module": "./node_modules/lodash/_Promise.js", - "moduleName": "./node_modules/lodash/_Promise.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 213, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "module": "./node_modules/lodash/_WeakMap.js", - "moduleName": "./node_modules/lodash/_WeakMap.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n" - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "index": 596, - "index2": 587, - "size": 792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "module": "./node_modules/lodash/isFunction.js", - "moduleName": "./node_modules/lodash/isFunction.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "6:17-41" - }, - { - "moduleId": 37, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "module": "./node_modules/lodash/isSymbol.js", - "moduleName": "./node_modules/lodash/isSymbol.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 201, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "module": "./node_modules/lodash/_baseIsArguments.js", - "moduleName": "./node_modules/lodash/_baseIsArguments.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n" - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/identity.js", - "name": "./node_modules/lodash/identity.js", - "index": 694, - "index2": 684, - "size": 370, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "issuerId": 292, - "issuerName": "./node_modules/lodash/max.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "1:15-36" - }, - { - "moduleId": 110, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castFunction.js", - "module": "./node_modules/lodash/_castFunction.js", - "moduleName": "./node_modules/lodash/_castFunction.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "1:15-36" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "7:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n" - }, - { - "id": 30, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/package.json", - "name": "./package.json", - "index": 918, - "index2": 916, - "size": 3186, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "../package.json", - "loc": "17:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "365:35-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "371:34-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "376:33-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "381:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "386:27-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "543:50-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "name", - "version", - "description", - "main", - "keywords", - "scripts", - "repository", - "author", - "license", - "standard", - "dependencies", - "devDependencies", - "files", - "yarn-upgrade-all", - "sideEffects", - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "{\n \"name\": \"mermaid\",\n \"version\": \"8.6.0\",\n \"description\": \"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\n \"main\": \"dist/mermaid.core.js\",\n \"keywords\": [\n \"diagram\",\n \"markdown\",\n \"flowchart\",\n \"sequence diagram\",\n \"gantt\",\n \"class diagram\",\n \"git graph\"\n ],\n \"scripts\": {\n \"build:development\": \"webpack --progress --colors\",\n \"build:production\": \"yarn build:development -p --config webpack.config.prod.babel.js\",\n \"build\": \"yarn build:development && yarn build:production\",\n \"postbuild\": \"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\n \"build:watch\": \"yarn build --watch\",\n \"minify\": \"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\n \"release\": \"yarn build\",\n \"lint\": \"eslint src\",\n \"e2e:depr\": \"yarn lint && jest e2e --config e2e/jest.config.js\",\n \"cypress\": \"percy exec -- cypress run\",\n \"e2e\": \"start-server-and-test dev http://localhost:9000/ cypress\",\n \"e2e-upd\": \"yarn lint && jest e2e -u --config e2e/jest.config.js\",\n \"dev\": \"webpack-dev-server --config webpack.config.e2e.js\",\n \"test\": \"yarn lint && jest src/.*\",\n \"test:watch\": \"jest --watch src\",\n \"prepublishOnly\": \"yarn build && yarn test && yarn e2e\",\n \"prepush\": \"yarn test\",\n \"prepare\": \"yarn build\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/knsv/mermaid\"\n },\n \"author\": \"Knut Sveidqvist\",\n \"license\": \"MIT\",\n \"standard\": {\n \"ignore\": [\n \"**/parser/*.js\",\n \"dist/**/*.js\",\n \"cypress/**/*.js\"\n ],\n \"globals\": [\n \"page\"\n ]\n },\n \"dependencies\": {\n \"@braintree/sanitize-url\": \"^3.1.0\",\n \"crypto-random-string\": \"^3.0.1\",\n \"d3\": \"^5.7.0\",\n \"dagre\": \"^0.8.4\",\n \"dagre-d3\": \"^0.6.4\",\n \"entity-decode\": \"^2.0.2\",\n \"graphlib\": \"^2.1.7\",\n \"he\": \"^1.2.0\",\n \"minify\": \"^4.1.1\",\n \"moment-mini\": \"^2.22.1\",\n \"scope-css\": \"^1.2.1\"\n },\n \"devDependencies\": {\n \"@babel/core\": \"^7.2.2\",\n \"@babel/preset-env\": \"^7.8.4\",\n \"@babel/register\": \"^7.0.0\",\n \"@percy/cypress\": \"*\",\n \"babel-core\": \"7.0.0-bridge.0\",\n \"babel-jest\": \"^24.9.0\",\n \"babel-loader\": \"^8.0.4\",\n \"coveralls\": \"^3.0.2\",\n \"css-loader\": \"^2.0.1\",\n \"css-to-string-loader\": \"^0.1.3\",\n \"cypress\": \"4.0.1\",\n \"documentation\": \"^12.0.1\",\n \"eslint\": \"^6.3.0\",\n \"eslint-config-prettier\": \"^6.3.0\",\n \"eslint-plugin-prettier\": \"^3.1.0\",\n \"husky\": \"^1.2.1\",\n \"identity-obj-proxy\": \"^3.0.0\",\n \"jest\": \"^24.9.0\",\n \"jison\": \"^0.4.18\",\n \"moment\": \"^2.23.0\",\n \"node-sass\": \"^4.12.0\",\n \"prettier\": \"^1.18.2\",\n \"puppeteer\": \"^1.17.0\",\n \"sass-loader\": \"^7.1.0\",\n \"start-server-and-test\": \"^1.10.6\",\n \"terser-webpack-plugin\": \"^2.2.2\",\n \"webpack\": \"^4.41.2\",\n \"webpack-bundle-analyzer\": \"^3.7.0\",\n \"webpack-cli\": \"^3.1.2\",\n \"webpack-dev-server\": \"^3.4.1\",\n \"webpack-node-externals\": \"^1.7.2\",\n \"yarn-upgrade-all\": \"^0.5.0\"\n },\n \"files\": [\n \"dist\"\n ],\n \"yarn-upgrade-all\": {\n \"ignore\": [\n \"babel-core\"\n ]\n },\n \"sideEffects\": [\n \"**/*.css\",\n \"**/*.scss\"\n ]\n}\n" - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/eq.js", - "name": "./node_modules/lodash/eq.js", - "index": 583, - "index2": 570, - "size": 799, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 48, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assocIndexOf.js", - "module": "./node_modules/lodash/_assocIndexOf.js", - "moduleName": "./node_modules/lodash/_assocIndexOf.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "1:9-24" - }, - { - "moduleId": 51, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "module": "./node_modules/lodash/_assignValue.js", - "moduleName": "./node_modules/lodash/_assignValue.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "1:9-24" - }, - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 140, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "module": "./node_modules/lodash/_assignMergeValue.js", - "moduleName": "./node_modules/lodash/_assignMergeValue.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "3:9-24" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n" - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "name": "./node_modules/lodash/isFunction.js", - "index": 595, - "index2": 589, - "size": 993, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isFunction", - "loc": "15:18-46" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLike.js", - "module": "./node_modules/lodash/isArrayLike.js", - "moduleName": "./node_modules/lodash/isArrayLike.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "1:17-40" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isFunction", - "loc": "10:18-46" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "1:17-40" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "8:17-40" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "10:17-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n" - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Symbol.js", - "name": "./node_modules/lodash/_Symbol.js", - "index": 597, - "index2": 584, - "size": 118, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 182, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getRawTag.js", - "module": "./node_modules/lodash/_getRawTag.js", - "moduleName": "./node_modules/lodash/_getRawTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 218, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneSymbol.js", - "module": "./node_modules/lodash/_cloneSymbol.js", - "moduleName": "./node_modules/lodash/_cloneSymbol.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n" - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "name": "./node_modules/lodash/isBuffer.js", - "index": 636, - "index2": 625, - "size": 1114, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "17:15-36" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "4:15-36" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "7:15-36" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "6:15-36" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "7:15-36" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "9:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n" - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "index": 650, - "index2": 642, - "size": 778, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "4:13-32" - }, - { - "moduleId": 205, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "module": "./node_modules/lodash/_baseAssignIn.js", - "moduleName": "./node_modules/lodash/_baseAssignIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "2:13-32" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "3:13-32" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "3:13-32" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "6:13-32" - }, - { - "moduleId": 297, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "module": "./node_modules/lodash/toPlainObject.js", - "moduleName": "./node_modules/lodash/toPlainObject.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "2:13-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n" - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "index": 666, - "index2": 661, - "size": 1838, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "12:13-33" - }, - { - "moduleId": 220, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "module": "./node_modules/lodash/_baseIsMap.js", - "moduleName": "./node_modules/lodash/_baseIsMap.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "1:13-33" - }, - { - "moduleId": 222, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "module": "./node_modules/lodash/_baseIsSet.js", - "moduleName": "./node_modules/lodash/_baseIsSet.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "1:13-33" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "5:13-33" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "2:13-33" - }, - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "2:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n" - }, - { - "id": 37, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "name": "./node_modules/lodash/isSymbol.js", - "index": 720, - "index2": 706, - "size": 682, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "issuerId": 87, - "issuerName": "./node_modules/lodash/_baseExtremum.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 87, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "name": "./node_modules/lodash/_baseExtremum.js", - "profile": { - "factory": 75, - "building": 26 - } - } - ], - "profile": { - "factory": 57, - "building": 29, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 43, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toKey.js", - "module": "./node_modules/lodash/_toKey.js", - "moduleName": "./node_modules/lodash/_toKey.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - }, - { - "moduleId": 84, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "module": "./node_modules/lodash/_isKey.js", - "moduleName": "./node_modules/lodash/_isKey.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "2:15-36" - }, - { - "moduleId": 87, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "module": "./node_modules/lodash/_baseExtremum.js", - "moduleName": "./node_modules/lodash/_baseExtremum.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "4:15-36" - }, - { - "moduleId": 288, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "module": "./node_modules/lodash/toNumber.js", - "moduleName": "./node_modules/lodash/toNumber.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "2:15-36" - }, - { - "moduleId": 312, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareAscending.js", - "module": "./node_modules/lodash/_compareAscending.js", - "moduleName": "./node_modules/lodash/_compareAscending.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n" - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "index": 872, - "index2": 867, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "issuerId": 10, - "issuerName": "./node_modules/dagre-d3/lib/util.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - } - ], - "profile": { - "factory": 56, - "building": 103 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "module": "./node_modules/dagre-d3/lib/util.js", - "moduleName": "./node_modules/dagre-d3/lib/util.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "5:8-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 39, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "name": "./src/diagrams/class/parser/classDiagram.jison", - "index": 559, - "index2": 557, - "size": 32826, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/classDiagram", - "loc": "6:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "32:0-63" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "59:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "60:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "103:15-26" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,13],$V1=[1,16],$V2=[1,14],$V3=[1,15],$V4=[1,17],$V5=[1,18],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[6,8],$Va=[1,31],$Vb=[1,32],$Vc=[1,33],$Vd=[1,34],$Ve=[1,35],$Vf=[1,36],$Vg=[6,8,14,20,28,31,32,33,34,35,36],$Vh=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],$Vi=[28,52,53,54],$Vj=[28,35,36,52,53,54],$Vk=[28,31,32,33,34,52,53,54],$Vl=[6,8,14],$Vm=[1,59];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"CLASS_DIAGRAM\":5,\"NEWLINE\":6,\"statements\":7,\"EOF\":8,\"statement\":9,\"className\":10,\"alphaNumToken\":11,\"GENERICTYPE\":12,\"relationStatement\":13,\"LABEL\":14,\"classStatement\":15,\"methodStatement\":16,\"annotationStatement\":17,\"clickStatement\":18,\"CLASS\":19,\"STRUCT_START\":20,\"members\":21,\"STRUCT_STOP\":22,\"ANNOTATION_START\":23,\"ANNOTATION_END\":24,\"MEMBER\":25,\"SEPARATOR\":26,\"relation\":27,\"STR\":28,\"relationType\":29,\"lineType\":30,\"AGGREGATION\":31,\"EXTENSION\":32,\"COMPOSITION\":33,\"DEPENDENCY\":34,\"LINE\":35,\"DOTTED_LINE\":36,\"CALLBACK\":37,\"LINK\":38,\"commentToken\":39,\"textToken\":40,\"graphCodeTokens\":41,\"textNoTagsToken\":42,\"TAGSTART\":43,\"TAGEND\":44,\"==\":45,\"--\":46,\"PCT\":47,\"DEFAULT\":48,\"SPACE\":49,\"MINUS\":50,\"keywords\":51,\"UNICODE_TEXT\":52,\"NUM\":53,\"ALPHA\":54,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",12:\"GENERICTYPE\",14:\"LABEL\",19:\"CLASS\",20:\"STRUCT_START\",22:\"STRUCT_STOP\",23:\"ANNOTATION_START\",24:\"ANNOTATION_END\",25:\"MEMBER\",26:\"SEPARATOR\",28:\"STR\",31:\"AGGREGATION\",32:\"EXTENSION\",33:\"COMPOSITION\",34:\"DEPENDENCY\",35:\"LINE\",36:\"DOTTED_LINE\",37:\"CALLBACK\",38:\"LINK\",41:\"graphCodeTokens\",43:\"TAGSTART\",44:\"TAGEND\",45:\"==\",46:\"--\",47:\"PCT\",48:\"DEFAULT\",49:\"SPACE\",50:\"MINUS\",51:\"keywords\",52:\"UNICODE_TEXT\",53:\"NUM\",54:\"ALPHA\"},\nproductions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 7:\n this.$=$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 10:\n yy.addRelation($$[$0]); \nbreak;\ncase 11:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 16:\nyy.addClass($$[$0]);\nbreak;\ncase 17:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 18:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 19:\n this.$ = [$$[$0]]; \nbreak;\ncase 20:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 21:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 22:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 23:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 24:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 25:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 26:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 27:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 28:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 29:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 30:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 31:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 32:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 33:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 34:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 35:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 36:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 37:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 38:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 39:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 40:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 41:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 42:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},{8:[1,23]},{6:[1,24],8:[2,3]},o($V9,[2,10],{14:[1,25]}),o($V9,[2,12]),o($V9,[2,13]),o($V9,[2,14]),o($V9,[2,15]),o($V9,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf}),{10:37,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,23]),o($V9,[2,24]),{11:38,52:$V6,53:$V7,54:$V8},{10:39,11:19,52:$V6,53:$V7,54:$V8},{10:40,11:19,52:$V6,53:$V7,54:$V8},o($Vg,[2,7],{11:19,10:41,12:[1,42],52:$V6,53:$V7,54:$V8}),o($Vh,[2,56]),o($Vh,[2,57]),o($Vh,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},o($V9,[2,11]),{10:44,11:19,28:[1,45],52:$V6,53:$V7,54:$V8},{27:46,29:29,30:30,31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf},o($V9,[2,22]),{30:47,35:$Ve,36:$Vf},o($Vi,[2,32],{29:48,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vj,[2,33]),o($Vj,[2,34]),o($Vj,[2,35]),o($Vj,[2,36]),o($Vk,[2,37]),o($Vk,[2,38]),o($V9,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},o($Vg,[2,6]),o($Vg,[2,9],{11:19,10:53,52:$V6,53:$V7,54:$V8}),{8:[2,5]},o($Vl,[2,25]),{10:54,11:19,52:$V6,53:$V7,54:$V8},{10:55,11:19,28:[1,56],52:$V6,53:$V7,54:$V8},o($Vi,[2,31],{29:57,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vi,[2,30]),{21:58,25:$Vm},{10:60,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,39],{28:[1,61]}),o($V9,[2,41],{28:[1,62]}),o($Vg,[2,8]),o($Vl,[2,27]),o($Vl,[2,26]),{10:63,11:19,52:$V6,53:$V7,54:$V8},o($Vi,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:$Vm},o($V9,[2,18]),o($V9,[2,40]),o($V9,[2,42]),o($Vl,[2,28]),o($V9,[2,17]),{22:[2,20]}],\ndefaultActions: {2:[2,1],23:[2,2],43:[2,5],65:[2,20]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:return 6;\nbreak;\ncase 2:/* skip whitespace */\nbreak;\ncase 3:return 5;\nbreak;\ncase 4: this.begin(\"struct\"); /*console.log('Starting struct');*/return 20;\nbreak;\ncase 5:return \"EOF_IN_STRUCT\";\nbreak;\ncase 6:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 7: /*console.log('Ending struct');*/this.popState(); return 22;\nbreak;\ncase 8:/* nothing */\nbreak;\ncase 9: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 10:return 19;\nbreak;\ncase 11:return 37;\nbreak;\ncase 12:return 38;\nbreak;\ncase 13:return 23;\nbreak;\ncase 14:return 24;\nbreak;\ncase 15:this.begin(\"generic\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:return \"GENERICTYPE\";\nbreak;\ncase 18:this.begin(\"string\");\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return \"STR\";\nbreak;\ncase 21:return 32;\nbreak;\ncase 22:return 32;\nbreak;\ncase 23:return 34;\nbreak;\ncase 24:return 34;\nbreak;\ncase 25:return 33;\nbreak;\ncase 26:return 31;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 36;\nbreak;\ncase 29:return 14;\nbreak;\ncase 30:return 50;\nbreak;\ncase 31:return 'DOT';\nbreak;\ncase 32:return 'PLUS';\nbreak;\ncase 33:return 47;\nbreak;\ncase 34:return 'EQUALS';\nbreak;\ncase 35:return 'EQUALS';\nbreak;\ncase 36:return 54;\nbreak;\ncase 37:return 'PUNCTUATION';\nbreak;\ncase 38:return 53;\nbreak;\ncase 39:return 52;\nbreak;\ncase 40:return 49;\nbreak;\ncase 41:return 8;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[19,20],\"inclusive\":false},\"generic\":{\"rules\":[16,17],\"inclusive\":false},\"struct\":{\"rules\":[5,6,7,8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,10,11,12,13,14,15,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 40, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "name": "./node_modules/lodash/_copyObject.js", - "index": 628, - "index2": 618, - "size": 1044, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "issuerId": 209, - "issuerName": "./node_modules/lodash/_copySymbolsIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 40, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 199, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "module": "./node_modules/lodash/_baseAssign.js", - "moduleName": "./node_modules/lodash/_baseAssign.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 205, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "module": "./node_modules/lodash/_baseAssignIn.js", - "moduleName": "./node_modules/lodash/_baseAssignIn.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 208, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "module": "./node_modules/lodash/_copySymbols.js", - "moduleName": "./node_modules/lodash/_copySymbols.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 209, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "module": "./node_modules/lodash/_copySymbolsIn.js", - "moduleName": "./node_modules/lodash/_copySymbolsIn.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 297, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "module": "./node_modules/lodash/toPlainObject.js", - "moduleName": "./node_modules/lodash/toPlainObject.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n" - }, - { - "id": 41, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "name": "./node_modules/lodash/isArguments.js", - "index": 632, - "index2": 622, - "size": 1026, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "3:18-42" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "6:18-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n" - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "index": 639, - "index2": 631, - "size": 695, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "6:19-44" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "8:19-44" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "8:19-44" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "10:19-44" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "13:19-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n" - }, - { - "id": 43, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toKey.js", - "name": "./node_modules/lodash/_toKey.js", - "index": 727, - "index2": 715, - "size": 523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 83, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "module": "./node_modules/lodash/_baseGet.js", - "moduleName": "./node_modules/lodash/_baseGet.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "2:12-31" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "6:12-31" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "7:12-31" - }, - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "4:12-31" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "5:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n" - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "index": 878, - "index2": 871, - "size": 814, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-html-label", - "loc": "2:19-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "55:19-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "56:19-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n" - }, - { - "id": 45, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/runtime/api.js", - "name": "./node_modules/css-loader/dist/runtime/api.js", - "index": 532, - "index2": 527, - "size": 2406, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 164, - "issuerName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - }, - { - "id": 164, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "profile": { - "factory": 1, - "building": 3929 - } - } - ], - "profile": { - "factory": 28, - "building": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 160, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 162, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 164, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 166, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}" - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "index": 578, - "index2": 613, - "size": 734, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 227, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "module": "./node_modules/lodash/_baseIsMatch.js", - "moduleName": "./node_modules/lodash/_baseIsMatch.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n" - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "index": 579, - "index2": 576, - "size": 869, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 175, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackClear.js", - "module": "./node_modules/lodash/_stackClear.js", - "moduleName": "./node_modules/lodash/_stackClear.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n" - }, - { - "id": 48, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assocIndexOf.js", - "name": "./node_modules/lodash/_assocIndexOf.js", - "index": 582, - "index2": 571, - "size": 487, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "issuerId": 174, - "issuerName": "./node_modules/lodash/_listCacheSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - }, - { - "id": 174, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "name": "./node_modules/lodash/_listCacheSet.js", - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 92, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 171, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheDelete.js", - "module": "./node_modules/lodash/_listCacheDelete.js", - "moduleName": "./node_modules/lodash/_listCacheDelete.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 172, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheGet.js", - "module": "./node_modules/lodash/_listCacheGet.js", - "moduleName": "./node_modules/lodash/_listCacheGet.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 173, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheHas.js", - "module": "./node_modules/lodash/_listCacheHas.js", - "moduleName": "./node_modules/lodash/_listCacheHas.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 174, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "module": "./node_modules/lodash/_listCacheSet.js", - "moduleName": "./node_modules/lodash/_listCacheSet.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n" - }, - { - "id": 49, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeCreate.js", - "name": "./node_modules/lodash/_nativeCreate.js", - "index": 612, - "index2": 597, - "size": 187, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "issuerId": 189, - "issuerName": "./node_modules/lodash/_hashClear.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - }, - { - "id": 189, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "name": "./node_modules/lodash/_hashClear.js", - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 3, - "building": 0, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 189, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "module": "./node_modules/lodash/_hashClear.js", - "moduleName": "./node_modules/lodash/_hashClear.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 191, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashGet.js", - "module": "./node_modules/lodash/_hashGet.js", - "moduleName": "./node_modules/lodash/_hashGet.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 192, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashHas.js", - "module": "./node_modules/lodash/_hashHas.js", - "moduleName": "./node_modules/lodash/_hashHas.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 193, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashSet.js", - "module": "./node_modules/lodash/_hashSet.js", - "moduleName": "./node_modules/lodash/_hashSet.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 13, - "source": "var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n" - }, - { - "id": 50, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "name": "./node_modules/lodash/_getMapData.js", - "index": 618, - "index2": 606, - "size": 400, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "issuerId": 198, - "issuerName": "./node_modules/lodash/_mapCacheSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 194, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheDelete.js", - "module": "./node_modules/lodash/_mapCacheDelete.js", - "moduleName": "./node_modules/lodash/_mapCacheDelete.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 196, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheGet.js", - "module": "./node_modules/lodash/_mapCacheGet.js", - "moduleName": "./node_modules/lodash/_mapCacheGet.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 197, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheHas.js", - "module": "./node_modules/lodash/_mapCacheHas.js", - "moduleName": "./node_modules/lodash/_mapCacheHas.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 198, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "module": "./node_modules/lodash/_mapCacheSet.js", - "moduleName": "./node_modules/lodash/_mapCacheSet.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n" - }, - { - "id": 51, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "name": "./node_modules/lodash/_assignValue.js", - "index": 624, - "index2": 617, - "size": 899, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "issuerId": 313, - "issuerName": "./node_modules/lodash/zipObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 129, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 40, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "module": "./node_modules/lodash/_copyObject.js", - "moduleName": "./node_modules/lodash/_copyObject.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "3:18-43" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - }, - { - "moduleId": 313, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "module": "./node_modules/lodash/zipObject.js", - "moduleName": "./node_modules/lodash/zipObject.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n" - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "index": 625, - "index2": 616, - "size": 625, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "issuerId": 291, - "issuerName": "./node_modules/lodash/mapValues.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 40, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "module": "./node_modules/lodash/_copyObject.js", - "moduleName": "./node_modules/lodash/_copyObject.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "2:22-51" - }, - { - "moduleId": 51, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "module": "./node_modules/lodash/_assignValue.js", - "moduleName": "./node_modules/lodash/_assignValue.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - }, - { - "moduleId": 140, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "module": "./node_modules/lodash/_assignMergeValue.js", - "moduleName": "./node_modules/lodash/_assignMergeValue.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n" - }, - { - "id": 53, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIndex.js", - "name": "./node_modules/lodash/_isIndex.js", - "index": 638, - "index2": 626, - "size": 759, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "issuerId": 61, - "issuerName": "./node_modules/lodash/_isIterateeCall.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 61, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "name": "./node_modules/lodash/_isIterateeCall.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 75, - "building": 34, - "dependencies": 24 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "3:14-35" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "5:14-35" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "4:14-35" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n" - }, - { - "id": 54, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUnary.js", - "name": "./node_modules/lodash/_baseUnary.js", - "index": 642, - "index2": 629, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "5:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n" - }, - { - "id": 55, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isPrototype.js", - "name": "./node_modules/lodash/_isPrototype.js", - "index": 645, - "index2": 633, - "size": 480, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 74, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "module": "./node_modules/lodash/_baseKeys.js", - "moduleName": "./node_modules/lodash/_baseKeys.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "1:18-43" - }, - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "3:18-43" - }, - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "2:18-43" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "7:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n" - }, - { - "id": 56, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "name": "./node_modules/lodash/_getPrototype.js", - "index": 662, - "index2": 651, - "size": 163, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n" - }, - { - "id": 57, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "name": "./node_modules/lodash/_baseEach.js", - "index": 688, - "index2": 683, - "size": 455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "2:15-37" - }, - { - "moduleId": 124, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMap.js", - "module": "./node_modules/lodash/_baseMap.js", - "moduleName": "./node_modules/lodash/_baseMap.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "1:15-37" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "2:15-37" - }, - { - "moduleId": 225, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFilter.js", - "module": "./node_modules/lodash/_baseFilter.js", - "moduleName": "./node_modules/lodash/_baseFilter.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n" - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "index": 718, - "index2": 714, - "size": 569, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 83, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "module": "./node_modules/lodash/_baseGet.js", - "moduleName": "./node_modules/lodash/_baseGet.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "1:15-37" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "1:15-37" - }, - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "3:15-37" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n" - }, - { - "id": 59, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayMap.js", - "name": "./node_modules/lodash/_arrayMap.js", - "index": 726, - "index2": 711, - "size": 556, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "issuerId": 123, - "issuerName": "./node_modules/lodash/map.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "2:15-37" - }, - { - "moduleId": 269, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseValues.js", - "module": "./node_modules/lodash/_baseValues.js", - "moduleName": "./node_modules/lodash/_baseValues.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n" - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "index": 753, - "index2": 750, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "1:15-37" - }, - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "2:15-37" - }, - { - "moduleId": 298, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "module": "./node_modules/lodash/_createAssigner.js", - "moduleName": "./node_modules/lodash/_createAssigner.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "1:15-37" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n" - }, - { - "id": 61, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "name": "./node_modules/lodash/_isIterateeCall.js", - "index": 796, - "index2": 787, - "size": 877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "3:21-49" - }, - { - "moduleId": 298, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "module": "./node_modules/lodash/_createAssigner.js", - "moduleName": "./node_modules/lodash/_createAssigner.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "2:21-49" - }, - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "2:21-49" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "4:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n" - }, - { - "id": 62, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/util.js", - "name": "./node_modules/dagre/lib/rank/util.js", - "index": 844, - "index2": 836, - "size": 1769, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:12-29" - }, - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:15-32" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:12-29" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "6:15-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n" - }, - { - "id": 63, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/@braintree/sanitize-url/index.js", - "name": "./node_modules/@braintree/sanitize-url/index.js", - "index": 540, - "index2": 537, - "size": 854, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1707, - "building": 708 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "10:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "15:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "278:13-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "479:14-25" - } - ], - "usedExports": [ - "sanitizeUrl" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n" - }, - { - "id": 64, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "name": "./src/diagrams/git/parser/gitGraph.jison", - "index": 547, - "index2": 548, - "size": 23638, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gitGraph", - "loc": "3:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "39:0-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "76:15-29" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gitGraph", - "loc": "237:17-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 65, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "name": "./src/diagrams/info/parser/info.jison", - "index": 563, - "index2": 561, - "size": 21150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/info", - "loc": "6:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/info", - "loc": "23:17-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/parser/info", - "loc": "43:0-53" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/parser/info", - "loc": "119:15-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 66, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "name": "./src/diagrams/pie/parser/pie.jison", - "index": 565, - "index2": 563, - "size": 21750, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/pie", - "loc": "6:0-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/pie", - "loc": "24:17-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "46:0-50" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "125:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 67, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "name": "./src/diagrams/er/parser/erDiagram.jison", - "index": 567, - "index2": 565, - "size": 23211, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/erDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "49:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "131:15-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/erDiagram", - "loc": "190:15-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,12],$V1=[1,7],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[12,19,20],$V7=[15,16,17,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"statement\":7,\"entityName\":8,\"relSpec\":9,\":\":10,\"role\":11,\"ALPHANUM\":12,\"cardinality\":13,\"relType\":14,\"ZERO_OR_ONE\":15,\"ZERO_OR_MORE\":16,\"ONE_OR_MORE\":17,\"ONLY_ONE\":18,\"NON_IDENTIFYING\":19,\"IDENTIFYING\":20,\"WORD\":21,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",10:\":\",12:\"ALPHANUM\",15:\"ZERO_OR_ONE\",16:\"ZERO_OR_MORE\",17:\"ONE_OR_MORE\",18:\"ONLY_ONE\",19:\"NON_IDENTIFYING\",20:\"IDENTIFYING\",21:\"WORD\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,5],[8,1],[9,3],[13,1],[13,1],[13,1],[13,1],[14,1],[14,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 4:\n\n yy.addEntity($$[$0-4]); \n yy.addEntity($$[$0-2]); \n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 5:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 6:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 7:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 8:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 9:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 10:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 11:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 12:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 13:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 14:\n this.$ = $$[$0]; \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,12:$V1},{1:[2,1]},o($V0,[2,3]),{9:8,13:9,15:$V2,16:$V3,17:$V4,18:$V5},o([10,15,16,17,18],[2,5]),{8:14,12:$V1},{14:15,19:[1,16],20:[1,17]},o($V6,[2,7]),o($V6,[2,8]),o($V6,[2,9]),o($V6,[2,10]),{10:[1,18]},{13:19,15:$V2,16:$V3,17:$V4,18:$V5},o($V7,[2,11]),o($V7,[2,12]),{11:20,12:[1,22],21:[1,21]},{12:[2,6]},o($V0,[2,4]),o($V0,[2,13]),o($V0,[2,14])],\ndefaultActions: {4:[2,1],19:[2,6]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* skip whitespace */\nbreak;\ncase 1:return 'SPACE';\nbreak;\ncase 2:return 21;\nbreak;\ncase 3:return 4;\nbreak;\ncase 4:return 15;\nbreak;\ncase 5:return 16;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 18;\nbreak;\ncase 8:return 15;\nbreak;\ncase 9:return 16;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11:return 19;\nbreak;\ncase 12:return 20;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 19;\nbreak;\ncase 15:return 12;\nbreak;\ncase 16:return yy_.yytext[0];\nbreak;\ncase 17:return 6;\nbreak;\n}\n},\nrules: [/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 68, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/graph.js", - "name": "./node_modules/graphlib/lib/graph.js", - "index": 574, - "index2": 765, - "size": 12028, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "issuerId": 271, - "issuerName": "./node_modules/graphlib/lib/json.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 168, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "module": "./node_modules/graphlib/lib/index.js", - "moduleName": "./node_modules/graphlib/lib/index.js", - "type": "cjs require", - "userRequest": "./graph", - "loc": "3:9-27" - }, - { - "moduleId": 271, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "module": "./node_modules/graphlib/lib/json.js", - "moduleName": "./node_modules/graphlib/lib/json.js", - "type": "cjs require", - "userRequest": "./graph", - "loc": "2:12-30" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../graph", - "loc": "2:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n" - }, - { - "id": 69, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "name": "./node_modules/lodash/_Map.js", - "index": 592, - "index2": 596, - "size": 195, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "2:10-27" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "2:10-27" - }, - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "3:10-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n" - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "index": 608, - "index2": 611, - "size": 869, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "1:15-37" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "3:15-37" - }, - { - "moduleId": 240, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/memoize.js", - "module": "./node_modules/lodash/memoize.js", - "moduleName": "./node_modules/lodash/memoize.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n" - }, - { - "id": 71, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayEach.js", - "name": "./node_modules/lodash/_arrayEach.js", - "index": 623, - "index2": 614, - "size": 537, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "issuerId": 109, - "issuerName": "./node_modules/lodash/forEach.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 109, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "name": "./node_modules/lodash/forEach.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 63, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "2:16-39" - }, - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "1:16-39" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n" - }, - { - "id": 72, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isLength.js", - "name": "./node_modules/lodash/isLength.js", - "index": 641, - "index2": 627, - "size": 802, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLike.js", - "module": "./node_modules/lodash/isArrayLike.js", - "moduleName": "./node_modules/lodash/isArrayLike.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "2:15-36" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "5:15-36" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "2:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n" - }, - { - "id": 73, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "name": "./node_modules/lodash/_nodeUtil.js", - "index": 643, - "index2": 630, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "issuerId": 42, - "issuerName": "./node_modules/lodash/isTypedArray.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 59, - "building": 37, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - }, - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - }, - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n" - }, - { - "id": 74, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "name": "./node_modules/lodash/_baseKeys.js", - "index": 644, - "index2": 636, - "size": 776, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 25, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "module": "./node_modules/lodash/keys.js", - "moduleName": "./node_modules/lodash/keys.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "2:15-37" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "1:15-37" - }, - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n" - }, - { - "id": 75, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "name": "./node_modules/lodash/_getSymbols.js", - "index": 656, - "index2": 648, - "size": 886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "issuerId": 208, - "issuerName": "./node_modules/lodash/_copySymbols.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "3:17-41" - }, - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "2:17-41" - }, - { - "moduleId": 208, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "module": "./node_modules/lodash/_copySymbols.js", - "moduleName": "./node_modules/lodash/_copySymbols.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n" - }, - { - "id": 76, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayPush.js", - "name": "./node_modules/lodash/_arrayPush.js", - "index": 661, - "index2": 650, - "size": 437, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "issuerId": 86, - "issuerName": "./node_modules/lodash/_baseFlatten.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 62, - "building": 25, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 86, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "module": "./node_modules/lodash/_baseFlatten.js", - "moduleName": "./node_modules/lodash/_baseFlatten.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - }, - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - }, - { - "moduleId": 103, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "module": "./node_modules/lodash/_baseGetAllKeys.js", - "moduleName": "./node_modules/lodash/_baseGetAllKeys.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n" - }, - { - "id": 77, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "name": "./node_modules/lodash/_cloneArrayBuffer.js", - "index": 673, - "index2": 664, - "size": 449, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 106, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneTypedArray.js", - "module": "./node_modules/lodash/_cloneTypedArray.js", - "moduleName": "./node_modules/lodash/_cloneTypedArray.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - }, - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - }, - { - "moduleId": 216, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneDataView.js", - "module": "./node_modules/lodash/_cloneDataView.js", - "moduleName": "./node_modules/lodash/_cloneDataView.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n" - }, - { - "id": 78, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/constant.js", - "name": "./node_modules/lodash/constant.js", - "index": 685, - "index2": 678, - "size": 528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/constant", - "loc": "9:16-42" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/constant", - "loc": "9:16-42" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./constant", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n" - }, - { - "id": 79, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/each.js", - "name": "./node_modules/lodash/each.js", - "index": 686, - "index2": 687, - "size": 39, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "11:12-34" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "10:12-34" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "9:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = require('./forEach');\n" - }, - { - "id": 80, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "name": "./node_modules/lodash/_baseForOwn.js", - "index": 689, - "index2": 681, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "issuerId": 291, - "issuerName": "./node_modules/lodash/mapValues.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 57, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "module": "./node_modules/lodash/_baseEach.js", - "moduleName": "./node_modules/lodash/_baseEach.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "1:17-41" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "3:17-41" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n" - }, - { - "id": 81, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "name": "./node_modules/lodash/_baseFor.js", - "index": 690, - "index2": 680, - "size": 593, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "issuerId": 289, - "issuerName": "./node_modules/lodash/forIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 80, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "module": "./node_modules/lodash/_baseForOwn.js", - "moduleName": "./node_modules/lodash/_baseForOwn.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "1:14-35" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "1:14-35" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n" - }, - { - "id": 82, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToArray.js", - "name": "./node_modules/lodash/_setToArray.js", - "index": 710, - "index2": 696, - "size": 345, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "6:17-41" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "6:17-41" - }, - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "3:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n" - }, - { - "id": 83, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "name": "./node_modules/lodash/_baseGet.js", - "index": 717, - "index2": 716, - "size": 616, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "issuerId": 303, - "issuerName": "./node_modules/lodash/_basePickBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 63, - "building": 25, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 237, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/get.js", - "module": "./node_modules/lodash/get.js", - "moduleName": "./node_modules/lodash/get.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - }, - { - "moduleId": 244, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePropertyDeep.js", - "module": "./node_modules/lodash/_basePropertyDeep.js", - "moduleName": "./node_modules/lodash/_basePropertyDeep.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - }, - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n" - }, - { - "id": 84, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "name": "./node_modules/lodash/_isKey.js", - "index": 719, - "index2": 707, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "issuerId": 58, - "issuerName": "./node_modules/lodash/_castPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "2:12-31" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "4:12-31" - }, - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "3:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n" - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "index": 734, - "index2": 728, - "size": 757, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "17:12-33" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "12:12-33" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "13:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n" - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "index": 751, - "index2": 744, - "size": 1201, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "issuerId": 308, - "issuerName": "./node_modules/lodash/sortBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 139, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/flatten.js", - "module": "./node_modules/lodash/flatten.js", - "moduleName": "./node_modules/lodash/flatten.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - }, - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n" - }, - { - "id": 87, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "name": "./node_modules/lodash/_baseExtremum.js", - "index": 808, - "index2": 799, - "size": 897, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "issuerId": 300, - "issuerName": "./node_modules/lodash/minBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 75, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - }, - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n" - }, - { - "id": 88, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-ellipse.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js", - "index": 867, - "index2": 861, - "size": 519, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 149, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "module": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "type": "cjs require", - "userRequest": "./intersect-ellipse", - "loc": "1:23-53" - }, - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-ellipse", - "loc": "4:11-41" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-ellipse", - "loc": "4:23-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n" - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "index": 875, - "index2": 873, - "size": 970, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "issuerId": 345, - "issuerName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "4:15-43" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "3:15-43" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "4:15-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n" - }, - { - "id": 90, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale/locale.js", - "name": "./node_modules/moment-mini/locale/locale.js", - "index": 545, - "index2": 539, - "size": 0, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "issuerId": 167, - "issuerName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - }, - { - "id": 167, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "name": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - } - } - ], - "profile": { - "factory": 476, - "building": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 167, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "module": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "moduleName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "type": "context element", - "userRequest": "./locale", - "loc": "./locale" - }, - { - "moduleId": 167, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "module": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "moduleName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "type": "context element", - "userRequest": "./locale.js", - "loc": "./locale.js" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "" - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "index": 577, - "index2": 676, - "size": 5575, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "issuerId": 169, - "issuerName": "./node_modules/lodash/clone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 169, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "module": "./node_modules/lodash/clone.js", - "moduleName": "./node_modules/lodash/clone.js", - "type": "cjs require", - "userRequest": "./_baseClone", - "loc": "1:16-39" - }, - { - "moduleId": 283, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/cloneDeep.js", - "module": "./node_modules/lodash/cloneDeep.js", - "moduleName": "./node_modules/lodash/cloneDeep.js", - "type": "cjs require", - "userRequest": "./_baseClone", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n" - }, - { - "id": 92, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "name": "./node_modules/lodash/_freeGlobal.js", - "index": 599, - "index2": 582, - "size": 173, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "issuerId": 12, - "issuerName": "./node_modules/lodash/_root.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "profile": { - "factory": 76, - "building": 25 - } - } - ], - "profile": { - "factory": 57, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "module": "./node_modules/lodash/_root.js", - "moduleName": "./node_modules/lodash/_root.js", - "type": "cjs require", - "userRequest": "./_freeGlobal", - "loc": "1:17-41" - }, - { - "moduleId": 73, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "module": "./node_modules/lodash/_nodeUtil.js", - "moduleName": "./node_modules/lodash/_nodeUtil.js", - "type": "cjs require", - "userRequest": "./_freeGlobal", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n" - }, - { - "id": 93, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toSource.js", - "name": "./node_modules/lodash/_toSource.js", - "index": 606, - "index2": 592, - "size": 556, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_toSource", - "loc": "7:15-37" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./_toSource", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n" - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "index": 626, - "index2": 615, - "size": 233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "issuerId": 52, - "issuerName": "./node_modules/lodash/_baseAssignValue.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 58, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 52, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "module": "./node_modules/lodash/_baseAssignValue.js", - "moduleName": "./node_modules/lodash/_baseAssignValue.js", - "type": "cjs require", - "userRequest": "./_defineProperty", - "loc": "1:21-49" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./_defineProperty", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n" - }, - { - "id": 95, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "name": "./node_modules/lodash/_arrayLikeKeys.js", - "index": 630, - "index2": 632, - "size": 1778, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "issuerId": 35, - "issuerName": "./node_modules/lodash/keysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 25, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "module": "./node_modules/lodash/keys.js", - "moduleName": "./node_modules/lodash/keys.js", - "type": "cjs require", - "userRequest": "./_arrayLikeKeys", - "loc": "1:20-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "module": "./node_modules/lodash/keysIn.js", - "moduleName": "./node_modules/lodash/keysIn.js", - "type": "cjs require", - "userRequest": "./_arrayLikeKeys", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n" - }, - { - "id": 96, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overArg.js", - "name": "./node_modules/lodash/_overArg.js", - "index": 647, - "index2": 634, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "issuerId": 56, - "issuerName": "./node_modules/lodash/_getPrototype.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 56, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "name": "./node_modules/lodash/_getPrototype.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 60, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 56, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "module": "./node_modules/lodash/_getPrototype.js", - "moduleName": "./node_modules/lodash/_getPrototype.js", - "type": "cjs require", - "userRequest": "./_overArg", - "loc": "1:14-35" - }, - { - "moduleId": 204, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeys.js", - "module": "./node_modules/lodash/_nativeKeys.js", - "moduleName": "./node_modules/lodash/_nativeKeys.js", - "type": "cjs require", - "userRequest": "./_overArg", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n" - }, - { - "id": 97, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "name": "./node_modules/lodash/_cloneBuffer.js", - "index": 653, - "index2": 644, - "size": 1056, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_cloneBuffer", - "loc": "6:18-43" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_cloneBuffer", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n" - }, - { - "id": 98, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyArray.js", - "name": "./node_modules/lodash/_copyArray.js", - "index": 654, - "index2": 645, - "size": 454, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copyArray", - "loc": "7:16-39" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_copyArray", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n" - }, - { - "id": 99, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayFilter.js", - "name": "./node_modules/lodash/_arrayFilter.js", - "index": 657, - "index2": 646, - "size": 632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "issuerId": 111, - "issuerName": "./node_modules/lodash/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 75, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "module": "./node_modules/lodash/_getSymbols.js", - "moduleName": "./node_modules/lodash/_getSymbols.js", - "type": "cjs require", - "userRequest": "./_arrayFilter", - "loc": "1:18-43" - }, - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_arrayFilter", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n" - }, - { - "id": 100, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/stubArray.js", - "name": "./node_modules/lodash/stubArray.js", - "index": 658, - "index2": 647, - "size": 390, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "issuerId": 75, - "issuerName": "./node_modules/lodash/_getSymbols.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 75, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "name": "./node_modules/lodash/_getSymbols.js", - "profile": { - "factory": 68, - "building": 39, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 66, - "building": 24 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 75, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "module": "./node_modules/lodash/_getSymbols.js", - "moduleName": "./node_modules/lodash/_getSymbols.js", - "type": "cjs require", - "userRequest": "./stubArray", - "loc": "2:16-38" - }, - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./stubArray", - "loc": "4:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n" - }, - { - "id": 101, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "name": "./node_modules/lodash/_getSymbolsIn.js", - "index": 660, - "index2": 652, - "size": 754, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "issuerId": 209, - "issuerName": "./node_modules/lodash/_copySymbolsIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 40, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 209, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "module": "./node_modules/lodash/_copySymbolsIn.js", - "moduleName": "./node_modules/lodash/_copySymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getSymbolsIn", - "loc": "2:19-45" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./_getSymbolsIn", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n" - }, - { - "id": 102, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "name": "./node_modules/lodash/_getAllKeys.js", - "index": 663, - "index2": 655, - "size": 455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getAllKeys", - "loc": "10:17-41" - }, - { - "moduleId": 234, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalObjects.js", - "module": "./node_modules/lodash/_equalObjects.js", - "moduleName": "./node_modules/lodash/_equalObjects.js", - "type": "cjs require", - "userRequest": "./_getAllKeys", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n" - }, - { - "id": 103, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "name": "./node_modules/lodash/_baseGetAllKeys.js", - "index": 664, - "index2": 654, - "size": 739, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "issuerId": 210, - "issuerName": "./node_modules/lodash/_getAllKeysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 210, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "name": "./node_modules/lodash/_getAllKeysIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./_baseGetAllKeys", - "loc": "1:21-49" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./_baseGetAllKeys", - "loc": "1:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n" - }, - { - "id": 104, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "name": "./node_modules/lodash/_Set.js", - "index": 669, - "index2": 659, - "size": 195, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Set", - "loc": "4:10-27" - }, - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./_Set", - "loc": "1:10-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n" - }, - { - "id": 105, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Uint8Array.js", - "name": "./node_modules/lodash/_Uint8Array.js", - "index": 674, - "index2": 663, - "size": 130, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "issuerId": 77, - "issuerName": "./node_modules/lodash/_cloneArrayBuffer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 77, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "name": "./node_modules/lodash/_cloneArrayBuffer.js", - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 70, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 77, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "module": "./node_modules/lodash/_cloneArrayBuffer.js", - "moduleName": "./node_modules/lodash/_cloneArrayBuffer.js", - "type": "cjs require", - "userRequest": "./_Uint8Array", - "loc": "1:17-41" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_Uint8Array", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n" - }, - { - "id": 106, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneTypedArray.js", - "name": "./node_modules/lodash/_cloneTypedArray.js", - "index": 678, - "index2": 668, - "size": 527, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "issuerId": 296, - "issuerName": "./node_modules/lodash/_baseMergeDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - } - } - ], - "profile": { - "factory": 66, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneTypedArray", - "loc": "5:22-51" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_cloneTypedArray", - "loc": "3:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n" - }, - { - "id": 107, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "name": "./node_modules/lodash/_initCloneObject.js", - "index": 679, - "index2": 671, - "size": 486, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneObject", - "loc": "15:22-51" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_initCloneObject", - "loc": "5:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n" - }, - { - "id": 108, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseCreate.js", - "name": "./node_modules/lodash/_baseCreate.js", - "index": 680, - "index2": 670, - "size": 686, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "issuerId": 255, - "issuerName": "./node_modules/lodash/transform.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 255, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "name": "./node_modules/lodash/transform.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 140, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_baseCreate", - "loc": "1:17-41" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseCreate", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n" - }, - { - "id": 109, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "name": "./node_modules/lodash/forEach.js", - "index": 687, - "index2": 686, - "size": 1355, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/forEach", - "loc": "15:15-40" - }, - { - "moduleId": 79, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/each.js", - "module": "./node_modules/lodash/each.js", - "moduleName": "./node_modules/lodash/each.js", - "type": "cjs require", - "userRequest": "./forEach", - "loc": "1:17-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n" - }, - { - "id": 110, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castFunction.js", - "name": "./node_modules/lodash/_castFunction.js", - "index": 693, - "index2": 685, - "size": 326, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "issuerId": 289, - "issuerName": "./node_modules/lodash/forIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_castFunction", - "loc": "3:19-45" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./_castFunction", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n" - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "index": 695, - "index2": 726, - "size": 1506, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/filter", - "loc": "12:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/filter", - "loc": "11:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n" - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "index": 700, - "index2": 700, - "size": 1019, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 227, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "module": "./node_modules/lodash/_baseIsMatch.js", - "moduleName": "./node_modules/lodash/_baseIsMatch.js", - "type": "cjs require", - "userRequest": "./_baseIsEqual", - "loc": "2:18-43" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_baseIsEqual", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n" - }, - { - "id": 113, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "name": "./node_modules/lodash/_equalArrays.js", - "index": 702, - "index2": 694, - "size": 2595, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalArrays", - "loc": "2:18-43" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_equalArrays", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n" - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "index": 703, - "index2": 691, - "size": 632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_SetCache", - "loc": "1:15-37" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_SetCache", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n" - }, - { - "id": 115, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cacheHas.js", - "name": "./node_modules/lodash/_cacheHas.js", - "index": 707, - "index2": 693, - "size": 337, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_cacheHas", - "loc": "3:15-37" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_cacheHas", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n" - }, - { - "id": 116, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isStrictComparable.js", - "name": "./node_modules/lodash/_isStrictComparable.js", - "index": 713, - "index2": 702, - "size": 414, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 235, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "module": "./node_modules/lodash/_getMatchData.js", - "moduleName": "./node_modules/lodash/_getMatchData.js", - "type": "cjs require", - "userRequest": "./_isStrictComparable", - "loc": "1:25-57" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_isStrictComparable", - "loc": "5:25-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n" - }, - { - "id": 117, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_matchesStrictComparable.js", - "name": "./node_modules/lodash/_matchesStrictComparable.js", - "index": 714, - "index2": 704, - "size": 574, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_matchesStrictComparable", - "loc": "3:30-67" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_matchesStrictComparable", - "loc": "6:30-67" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n" - }, - { - "id": 118, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "name": "./node_modules/lodash/toString.js", - "index": 724, - "index2": 713, - "size": 580, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "issuerId": 146, - "issuerName": "./node_modules/lodash/uniqueId.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 78, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./toString", - "loc": "4:15-36" - }, - { - "moduleId": 146, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "module": "./node_modules/lodash/uniqueId.js", - "moduleName": "./node_modules/lodash/uniqueId.js", - "type": "cjs require", - "userRequest": "./toString", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n" - }, - { - "id": 119, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "name": "./node_modules/lodash/hasIn.js", - "index": 728, - "index2": 720, - "size": 753, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "issuerId": 302, - "issuerName": "./node_modules/lodash/_basePick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./hasIn", - "loc": "3:12-30" - }, - { - "moduleId": 302, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "module": "./node_modules/lodash/_basePick.js", - "moduleName": "./node_modules/lodash/_basePick.js", - "type": "cjs require", - "userRequest": "./hasIn", - "loc": "2:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n" - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "index": 730, - "index2": 719, - "size": 1085, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "issuerId": 85, - "issuerName": "./node_modules/lodash/has.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 85, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "module": "./node_modules/lodash/has.js", - "moduleName": "./node_modules/lodash/has.js", - "type": "cjs require", - "userRequest": "./_hasPath", - "loc": "2:14-35" - }, - { - "moduleId": 119, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "module": "./node_modules/lodash/hasIn.js", - "moduleName": "./node_modules/lodash/hasIn.js", - "type": "cjs require", - "userRequest": "./_hasPath", - "loc": "2:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n" - }, - { - "id": 121, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseProperty.js", - "name": "./node_modules/lodash/_baseProperty.js", - "index": 732, - "index2": 722, - "size": 360, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "issuerId": 243, - "issuerName": "./node_modules/lodash/property.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 66, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_baseProperty", - "loc": "1:19-45" - }, - { - "moduleId": 252, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_asciiSize.js", - "module": "./node_modules/lodash/_asciiSize.js", - "moduleName": "./node_modules/lodash/_asciiSize.js", - "type": "cjs require", - "userRequest": "./_baseProperty", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n" - }, - { - "id": 122, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isUndefined.js", - "name": "./node_modules/lodash/isUndefined.js", - "index": 737, - "index2": 730, - "size": 416, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isUndefined", - "loc": "18:19-48" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isUndefined", - "loc": "16:19-48" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n" - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "index": 738, - "index2": 732, - "size": 1621, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/map", - "loc": "20:11-32" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/map", - "loc": "18:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n" - }, - { - "id": 124, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMap.js", - "name": "./node_modules/lodash/_baseMap.js", - "index": 739, - "index2": 731, - "size": 668, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "issuerId": 123, - "issuerName": "./node_modules/lodash/map.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_baseMap", - "loc": "3:14-35" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseMap", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n" - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "index": 740, - "index2": 735, - "size": 1806, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/reduce", - "loc": "29:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/reduce", - "loc": "19:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n" - }, - { - "id": 126, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "name": "./node_modules/lodash/_overRest.js", - "index": 754, - "index2": 746, - "size": 1096, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "issuerId": 60, - "issuerName": "./node_modules/lodash/_baseRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 103, - "building": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./_overRest", - "loc": "2:15-37" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./_overRest", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n" - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "index": 756, - "index2": 749, - "size": 392, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "issuerId": 60, - "issuerName": "./node_modules/lodash/_baseRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 103, - "building": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./_setToString", - "loc": "3:18-43" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./_setToString", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n" - }, - { - "id": 128, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFindIndex.js", - "name": "./node_modules/lodash/_baseFindIndex.js", - "index": 762, - "index2": 751, - "size": 766, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "issuerId": 286, - "issuerName": "./node_modules/lodash/findIndex.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 55, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_baseFindIndex", - "loc": "1:20-47" - }, - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./_baseFindIndex", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n" - }, - { - "id": 129, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLikeObject.js", - "name": "./node_modules/lodash/isArrayLikeObject.js", - "index": 768, - "index2": 760, - "size": 742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "issuerId": 256, - "issuerName": "./node_modules/lodash/union.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./isArrayLikeObject", - "loc": "4:24-54" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArrayLikeObject", - "loc": "8:24-54" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n" - }, - { - "id": 130, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "name": "./node_modules/lodash/values.js", - "index": 769, - "index2": 763, - "size": 733, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/values", - "loc": "32:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/values", - "loc": "23:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n" - }, - { - "id": 131, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "name": "./node_modules/graphlib/lib/alg/dijkstra.js", - "index": 775, - "index2": 771, - "size": 1357, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./dijkstra", - "loc": "3:12-33" - }, - { - "moduleId": 274, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "type": "cjs require", - "userRequest": "./dijkstra", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n" - }, - { - "id": 132, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/data/priority-queue.js", - "name": "./node_modules/graphlib/lib/data/priority-queue.js", - "index": 776, - "index2": 770, - "size": 4150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "issuerId": 280, - "issuerName": "./node_modules/graphlib/lib/alg/prim.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 280, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "name": "./node_modules/graphlib/lib/alg/prim.js", - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 69, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 131, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra.js", - "type": "cjs require", - "userRequest": "../data/priority-queue", - "loc": "2:20-53" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../data/priority-queue", - "loc": "3:20-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n" - }, - { - "id": 133, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/tarjan.js", - "name": "./node_modules/graphlib/lib/alg/tarjan.js", - "index": 779, - "index2": 773, - "size": 962, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./tarjan", - "loc": "11:10-29" - }, - { - "moduleId": 275, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "module": "./node_modules/graphlib/lib/alg/find-cycles.js", - "moduleName": "./node_modules/graphlib/lib/alg/find-cycles.js", - "type": "cjs require", - "userRequest": "./tarjan", - "loc": "2:13-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n" - }, - { - "id": 134, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/topsort.js", - "name": "./node_modules/graphlib/lib/alg/topsort.js", - "index": 782, - "index2": 776, - "size": 715, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./topsort", - "loc": "12:11-31" - }, - { - "moduleId": 277, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/is-acyclic.js", - "module": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "moduleName": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "type": "cjs require", - "userRequest": "./topsort", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing" - }, - { - "id": 135, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dfs.js", - "name": "./node_modules/graphlib/lib/alg/dfs.js", - "index": 784, - "index2": 778, - "size": 1078, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "issuerId": 279, - "issuerName": "./node_modules/graphlib/lib/alg/preorder.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 279, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "name": "./node_modules/graphlib/lib/alg/preorder.js", - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 63, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 278, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/postorder.js", - "module": "./node_modules/graphlib/lib/alg/postorder.js", - "moduleName": "./node_modules/graphlib/lib/alg/postorder.js", - "type": "cjs require", - "userRequest": "./dfs", - "loc": "1:10-26" - }, - { - "moduleId": 279, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "module": "./node_modules/graphlib/lib/alg/preorder.js", - "moduleName": "./node_modules/graphlib/lib/alg/preorder.js", - "type": "cjs require", - "userRequest": "./dfs", - "loc": "1:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n" - }, - { - "id": 136, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/dagre.js", - "name": "./node_modules/dagre-d3/lib/dagre.js", - "index": 789, - "index2": 859, - "size": 232, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/dagre", - "loc": "25:9-31" - }, - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./dagre", - "loc": "3:13-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n" - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "index": 795, - "index2": 788, - "size": 1754, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/defaults", - "loc": "10:16-42" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/defaults", - "loc": "8:16-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n" - }, - { - "id": 138, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "name": "./node_modules/lodash/toFinite.js", - "index": 801, - "index2": 791, - "size": 868, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "issuerId": 306, - "issuerName": "./node_modules/lodash/_createRange.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 81, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 287, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toInteger.js", - "module": "./node_modules/lodash/toInteger.js", - "moduleName": "./node_modules/lodash/toInteger.js", - "type": "cjs require", - "userRequest": "./toFinite", - "loc": "1:15-36" - }, - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./toFinite", - "loc": "3:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n" - }, - { - "id": 139, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/flatten.js", - "name": "./node_modules/lodash/flatten.js", - "index": 803, - "index2": 795, - "size": 489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/flatten", - "loc": "14:15-40" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./flatten", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n" - }, - { - "id": 140, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "name": "./node_modules/lodash/_assignMergeValue.js", - "index": 812, - "index2": 802, - "size": 582, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_assignMergeValue", - "loc": "2:23-53" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_assignMergeValue", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n" - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "index": 814, - "index2": 803, - "size": 1650, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isPlainObject", - "loc": "11:21-52" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isPlainObject", - "loc": "12:20-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n" - }, - { - "id": 142, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_safeGet.js", - "name": "./node_modules/lodash/_safeGet.js", - "index": 815, - "index2": 804, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_safeGet", - "loc": "7:14-35" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_safeGet", - "loc": "14:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n" - }, - { - "id": 143, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseLt.js", - "name": "./node_modules/lodash/_baseLt.js", - "index": 819, - "index2": 810, - "size": 354, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "issuerId": 300, - "issuerName": "./node_modules/lodash/minBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 75, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./_baseLt", - "loc": "2:13-33" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseLt", - "loc": "3:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n" - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "index": 822, - "index2": 818, - "size": 629, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/pick", - "loc": "27:12-34" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/pick", - "loc": "12:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n" - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "index": 827, - "index2": 821, - "size": 1151, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/range", - "loc": "28:13-36" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/range", - "loc": "14:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n" - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "index": 835, - "index2": 827, - "size": 562, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/uniqueId", - "loc": "31:16-42" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/uniqueId", - "loc": "15:16-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n" - }, - { - "id": 147, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "name": "./node_modules/dagre/lib/rank/feasible-tree.js", - "index": 845, - "index2": 837, - "size": 2218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./feasible-tree", - "loc": "5:19-45" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./feasible-tree", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n" - }, - { - "id": 148, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-node.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-node.js", - "index": 865, - "index2": 860, - "size": 105, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "issuerId": 338, - "issuerName": "./node_modules/dagre-d3/lib/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-node", - "loc": "2:8-35" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-node", - "loc": "4:20-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n" - }, - { - "id": 149, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "index": 866, - "index2": 862, - "size": 185, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-circle", - "loc": "3:10-39" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-circle", - "loc": "5:22-61" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n" - }, - { - "id": 150, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "index": 868, - "index2": 864, - "size": 1596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-polygon", - "loc": "5:11-41" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-polygon", - "loc": "6:23-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n" - }, - { - "id": 151, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-rect.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-rect.js", - "index": 870, - "index2": 865, - "size": 710, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "issuerId": 338, - "issuerName": "./node_modules/dagre-d3/lib/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-rect", - "loc": "6:8-35" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-rect", - "loc": "3:20-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n" - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "index": 524, - "index2": 526, - "size": 2197, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "scope-css", - "loc": "16:0-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "scope-css", - "loc": "292:21-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "'use strict'\r\n\r\nvar slugify = require('slugify')\r\nvar escaper = require('escaper')\r\nvar stripComments = require('strip-css-comments')\r\n\r\nmodule.exports = scope\r\nscope.replace = replace\r\n\r\nfunction scope (css, parent, o) {\r\n\tif (!css) return css\r\n\r\n\tif (!parent) return css\r\n\r\n\tif (typeof o === 'string') o = {keyframes: o}\r\n\tif (!o) o = {keyframes: false}\r\n\r\n\tcss = replace(css, parent + ' $1$2')\r\n\r\n\t//regexp.escape\r\n\tvar parentRe = parent.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&')\r\n\r\n\t//replace self-selectors\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*\\\\1(?=[\\\\s\\\\r\\\\n,{])', 'g'), '$1')\r\n\r\n\t//replace `:host` with parent\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*:host', 'g'), '$1')\r\n\r\n\t//revoke wrongly replaced @ statements, like @supports, @import, @media etc.\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*@', 'g'), '@')\r\n\r\n\t//revoke wrongly replaced :root blocks\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*:root', 'g'), ':root')\r\n\r\n\t//animations: prefix animation anmes\r\n\tvar animations = [],\r\n\t animationNameRe = /@keyframes\\s+([a-zA-Z0-9_-]+)\\s*{/g,\r\n\t match\r\n\twhile ((match = animationNameRe.exec(css)) !== null) {\r\n\t\tif (animations.indexOf(match[1]) < 0)\r\n\t\t\tanimations.push(match[1])\r\n\t}\r\n\r\n\tvar slug = slugify(parent)\r\n\r\n\tanimations.forEach(function (name) {\r\n\t\tvar newName = (o.keyframes === true ? slug + '-' : typeof o.keyframes === 'string' ? o.keyframes : '') + name\r\n\t\tcss = css.replace(new RegExp('(@keyframes\\\\s+)' + name + '(\\\\s*{)', 'g'),\r\n\t\t\t\t '$1' + newName + '$2')\r\n\t\tcss = css.replace(new RegExp('(animation(?:-name)?\\\\s*:[^;]*\\\\s*)' + name + '([\\\\s;}])', 'g'),\r\n\t\t\t\t '$1' + newName + '$2')\r\n\t})\r\n \t//animation: revoke wrongly replaced keyframes\r\n\tcss = css.replace(new RegExp('(' + parentRe + ' )(\\\\s*(?:to|from|[+-]?(?:(?:\\\\.\\\\d+)|(?:\\\\d+(?:\\\\.\\\\d*)?))%))(?=[\\\\s\\\\r\\\\n,{])', 'g'), '$2')\r\n\r\n\treturn css\r\n}\r\n\r\nfunction replace (css, replacer) {\r\n\tvar arr = []\r\n\r\n\tcss = stripComments(css)\r\n\r\n\t// escape strings etc.\r\n\tcss = escaper.replace(css, true, arr)\r\n\r\n\tcss = css.replace(/([^\\r\\n,{}]+)(,(?=[^}]*{)|\\s*{)/g, replacer)\r\n\r\n\t// insert comments, strings etc. back\r\n\tcss = escaper.paste(css, arr)\r\n\r\n\treturn css\r\n}\r\n\r\n" - }, - { - "id": 153, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-node.js", - "name": "./src/dagre-wrapper/intersect/intersect-node.js", - "index": 897, - "index2": 891, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-node.js", - "loc": "4:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./intersect-node.js", - "loc": "10:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}" - }, - { - "id": 154, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/slugify/slugify.js", - "name": "./node_modules/slugify/slugify.js", - "index": 525, - "index2": 522, - "size": 6427, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "slugify", - "loc": "3:14-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "\n;(function (name, root, factory) {\n if (typeof exports === 'object') {\n module.exports = factory()\n module.exports['default'] = factory()\n }\n /* istanbul ignore next */\n else if (typeof define === 'function' && define.amd) {\n define(factory)\n }\n else {\n root[name] = factory()\n }\n}('slugify', this, function () {\n var charMap = JSON.parse('{\"$\":\"dollar\",\"%\":\"percent\",\"&\":\"and\",\"<\":\"less\",\">\":\"greater\",\"|\":\"or\",\"¢\":\"cent\",\"£\":\"pound\",\"¤\":\"currency\",\"¥\":\"yen\",\"©\":\"(c)\",\"ª\":\"a\",\"®\":\"(r)\",\"º\":\"o\",\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"Æ\":\"AE\",\"Ç\":\"C\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"Ð\":\"D\",\"Ñ\":\"N\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"Ý\":\"Y\",\"Þ\":\"TH\",\"ß\":\"ss\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"æ\":\"ae\",\"ç\":\"c\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"ð\":\"d\",\"ñ\":\"n\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"ý\":\"y\",\"þ\":\"th\",\"ÿ\":\"y\",\"Ā\":\"A\",\"ā\":\"a\",\"Ă\":\"A\",\"ă\":\"a\",\"Ą\":\"A\",\"ą\":\"a\",\"Ć\":\"C\",\"ć\":\"c\",\"Č\":\"C\",\"č\":\"c\",\"Ď\":\"D\",\"ď\":\"d\",\"Đ\":\"DJ\",\"đ\":\"dj\",\"Ē\":\"E\",\"ē\":\"e\",\"Ė\":\"E\",\"ė\":\"e\",\"Ę\":\"e\",\"ę\":\"e\",\"Ě\":\"E\",\"ě\":\"e\",\"Ğ\":\"G\",\"ğ\":\"g\",\"Ģ\":\"G\",\"ģ\":\"g\",\"Ĩ\":\"I\",\"ĩ\":\"i\",\"Ī\":\"i\",\"ī\":\"i\",\"Į\":\"I\",\"į\":\"i\",\"İ\":\"I\",\"ı\":\"i\",\"Ķ\":\"k\",\"ķ\":\"k\",\"Ļ\":\"L\",\"ļ\":\"l\",\"Ľ\":\"L\",\"ľ\":\"l\",\"Ł\":\"L\",\"ł\":\"l\",\"Ń\":\"N\",\"ń\":\"n\",\"Ņ\":\"N\",\"ņ\":\"n\",\"Ň\":\"N\",\"ň\":\"n\",\"Ő\":\"O\",\"ő\":\"o\",\"Œ\":\"OE\",\"œ\":\"oe\",\"Ŕ\":\"R\",\"ŕ\":\"r\",\"Ř\":\"R\",\"ř\":\"r\",\"Ś\":\"S\",\"ś\":\"s\",\"Ş\":\"S\",\"ş\":\"s\",\"Š\":\"S\",\"š\":\"s\",\"Ţ\":\"T\",\"ţ\":\"t\",\"Ť\":\"T\",\"ť\":\"t\",\"Ũ\":\"U\",\"ũ\":\"u\",\"Ū\":\"u\",\"ū\":\"u\",\"Ů\":\"U\",\"ů\":\"u\",\"Ű\":\"U\",\"ű\":\"u\",\"Ų\":\"U\",\"ų\":\"u\",\"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"f\",\"χ\":\"x\",\"ψ\":\"ps\",\"ω\":\"w\",\"ϊ\":\"i\",\"ϋ\":\"y\",\"ό\":\"o\",\"ύ\":\"y\",\"ώ\":\"w\",\"Ё\":\"Yo\",\"Ђ\":\"DJ\",\"Є\":\"Ye\",\"І\":\"I\",\"Ї\":\"Yi\",\"Ј\":\"J\",\"Љ\":\"LJ\",\"Њ\":\"NJ\",\"Ћ\":\"C\",\"Џ\":\"DZ\",\"А\":\"A\",\"Б\":\"B\",\"В\":\"V\",\"Г\":\"G\",\"Д\":\"D\",\"Е\":\"E\",\"Ж\":\"Zh\",\"З\":\"Z\",\"И\":\"I\",\"Й\":\"J\",\"К\":\"K\",\"Л\":\"L\",\"М\":\"M\",\"Н\":\"N\",\"О\":\"O\",\"П\":\"P\",\"Р\":\"R\",\"С\":\"S\",\"Т\":\"T\",\"У\":\"U\",\"Ф\":\"F\",\"Х\":\"H\",\"Ц\":\"C\",\"Ч\":\"Ch\",\"Ш\":\"Sh\",\"Щ\":\"Sh\",\"Ъ\":\"U\",\"Ы\":\"Y\",\"Ь\":\"\",\"Э\":\"E\",\"Ю\":\"Yu\",\"Я\":\"Ya\",\"а\":\"a\",\"б\":\"b\",\"в\":\"v\",\"г\":\"g\",\"д\":\"d\",\"е\":\"e\",\"ж\":\"zh\",\"з\":\"z\",\"и\":\"i\",\"й\":\"j\",\"к\":\"k\",\"л\":\"l\",\"м\":\"m\",\"н\":\"n\",\"о\":\"o\",\"п\":\"p\",\"р\":\"r\",\"с\":\"s\",\"т\":\"t\",\"у\":\"u\",\"ф\":\"f\",\"х\":\"h\",\"ц\":\"c\",\"ч\":\"ch\",\"ш\":\"sh\",\"щ\":\"sh\",\"ъ\":\"u\",\"ы\":\"y\",\"ь\":\"\",\"э\":\"e\",\"ю\":\"yu\",\"я\":\"ya\",\"ё\":\"yo\",\"ђ\":\"dj\",\"є\":\"ye\",\"і\":\"i\",\"ї\":\"yi\",\"ј\":\"j\",\"љ\":\"lj\",\"њ\":\"nj\",\"ћ\":\"c\",\"ѝ\":\"u\",\"џ\":\"dz\",\"Ґ\":\"G\",\"ґ\":\"g\",\"Ғ\":\"GH\",\"ғ\":\"gh\",\"Қ\":\"KH\",\"қ\":\"kh\",\"Ң\":\"NG\",\"ң\":\"ng\",\"Ү\":\"UE\",\"ү\":\"ue\",\"Ұ\":\"U\",\"ұ\":\"u\",\"Һ\":\"H\",\"һ\":\"h\",\"Ә\":\"AE\",\"ә\":\"ae\",\"Ө\":\"OE\",\"ө\":\"oe\",\"฿\":\"baht\",\"ა\":\"a\",\"ბ\":\"b\",\"გ\":\"g\",\"დ\":\"d\",\"ე\":\"e\",\"ვ\":\"v\",\"ზ\":\"z\",\"თ\":\"t\",\"ი\":\"i\",\"კ\":\"k\",\"ლ\":\"l\",\"მ\":\"m\",\"ნ\":\"n\",\"ო\":\"o\",\"პ\":\"p\",\"ჟ\":\"zh\",\"რ\":\"r\",\"ს\":\"s\",\"ტ\":\"t\",\"უ\":\"u\",\"ფ\":\"f\",\"ქ\":\"k\",\"ღ\":\"gh\",\"ყ\":\"q\",\"შ\":\"sh\",\"ჩ\":\"ch\",\"ც\":\"ts\",\"ძ\":\"dz\",\"წ\":\"ts\",\"ჭ\":\"ch\",\"ხ\":\"kh\",\"ჯ\":\"j\",\"ჰ\":\"h\",\"Ẁ\":\"W\",\"ẁ\":\"w\",\"Ẃ\":\"W\",\"ẃ\":\"w\",\"Ẅ\":\"W\",\"ẅ\":\"w\",\"ẞ\":\"SS\",\"Ạ\":\"A\",\"ạ\":\"a\",\"Ả\":\"A\",\"ả\":\"a\",\"Ấ\":\"A\",\"ấ\":\"a\",\"Ầ\":\"A\",\"ầ\":\"a\",\"Ẩ\":\"A\",\"ẩ\":\"a\",\"Ẫ\":\"A\",\"ẫ\":\"a\",\"Ậ\":\"A\",\"ậ\":\"a\",\"Ắ\":\"A\",\"ắ\":\"a\",\"Ằ\":\"A\",\"ằ\":\"a\",\"Ẳ\":\"A\",\"ẳ\":\"a\",\"Ẵ\":\"A\",\"ẵ\":\"a\",\"Ặ\":\"A\",\"ặ\":\"a\",\"Ẹ\":\"E\",\"ẹ\":\"e\",\"Ẻ\":\"E\",\"ẻ\":\"e\",\"Ẽ\":\"E\",\"ẽ\":\"e\",\"Ế\":\"E\",\"ế\":\"e\",\"Ề\":\"E\",\"ề\":\"e\",\"Ể\":\"E\",\"ể\":\"e\",\"Ễ\":\"E\",\"ễ\":\"e\",\"Ệ\":\"E\",\"ệ\":\"e\",\"Ỉ\":\"I\",\"ỉ\":\"i\",\"Ị\":\"I\",\"ị\":\"i\",\"Ọ\":\"O\",\"ọ\":\"o\",\"Ỏ\":\"O\",\"ỏ\":\"o\",\"Ố\":\"O\",\"ố\":\"o\",\"Ồ\":\"O\",\"ồ\":\"o\",\"Ổ\":\"O\",\"ổ\":\"o\",\"Ỗ\":\"O\",\"ỗ\":\"o\",\"Ộ\":\"O\",\"ộ\":\"o\",\"Ớ\":\"O\",\"ớ\":\"o\",\"Ờ\":\"O\",\"ờ\":\"o\",\"Ở\":\"O\",\"ở\":\"o\",\"Ỡ\":\"O\",\"ỡ\":\"o\",\"Ợ\":\"O\",\"ợ\":\"o\",\"Ụ\":\"U\",\"ụ\":\"u\",\"Ủ\":\"U\",\"ủ\":\"u\",\"Ứ\":\"U\",\"ứ\":\"u\",\"Ừ\":\"U\",\"ừ\":\"u\",\"Ử\":\"U\",\"ử\":\"u\",\"Ữ\":\"U\",\"ữ\":\"u\",\"Ự\":\"U\",\"ự\":\"u\",\"Ỳ\":\"Y\",\"ỳ\":\"y\",\"Ỵ\":\"Y\",\"ỵ\":\"y\",\"Ỷ\":\"Y\",\"ỷ\":\"y\",\"Ỹ\":\"Y\",\"ỹ\":\"y\",\"‘\":\"\\'\",\"’\":\"\\'\",\"“\":\"\\\\\\\"\",\"”\":\"\\\\\\\"\",\"†\":\"+\",\"•\":\"*\",\"…\":\"...\",\"₠\":\"ecu\",\"₢\":\"cruzeiro\",\"₣\":\"french franc\",\"₤\":\"lira\",\"₥\":\"mill\",\"₦\":\"naira\",\"₧\":\"peseta\",\"₨\":\"rupee\",\"₩\":\"won\",\"₪\":\"new shequel\",\"₫\":\"dong\",\"€\":\"euro\",\"₭\":\"kip\",\"₮\":\"tugrik\",\"₯\":\"drachma\",\"₰\":\"penny\",\"₱\":\"peso\",\"₲\":\"guarani\",\"₳\":\"austral\",\"₴\":\"hryvnia\",\"₵\":\"cedi\",\"₸\":\"kazakhstani tenge\",\"₹\":\"indian rupee\",\"₽\":\"russian ruble\",\"₿\":\"bitcoin\",\"℠\":\"sm\",\"™\":\"tm\",\"∂\":\"d\",\"∆\":\"delta\",\"∑\":\"sum\",\"∞\":\"infinity\",\"♥\":\"love\",\"元\":\"yuan\",\"円\":\"yen\",\"﷼\":\"rial\"}')\n var locales = JSON.parse('{\"vi\":{\"Đ\":\"D\",\"đ\":\"d\"}}')\n\n function replace (string, options) {\n if (typeof string !== 'string') {\n throw new Error('slugify: string argument expected')\n }\n\n options = (typeof options === 'string')\n ? { replacement: options }\n : options || {}\n\n var locale = locales[options.locale] || {}\n\n var slug = string.split('')\n .reduce(function (result, ch) {\n return result + (locale[ch] || charMap[ch] || ch)\n // allowed\n .replace(options.remove || /[^\\w\\s$*_+~.()'\"!\\-:@]/g, '')\n }, '')\n // trim leading/trailing spaces\n .trim()\n // convert spaces\n .replace(/[-\\s]+/g, options.replacement || '-')\n\n return options.lower ? slug.toLowerCase() : slug\n }\n\n replace.extend = function (customMap) {\n for (var key in customMap) {\n charMap[key] = customMap[key]\n }\n }\n\n return replace\n}))\n" - }, - { - "id": 155, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/escaper/dist/escaper.js", - "name": "./node_modules/escaper/dist/escaper.js", - "index": 526, - "index2": 523, - "size": 9818, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "escaper", - "loc": "4:14-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/*!\n * Escaper v2.5.3\n * https://github.com/kobezzza/Escaper\n *\n * Released under the MIT license\n * https://github.com/kobezzza/Escaper/blob/master/LICENSE\n *\n * Date: Tue, 23 Jan 2018 15:58:45 GMT\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define('Escaper', ['exports'], factory) :\n\t(factory((global.Escaper = {})));\n}(this, (function (exports) { 'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar Escaper = void 0;\nvar escaper = Escaper = {\n\tVERSION: [2, 5, 3],\n\tcontent: [],\n\tcache: {},\n\tsnakeskinRgxp: null,\n\tsymbols: null,\n\treplace: replace,\n\tpaste: paste\n};\n\nvar stringLiterals = {\n\t'\"': true,\n\t'\\'': true,\n\t'`': true\n};\n\nvar literals = {\n\t'/': true\n};\n\nfor (var key in stringLiterals) {\n\tif (!stringLiterals.hasOwnProperty(key)) {\n\t\tbreak;\n\t}\n\n\tliterals[key] = true;\n}\n\nvar singleComments = {\n\t'//': true,\n\t'//*': true,\n\t'//!': true,\n\t'//#': true,\n\t'//@': true,\n\t'//$': true\n};\n\nvar multComments = {\n\t'/*': true,\n\t'/**': true,\n\t'/*!': true,\n\t'/*#': true,\n\t'/*@': true,\n\t'/*$': true\n};\n\nvar keyArr = [];\nvar finalMap = {};\n\nfor (var _key in literals) {\n\tif (!literals.hasOwnProperty(_key)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key);\n\tfinalMap[_key] = true;\n}\n\nfor (var _key2 in singleComments) {\n\tif (!singleComments.hasOwnProperty(_key2)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key2);\n\tfinalMap[_key2] = true;\n}\n\nfor (var _key3 in multComments) {\n\tif (!multComments.hasOwnProperty(_key3)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key3);\n\tfinalMap[_key3] = true;\n}\n\nvar rgxpFlags = [];\nvar rgxpFlagsMap = {\n\t'g': true,\n\t'm': true,\n\t'i': true,\n\t'y': true,\n\t'u': true\n};\n\nfor (var _key4 in rgxpFlagsMap) {\n\tif (!rgxpFlagsMap.hasOwnProperty(_key4)) {\n\t\tbreak;\n\t}\n\n\trgxpFlags.push(_key4);\n}\n\nvar escapeEndMap = {\n\t'-': true,\n\t'+': true,\n\t'*': true,\n\t'%': true,\n\t'~': true,\n\t'>': true,\n\t'<': true,\n\t'^': true,\n\t',': true,\n\t';': true,\n\t'=': true,\n\t'|': true,\n\t'&': true,\n\t'!': true,\n\t'?': true,\n\t':': true,\n\t'(': true,\n\t'{': true,\n\t'[': true\n};\n\nvar escapeEndWordMap = {\n\t'return': true,\n\t'yield': true,\n\t'await': true,\n\t'typeof': true,\n\t'void': true,\n\t'instanceof': true,\n\t'delete': true,\n\t'in': true,\n\t'new': true,\n\t'of': true\n};\n\n/**\n * @param {!Object} obj\n * @param {!Object} p\n * @param {(boolean|number)} val\n */\nfunction mix(obj, p, val) {\n\tfor (var _key5 in obj) {\n\t\tif (!obj.hasOwnProperty(_key5)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (_key5 in p === false) {\n\t\t\tp[_key5] = val;\n\t\t}\n\t}\n}\n\nvar symbols = void 0;\nvar snakeskinRgxp = void 0;\n\nvar uSRgxp = /[^\\s/]/;\nvar wRgxp = /[a-z]/;\nvar sRgxp = /\\s/;\nvar nRgxp = /[\\r\\n]/;\nvar posRgxp = /\\${pos}/g;\n\nvar objMap = {\n\t'object': true,\n\t'function': true\n};\n\n/**\n * Replaces all found blocks ' ... ', \" ... \", ` ... `, / ... /, // ..., /* ... *\\/ to\n * __ESCAPER_QUOT__number_ in a string and returns a new string\n *\n * @param {string} str - source string\n * @param {(Object|boolean)=} [opt_withCommentsOrParams=false] - parameters:\n *\n * (if a parameter value is set to -1, then all found matches will be removed from the final string,\n * or if the value will be set to true/false they will be included/excluded)\n *\n * *) @label - template for replacement, e.g. __ESCAPER_QUOT__${pos}_\n * *) @all - replaces all found matches\n * *) @comments - replaces all kinds of comments\n * *) @strings - replaces all kinds of string literals\n * *) @literals - replaces all kinds of string literals and regular expressions\n * *) `\n * *) '\n * *) \"\n * *) /\n * *) //\n * *) //*\n * *) //!\n * *) //#\n * *) //@\n * *) //$\n * *) /*\n * *) /**\n * *) /*!\n * *) /*#\n * *) /*@\n * *) /*$\n *\n * OR if the value is boolean, then will be replaced all found comments (true) / literals (false)\n *\n * @param {Array=} [opt_content=Escaper.content] - array for matches\n * @param {?boolean=} [opt_snakeskin] - private parameter for using with Snakeskin\n * @return {string}\n */\nfunction replace(str, opt_withCommentsOrParams, opt_content, opt_snakeskin) {\n\tsymbols = symbols || Escaper.symbols || 'a-z';\n\tsnakeskinRgxp = snakeskinRgxp || Escaper.snakeskinRgxp || new RegExp('[!$' + symbols + '_]', 'i');\n\n\tvar _Escaper = Escaper,\n\t cache = _Escaper.cache,\n\t content = _Escaper.content;\n\n\n\tvar isObj = Boolean(opt_withCommentsOrParams && objMap[typeof opt_withCommentsOrParams === 'undefined' ? 'undefined' : _typeof(opt_withCommentsOrParams)]);\n\n\tvar p = isObj ? Object(opt_withCommentsOrParams) : {};\n\n\tfunction mark(pos) {\n\t\tif (p['@label']) {\n\t\t\treturn p['@label'].replace(posRgxp, pos);\n\t\t}\n\n\t\treturn '__ESCAPER_QUOT__' + pos + '_';\n\t}\n\n\tvar withComments = false;\n\tif (typeof opt_withCommentsOrParams === 'boolean') {\n\t\twithComments = Boolean(opt_withCommentsOrParams);\n\t}\n\n\tif ('@comments' in p) {\n\t\tmix(multComments, p, p['@comments']);\n\t\tmix(singleComments, p, p['@comments']);\n\t\tdelete p['@comments'];\n\t}\n\n\tif ('@strings' in p) {\n\t\tmix(stringLiterals, p, p['@strings']);\n\t\tdelete p['@strings'];\n\t}\n\n\tif ('@literals' in p) {\n\t\tmix(literals, p, p['@literals']);\n\t\tdelete p['@literals'];\n\t}\n\n\tif ('@all' in p) {\n\t\tmix(finalMap, p, p['@all']);\n\t\tdelete p['@all'];\n\t}\n\n\tvar cacheKey = '';\n\tfor (var i = -1; ++i < keyArr.length;) {\n\t\tvar el = keyArr[i];\n\n\t\tif (multComments[el] || singleComments[el]) {\n\t\t\tp[el] = withComments || p[el];\n\t\t} else {\n\t\t\tp[el] = p[el] || !isObj;\n\t\t}\n\n\t\tcacheKey += p[el] + ',';\n\t}\n\n\tvar initStr = str,\n\t stack = opt_content || content;\n\n\tif (stack === content && cache[cacheKey] && cache[cacheKey][initStr]) {\n\t\treturn cache[cacheKey][initStr];\n\t}\n\n\tvar begin = false,\n\t end = true;\n\n\tvar escape = false,\n\t comment = false;\n\n\tvar selectionStart = 0,\n\t block = false;\n\n\tvar templateVar = 0,\n\t filterStart = false;\n\n\tvar cut = void 0,\n\t label = void 0;\n\n\tvar part = '',\n\t rPart = '';\n\n\tfor (var _i = -1; ++_i < str.length;) {\n\t\tvar _el = str.charAt(_i);\n\n\t\tvar next = str.charAt(_i + 1),\n\t\t word = str.substr(_i, 2),\n\t\t extWord = str.substr(_i, 3);\n\n\t\tif (!comment) {\n\t\t\tif (!begin) {\n\t\t\t\tif (_el === '/') {\n\t\t\t\t\tif (singleComments[word] || multComments[word]) {\n\t\t\t\t\t\tif (singleComments[extWord] || multComments[extWord]) {\n\t\t\t\t\t\t\tcomment = extWord;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcomment = word;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (comment) {\n\t\t\t\t\t\tselectionStart = _i;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (escapeEndMap[_el] || escapeEndWordMap[rPart]) {\n\t\t\t\t\tend = true;\n\t\t\t\t\trPart = '';\n\t\t\t\t} else if (uSRgxp.test(_el)) {\n\t\t\t\t\tend = false;\n\t\t\t\t}\n\n\t\t\t\tif (wRgxp.test(_el)) {\n\t\t\t\t\tpart += _el;\n\t\t\t\t} else {\n\t\t\t\t\trPart = part;\n\t\t\t\t\tpart = '';\n\t\t\t\t}\n\n\t\t\t\tvar skip = false;\n\t\t\t\tif (opt_snakeskin) {\n\t\t\t\t\tif (_el === '|' && snakeskinRgxp.test(next)) {\n\t\t\t\t\t\tfilterStart = true;\n\t\t\t\t\t\tend = false;\n\t\t\t\t\t\tskip = true;\n\t\t\t\t\t} else if (filterStart && sRgxp.test(_el)) {\n\t\t\t\t\t\tfilterStart = false;\n\t\t\t\t\t\tend = true;\n\t\t\t\t\t\tskip = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!skip) {\n\t\t\t\t\tif (escapeEndMap[_el]) {\n\t\t\t\t\t\tend = true;\n\t\t\t\t\t} else if (uSRgxp.test(_el)) {\n\t\t\t\t\t\tend = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// [] inside RegExp\n\t\t\tif (begin === '/' && !escape) {\n\t\t\t\tif (_el === '[') {\n\t\t\t\t\tblock = true;\n\t\t\t\t} else if (_el === ']') {\n\t\t\t\t\tblock = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!begin && templateVar) {\n\t\t\t\tif (_el === '}') {\n\t\t\t\t\ttemplateVar--;\n\t\t\t\t} else if (_el === '{') {\n\t\t\t\t\ttemplateVar++;\n\t\t\t\t}\n\n\t\t\t\tif (!templateVar) {\n\t\t\t\t\t_el = '`';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (begin === '`' && !escape && word === '${') {\n\t\t\t\t_el = '`';\n\t\t\t\t_i++;\n\t\t\t\ttemplateVar++;\n\t\t\t}\n\n\t\t\tif (finalMap[_el] && (_el !== '/' || end) && !begin) {\n\t\t\t\tbegin = _el;\n\t\t\t\tselectionStart = _i;\n\t\t\t} else if (begin && (_el === '\\\\' || escape)) {\n\t\t\t\tescape = !escape;\n\t\t\t} else if (finalMap[_el] && begin === _el && !escape && (begin !== '/' || !block)) {\n\t\t\t\tif (_el === '/') {\n\t\t\t\t\tfor (var j = -1; ++j < rgxpFlags.length;) {\n\t\t\t\t\t\tif (rgxpFlagsMap[str.charAt(_i + 1)]) {\n\t\t\t\t\t\t\t_i++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbegin = false;\n\t\t\t\tend = false;\n\n\t\t\t\tif (p[_el]) {\n\t\t\t\t\tcut = str.substring(selectionStart, _i + 1);\n\n\t\t\t\t\tif (p[_el] === -1) {\n\t\t\t\t\t\tlabel = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabel = mark(stack.length);\n\t\t\t\t\t\tstack.push(cut);\n\t\t\t\t\t}\n\n\t\t\t\t\tstr = str.substring(0, selectionStart) + label + str.substring(_i + 1);\n\t\t\t\t\t_i += label.length - cut.length;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (nRgxp.test(next) && singleComments[comment] || multComments[_el + str.charAt(_i - 1)] && _i - selectionStart > 2 && multComments[comment]) {\n\t\t\tif (p[comment]) {\n\t\t\t\tcut = str.substring(selectionStart, _i + 1);\n\n\t\t\t\tif (p[comment] === -1) {\n\t\t\t\t\tlabel = '';\n\t\t\t\t} else {\n\t\t\t\t\tlabel = mark(stack.length);\n\t\t\t\t\tstack.push(cut);\n\t\t\t\t}\n\n\t\t\t\tstr = str.substring(0, selectionStart) + label + str.substring(_i + 1);\n\t\t\t\t_i += label.length - cut.length;\n\t\t\t}\n\n\t\t\tcomment = false;\n\t\t}\n\t}\n\n\tif (stack === content) {\n\t\tcache[cacheKey] = cache[cacheKey] || {};\n\t\tcache[cacheKey][initStr] = str;\n\t}\n\n\treturn str;\n}\n\nvar pasteRgxp = /__ESCAPER_QUOT__(\\d+)_/g;\n\n/**\n * Replaces all found blocks __ESCAPER_QUOT__number_ to real content in a string\n * and returns a new string\n *\n * @param {string} str - source string\n * @param {Array=} [opt_content=Escaper.content] - array of matches\n * @param {RegExp=} [opt_rgxp] - RegExp for searching, e.g. /__ESCAPER_QUOT__(\\d+)_/g\n * @return {string}\n */\nfunction paste(str, opt_content, opt_rgxp) {\n\treturn str.replace(opt_rgxp || pasteRgxp, function (str, pos) {\n\t\treturn (opt_content || Escaper.content)[pos];\n\t});\n}\n\nexports['default'] = escaper;\nexports.replace = replace;\nexports.paste = paste;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n" - }, - { - "id": 156, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "name": "./node_modules/strip-css-comments/index.js", - "index": 527, - "index2": 525, - "size": 1789, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "strip-css-comments", - "loc": "5:20-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "'use strict';\nvar isRegExp = require('is-regexp');\n\nmodule.exports = function (str, opts) {\n\tstr = str.toString();\n\topts = opts || {};\n\n\tvar preserveFilter;\n\tvar comment = '';\n\tvar currentChar = '';\n\tvar insideString = false;\n\tvar preserveImportant = !(opts.preserve === false || opts.all === true);\n\tvar ret = '';\n\n\tif (typeof opts.preserve === 'function') {\n\t\tpreserveImportant = false;\n\t\tpreserveFilter = opts.preserve;\n\t} else if (isRegExp(opts.preserve)) {\n\t\tpreserveImportant = false;\n\t\tpreserveFilter = function (comment) {\n\t\t\treturn opts.preserve.test(comment);\n\t\t};\n\t}\n\n\tfor (var i = 0; i < str.length; i++) {\n\t\tcurrentChar = str[i];\n\n\t\tif (str[i - 1] !== '\\\\') {\n\t\t\tif (currentChar === '\"' || currentChar === '\\'') {\n\t\t\t\tif (insideString === currentChar) {\n\t\t\t\t\tinsideString = false;\n\t\t\t\t} else if (!insideString) {\n\t\t\t\t\tinsideString = currentChar;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// find beginning of /* type comment\n\t\tif (!insideString && currentChar === '/' && str[i + 1] === '*') {\n\t\t\t// ignore important comment when configured to preserve comments using important syntax: /*!\n\t\t\tif (!(preserveImportant && str[i + 2] === '!')) {\n\t\t\t\tvar j = i + 2;\n\n\t\t\t\t// iterate over comment\n\t\t\t\tfor (; j < str.length; j++) {\n\t\t\t\t\t// find end of comment\n\t\t\t\t\tif (str[j] === '*' && str[j + 1] === '/') {\n\t\t\t\t\t\tif (preserveFilter) {\n\t\t\t\t\t\t\t// evaluate comment text\n\t\t\t\t\t\t\tret = preserveFilter(comment) ? ret + ('/*' + comment + '*/') : ret;\n\t\t\t\t\t\t\tcomment = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// store comment text to be evaluated by the filter when the end of the comment is reached\n\t\t\t\t\tif (preserveFilter) {\n\t\t\t\t\t\tcomment += str[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// resume iteration over CSS string from the end of the comment\n\t\t\t\ti = j + 1;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tret += currentChar;\n\t}\n\n\treturn ret;\n};\n" - }, - { - "id": 157, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/is-regexp/index.js", - "name": "./node_modules/is-regexp/index.js", - "index": 528, - "index2": 524, - "size": 116, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "issuerId": 156, - "issuerName": "./node_modules/strip-css-comments/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 156, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "name": "./node_modules/strip-css-comments/index.js", - "profile": { - "factory": 1973, - "building": 98 - } - } - ], - "profile": { - "factory": 272, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 156, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "module": "./node_modules/strip-css-comments/index.js", - "moduleName": "./node_modules/strip-css-comments/index.js", - "type": "cjs require", - "userRequest": "is-regexp", - "loc": "2:15-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "'use strict';\nmodule.exports = function (re) {\n\treturn Object.prototype.toString.call(re) === '[object RegExp]';\n};\n" - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "index": 529, - "index2": 536, - "size": 256, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "cjs require context", - "userRequest": "./themes", - "loc": "59:22-75" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 159, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "index": 530, - "index2": 529, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./dark/index.scss", - "loc": "./dark/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 160, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "index": 531, - "index2": 528, - "size": 8104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "issuerId": 159, - "issuerName": "./src/themes/dark/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 159, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3947, - "dependencies": 10 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 159, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./src/themes/dark/index.scss", - "moduleName": "./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#d3d3d3}.edgePath .path{stroke:#d3d3d3;stroke-width:1.5px}.flowchart-link{stroke:#d3d3d3;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#474949;stroke:rgba(255,255,255,0.25);stroke-width:1px}.cluster text{fill:#F9FFFE}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#474949;border:1px solid rgba(255,255,255,0.25);border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#81B1DB;fill:#1f2020}text.actor>tspan{fill:#d3d3d3;stroke:none}.actor-line{stroke:#d3d3d3}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#d3d3d3}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#d3d3d3}#arrowhead path{fill:#d3d3d3;stroke:#d3d3d3}.sequenceNumber{fill:#000}#sequencenumber{fill:#d3d3d3}#crosshead path{fill:#d3d3d3;stroke:#d3d3d3}.messageText{fill:#d3d3d3;stroke:#d3d3d3}.labelBox{stroke:#81B1DB;fill:#1f2020}.labelText,.labelText>tspan{fill:#d3d3d3;stroke:none}.loopText,.loopText>tspan{fill:#d3d3d3;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#81B1DB;fill:#81B1DB}.note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.noteText,.noteText>tspan{fill:#1f2020;stroke:none}.activation0{fill:#474949;stroke:#81B1DB}.activation1{fill:#474949;stroke:#81B1DB}.activation2{fill:#474949;stroke:#81B1DB}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(255,255,255,0.3)}.section2{fill:#EAE8B9}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#F9FFFE}.sectionTitle1{fill:#F9FFFE}.sectionTitle2{fill:#F9FFFE}.sectionTitle3{fill:#F9FFFE}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#DB5757;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#323D47;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#323D47;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#323D47}.task0,.task1,.task2,.task3{fill:#1f2020;stroke:rgba(255,255,255,0.5)}.taskTextOutside0,.taskTextOutside2{fill:#d3d3d3}.taskTextOutside1,.taskTextOutside3{fill:#d3d3d3}.active0,.active1,.active2,.active3{fill:#81B1DB;stroke:rgba(255,255,255,0.5)}.activeText0,.activeText1,.activeText2,.activeText3{fill:#323D47 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#323D47 !important}.crit0,.crit1,.crit2,.crit3{stroke:#E83737;fill:#E83737;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#E83737;fill:#81B1DB;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#E83737;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#323D47 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#323D47 !important}.titleText{text-anchor:middle;font-size:18px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#81B1DB;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#1f2020;stroke:#81B1DB}g.classGroup line{stroke:#81B1DB;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.classLabel .label{fill:#81B1DB;font-size:10px}.relation{stroke:#81B1DB;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#compositionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#aggregationStart{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#aggregationEnd{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#dependencyStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#dependencyEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#1f2020;stroke:#81B1DB}g.stateGroup line{stroke:#81B1DB;stroke-width:1}.transition{stroke:#81B1DB;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#81B1DB}.statediagram-cluster rect{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#81B1DB}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:rgba(255,255,255,0.25);stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#a44141}.error-text{fill:#ddd;stroke:#ddd}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#d3d3d3}.marker.cross{stroke:#d3d3d3}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 161, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "index": 533, - "index2": 531, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./default/index.scss", - "loc": "./default/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 162, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "index": 534, - "index2": 530, - "size": 7841, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "issuerId": 161, - "issuerName": "./src/themes/default/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 161, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3955, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 161, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./src/themes/default/index.scss", - "moduleName": "./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#333;stroke-width:1.5px}.flowchart-link{stroke:#333;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#ccf;fill:#ECECFF}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#ccf;fill:#ECECFF}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}.note{stroke:#aa3;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(102,102,255,0.49)}.section2{fill:#fff400}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#8a90dd;stroke:#534fbc}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#bfc7ff;stroke:#534fbc}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#ECECFF;stroke:#9370db}g.classGroup line{stroke:#9370db;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.classLabel .label{fill:#9370db;font-size:10px}.relation{stroke:#9370db;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#ECECFF;stroke:#9370db}g.stateGroup line{stroke:#9370db;stroke-width:1}.transition{stroke:#9370db;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#aa3;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#9370db}.statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#9370db}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#333}.marker.cross{stroke:#333}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "index": 535, - "index2": 533, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./forest/index.scss", - "loc": "./forest/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 164, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "index": 536, - "index2": 532, - "size": 7858, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 163, - "issuerName": "./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 1, - "building": 3929 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 163, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./src/themes/forest/index.scss", - "moduleName": "./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#cde498;stroke:#13540c;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:green}.edgePath .path{stroke:green;stroke-width:1.5px}.flowchart-link{stroke:green;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#cdffb2;stroke:#6eaa49;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#cdffb2;border:1px solid #6eaa49;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#13540c;fill:#cde498}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#326932;fill:#cde498}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#326932;fill:#326932}.note{stroke:#6eaa49;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#6eaa49}.section2{fill:#6eaa49}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#487e3a;stroke:#13540c}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#cde498;stroke:#13540c}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#cde498;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#13540c;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#cde498;stroke:#13540c}g.classGroup line{stroke:#13540c;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.classLabel .label{fill:#13540c;font-size:10px}.relation{stroke:#13540c;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#compositionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#aggregationStart{fill:#cde498;stroke:#13540c;stroke-width:1}#aggregationEnd{fill:#cde498;stroke:#13540c;stroke-width:1}#dependencyStart{fill:#13540c;stroke:#13540c;stroke-width:1}#dependencyEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#cde498;stroke:#13540c}g.stateGroup line{stroke:#13540c;stroke-width:1}.transition{stroke:#13540c;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#6eaa49;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#13540c}.statediagram-cluster rect{fill:#cde498;stroke:#13540c;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#13540c}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#6eaa49;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:green}.marker.cross{stroke:green}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 165, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "index": 537, - "index2": 535, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./neutral/index.scss", - "loc": "./neutral/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 166, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "index": 538, - "index2": 534, - "size": 7696, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "issuerId": 165, - "issuerName": "./src/themes/neutral/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 165, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 1, - "building": 3982, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 165, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./src/themes/neutral/index.scss", - "moduleName": "./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#eee;stroke:#999;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#666;stroke-width:1.5px}.flowchart-link{stroke:#666;fill:none}.edgeLabel{background-color:#fff;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#eaf2fb;stroke:#26a;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#eaf2fb;border:1px solid #26a;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#999;fill:#eee}text.actor>tspan{fill:#333;stroke:none}.actor-line{stroke:#666}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#999;fill:#eee}.labelText,.labelText>tspan{fill:#333;stroke:none}.loopText,.loopText>tspan{fill:#333;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#999;fill:#999}.note{stroke:#770;fill:#ffa}.noteText,.noteText>tspan{fill:#333;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#80b3e6}.section2{fill:#80b3e6}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#e6e6e6;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#d42;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#333;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#333;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#26a;stroke:#1a4d80}.taskTextOutside0,.taskTextOutside2{fill:#333}.taskTextOutside1,.taskTextOutside3{fill:#333}.active0,.active1,.active2,.active3{fill:#eee;stroke:#1a4d80}.activeText0,.activeText1,.activeText2,.activeText3{fill:#333 !important}.done0,.done1,.done2,.done3{stroke:#666;fill:#bbb;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#333 !important}.crit0,.crit1,.crit2,.crit3{stroke:#b1361b;fill:#d42;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#b1361b;fill:#eee;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#b1361b;fill:#bbb;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#333 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#333 !important}.titleText{text-anchor:middle;font-size:18px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#999;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#eee;stroke:#999}g.classGroup line{stroke:#999;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.classLabel .label{fill:#999;font-size:10px}.relation{stroke:#999;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#999;stroke:#999;stroke-width:1}#compositionEnd{fill:#999;stroke:#999;stroke-width:1}#aggregationStart{fill:#eee;stroke:#999;stroke-width:1}#aggregationEnd{fill:#eee;stroke:#999;stroke-width:1}#dependencyStart{fill:#999;stroke:#999;stroke-width:1}#dependencyEnd{fill:#999;stroke:#999;stroke-width:1}#extensionStart{fill:#999;stroke:#999;stroke-width:1}#extensionEnd{fill:#999;stroke:#999;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#999;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#999;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#eee;stroke:#999}g.stateGroup line{stroke:#999;stroke-width:1}.transition{stroke:#999;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#770;fill:#ffa}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#999}.statediagram-cluster rect{fill:#eee;stroke:#999;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#999}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#ffa;stroke:#770;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#666}.marker.cross{stroke:#666}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 167, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "name": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "index": 544, - "index2": 540, - "size": 189, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "issuerId": 18, - "issuerName": "./node_modules/moment-mini/moment.min.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - } - ], - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "module": "./node_modules/moment-mini/moment.min.js", - "moduleName": "./node_modules/moment-mini/moment.min.js", - "type": "cjs require context", - "userRequest": "./locale", - "loc": "1:14248-14270" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 168, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "name": "./node_modules/graphlib/lib/index.js", - "index": 573, - "index2": 767, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib", - "loc": "31:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n" - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "index": 576, - "index2": 677, - "size": 1065, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/clone", - "loc": "8:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n" - }, - { - "id": 170, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheClear.js", - "name": "./node_modules/lodash/_listCacheClear.js", - "index": 580, - "index2": 569, - "size": 218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheClear", - "loc": "1:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n" - }, - { - "id": 171, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheDelete.js", - "name": "./node_modules/lodash/_listCacheDelete.js", - "index": 581, - "index2": 572, - "size": 775, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheDelete", - "loc": "2:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n" - }, - { - "id": 172, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheGet.js", - "name": "./node_modules/lodash/_listCacheGet.js", - "index": 584, - "index2": 573, - "size": 420, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheGet", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n" - }, - { - "id": 173, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheHas.js", - "name": "./node_modules/lodash/_listCacheHas.js", - "index": 585, - "index2": 574, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheHas", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n" - }, - { - "id": 174, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "name": "./node_modules/lodash/_listCacheSet.js", - "index": 586, - "index2": 575, - "size": 553, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheSet", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n" - }, - { - "id": 175, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackClear.js", - "name": "./node_modules/lodash/_stackClear.js", - "index": 587, - "index2": 577, - "size": 254, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackClear", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n" - }, - { - "id": 176, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackDelete.js", - "name": "./node_modules/lodash/_stackDelete.js", - "index": 588, - "index2": 578, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackDelete", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n" - }, - { - "id": 177, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackGet.js", - "name": "./node_modules/lodash/_stackGet.js", - "index": 589, - "index2": 579, - "size": 271, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackGet", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n" - }, - { - "id": 178, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackHas.js", - "name": "./node_modules/lodash/_stackHas.js", - "index": 590, - "index2": 580, - "size": 323, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackHas", - "loc": "5:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n" - }, - { - "id": 179, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "name": "./node_modules/lodash/_stackSet.js", - "index": 591, - "index2": 612, - "size": 853, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackSet", - "loc": "6:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n" - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "index": 594, - "index2": 593, - "size": 1417, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "issuerId": 27, - "issuerName": "./node_modules/lodash/_getNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - } - ], - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "module": "./node_modules/lodash/_getNative.js", - "moduleName": "./node_modules/lodash/_getNative.js", - "type": "cjs require", - "userRequest": "./_baseIsNative", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n" - }, - { - "id": 181, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/global.js", - "name": "(webpack)/buildin/global.js", - "index": 600, - "index2": 581, - "size": 472, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "issuerId": 92, - "issuerName": "./node_modules/lodash/_freeGlobal.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "profile": { - "factory": 76, - "building": 25 - } - }, - { - "id": 92, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "name": "./node_modules/lodash/_freeGlobal.js", - "profile": { - "factory": 57, - "building": 29 - } - } - ], - "profile": { - "factory": 20, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 92, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "module": "./node_modules/lodash/_freeGlobal.js", - "moduleName": "./node_modules/lodash/_freeGlobal.js", - "type": "cjs require", - "userRequest": "global", - "loc": "1:0-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n" - }, - { - "id": 182, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getRawTag.js", - "name": "./node_modules/lodash/_getRawTag.js", - "index": 601, - "index2": 585, - "size": 1139, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_getRawTag", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n" - }, - { - "id": 183, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_objectToString.js", - "name": "./node_modules/lodash/_objectToString.js", - "index": 602, - "index2": 586, - "size": 565, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_objectToString", - "loc": "3:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n" - }, - { - "id": 184, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "name": "./node_modules/lodash/_isMasked.js", - "index": 604, - "index2": 591, - "size": 564, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "issuerId": 180, - "issuerName": "./node_modules/lodash/_baseIsNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./_isMasked", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n" - }, - { - "id": 185, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_coreJsData.js", - "name": "./node_modules/lodash/_coreJsData.js", - "index": 605, - "index2": 590, - "size": 157, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "issuerId": 184, - "issuerName": "./node_modules/lodash/_isMasked.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - } - }, - { - "id": 184, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "name": "./node_modules/lodash/_isMasked.js", - "profile": { - "factory": 90, - "building": 22 - } - } - ], - "profile": { - "factory": 16, - "building": 6, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 184, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "module": "./node_modules/lodash/_isMasked.js", - "moduleName": "./node_modules/lodash/_isMasked.js", - "type": "cjs require", - "userRequest": "./_coreJsData", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n" - }, - { - "id": 186, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getValue.js", - "name": "./node_modules/lodash/_getValue.js", - "index": 607, - "index2": 594, - "size": 325, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "issuerId": 27, - "issuerName": "./node_modules/lodash/_getNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - } - ], - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "module": "./node_modules/lodash/_getNative.js", - "moduleName": "./node_modules/lodash/_getNative.js", - "type": "cjs require", - "userRequest": "./_getValue", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n" - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "index": 609, - "index2": 604, - "size": 393, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheClear", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n" - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "index": 610, - "index2": 603, - "size": 747, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "issuerId": 187, - "issuerName": "./node_modules/lodash/_mapCacheClear.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_Hash", - "loc": "1:11-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n" - }, - { - "id": 189, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "name": "./node_modules/lodash/_hashClear.js", - "index": 611, - "index2": 598, - "size": 281, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashClear", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n" - }, - { - "id": 190, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashDelete.js", - "name": "./node_modules/lodash/_hashDelete.js", - "index": 613, - "index2": 599, - "size": 445, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashDelete", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n" - }, - { - "id": 191, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashGet.js", - "name": "./node_modules/lodash/_hashGet.js", - "index": 614, - "index2": 600, - "size": 772, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashGet", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n" - }, - { - "id": 192, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashHas.js", - "name": "./node_modules/lodash/_hashHas.js", - "index": 615, - "index2": 601, - "size": 626, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashHas", - "loc": "4:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n" - }, - { - "id": 193, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashSet.js", - "name": "./node_modules/lodash/_hashSet.js", - "index": 616, - "index2": 602, - "size": 598, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashSet", - "loc": "5:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n" - }, - { - "id": 194, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheDelete.js", - "name": "./node_modules/lodash/_mapCacheDelete.js", - "index": 617, - "index2": 607, - "size": 450, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheDelete", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n" - }, - { - "id": 195, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKeyable.js", - "name": "./node_modules/lodash/_isKeyable.js", - "index": 619, - "index2": 605, - "size": 430, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "issuerId": 50, - "issuerName": "./node_modules/lodash/_getMapData.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 50, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "name": "./node_modules/lodash/_getMapData.js", - "profile": { - "factory": 39, - "building": 3 - } - } - ], - "profile": { - "factory": 8, - "building": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 50, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "module": "./node_modules/lodash/_getMapData.js", - "moduleName": "./node_modules/lodash/_getMapData.js", - "type": "cjs require", - "userRequest": "./_isKeyable", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n" - }, - { - "id": 196, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheGet.js", - "name": "./node_modules/lodash/_mapCacheGet.js", - "index": 620, - "index2": 608, - "size": 330, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheGet", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n" - }, - { - "id": 197, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheHas.js", - "name": "./node_modules/lodash/_mapCacheHas.js", - "index": 621, - "index2": 609, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheHas", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n" - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "index": 622, - "index2": 610, - "size": 489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheSet", - "loc": "5:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n" - }, - { - "id": 199, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "name": "./node_modules/lodash/_baseAssign.js", - "index": 627, - "index2": 639, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_baseAssign", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n" - }, - { - "id": 200, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseTimes.js", - "name": "./node_modules/lodash/_baseTimes.js", - "index": 631, - "index2": 619, - "size": 504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "issuerId": 95, - "issuerName": "./node_modules/lodash/_arrayLikeKeys.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 95, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "name": "./node_modules/lodash/_arrayLikeKeys.js", - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - } - } - ], - "profile": { - "factory": 54, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./_baseTimes", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n" - }, - { - "id": 201, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "name": "./node_modules/lodash/_baseIsArguments.js", - "index": 633, - "index2": 621, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "issuerId": 41, - "issuerName": "./node_modules/lodash/isArguments.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 41, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "name": "./node_modules/lodash/isArguments.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 62, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 41, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "module": "./node_modules/lodash/isArguments.js", - "moduleName": "./node_modules/lodash/isArguments.js", - "type": "cjs require", - "userRequest": "./_baseIsArguments", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n" - }, - { - "id": 202, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/stubFalse.js", - "name": "./node_modules/lodash/stubFalse.js", - "index": 637, - "index2": 624, - "size": 280, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "issuerId": 34, - "issuerName": "./node_modules/lodash/isBuffer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "name": "./node_modules/lodash/isBuffer.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 58, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "./stubFalse", - "loc": "2:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n" - }, - { - "id": 203, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "name": "./node_modules/lodash/_baseIsTypedArray.js", - "index": 640, - "index2": 628, - "size": 2222, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "issuerId": 42, - "issuerName": "./node_modules/lodash/isTypedArray.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 59, - "building": 37, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseIsTypedArray", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n" - }, - { - "id": 204, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeys.js", - "name": "./node_modules/lodash/_nativeKeys.js", - "index": 646, - "index2": 635, - "size": 204, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "issuerId": 74, - "issuerName": "./node_modules/lodash/_baseKeys.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 74, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "name": "./node_modules/lodash/_baseKeys.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 58, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 74, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "module": "./node_modules/lodash/_baseKeys.js", - "moduleName": "./node_modules/lodash/_baseKeys.js", - "type": "cjs require", - "userRequest": "./_nativeKeys", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n" - }, - { - "id": 205, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "name": "./node_modules/lodash/_baseAssignIn.js", - "index": 649, - "index2": 643, - "size": 482, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_baseAssignIn", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n" - }, - { - "id": 206, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "name": "./node_modules/lodash/_baseKeysIn.js", - "index": 651, - "index2": 641, - "size": 870, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "issuerId": 35, - "issuerName": "./node_modules/lodash/keysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "module": "./node_modules/lodash/keysIn.js", - "moduleName": "./node_modules/lodash/keysIn.js", - "type": "cjs require", - "userRequest": "./_baseKeysIn", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n" - }, - { - "id": 207, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeysIn.js", - "name": "./node_modules/lodash/_nativeKeysIn.js", - "index": 652, - "index2": 640, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "issuerId": 206, - "issuerName": "./node_modules/lodash/_baseKeysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 206, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "name": "./node_modules/lodash/_baseKeysIn.js", - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - } - } - ], - "profile": { - "factory": 60, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./_nativeKeysIn", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n" - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "index": 655, - "index2": 649, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copySymbols", - "loc": "8:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n" - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "index": 659, - "index2": 653, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copySymbolsIn", - "loc": "9:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n" - }, - { - "id": 210, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "name": "./node_modules/lodash/_getAllKeysIn.js", - "index": 665, - "index2": 656, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getAllKeysIn", - "loc": "11:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n" - }, - { - "id": 211, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "name": "./node_modules/lodash/_DataView.js", - "index": 667, - "index2": 657, - "size": 210, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_DataView", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n" - }, - { - "id": 212, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "name": "./node_modules/lodash/_Promise.js", - "index": 668, - "index2": 658, - "size": 207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Promise", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n" - }, - { - "id": 213, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "name": "./node_modules/lodash/_WeakMap.js", - "index": 670, - "index2": 660, - "size": 207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_WeakMap", - "loc": "5:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n" - }, - { - "id": 214, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneArray.js", - "name": "./node_modules/lodash/_initCloneArray.js", - "index": 671, - "index2": 662, - "size": 692, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneArray", - "loc": "13:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n" - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "index": 672, - "index2": 669, - "size": 2261, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneByTag", - "loc": "14:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n" - }, - { - "id": 216, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneDataView.js", - "name": "./node_modules/lodash/_cloneDataView.js", - "index": 675, - "index2": 665, - "size": 507, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneDataView", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n" - }, - { - "id": 217, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneRegExp.js", - "name": "./node_modules/lodash/_cloneRegExp.js", - "index": 676, - "index2": 666, - "size": 439, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneRegExp", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n" - }, - { - "id": 218, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneSymbol.js", - "name": "./node_modules/lodash/_cloneSymbol.js", - "index": 677, - "index2": 667, - "size": 524, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneSymbol", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n" - }, - { - "id": 219, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "name": "./node_modules/lodash/isMap.js", - "index": 681, - "index2": 673, - "size": 613, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isMap", - "loc": "18:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n" - }, - { - "id": 220, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "name": "./node_modules/lodash/_baseIsMap.js", - "index": 682, - "index2": 672, - "size": 478, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "issuerId": 219, - "issuerName": "./node_modules/lodash/isMap.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 219, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "name": "./node_modules/lodash/isMap.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 59, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_baseIsMap", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n" - }, - { - "id": 221, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "name": "./node_modules/lodash/isSet.js", - "index": 683, - "index2": 675, - "size": 613, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isSet", - "loc": "20:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n" - }, - { - "id": 222, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "name": "./node_modules/lodash/_baseIsSet.js", - "index": 684, - "index2": 674, - "size": 478, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "issuerId": 221, - "issuerName": "./node_modules/lodash/isSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 221, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "name": "./node_modules/lodash/isSet.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 60, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_baseIsSet", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n" - }, - { - "id": 223, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createBaseFor.js", - "name": "./node_modules/lodash/_createBaseFor.js", - "index": 691, - "index2": 679, - "size": 648, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "issuerId": 81, - "issuerName": "./node_modules/lodash/_baseFor.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 81, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "name": "./node_modules/lodash/_baseFor.js", - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 64, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 81, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "module": "./node_modules/lodash/_baseFor.js", - "moduleName": "./node_modules/lodash/_baseFor.js", - "type": "cjs require", - "userRequest": "./_createBaseFor", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n" - }, - { - "id": 224, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createBaseEach.js", - "name": "./node_modules/lodash/_createBaseEach.js", - "index": 692, - "index2": 682, - "size": 886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "issuerId": 57, - "issuerName": "./node_modules/lodash/_baseEach.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 57, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "name": "./node_modules/lodash/_baseEach.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 59, - "building": 29, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 57, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "module": "./node_modules/lodash/_baseEach.js", - "moduleName": "./node_modules/lodash/_baseEach.js", - "type": "cjs require", - "userRequest": "./_createBaseEach", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n" - }, - { - "id": 225, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFilter.js", - "name": "./node_modules/lodash/_baseFilter.js", - "index": 696, - "index2": 688, - "size": 590, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "issuerId": 111, - "issuerName": "./node_modules/lodash/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_baseFilter", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n" - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "index": 698, - "index2": 705, - "size": 710, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./_baseMatches", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n" - }, - { - "id": 227, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "name": "./node_modules/lodash/_baseIsMatch.js", - "index": 699, - "index2": 701, - "size": 1765, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_baseIsMatch", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n" - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "index": 701, - "index2": 699, - "size": 3010, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "issuerId": 112, - "issuerName": "./node_modules/lodash/_baseIsEqual.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 112, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "module": "./node_modules/lodash/_baseIsEqual.js", - "moduleName": "./node_modules/lodash/_baseIsEqual.js", - "type": "cjs require", - "userRequest": "./_baseIsEqualDeep", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n" - }, - { - "id": 229, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setCacheAdd.js", - "name": "./node_modules/lodash/_setCacheAdd.js", - "index": 704, - "index2": 689, - "size": 424, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_setCacheAdd", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n" - }, - { - "id": 230, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setCacheHas.js", - "name": "./node_modules/lodash/_setCacheHas.js", - "index": 705, - "index2": 690, - "size": 316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_setCacheHas", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n" - }, - { - "id": 231, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arraySome.js", - "name": "./node_modules/lodash/_arraySome.js", - "index": 706, - "index2": 692, - "size": 594, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "issuerId": 113, - "issuerName": "./node_modules/lodash/_equalArrays.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - }, - { - "id": 113, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "name": "./node_modules/lodash/_equalArrays.js", - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 13, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_arraySome", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n" - }, - { - "id": 232, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "name": "./node_modules/lodash/_equalByTag.js", - "index": 708, - "index2": 697, - "size": 3746, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalByTag", - "loc": "3:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n" - }, - { - "id": 233, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapToArray.js", - "name": "./node_modules/lodash/_mapToArray.js", - "index": 709, - "index2": 695, - "size": 363, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "issuerId": 232, - "issuerName": "./node_modules/lodash/_equalByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - }, - { - "id": 232, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "name": "./node_modules/lodash/_equalByTag.js", - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 14, - "building": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_mapToArray", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n" - }, - { - "id": 234, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalObjects.js", - "name": "./node_modules/lodash/_equalObjects.js", - "index": 711, - "index2": 698, - "size": 2903, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalObjects", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n" - }, - { - "id": 235, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "name": "./node_modules/lodash/_getMatchData.js", - "index": 712, - "index2": 703, - "size": 573, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_getMatchData", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n" - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "index": 715, - "index2": 721, - "size": 1129, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./_baseMatchesProperty", - "loc": "2:26-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n" - }, - { - "id": 237, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/get.js", - "name": "./node_modules/lodash/get.js", - "index": 716, - "index2": 717, - "size": 884, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./get", - "loc": "2:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n" - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "index": 721, - "index2": 710, - "size": 840, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "issuerId": 58, - "issuerName": "./node_modules/lodash/_castPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./_stringToPath", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n" - }, - { - "id": 239, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "name": "./node_modules/lodash/_memoizeCapped.js", - "index": 722, - "index2": 709, - "size": 633, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "issuerId": 238, - "issuerName": "./node_modules/lodash/_stringToPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 76, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 238, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "module": "./node_modules/lodash/_stringToPath.js", - "moduleName": "./node_modules/lodash/_stringToPath.js", - "type": "cjs require", - "userRequest": "./_memoizeCapped", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n" - }, - { - "id": 240, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/memoize.js", - "name": "./node_modules/lodash/memoize.js", - "index": 723, - "index2": 708, - "size": 2224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "issuerId": 239, - "issuerName": "./node_modules/lodash/_memoizeCapped.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - } - }, - { - "id": 239, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "name": "./node_modules/lodash/_memoizeCapped.js", - "profile": { - "factory": 76, - "building": 28 - } - } - ], - "profile": { - "factory": 92, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 239, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "module": "./node_modules/lodash/_memoizeCapped.js", - "moduleName": "./node_modules/lodash/_memoizeCapped.js", - "type": "cjs require", - "userRequest": "./memoize", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n" - }, - { - "id": 241, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "name": "./node_modules/lodash/_baseToString.js", - "index": 725, - "index2": 712, - "size": 1154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "issuerId": 118, - "issuerName": "./node_modules/lodash/toString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 118, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "name": "./node_modules/lodash/toString.js", - "profile": { - "factory": 78, - "building": 38 - } - } - ], - "profile": { - "factory": 63, - "building": 27, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 118, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "module": "./node_modules/lodash/toString.js", - "moduleName": "./node_modules/lodash/toString.js", - "type": "cjs require", - "userRequest": "./_baseToString", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n" - }, - { - "id": 242, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseHasIn.js", - "name": "./node_modules/lodash/_baseHasIn.js", - "index": 729, - "index2": 718, - "size": 374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "issuerId": 119, - "issuerName": "./node_modules/lodash/hasIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 119, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "name": "./node_modules/lodash/hasIn.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 62, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 119, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "module": "./node_modules/lodash/hasIn.js", - "moduleName": "./node_modules/lodash/hasIn.js", - "type": "cjs require", - "userRequest": "./_baseHasIn", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n" - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "index": 731, - "index2": 724, - "size": 793, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./property", - "loc": "5:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n" - }, - { - "id": 244, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePropertyDeep.js", - "name": "./node_modules/lodash/_basePropertyDeep.js", - "index": 733, - "index2": 723, - "size": 391, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "issuerId": 243, - "issuerName": "./node_modules/lodash/property.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 66, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_basePropertyDeep", - "loc": "2:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n" - }, - { - "id": 245, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseHas.js", - "name": "./node_modules/lodash/_baseHas.js", - "index": 735, - "index2": 727, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "issuerId": 85, - "issuerName": "./node_modules/lodash/has.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 85, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "module": "./node_modules/lodash/has.js", - "moduleName": "./node_modules/lodash/has.js", - "type": "cjs require", - "userRequest": "./_baseHas", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n" - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "index": 736, - "index2": 729, - "size": 2000, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isEmpty", - "loc": "14:15-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n" - }, - { - "id": 247, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayReduce.js", - "name": "./node_modules/lodash/_arrayReduce.js", - "index": 741, - "index2": 733, - "size": 787, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_arrayReduce", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n" - }, - { - "id": 248, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseReduce.js", - "name": "./node_modules/lodash/_baseReduce.js", - "index": 742, - "index2": 734, - "size": 909, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseReduce", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n" - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "index": 743, - "index2": 741, - "size": 1137, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/size", - "loc": "20:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n" - }, - { - "id": 250, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "name": "./node_modules/lodash/isString.js", - "index": 744, - "index2": 736, - "size": 723, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./isString", - "loc": "4:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n" - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "index": 745, - "index2": 740, - "size": 432, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_stringSize", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n" - }, - { - "id": 252, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_asciiSize.js", - "name": "./node_modules/lodash/_asciiSize.js", - "index": 746, - "index2": 737, - "size": 271, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_asciiSize", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n" - }, - { - "id": 253, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasUnicode.js", - "name": "./node_modules/lodash/_hasUnicode.js", - "index": 747, - "index2": 738, - "size": 949, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_hasUnicode", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n" - }, - { - "id": 254, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_unicodeSize.js", - "name": "./node_modules/lodash/_unicodeSize.js", - "index": 748, - "index2": 739, - "size": 1642, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_unicodeSize", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n" - }, - { - "id": 255, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "name": "./node_modules/lodash/transform.js", - "index": 749, - "index2": 742, - "size": 2280, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/transform", - "loc": "21:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n" - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "index": 750, - "index2": 761, - "size": 749, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/union", - "loc": "22:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n" - }, - { - "id": 257, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "name": "./node_modules/lodash/_isFlattenable.js", - "index": 752, - "index2": 743, - "size": 608, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "issuerId": 86, - "issuerName": "./node_modules/lodash/_baseFlatten.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 62, - "building": 25, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 86, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "module": "./node_modules/lodash/_baseFlatten.js", - "moduleName": "./node_modules/lodash/_baseFlatten.js", - "type": "cjs require", - "userRequest": "./_isFlattenable", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n" - }, - { - "id": 258, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_apply.js", - "name": "./node_modules/lodash/_apply.js", - "index": 755, - "index2": 745, - "size": 714, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "issuerId": 126, - "issuerName": "./node_modules/lodash/_overRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 126, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "name": "./node_modules/lodash/_overRest.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 60, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 126, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "module": "./node_modules/lodash/_overRest.js", - "moduleName": "./node_modules/lodash/_overRest.js", - "type": "cjs require", - "userRequest": "./_apply", - "loc": "1:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n" - }, - { - "id": 259, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "name": "./node_modules/lodash/_baseSetToString.js", - "index": 757, - "index2": 747, - "size": 641, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "issuerId": 127, - "issuerName": "./node_modules/lodash/_setToString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 61, - "building": 27, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 127, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "module": "./node_modules/lodash/_setToString.js", - "moduleName": "./node_modules/lodash/_setToString.js", - "type": "cjs require", - "userRequest": "./_baseSetToString", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n" - }, - { - "id": 260, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_shortOut.js", - "name": "./node_modules/lodash/_shortOut.js", - "index": 758, - "index2": 748, - "size": 941, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "issuerId": 127, - "issuerName": "./node_modules/lodash/_setToString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 61, - "building": 27, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 127, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "module": "./node_modules/lodash/_setToString.js", - "moduleName": "./node_modules/lodash/_setToString.js", - "type": "cjs require", - "userRequest": "./_shortOut", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n" - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "index": 759, - "index2": 759, - "size": 1909, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "issuerId": 256, - "issuerName": "./node_modules/lodash/union.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseUniq", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n" - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "index": 760, - "index2": 755, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_arrayIncludes", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n" - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "index": 761, - "index2": 754, - "size": 659, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "issuerId": 262, - "issuerName": "./node_modules/lodash/_arrayIncludes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 262, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "module": "./node_modules/lodash/_arrayIncludes.js", - "moduleName": "./node_modules/lodash/_arrayIncludes.js", - "type": "cjs require", - "userRequest": "./_baseIndexOf", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n" - }, - { - "id": 264, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNaN.js", - "name": "./node_modules/lodash/_baseIsNaN.js", - "index": 763, - "index2": 752, - "size": 296, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "issuerId": 263, - "issuerName": "./node_modules/lodash/_baseIndexOf.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 95, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_baseIsNaN", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n" - }, - { - "id": 265, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_strictIndexOf.js", - "name": "./node_modules/lodash/_strictIndexOf.js", - "index": 764, - "index2": 753, - "size": 600, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "issuerId": 263, - "issuerName": "./node_modules/lodash/_baseIndexOf.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 95, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_strictIndexOf", - "loc": "3:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n" - }, - { - "id": 266, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludesWith.js", - "name": "./node_modules/lodash/_arrayIncludesWith.js", - "index": 765, - "index2": 756, - "size": 615, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_arrayIncludesWith", - "loc": "3:24-55" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n" - }, - { - "id": 267, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "name": "./node_modules/lodash/_createSet.js", - "index": 766, - "index2": 758, - "size": 501, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_createSet", - "loc": "5:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n" - }, - { - "id": 268, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/noop.js", - "name": "./node_modules/lodash/noop.js", - "index": 767, - "index2": 757, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "issuerId": 267, - "issuerName": "./node_modules/lodash/_createSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 267, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "name": "./node_modules/lodash/_createSet.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./noop", - "loc": "2:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n" - }, - { - "id": 269, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseValues.js", - "name": "./node_modules/lodash/_baseValues.js", - "index": 770, - "index2": 762, - "size": 534, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "issuerId": 130, - "issuerName": "./node_modules/lodash/values.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 130, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "name": "./node_modules/lodash/values.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 130, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "module": "./node_modules/lodash/values.js", - "moduleName": "./node_modules/lodash/values.js", - "type": "cjs require", - "userRequest": "./_baseValues", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n" - }, - { - "id": 270, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/version.js", - "name": "./node_modules/graphlib/lib/version.js", - "index": 771, - "index2": 766, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "issuerId": 168, - "issuerName": "./node_modules/graphlib/lib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 168, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "name": "./node_modules/graphlib/lib/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 72, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 168, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "module": "./node_modules/graphlib/lib/index.js", - "moduleName": "./node_modules/graphlib/lib/index.js", - "type": "cjs require", - "userRequest": "./version", - "loc": "4:11-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = '2.1.8';\n" - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "index": 772, - "index2": 768, - "size": 1399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib/json", - "loc": "35:8-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n" - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "index": 773, - "index2": 782, - "size": 424, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib/alg", - "loc": "36:7-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n" - }, - { - "id": 273, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/components.js", - "name": "./node_modules/graphlib/lib/alg/components.js", - "index": 774, - "index2": 769, - "size": 447, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./components", - "loc": "2:14-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n" - }, - { - "id": 274, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "name": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "index": 777, - "index2": 772, - "size": 262, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./dijkstra-all", - "loc": "4:15-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n" - }, - { - "id": 275, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "name": "./node_modules/graphlib/lib/alg/find-cycles.js", - "index": 778, - "index2": 774, - "size": 256, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./find-cycles", - "loc": "5:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n" - }, - { - "id": 276, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/floyd-warshall.js", - "name": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "index": 780, - "index2": 775, - "size": 1235, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./floyd-warshall", - "loc": "6:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n" - }, - { - "id": 277, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/is-acyclic.js", - "name": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "index": 781, - "index2": 777, - "size": 237, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./is-acyclic", - "loc": "7:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n" - }, - { - "id": 278, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/postorder.js", - "name": "./node_modules/graphlib/lib/alg/postorder.js", - "index": 783, - "index2": 779, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./postorder", - "loc": "8:13-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n" - }, - { - "id": 279, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "name": "./node_modules/graphlib/lib/alg/preorder.js", - "index": 785, - "index2": 780, - "size": 114, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./preorder", - "loc": "9:12-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n" - }, - { - "id": 280, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "name": "./node_modules/graphlib/lib/alg/prim.js", - "index": 786, - "index2": 781, - "size": 1105, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./prim", - "loc": "10:8-25" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n" - }, - { - "id": 281, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/graphlib.js", - "name": "./node_modules/dagre-d3/lib/graphlib.js", - "index": 788, - "index2": 784, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/graphlib", - "loc": "24:12-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n" - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "index": 792, - "index2": 855, - "size": 12344, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/layout", - "loc": "26:10-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n" - }, - { - "id": 283, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/cloneDeep.js", - "name": "./node_modules/lodash/cloneDeep.js", - "index": 794, - "index2": 786, - "size": 679, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/cloneDeep", - "loc": "8:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n" - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "index": 797, - "index2": 794, - "size": 1304, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/find", - "loc": "13:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n" - }, - { - "id": 285, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "name": "./node_modules/lodash/_createFind.js", - "index": 798, - "index2": 789, - "size": 853, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "issuerId": 284, - "issuerName": "./node_modules/lodash/find.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 284, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "module": "./node_modules/lodash/find.js", - "moduleName": "./node_modules/lodash/find.js", - "type": "cjs require", - "userRequest": "./_createFind", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n" - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "index": 799, - "index2": 793, - "size": 1654, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "issuerId": 284, - "issuerName": "./node_modules/lodash/find.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 284, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "module": "./node_modules/lodash/find.js", - "moduleName": "./node_modules/lodash/find.js", - "type": "cjs require", - "userRequest": "./findIndex", - "loc": "2:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n" - }, - { - "id": 287, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toInteger.js", - "name": "./node_modules/lodash/toInteger.js", - "index": 800, - "index2": 792, - "size": 760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "issuerId": 286, - "issuerName": "./node_modules/lodash/findIndex.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 55, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./toInteger", - "loc": "3:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n" - }, - { - "id": 288, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "name": "./node_modules/lodash/toNumber.js", - "index": 802, - "index2": 790, - "size": 1572, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "issuerId": 138, - "issuerName": "./node_modules/lodash/toFinite.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - }, - { - "id": 138, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "name": "./node_modules/lodash/toFinite.js", - "profile": { - "factory": 81, - "building": 21 - } - } - ], - "profile": { - "factory": 58, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 138, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "module": "./node_modules/lodash/toFinite.js", - "moduleName": "./node_modules/lodash/toFinite.js", - "type": "cjs require", - "userRequest": "./toNumber", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n" - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "index": 804, - "index2": 796, - "size": 1065, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/forIn", - "loc": "16:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n" - }, - { - "id": 290, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/last.js", - "name": "./node_modules/lodash/last.js", - "index": 805, - "index2": 797, - "size": 401, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/last", - "loc": "19:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n" - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "index": 806, - "index2": 798, - "size": 1338, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/mapValues", - "loc": "21:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n" - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "index": 807, - "index2": 801, - "size": 614, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/max", - "loc": "22:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n" - }, - { - "id": 293, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGt.js", - "name": "./node_modules/lodash/_baseGt.js", - "index": 809, - "index2": 800, - "size": 357, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "issuerId": 292, - "issuerName": "./node_modules/lodash/max.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./_baseGt", - "loc": "2:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n" - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "index": 810, - "index2": 809, - "size": 1220, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/merge", - "loc": "23:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n" - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "index": 811, - "index2": 807, - "size": 1328, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "issuerId": 294, - "issuerName": "./node_modules/lodash/merge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 294, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "module": "./node_modules/lodash/merge.js", - "moduleName": "./node_modules/lodash/merge.js", - "type": "cjs require", - "userRequest": "./_baseMerge", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n" - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "index": 813, - "index2": 806, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_baseMergeDeep", - "loc": "4:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n" - }, - { - "id": 297, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "name": "./node_modules/lodash/toPlainObject.js", - "index": 816, - "index2": 805, - "size": 744, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "issuerId": 296, - "issuerName": "./node_modules/lodash/_baseMergeDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - } - } - ], - "profile": { - "factory": 66, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./toPlainObject", - "loc": "15:20-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n" - }, - { - "id": 298, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "name": "./node_modules/lodash/_createAssigner.js", - "index": 817, - "index2": 808, - "size": 1042, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "issuerId": 294, - "issuerName": "./node_modules/lodash/merge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 294, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "module": "./node_modules/lodash/merge.js", - "moduleName": "./node_modules/lodash/merge.js", - "type": "cjs require", - "userRequest": "./_createAssigner", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n" - }, - { - "id": 299, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "name": "./node_modules/lodash/min.js", - "index": 818, - "index2": 811, - "size": 614, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/min", - "loc": "24:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n" - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "index": 820, - "index2": 812, - "size": 991, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/minBy", - "loc": "25:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n" - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "index": 821, - "index2": 813, - "size": 520, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/now", - "loc": "26:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n" - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "index": 823, - "index2": 816, - "size": 501, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "issuerId": 144, - "issuerName": "./node_modules/lodash/pick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 144, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "module": "./node_modules/lodash/pick.js", - "moduleName": "./node_modules/lodash/pick.js", - "type": "cjs require", - "userRequest": "./_basePick", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n" - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "index": 824, - "index2": 815, - "size": 791, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "issuerId": 302, - "issuerName": "./node_modules/lodash/_basePick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 302, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "module": "./node_modules/lodash/_basePick.js", - "moduleName": "./node_modules/lodash/_basePick.js", - "type": "cjs require", - "userRequest": "./_basePickBy", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n" - }, - { - "id": 304, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "name": "./node_modules/lodash/_baseSet.js", - "index": 825, - "index2": 814, - "size": 1278, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "issuerId": 303, - "issuerName": "./node_modules/lodash/_basePickBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 63, - "building": 25, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_baseSet", - "loc": "2:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n" - }, - { - "id": 305, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "name": "./node_modules/lodash/_flatRest.js", - "index": 826, - "index2": 817, - "size": 457, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "issuerId": 144, - "issuerName": "./node_modules/lodash/pick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 144, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "module": "./node_modules/lodash/pick.js", - "moduleName": "./node_modules/lodash/pick.js", - "type": "cjs require", - "userRequest": "./_flatRest", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n" - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "index": 828, - "index2": 820, - "size": 864, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "issuerId": 145, - "issuerName": "./node_modules/lodash/range.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 145, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "module": "./node_modules/lodash/range.js", - "moduleName": "./node_modules/lodash/range.js", - "type": "cjs require", - "userRequest": "./_createRange", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n" - }, - { - "id": 307, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRange.js", - "name": "./node_modules/lodash/_baseRange.js", - "index": 829, - "index2": 819, - "size": 850, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "issuerId": 306, - "issuerName": "./node_modules/lodash/_createRange.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 81, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./_baseRange", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n" - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "index": 830, - "index2": 826, - "size": 1668, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/sortBy", - "loc": "30:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n" - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "index": 831, - "index2": 825, - "size": 1196, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "issuerId": 308, - "issuerName": "./node_modules/lodash/sortBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseOrderBy", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n" - }, - { - "id": 310, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSortBy.js", - "name": "./node_modules/lodash/_baseSortBy.js", - "index": 832, - "index2": 822, - "size": 543, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseSortBy", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n" - }, - { - "id": 311, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "name": "./node_modules/lodash/_compareMultiple.js", - "index": 833, - "index2": 824, - "size": 1599, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_compareMultiple", - "loc": "6:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n" - }, - { - "id": 312, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareAscending.js", - "name": "./node_modules/lodash/_compareAscending.js", - "index": 834, - "index2": 823, - "size": 1343, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "issuerId": 311, - "issuerName": "./node_modules/lodash/_compareMultiple.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - }, - { - "id": 311, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "name": "./node_modules/lodash/_compareMultiple.js", - "profile": { - "factory": 61, - "building": 28 - } - } - ], - "profile": { - "factory": 62, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 311, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "module": "./node_modules/lodash/_compareMultiple.js", - "moduleName": "./node_modules/lodash/_compareMultiple.js", - "type": "cjs require", - "userRequest": "./_compareAscending", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n" - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "index": 836, - "index2": 829, - "size": 664, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/zipObject", - "loc": "33:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n" - }, - { - "id": 314, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseZipObject.js", - "name": "./node_modules/lodash/_baseZipObject.js", - "index": 837, - "index2": 828, - "size": 660, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "issuerId": 313, - "issuerName": "./node_modules/lodash/zipObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 129, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 313, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "module": "./node_modules/lodash/zipObject.js", - "moduleName": "./node_modules/lodash/zipObject.js", - "type": "cjs require", - "userRequest": "./_baseZipObject", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n" - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "index": 838, - "index2": 833, - "size": 1242, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./acyclic", - "loc": "4:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n" - }, - { - "id": 316, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "name": "./node_modules/dagre/lib/greedy-fas.js", - "index": 839, - "index2": 832, - "size": 3370, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "issuerId": 315, - "issuerName": "./node_modules/dagre/lib/acyclic.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 315, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "module": "./node_modules/dagre/lib/acyclic.js", - "moduleName": "./node_modules/dagre/lib/acyclic.js", - "type": "cjs require", - "userRequest": "./greedy-fas", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n" - }, - { - "id": 317, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/data/list.js", - "name": "./node_modules/dagre/lib/data/list.js", - "index": 840, - "index2": 831, - "size": 1188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "issuerId": 316, - "issuerName": "./node_modules/dagre/lib/greedy-fas.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 316, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "name": "./node_modules/dagre/lib/greedy-fas.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 86, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./data/list", - "loc": "3:11-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n" - }, - { - "id": 318, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "name": "./node_modules/dagre/lib/normalize.js", - "index": 841, - "index2": 835, - "size": 2279, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./normalize", - "loc": "5:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n" - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "index": 843, - "index2": 839, - "size": 1302, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./rank", - "loc": "6:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n" - }, - { - "id": 320, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "name": "./node_modules/dagre/lib/rank/network-simplex.js", - "index": 846, - "index2": 838, - "size": 6706, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./network-simplex", - "loc": "6:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n" - }, - { - "id": 321, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/parent-dummy-chains.js", - "name": "./node_modules/dagre/lib/parent-dummy-chains.js", - "index": 847, - "index2": 840, - "size": 2017, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./parent-dummy-chains", - "loc": "8:24-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n" - }, - { - "id": 322, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "name": "./node_modules/dagre/lib/nesting-graph.js", - "index": 848, - "index2": 841, - "size": 3641, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./nesting-graph", - "loc": "10:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n" - }, - { - "id": 323, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "name": "./node_modules/dagre/lib/add-border-segments.js", - "index": 849, - "index2": 842, - "size": 993, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./add-border-segments", - "loc": "11:24-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n" - }, - { - "id": 324, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/coordinate-system.js", - "name": "./node_modules/dagre/lib/coordinate-system.js", - "index": 850, - "index2": 843, - "size": 1418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./coordinate-system", - "loc": "12:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n" - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "index": 851, - "index2": 852, - "size": 2161, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./order", - "loc": "13:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n" - }, - { - "id": 326, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/init-order.js", - "name": "./node_modules/dagre/lib/order/init-order.js", - "index": 852, - "index2": 844, - "size": 1073, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./init-order", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n" - }, - { - "id": 327, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/cross-count.js", - "name": "./node_modules/dagre/lib/order/cross-count.js", - "index": 853, - "index2": 845, - "size": 1984, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./cross-count", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n" - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "index": 854, - "index2": 849, - "size": 2144, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./sort-subgraph", - "loc": "6:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n" - }, - { - "id": 329, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/barycenter.js", - "name": "./node_modules/dagre/lib/order/barycenter.js", - "index": 855, - "index2": 846, - "size": 623, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./barycenter", - "loc": "2:17-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n" - }, - { - "id": 330, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/resolve-conflicts.js", - "name": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "index": 856, - "index2": 847, - "size": 3329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./resolve-conflicts", - "loc": "3:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n" - }, - { - "id": 331, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "name": "./node_modules/dagre/lib/order/sort.js", - "index": 857, - "index2": 848, - "size": 1374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./sort", - "loc": "4:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n" - }, - { - "id": 332, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "name": "./node_modules/dagre/lib/order/build-layer-graph.js", - "index": 858, - "index2": 850, - "size": 2568, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./build-layer-graph", - "loc": "7:22-52" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n" - }, - { - "id": 333, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/add-subgraph-constraints.js", - "name": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "index": 859, - "index2": 851, - "size": 1219, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./add-subgraph-constraints", - "loc": "8:29-66" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n" - }, - { - "id": 334, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "name": "./node_modules/dagre/lib/position/index.js", - "index": 860, - "index2": 854, - "size": 666, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./position", - "loc": "14:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n" - }, - { - "id": 335, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "name": "./node_modules/dagre/lib/position/bk.js", - "index": 861, - "index2": 853, - "size": 11912, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "issuerId": 334, - "issuerName": "./node_modules/dagre/lib/position/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 334, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "name": "./node_modules/dagre/lib/position/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 64, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "./bk", - "loc": "5:16-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n" - }, - { - "id": 336, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "name": "./node_modules/dagre/lib/debug.js", - "index": 862, - "index2": 856, - "size": 775, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/debug", - "loc": "27:9-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n" - }, - { - "id": 337, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/version.js", - "name": "./node_modules/dagre/lib/version.js", - "index": 863, - "index2": 857, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/version", - "loc": "32:11-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = \"0.8.5\";\n" - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "index": 864, - "index2": 866, - "size": 222, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/intersect", - "loc": "26:13-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n" - }, - { - "id": 339, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-line.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-line.js", - "index": 869, - "index2": 863, - "size": 2010, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "issuerId": 150, - "issuerName": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 150, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 64, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 150, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "module": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "type": "cjs require", - "userRequest": "./intersect-line", - "loc": "3:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n" - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "index": 871, - "index2": 883, - "size": 4207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/render", - "loc": "27:10-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n" - }, - { - "id": 341, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "name": "./node_modules/dagre-d3/lib/create-nodes.js", - "index": 874, - "index2": 874, - "size": 2192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-nodes", - "loc": "9:20-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n" - }, - { - "id": 342, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-text-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "index": 876, - "index2": 870, - "size": 939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "issuerId": 89, - "issuerName": "./node_modules/dagre-d3/lib/label/add-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-text-label", - "loc": "1:19-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n" - }, - { - "id": 343, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-svg-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "index": 879, - "index2": 872, - "size": 230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "issuerId": 89, - "issuerName": "./node_modules/dagre-d3/lib/label/add-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-svg-label", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n" - }, - { - "id": 344, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "name": "./node_modules/dagre-d3/lib/create-clusters.js", - "index": 880, - "index2": 875, - "size": 1399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-clusters", - "loc": "10:23-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n" - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "index": 881, - "index2": 876, - "size": 1273, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-edge-labels", - "loc": "11:25-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n" - }, - { - "id": 346, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "name": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "index": 882, - "index2": 877, - "size": 3300, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-edge-paths", - "loc": "12:24-54" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n" - }, - { - "id": 347, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "name": "./node_modules/dagre-d3/lib/position-nodes.js", - "index": 883, - "index2": 878, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-nodes", - "loc": "13:22-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n" - }, - { - "id": 348, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "index": 884, - "index2": 879, - "size": 553, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-edge-labels", - "loc": "14:27-60" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n" - }, - { - "id": 349, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "name": "./node_modules/dagre-d3/lib/position-clusters.js", - "index": 885, - "index2": 880, - "size": 862, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-clusters", - "loc": "15:25-55" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n" - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "index": 886, - "index2": 881, - "size": 2121, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./shapes", - "loc": "16:15-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n" - }, - { - "id": 351, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/arrows.js", - "name": "./node_modules/dagre-d3/lib/arrows.js", - "index": 887, - "index2": 882, - "size": 1867, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./arrows", - "loc": "17:15-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n" - }, - { - "id": 352, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/version.js", - "name": "./node_modules/dagre-d3/lib/version.js", - "index": 888, - "index2": 884, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/version", - "loc": "29:11-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = \"0.6.4\";\n" - }, - { - "id": 353, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "name": "./src/mermaid.js + 51 modules", - "index": 0, - "index2": 924, - "size": 420362, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/class/parser/classDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/er/parser/erDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/flowchart/parser/flow.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/gantt/parser/gantt.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/git/parser/gitGraph.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/info/parser/info.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/pie/parser/pie.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/sequence/parser/sequenceDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/state/parser/stateDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/user-journey/parser/journey.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/@braintree/sanitize-url/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/dagre-wrapper/intersect/intersect-node.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/d3/index.js (<- Module is referenced from these modules with unsupported syntax: ./node_modules/dagre-d3/lib/d3.js (referenced with cjs require))", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre-d3/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre-d3/lib/label/add-html-label.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/graphlib/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/moment-mini/moment.min.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/scope-css/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./package.json (<- Module is not an ECMAScript module)" - ], - "depth": 0, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "index": 0, - "index2": 924, - "size": 5291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "profile": { - "factory": 54, - "building": 197 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is an entry point" - ], - "depth": 0, - "source": "/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\n\nvar init = function init() {\n var _this = this;\n\n var conf = mermaidAPI.getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init');\n\n var nodes;\n\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n } // if last argument is a function this is the callback function\n\n\n var callback;\n\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n\n nodes = nodes === undefined ? document.querySelectorAll('.mermaid') : typeof nodes === 'string' ? document.querySelectorAll(nodes) : nodes instanceof window.Node ? [nodes] : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({\n startOnLoad: mermaid.startOnLoad\n });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({\n gantt: mermaid.ganttConfig\n });\n }\n\n var txt;\n\n var _loop = function _loop(i) {\n var element = nodes[i];\n /*! Check if previously processed */\n\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n return \"continue\";\n }\n\n var id = \"mermaid-\".concat(Date.now()); // Fetch the graph definition including tags\n\n txt = element.innerHTML; // transforms the html to pure text\n\n txt = decode(txt).trim().replace(//gi, '
');\n var init = utils.detectInit(txt);\n\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(id, txt, function (svgCode, bindFunctions) {\n element.innerHTML = svgCode;\n\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n\n if (bindFunctions) bindFunctions(element);\n }, element);\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n\n if (_this.parseError) {\n _this.parseError(e);\n }\n }\n };\n\n for (var i = 0; i < nodes.length; i++) {\n var _ret = _loop(i);\n\n if (_ret === \"continue\") continue;\n }\n};\n\nvar initialize = function initialize(config) {\n mermaidAPI.reset();\n\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n\n mermaidAPI.initialize(config);\n};\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\n\n\nvar contentLoaded = function contentLoaded() {\n var config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener('load', function () {\n contentLoaded();\n }, false);\n}\n\nvar mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n mermaidAPI: mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n init: init,\n initialize: initialize,\n contentLoaded: contentLoaded\n};\nexport default mermaid;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/entity-decode/browser.js", - "name": "./node_modules/entity-decode/browser.js", - "index": 1, - "index2": 0, - "size": 523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "entity-decode/browser", - "loc": "6:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "entity-decode/browser", - "loc": "100:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "index": 541, - "index2": 542, - "size": 1937, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "8:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "9:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "9:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "11:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "11:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "12:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "14:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "14:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "17:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "20:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "21:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "22:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "22:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "23:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "23:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "24:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "25:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "26:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "26:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "30:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "31:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "34:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "36:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "37:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "39:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "42:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "42:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "43:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "46:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "47:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "50:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "51:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "55:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "56:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "59:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "60:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "60:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "60:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "61:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "61:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "62:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "62:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "66:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "67:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "68:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "69:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "69:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "70:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "74:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "76:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "77:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "79:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "79:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "81:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "81:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "83:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "83:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "86:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "88:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "88:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "89:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "92:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "93:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "94:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "95:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "96:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "97:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "98:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "99:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "101:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "104:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "106:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "107:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "119:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "120:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "123:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "124:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "125:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "126:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "127:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "129:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "130:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "130:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "130:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "132:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "136:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "136:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "137:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "140:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "144:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "148:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "148:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "151:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "152:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "152:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "156:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "158:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "161:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "167:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "168:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "170:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "171:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "179:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "182:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "182:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "184:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "185:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "188:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "188:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "189:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "193:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "194:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "196:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "196:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "197:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "202:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "205:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "208:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "209:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "211:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "214:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "222:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "223:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "223:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "228:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "234:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "235:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "236:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "240:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "240:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "242:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "243:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "244:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "247:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "249:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "249:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "251:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "253:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "254:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "262:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "265:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "272:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "275:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "282:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "288:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "291:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "292:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "293:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "297:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "299:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "303:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "306:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "314:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "314:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "323:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "324:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "326:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "327:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "332:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "358:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "360:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "376:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "403:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "416:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "420:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "430:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "444:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "462:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "469:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "470:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "475:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "516:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "547:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "548:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "556:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "557:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "559:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "584:0-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "595:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "616:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "642:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "715:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "800:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "912:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "944:2-8" - } - ], - "usedExports": [ - "logger", - "setLogLevel" - ], - "providedExports": [ - "LEVELS", - "logger", - "setLogLevel" - ], - "optimizationBailout": [], - "depth": 1, - "source": "import moment from 'moment-mini'; //\n\nexport var LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\nexport var logger = {\n debug: function debug() {},\n info: function info() {},\n warn: function warn() {},\n error: function error() {},\n fatal: function fatal() {}\n};\nexport var setLogLevel = function setLogLevel() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fatal';\n\n if (isNaN(level)) {\n level = level.toLowerCase();\n\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n\n logger.trace = function () {};\n\n logger.debug = function () {};\n\n logger.info = function () {};\n\n logger.warn = function () {};\n\n logger.error = function () {};\n\n logger.fatal = function () {};\n\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error ? console.error.bind(console, format('FATAL'), 'color: orange') : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n\n if (level <= LEVELS.error) {\n logger.error = console.error ? console.error.bind(console, format('ERROR'), 'color: orange') : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n\n if (level <= LEVELS.warn) {\n logger.warn = console.warn ? console.warn.bind(console, format('WARN'), 'color: orange') : console.log.bind(console, \"\\x1B[33m\", format('WARN'));\n }\n\n if (level <= LEVELS.info) {\n logger.info = console.info ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue') : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n\n if (level <= LEVELS.debug) {\n logger.debug = console.debug ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen') : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nvar format = function format(level) {\n var time = moment().format('ss.SSS');\n return \"%c\".concat(time, \" : \").concat(level, \" : \");\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "index": 539, - "index2": 544, - "size": 24774, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "6:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../utils", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "13:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "20:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "37:14-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "42:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "43:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../utils", - "loc": "48:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "56:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "58:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "63:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "65:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "66:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "70:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "101:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "160:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "172:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "174:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "188:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "197:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "214:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "217:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "223:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "227:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "229:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "231:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "233:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "250:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "252:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "252:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "254:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "262:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "280:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "282:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "337:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "396:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "437:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "441:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "527:29-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "673:38-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "674:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "736:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "739:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:66-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "797:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "821:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "824:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "847:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "854:17-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "855:20-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "866:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "869:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "878:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "890:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "899:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "930:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "933:2-17" - } - ], - "usedExports": [ - "default", - "assignWithDepth", - "getStylesFromArray", - "interpolateToCurve", - "generateId" - ], - "providedExports": [ - "detectInit", - "detectDirective", - "detectType", - "isSubstringInArray", - "interpolateToCurve", - "formatUrl", - "runFunc", - "getStylesFromArray", - "generateId", - "random", - "assignWithDepth", - "getTextObj", - "drawSimpleText", - "wrapLabel", - "calculateTextHeight", - "calculateTextWidth", - "calculateTextDimensions", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "var _this = this;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport { curveBasis, curveBasisClosed, curveBasisOpen, curveLinear, curveLinearClosed, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, select } from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common'; // import cryptoRandomString from 'crypto-random-string';\n// Effectively an enum of the supported curve types, accessible by name\n\nvar d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nvar directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar anyComment = /\\s*%%.*\\n/gm;\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\n\nexport var detectInit = function detectInit(text) {\n var inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n var results = {};\n\n if (Array.isArray(inits)) {\n var args = inits.map(function (init) {\n return init.args;\n });\n results = assignWithDepth(results, _toConsumableArray(args));\n } else {\n results = inits.args;\n }\n\n if (results) {\n var type = detectType(text);\n ['config'].forEach(function (prop) {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n\n return results;\n};\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\n\nexport var detectDirective = function detectDirective(text) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n try {\n var commentWithoutDirectives = new RegExp(\"[%]{2}(?![{]\".concat(directiveWithoutOpen.source, \")(?=[}][%]{2}).*\\n\"), 'ig');\n text = text.trim().replace(commentWithoutDirectives, '').replace(/'/gm, '\"');\n logger.debug(\"Detecting diagram directive\".concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n var match,\n result = [];\n\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n\n if (match && !type || type && match[1] && match[1].match(type) || type && match[2] && match[2].match(type)) {\n var _type = match[1] ? match[1] : match[2];\n\n var args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({\n type: _type,\n args: args\n });\n }\n }\n\n if (result.length === 0) {\n result.push({\n type: text,\n args: null\n });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\"ERROR: \".concat(error.message, \" - Unable to parse directive\").concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n return {\n type: null,\n args: null\n };\n }\n};\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\n\nexport var detectType = function detectType(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nvar memoize = function memoize(fn, resolver) {\n var cache = {};\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var n = resolver ? resolver.apply(_this, args) : args[0];\n\n if (n in cache) {\n return cache[n];\n } else {\n var result = fn.apply(void 0, args);\n cache[n] = result;\n return result;\n }\n };\n};\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\n\n\nexport var isSubstringInArray = function isSubstringInArray(str, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n\n return -1;\n};\nexport var interpolateToCurve = function interpolateToCurve(interpolate, defaultCurve) {\n if (!interpolate) {\n return defaultCurve;\n }\n\n var curveName = \"curve\".concat(interpolate.charAt(0).toUpperCase() + interpolate.slice(1));\n return d3CurveTypes[curveName] || defaultCurve;\n};\nexport var formatUrl = function formatUrl(linkStr, config) {\n var url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\nexport var runFunc = function runFunc(functionName) {\n var _obj;\n\n var arrPaths = functionName.split('.');\n var len = arrPaths.length - 1;\n var fnName = arrPaths[len];\n var obj = window;\n\n for (var i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n params[_key2 - 1] = arguments[_key2];\n }\n\n (_obj = obj)[fnName].apply(_obj, params);\n};\n\nvar distance = function distance(p1, p2) {\n return p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n};\n\nvar traverseEdge = function traverseEdge(points) {\n var prevPoint;\n var totalDistance = 0;\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse half of total distance along points\n\n var remainingDistance = totalDistance / 2;\n var center = undefined;\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n });\n return center;\n};\n\nvar calcLabelPosition = function calcLabelPosition(points) {\n return traverseEdge(points);\n};\n\nvar calcCardinalityPosition = function calcCardinalityPosition(isRelationTypePresent, points, initialPosition) {\n var prevPoint;\n var totalDistance = 0; // eslint-disable-line\n\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse only 25 total distance along points to find cardinality point\n\n var distanceToCardinalityPoint = 25;\n var remainingDistance = distanceToCardinalityPoint;\n var center = {\n x: 0,\n y: 0\n };\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n }); // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n\n var d = isRelationTypePresent ? 10 : 5; //Calculate Angle for x and y axis\n\n var angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n var cardinalityPosition = {\n x: 0,\n y: 0\n }; //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport var getStylesFromArray = function getStylesFromArray(arr) {\n var style = '';\n var labelStyle = '';\n\n for (var i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return {\n style: style,\n labelStyle: labelStyle\n };\n};\nvar cnt = 0;\nexport var generateId = function generateId() {\n cnt++;\n return 'id-' + Math.random().toString(36).substr(2, 12) + '-' + cnt;\n};\nexport var random = function random(options) {\n // return cryptoRandomString(options);\n return 'apa';\n};\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\n\nexport var assignWithDepth = function assignWithDepth(dst, src, config) {\n var _Object$assign = Object.assign({\n depth: 2,\n clobber: false\n }, config),\n depth = _Object$assign.depth,\n clobber = _Object$assign.clobber;\n\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(function (s) {\n return assignWithDepth(dst, s, config);\n });\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(function (s) {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n\n if (typeof src !== 'undefined' && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n Object.keys(src).forEach(function (key) {\n if (_typeof(src[key]) === 'object' && (dst[key] === undefined || _typeof(dst[key]) === 'object')) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n\n dst[key] = assignWithDepth(dst[key], src[key], {\n depth: depth - 1,\n clobber: clobber\n });\n } else if (clobber || _typeof(dst[key]) !== 'object' && _typeof(src[key]) !== 'object') {\n dst[key] = src[key];\n }\n });\n }\n\n return dst;\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\nexport var drawSimpleText = function drawSimpleText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\nexport var wrapLabel = memoize(function (label, maxWidth, config) {\n if (!label) {\n return label;\n }\n\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n joinWith: '
'\n }, config);\n\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n\n var words = label.split(' ');\n var completedLines = [];\n var nextLine = '';\n words.forEach(function (word, index) {\n var wordLength = calculateTextWidth(\"\".concat(word, \" \"), config);\n var nextLineLength = calculateTextWidth(nextLine, config);\n\n if (wordLength > maxWidth) {\n var _breakString = breakString(word, maxWidth, '-', config),\n hyphenatedStrings = _breakString.hyphenatedStrings,\n remainingWord = _breakString.remainingWord;\n\n completedLines.push.apply(completedLines, [nextLine].concat(_toConsumableArray(hyphenatedStrings)));\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n\n var currentWord = index + 1;\n var isLastWord = currentWord === words.length;\n\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(function (line) {\n return line !== '';\n }).join(config.joinWith);\n}, function (label, maxWidth, config) {\n return \"\".concat(label, \"-\").concat(maxWidth, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily, \"-\").concat(config.joinWith);\n});\nvar breakString = memoize(function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 0\n }, config);\n var characters = word.split('');\n var lines = [];\n var currentLine = '';\n characters.forEach(function (character, index) {\n var nextLine = \"\".concat(currentLine).concat(character);\n var lineWidth = calculateTextWidth(nextLine, config);\n\n if (lineWidth >= maxWidth) {\n var currentCharacter = index + 1;\n var isLastLine = characters.length === currentCharacter;\n var hyphenatedNextLine = \"\".concat(nextLine).concat(hyphenCharacter);\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return {\n hyphenatedStrings: lines,\n remainingWord: currentLine\n };\n}, function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n return \"\".concat(word, \"-\").concat(maxWidth, \"-\").concat(hyphenCharacter, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextHeight = function calculateTextHeight(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 15\n }, config);\n return calculateTextDimensions(text, config).height;\n};\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextWidth = function calculateTextWidth(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n return calculateTextDimensions(text, config).width;\n};\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\n\nexport var calculateTextDimensions = memoize(function (text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n var _config = config,\n fontSize = _config.fontSize,\n fontFamily = _config.fontFamily,\n fontWeight = _config.fontWeight;\n\n if (!text) {\n return {\n width: 0,\n height: 0\n };\n } // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n\n\n var fontFamilies = ['sans-serif', fontFamily];\n var lines = text.split(common.lineBreakRegex);\n var dims = [];\n var body = select('body'); // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n\n if (!body.remove) {\n return {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n }\n\n var g = body.append('svg');\n\n for (var _i = 0, _fontFamilies = fontFamilies; _i < _fontFamilies.length; _i++) {\n var _fontFamily = _fontFamilies[_i];\n var cheight = 0;\n var dim = {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var line = _step.value;\n var textObj = getTextObj();\n textObj.text = line;\n var textElem = drawSimpleText(g, textObj).style('font-size', fontSize).style('font-weight', fontWeight).style('font-family', _fontFamily);\n var bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n dims.push(dim);\n }\n\n g.remove();\n var index = isNaN(dims[1].height) || isNaN(dims[1].width) || isNaN(dims[1].lineHeight) || dims[0].height > dims[1].height && dims[0].width > dims[1].width && dims[0].lineHeight > dims[1].lineHeight ? 0 : 1;\n return dims[index];\n}, function (text, config) {\n return \"\".concat(text, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\nexport default {\n assignWithDepth: assignWithDepth,\n wrapLabel: wrapLabel,\n calculateTextHeight: calculateTextHeight,\n calculateTextWidth: calculateTextWidth,\n calculateTextDimensions: calculateTextDimensions,\n detectInit: detectInit,\n detectDirective: detectDirective,\n detectType: detectType,\n isSubstringInArray: isSubstringInArray,\n interpolateToCurve: interpolateToCurve,\n calcLabelPosition: calcLabelPosition,\n calcCardinalityPosition: calcCardinalityPosition,\n formatUrl: formatUrl,\n getStylesFromArray: getStylesFromArray,\n generateId: generateId,\n random: random,\n memoize: memoize,\n runFunc: runFunc\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "index": 2, - "index2": 923, - "size": 19471, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../mermaidAPI", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaidAPI", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../mermaidAPI", - "loc": "14:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "35:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "73:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "79:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "108:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "135:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "147:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "161:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "169:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "190:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "191:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "192:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "encodeEntities", - "decodeEntities", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport { select } from 'd3';\nimport scope from 'scope-css';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nvar themes = {};\n\nfor (var _i = 0, _arr = ['default', 'forest', 'dark', 'neutral']; _i < _arr.length; _i++) {\n var themeName = _arr[_i];\n themes[themeName] = require(\"./themes/\".concat(themeName, \"/index.scss\"));\n}\n\nfunction parse(text) {\n var graphInit = utils.detectInit(text);\n\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n\n var graphType = utils.detectType(text);\n var parser;\n logger.debug('Type ' + graphType);\n\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n\n parser.parser.yy.graphType = graphType;\n\n parser.parser.yy.parseError = function (str, hash) {\n var error = {\n str: str,\n hash: hash\n };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport var encodeEntities = function encodeEntities(text) {\n var txt = text;\n txt = txt.replace(/style.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/#\\w+;/g, function (s) {\n var innerTxt = s.substring(1, s.length - 1);\n var isInt = /^\\+?\\d+$/.test(innerTxt);\n\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n return txt;\n};\nexport var decodeEntities = function decodeEntities(text) {\n var txt = text;\n txt = txt.replace(/fl°°/g, function () {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function () {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function () {\n return ';';\n });\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\n\nvar render = function render(id, _txt, cb, container) {\n var cnf = getConfig(); // Check the maximum allowed text size\n\n var txt = _txt;\n\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n var graphInit = utils.detectInit(txt);\n\n if (graphInit) {\n reinitialize(graphInit);\n assignWithDepth(cnf, getConfig());\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n select(container).append('div').attr('id', 'd' + id).attr('style', 'font-family: ' + cnf.fontFamily).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n } else {\n var existingSvg = document.getElementById(id);\n\n if (existingSvg) {\n existingSvg.remove();\n }\n\n var _element = document.querySelector('#' + 'd' + id);\n\n if (_element) {\n _element.remove();\n }\n\n select('body').append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n var element = select('#d' + id).node();\n var graphType = utils.detectType(txt); // insert inline style into svg\n\n var svg = element.firstChild;\n var firstChild = svg.firstChild; // pre-defined theme\n\n var style = themes[cnf.theme];\n\n if (style === undefined) {\n style = '';\n } // user provided theme CSS\n\n\n if (cnf.themeCSS !== undefined) {\n style += \"\\n\".concat(cnf.themeCSS);\n } // user provided theme CSS\n\n\n if (cnf.fontFamily !== undefined) {\n style += \"\\n:root { --mermaid-font-family: \".concat(cnf.fontFamily, \"}\");\n } // user provided theme CSS\n\n\n if (cnf.altFontFamily !== undefined) {\n style += \"\\n:root { --mermaid-alt-font-family: \".concat(cnf.altFontFamily, \"}\");\n } // classDef\n\n\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n var classes = flowRenderer.getClasses(txt);\n\n for (var className in classes) {\n style += \"\\n.\".concat(className, \" > * { \").concat(classes[className].styles.join(' !important; '), \" !important; }\");\n\n if (classes[className].textStyles) {\n style += \"\\n.\".concat(className, \" tspan { \").concat(classes[className].textStyles.join(' !important; '), \" !important; }\");\n }\n }\n }\n\n var style1 = document.createElement('style');\n style1.innerHTML = scope(style, \"#\".concat(id));\n svg.insertBefore(style1, firstChild); // Verify that the generated svgs are ok before removing this\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n\n sequenceRenderer.draw(txt, id);\n break;\n\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(\"[id=\\\"\".concat(id, \"\\\"]\")).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml'); // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n // Fix for when the base tag is used\n\n var svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n var node = select('#d' + id).node();\n\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id).node().remove();\n }\n\n return svgCode;\n};\n\nvar currentDirective = {};\n\nvar parseDirective = function parseDirective(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\"Error while rendering sequenceDiagram directive: \".concat(statement, \" jison context: \").concat(context));\n logger.error(error.message);\n }\n};\n\nvar handleDirective = function handleDirective(directive, type) {\n logger.debug(\"Directive type=\".concat(directive.type, \" with args:\"), directive.args);\n\n switch (directive.type) {\n case 'init':\n case 'initialize':\n {\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n }\n\n case 'wrap':\n case 'nowrap':\n directive.args = {\n config: {\n wrap: directive.type === 'wrap'\n }\n };\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n\n default:\n logger.warn(\"Unhandled directive: source: '%%{\".concat(directive.type, \": \").concat(JSON.stringify(directive.args ? directive.args : {}), \"}%%\"), directive);\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n console.log(\"mermaidAPI.reinitialize: v\".concat(pkg.version), options); // Set default options\n\n var config = _typeof(options) === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version}`);\n // Set default options\n var config = _typeof(options) === 'object' ? setSiteConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n} // function getConfig () {\n// console.warn('get config')\n// return config\n// }\n\n\nvar mermaidAPI = Object.freeze({\n render: render,\n parse: parse,\n parseDirective: parseDirective,\n initialize: initialize,\n reinitialize: reinitialize,\n getConfig: getConfig,\n getSiteConfig: getSiteConfig,\n reset: function reset() {\n // console.warn('reset');\n configApi.reset();\n var siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: function globalReset() {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *

\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/common/common.js", - "name": "./src/diagrams/common/common.js", - "index": 546, - "index2": 543, - "size": 1849, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1707, - "building": 708 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/common/common", - "loc": "16:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:50-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:98-104" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "55:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "60:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "61:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "111:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "150:53-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "170:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "175:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "209:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "239:21-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "249:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "271:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "279:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "295:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "341:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "391:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "436:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "536:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "568:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "708:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "getRows", - "removeScript", - "sanitizeText", - "lineBreakRegex", - "hasBreaks", - "splitBreaks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "export var getRows = function getRows(s) {\n if (!s) return 1;\n var str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\nexport var removeScript = function removeScript(txt) {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n idx = txt.indexOf('');\n\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n\n return rs;\n};\nexport var sanitizeText = function sanitizeText(text, config) {\n var txt = text;\n var htmlLabels = true;\n if (config.flowchart && (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')) htmlLabels = false;\n\n if (htmlLabels) {\n var level = config.securityLevel;\n\n if (level == 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\nexport var lineBreakRegex = //gi;\nexport var hasBreaks = function hasBreaks(text) {\n return //gi.test(text);\n};\nexport var splitBreaks = function splitBreaks(text) {\n return text.split(//gi);\n};\n\nvar breakToPlaceholder = function breakToPlaceholder(s) {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nvar placeholderToBreak = function placeholderToBreak(s) {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows: getRows,\n sanitizeText: sanitizeText,\n hasBreaks: hasBreaks,\n splitBreaks: splitBreaks,\n lineBreakRegex: lineBreakRegex,\n removeScript: removeScript\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "name": "./src/config.js", - "index": 553, - "index2": 550, - "size": 29029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "7:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "7:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "10:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "11:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "12:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:192-201" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:220-229" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "18:0-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "20:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:92-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:158-167" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "23:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "26:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:162-171" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:144-153" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:208-217" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:246-255" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:219-228" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "44:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:119-128" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:164-173" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "49:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:64-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:98-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:132-141" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "54:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:142-151" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:184-193" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "67:35-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:135-144" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:213-222" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:251-260" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "74:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "82:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "85:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "86:19-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:102-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "97:124-133" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "137:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:176-185" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:255-264" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:108-117" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:150-159" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:178-187" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:249-258" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:277-286" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:306-315" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:196-205" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:224-233" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "156:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "157:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "159:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:128-137" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:165-174" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "172:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "173:241-250" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "198:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "215:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "220:27-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "221:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "227:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "233:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "244:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "248:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "253:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "260:39-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "261:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "265:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "269:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "288:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "289:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "306:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "308:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "326:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "331:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "341:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "354:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:91-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:152-161" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:268-277" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "478:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "510:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:68-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:47-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:72-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "570:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "571:17-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "574:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "575:21-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:20-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "580:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "582:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "584:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:16-25" - } - ], - "usedExports": [ - "getConfig", - "setConfig", - "getSiteConfig", - "setSiteConfig", - "default" - ], - "providedExports": [ - "defaultConfig", - "setSiteConfig", - "getSiteConfig", - "setConfig", - "getConfig", - "sanitize", - "reset", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { assignWithDepth } from './utils';\nimport { logger } from './logger';\n/**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\n\nvar config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeCSS: undefined,\n\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function messageFont() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function noteFont() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function actorFont() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport var defaultConfig = Object.freeze(config);\nvar siteConfig = assignWithDepth({}, defaultConfig);\nvar currentConfig = assignWithDepth({}, defaultConfig);\n/**\n * Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n * the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n * to the defaultConfig\n * Note: currentConfig is set in this function\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\n\nexport var setSiteConfig = function setSiteConfig(conf) {\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n assignWithDepth(siteConfig, conf);\n return getSiteConfig();\n};\n/**\n * Obtains the current siteConfig base configuration\n * @returns {*}\n */\n\nexport var getSiteConfig = function getSiteConfig() {\n return assignWithDepth({}, siteConfig);\n};\n/**\n * Sets the currentConfig. The param conf is sanitized based on the siteConfig.secure keys. Any\n * values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n * siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\n\nexport var setConfig = function setConfig(conf) {\n sanitize(conf);\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * Obtains the currentConfig\n * @returns {*} - the currentConfig\n */\n\nexport var getConfig = function getConfig() {\n return assignWithDepth({}, currentConfig);\n};\n/**\n * Ensures options parameter does not attempt to override siteConfig secure keys\n * Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\n\nexport var sanitize = function sanitize(options) {\n Object.keys(siteConfig.secure).forEach(function (key) {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\"Denied attempt to modify a secure key \".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n * Resets this currentConfig to conf\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\n\nexport var reset = function reset() {\n var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig();\n Object.keys(siteConfig).forEach(function (key) {\n return delete siteConfig[key];\n });\n Object.keys(currentConfig).forEach(function (key) {\n return delete currentConfig[key];\n });\n assignWithDepth(siteConfig, conf, {\n clobber: true\n });\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n};\nvar configApi = Object.freeze({\n sanitize: sanitize,\n setSiteConfig: setSiteConfig,\n getSiteConfig: getSiteConfig,\n setConfig: setConfig,\n getConfig: getConfig,\n reset: reset,\n defaultConfig: defaultConfig\n});\nexport default configApi;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "name": "./src/diagrams/flowchart/flowDb.js", - "index": 552, - "index2": 551, - "size": 18389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "24:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "81:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "83:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "87:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "89:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "272:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "276:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "279:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "292:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "296:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "302:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "305:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "315:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "317:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "329:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "333:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "334:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "348:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "354:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "358:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "359:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "372:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "383:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "392:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "402:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "415:20-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addVertex", - "addSingleLink", - "addLink", - "updateLinkInterpolate", - "updateLink", - "addClass", - "setDirection", - "setClass", - "setLink", - "getTooltip", - "setClickEvent", - "bindFunctions", - "getDirection", - "getVertices", - "getEdges", - "getClasses", - "clear", - "defaultStyle", - "addSubGraph", - "getDepthFirstPos", - "indexNodes", - "getSubGraphs", - "firstGraph", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { select } from 'd3';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common'; // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\n\nvar MERMAID_DOM_ID_PREFIX = '';\nvar config = getConfig();\nvar vertices = {};\nvar edges = [];\nvar classes = [];\nvar subGraphs = [];\nvar subGraphLookup = {};\nvar tooltips = {};\nvar subCount = 0;\nvar firstGraphFlag = true;\nvar direction; // Functions to be run after graph rendering\n\nvar funs = [];\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\n\nexport var addVertex = function addVertex(_id, text, type, style, classes) {\n var txt;\n var id = _id;\n\n if (typeof id === 'undefined') {\n return;\n }\n\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = {\n id: id,\n styles: [],\n classes: []\n };\n }\n\n if (typeof text !== 'undefined') {\n txt = common.sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote\n\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n vertices[id].styles.push(s);\n });\n }\n }\n\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function (s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\n\nexport var addSingleLink = function addSingleLink(_start, _end, type, linktext) {\n var start = _start;\n var end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end; // logger.info('Got edge...', start, end);\n\n var edge = {\n start: start,\n end: end,\n type: undefined,\n text: ''\n };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config); // strip quotes if string starts and exnds with a quote\n\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n\n edges.push(edge);\n};\nexport var addLink = function addLink(_start, _end, type, linktext) {\n var i, j;\n\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\n\nexport var updateLinkInterpolate = function updateLinkInterpolate(positions, interp) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\n\nexport var updateLink = function updateLink(positions, style) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n\n edges[pos].style = style;\n }\n });\n};\nexport var addClass = function addClass(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = {\n id: id,\n styles: [],\n textStyles: []\n };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n if (s.match('color')) {\n var newStyle1 = s.replace('fill', 'bgFill');\n var newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n\n classes[id].styles.push(s);\n });\n }\n }\n};\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nvar setTooltip = function setTooltip(ids, tooltip) {\n ids.split(',').forEach(function (id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nvar setClickFun = function setClickFun(_id, functionName) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, id);\n }, false);\n }\n });\n }\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var getTooltip = function getTooltip(id) {\n return tooltips[id];\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var getDirection = function getDirection() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\n\nexport var getVertices = function getVertices() {\n return vertices;\n};\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\n\nexport var getEdges = function getEdges() {\n return edges;\n};\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\n\nexport var getClasses = function getClasses() {\n return classes;\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var clear = function clear() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\n\nexport var defaultStyle = function defaultStyle() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var addSubGraph = function addSubGraph(_id, list, _title) {\n var id = _id.trim();\n\n var title = _title;\n\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n\n function uniq(a) {\n var prims = {\n boolean: {},\n number: {},\n string: {}\n };\n var objs = [];\n return a.filter(function (item) {\n var type = _typeof(item);\n\n if (item.trim() === '') {\n return false;\n }\n\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true; // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n var nodeList = [];\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n\n for (var i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n var subGraph = {\n id: id,\n nodes: nodeList,\n title: title.trim(),\n classes: []\n };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nvar getPosForId = function getPosForId(id) {\n for (var i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n\n return -1;\n};\n\nvar secCount = -1;\nvar posCrossRef = [];\n\nvar indexNodes2 = function indexNodes2(id, pos) {\n var nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n\n if (secCount > 2000) {\n return;\n }\n\n posCrossRef[secCount] = pos; // Check if match\n\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n var count = 0;\n var posCount = 1;\n\n while (count < nodes.length) {\n var childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)\n\n if (childPos >= 0) {\n var res = indexNodes2(id, childPos);\n\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport var getDepthFirstPos = function getDepthFirstPos(pos) {\n return posCrossRef[pos];\n};\nexport var indexNodes = function indexNodes() {\n secCount = -1;\n\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\nexport var getSubGraphs = function getSubGraphs() {\n return subGraphs;\n};\nexport var firstGraph = function firstGraph() {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n\n return false;\n};\n\nvar destructStartLink = function destructStartLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '<--':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case 'x--':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '<-.':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case 'x-.':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case 'o-.':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case 'x==':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case 'o==':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '--':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '==':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n\n case '-.':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n }\n};\n\nvar destructEndLink = function destructEndLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '--x':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case '-->':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case '<-->':\n return {\n type: 'double_arrow_point',\n stroke: 'normal'\n };\n\n case 'x--x':\n return {\n type: 'double_arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--o':\n return {\n type: 'double_arrow_circle',\n stroke: 'normal'\n };\n\n case 'o.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==>':\n return {\n type: 'double_arrow_point',\n stroke: 'thick'\n };\n\n case 'o==o':\n return {\n type: 'double_arrow_circle',\n stroke: 'thick'\n };\n\n case 'x==x':\n return {\n type: 'double_arrow_cross',\n stroke: 'thick'\n };\n\n case 'x.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case 'x-.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case '<.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case '<-.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case 'o-.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '--o':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '---':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '-.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '-.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '-.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '-.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '==x':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case '==>':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case '==o':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '===':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n }\n};\n\nvar destructLink = function destructLink(_str, _startStr) {\n var info = destructEndLink(_str);\n var startInfo;\n\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n addVertex: addVertex,\n addLink: addLink,\n updateLinkInterpolate: updateLinkInterpolate,\n updateLink: updateLink,\n addClass: addClass,\n setDirection: setDirection,\n setClass: setClass,\n getTooltip: getTooltip,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n getDirection: getDirection,\n getVertices: getVertices,\n getEdges: getEdges,\n getClasses: getClasses,\n clear: clear,\n defaultStyle: defaultStyle,\n addSubGraph: addSubGraph,\n getDepthFirstPos: getDepthFirstPos,\n indexNodes: indexNodes,\n getSubGraphs: getSubGraphs,\n destructLink: destructLink,\n lex: {\n firstGraph: firstGraph\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "index": 571, - "index2": 887, - "size": 14240, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "21:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "280:18-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "314:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "315:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "523:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n break;\n\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n\n try {\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Create the renderer\n\n var Render = dagreD3.render;\n var render = new Render(); // Add custom shapes\n\n flowChartShapes.addToRender(render); // Add our custom arrow - an empty arrowhead\n\n render.arrows().none = function normal(parent, id, edge, type) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n var path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n\n\n render.arrows().normal = function normal(parent, id) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n marker.append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowheadPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n }; // Set up an SVG group so that we can translate the final graph.\n\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g);\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // reposition labels\n\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n var clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n var clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n var xPos = clusterRects[0].x.baseVal.value;\n var yPos = clusterRects[0].y.baseVal.value;\n var _width = clusterRects[0].width.baseVal.value;\n var cluster = select(clusterEl[0]);\n var te = cluster.select('.label');\n te.attr('transform', \"translate(\".concat(xPos + _width / 2, \", \").concat(yPos + 14, \")\"));\n te.attr('id', id + 'Text');\n\n for (var _j = 0; _j < subG.classes.length; _j++) {\n clusterEl[0].classList.add(subG.classes[_j]);\n }\n }\n } // Add label rects for non html labels\n\n\n if (!conf.htmlLabels || true) {\n // eslint-disable-line\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "index": 891, - "index2": 905, - "size": 14132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "22:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "320:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "321:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "524:2-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; //edgeData.id = 'id' + cnt;\n // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n edgeData.arrowType = edge.type;\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) {\n // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n logger.info(edges);\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id); // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n logger.debug(\"new ViewBox 0 0 \".concat(width, \" \").concat(height), \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - g._label.marginy, \")\"));\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"0 0 \".concat(width, \" \").concat(height));\n svg.select('g').attr('transform', \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - svgBounds.y, \")\")); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "name": "./src/diagrams/sequence/sequenceDb.js", - "index": 556, - "index2": 554, - "size": 8123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequenceDb", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "8:12-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "27:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "94:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "360:6-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "parseDirective", - "addActor", - "addMessage", - "addSignal", - "getMessages", - "getActors", - "getActor", - "getActorKeys", - "getTitle", - "getTitleWrapped", - "enableSequenceNumbers", - "showSequenceNumbers", - "setWrap", - "autoWrap", - "clear", - "parseMessage", - "LINETYPE", - "ARROWTYPE", - "PLACEMENT", - "addNote", - "setTitle", - "apply", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\nvar prevActor = undefined;\nvar actors = {};\nvar messages = [];\nvar notes = [];\nvar title = '';\nvar titleWrapped = false;\nvar sequenceNumbersEnabled = false;\nvar wrapEnabled = false;\nexport var parseDirective = function parseDirective(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\nexport var addActor = function addActor(id, name, description) {\n // Don't allow description nulling\n var old = actors[id];\n if (old && name === old.name && description == null) return; // Don't allow null descriptions, either\n\n if (description == null || description.text == null) {\n description = {\n text: name,\n wrap: null\n };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: description.wrap === undefined && autoWrap() || !!description.wrap,\n prevActor: prevActor\n };\n\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nvar activationCount = function activationCount(part) {\n var i;\n var count = 0;\n\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n\n return count;\n};\n\nexport var addMessage = function addMessage(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n answer: answer\n });\n};\nexport var addSignal = function addSignal(idFrom, idTo) {\n var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n text: undefined,\n wrap: undefined\n };\n var messageType = arguments.length > 3 ? arguments[3] : undefined;\n\n if (messageType === LINETYPE.ACTIVE_END) {\n var cnt = activationCount(idFrom.actor);\n\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n var error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: {\n first_line: 1,\n last_line: 1,\n first_column: 1,\n last_column: 1\n },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: messageType\n });\n return true;\n};\nexport var getMessages = function getMessages() {\n return messages;\n};\nexport var getActors = function getActors() {\n return actors;\n};\nexport var getActor = function getActor(id) {\n return actors[id];\n};\nexport var getActorKeys = function getActorKeys() {\n return Object.keys(actors);\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var getTitleWrapped = function getTitleWrapped() {\n return titleWrapped;\n};\nexport var enableSequenceNumbers = function enableSequenceNumbers() {\n sequenceNumbersEnabled = true;\n};\nexport var showSequenceNumbers = function showSequenceNumbers() {\n return sequenceNumbersEnabled;\n};\nexport var setWrap = function setWrap(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\nexport var autoWrap = function autoWrap() {\n return wrapEnabled;\n};\nexport var clear = function clear() {\n actors = {};\n messages = [];\n};\nexport var parseMessage = function parseMessage(str) {\n var _str = str.trim();\n\n var message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? common.hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\nexport var LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\nexport var ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\nexport var PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\nexport var addNote = function addNote(actor, placement, message) {\n var note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap\n }; // Coerce actor into a [to, from, ...] array\n\n var actors = [].concat(actor, actor);\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\nexport var setTitle = function setTitle(titleWrap) {\n title = titleWrap.text;\n titleWrapped = titleWrap.wrap === undefined && autoWrap() || !!titleWrap.wrap;\n};\nexport var apply = function apply(param) {\n if (param instanceof Array) {\n param.forEach(function (item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'setTitle':\n setTitle(param.text);\n break;\n\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\nexport default {\n addActor: addActor,\n addMessage: addMessage,\n addSignal: addSignal,\n autoWrap: autoWrap,\n setWrap: setWrap,\n enableSequenceNumbers: enableSequenceNumbers,\n showSequenceNumbers: showSequenceNumbers,\n getMessages: getMessages,\n getActors: getActors,\n getActor: getActor,\n getActorKeys: getActorKeys,\n getTitle: getTitle,\n parseDirective: parseDirective,\n getConfig: function getConfig() {\n return configApi.getConfig().sequence;\n },\n getTitleWrapped: getTitleWrapped,\n clear: clear,\n parseMessage: parseMessage,\n LINETYPE: LINETYPE,\n ARROWTYPE: ARROWTYPE,\n PLACEMENT: PLACEMENT,\n addNote: addNote,\n setTitle: setTitle,\n apply: apply\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "index": 908, - "index2": 907, - "size": 35513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "25:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "329:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "332:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "335:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "527:4-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "530:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "bounds", - "drawActors", - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\nparser.yy = sequenceDb;\nvar conf = {};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function getHeight() {\n return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map(function (actor) {\n return actor.height || 0;\n })) + (this.loops.length === 0 ? 0 : this.loops.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.messages.length === 0 ? 0 : this.messages.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.notes.length === 0 ? 0 : this.notes.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n }));\n },\n clear: function clear() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function addActor(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function addLoop(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function addMessage(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function addNote(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function lastActor() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function lastLoop() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function lastMessage() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function lastNote() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function init() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function newActivation(message, diagram, actors) {\n var actorRect = actors[message.from.actor];\n var stackedSize = actorActivations(message.from.actor).length || 0;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function endActivation(message) {\n // find most recent activation for given actor\n var lastActorActivationIdx = this.activations.map(function (activation) {\n return activation.actor;\n }).lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function createLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function newLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function endLoop() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function addSectionToLoop(message) {\n var loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({\n y: bounds.getVerticalPos(),\n height: 0\n });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return {\n bounds: this.data,\n models: this.models\n };\n }\n};\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\n\nvar drawNote = function drawNote(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n var rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n var g = elem.append('g');\n var rectElem = svgDraw.drawRect(g, rect);\n var textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n var textElem = drawText(g, textObj);\n var textHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\n\n\nvar drawMessage = function drawMessage(g, msgModel) {\n bounds.bumpVerticalPos(10);\n var startx = msgModel.startx,\n stopx = msgModel.stopx,\n starty = msgModel.starty,\n message = msgModel.message,\n type = msgModel.type,\n sequenceIndex = msgModel.sequenceIndex,\n wrap = msgModel.wrap;\n var lines = common.splitBreaks(message).length;\n var textDims = utils.calculateTextDimensions(message, conf.messageFont());\n var lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n bounds.bumpVerticalPos(lineHeight);\n var textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n drawText(g, textObj);\n var totalOffset = textDims.height - 10;\n var textWidth = textDims.width;\n var line, lineStarty;\n\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n\n if (conf.rightAngles) {\n line = g.append('path').attr('d', \"M \".concat(startx, \",\").concat(lineStarty, \" H \").concat(startx + Math.max(conf.width / 2, textWidth / 2), \" V \").concat(lineStarty + 25, \" H \").concat(startx));\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('path').attr('d', 'M ' + startx + ',' + lineStarty + ' C ' + (startx + 60) + ',' + (lineStarty - 10) + ' ' + (startx + 60) + ',' + (lineStarty + 30) + ' ' + startx + ',' + (lineStarty + 20));\n }\n\n totalOffset += 30;\n var dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + 30 + totalOffset);\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n } // Make an SVG Container\n // Draw the line\n\n\n if (type === parser.yy.LINETYPE.DOTTED || type === parser.yy.LINETYPE.DOTTED_CROSS || type === parser.yy.LINETYPE.DOTTED_OPEN) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n\n line.style('fill', 'none'); // remove any fill colour\n\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n } // add node number\n\n\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text').attr('x', startx).attr('y', lineStarty + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);\n }\n\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport var drawActors = function drawActors(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n var prevWidth = 0;\n var prevMargin = 0;\n\n for (var i = 0; i < actorKeys.length; i++) {\n var actor = actors[actorKeys[i]]; // Add some rendering data to the object\n\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos; // Draw the box with the attached line\n\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n } // Add a margin between the actor boxes and the first arrow\n\n\n bounds.bumpVerticalPos(conf.height);\n};\nexport var setConf = function setConf(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nvar actorActivations = function actorActivations(actor) {\n return bounds.activations.filter(function (activation) {\n return activation.actor === actor;\n });\n};\n\nvar activationBounds = function activationBounds(actor, actors) {\n // handle multiple stacked activations for same actor\n var actorObj = actors[actor];\n var activations = actorActivations(actor);\n var left = activations.reduce(function (acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n var right = activations.reduce(function (acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n var heightAdjust = postMargin;\n\n if (msg.id && msg.message && loopWidths[msg.id]) {\n var loopWidth = loopWidths[msg.id].width;\n var textConf = conf.messageFont();\n msg.message = utils.wrapLabel(\"[\".concat(msg.message, \"]\"), loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true; // const lines = common.splitBreaks(msg.message).length;\n\n var textDims = utils.calculateTextDimensions(msg.message, textConf);\n var totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(\"\".concat(totalOffset, \" - \").concat(msg.message));\n }\n\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(\"C:\".concat(JSON.stringify(conf, null, 2)));\n var diagram = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Fetch data from the parsing\n\n var actors = parser.yy.getActors();\n var actorKeys = parser.yy.getActorKeys();\n var messages = parser.yy.getMessages();\n var title = parser.yy.getTitle();\n var maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n drawActors(diagram, actors, actorKeys, 0);\n var loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor); // The arrow head definition is attached to the svg once\n\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n var activationData = bounds.endActivation(msg);\n\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n\n svgDraw.drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n } // Draw the messages/signals\n\n\n var sequenceIndex = 1;\n messages.forEach(function (msg) {\n var loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, function (message) {\n return bounds.newLoop(undefined, message.message);\n });\n break;\n\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n\n } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n var _bounds$getBounds = bounds.getBounds(),\n box = _bounds$getBounds.bounds; // Adjust line height of actor lines now that the height of the diagram is known\n\n\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n var actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n var width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;'); // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n var extraVertForTitle = title ? 40 : 0;\n diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));\n logger.debug(\"models:\", bounds.models);\n};\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\n\nvar getMaxMessageWidthPerActor = function getMaxMessageWidthPerActor(actors, messages) {\n var maxMessageWidthPerActor = {};\n messages.forEach(function (msg) {\n if (actors[msg.to] && actors[msg.from]) {\n var actor = actors[msg.to]; // If this is the first actor, and the message is left of it, no need to calculate the margin\n\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n } // If this is the last actor, and the message is right of it, no need to calculate the margin\n\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n var isNote = msg.placement !== undefined;\n var isMessage = !isNote;\n var textFont = isNote ? conf.noteFont() : conf.messageFont();\n var wrappedMessage = msg.wrap ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;\n var messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n var messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth);\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth / 2);\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth / 2);\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n }\n }\n }\n });\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\n\n\nvar calculateActorMargins = function calculateActorMargins(actors, actorToMessageWidth) {\n var maxHeight = 0;\n Object.keys(actors).forEach(function (prop) {\n var actor = actors[prop];\n\n if (actor.wrap) {\n actor.description = utils.wrapLabel(actor.description, conf.width - 2 * conf.wrapPadding, conf.actorFont());\n }\n\n var actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (var actorKey in actorToMessageWidth) {\n var actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n var nextActor = actors[actor.nextActor]; // No need to space out an actor that doesn't have a next link\n\n if (!nextActor) {\n continue;\n }\n\n var messageWidth = actorToMessageWidth[actorKey];\n var actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nvar buildNoteModel = function buildNoteModel(msg, actors) {\n var startx = actors[msg.from].x;\n var stopx = actors[msg.to].x;\n var shouldWrap = msg.wrap && msg.message;\n var textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, conf.noteFont());\n var noteModel = {\n width: shouldWrap ? conf.width : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), conf.noteFont()) : msg.message, conf.noteFont());\n noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width = Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) + conf.actorMargin;\n noteModel.startx = startx < stopx ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2 : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(msg.message, noteModel.width - 2 * conf.wrapPadding, conf.noteFont());\n }\n\n logger.debug(\"NM:[\".concat(noteModel.startx, \",\").concat(noteModel.stopx, \",\").concat(noteModel.starty, \",\").concat(noteModel.stopy, \":\").concat(noteModel.width, \",\").concat(noteModel.height, \"=\").concat(msg.message, \"]\"));\n return noteModel;\n};\n\nvar buildMessageModel = function buildMessageModel(msg, actors) {\n var process = false;\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n process = true;\n }\n\n if (!process) {\n return {};\n }\n\n var fromBounds = activationBounds(msg.from, actors);\n var toBounds = activationBounds(msg.to, actors);\n var fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n var toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n var allBounds = fromBounds.concat(toBounds);\n var boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n var msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), conf.messageFont());\n }\n\n return {\n width: Math.max(msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding, boundedWidth + 2 * conf.wrapPadding, conf.width),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nvar calculateLoopBounds = function calculateLoopBounds(messages, actors) {\n var loops = {};\n var stack = [];\n var current, noteModel, msgModel;\n messages.forEach(function (msg) {\n msg.id = utils.random({\n length: 10\n });\n\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n var actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n var stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n var toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n var lastActorActivationIdx = bounds.activations.map(function (a) {\n return a.actor;\n }).lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n\n var isNote = msg.placement !== undefined;\n\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(function (stk) {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width = Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(function (stk) {\n current = stk;\n\n if (msgModel.startx === msgModel.stopx) {\n var from = actors[msg.from];\n var to = actors[msg.to];\n current.from = Math.min(from.x - msgModel.width / 2, from.x - from.width / 2, current.from);\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width = Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds: bounds,\n drawActors: drawActors,\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "name": "./src/diagrams/gantt/ganttDb.js", - "index": 558, - "index2": 556, - "size": 16304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./ganttDb", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "5:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "30:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "99:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "331:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "419:20-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setAxisFormat", - "getAxisFormat", - "setTodayMarker", - "getTodayMarker", - "setDateFormat", - "enableInclusiveEndDates", - "endDatesAreInclusive", - "getDateFormat", - "setExcludes", - "getExcludes", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "findTaskById", - "addTaskOrg", - "setLink", - "setClass", - "setClickEvent", - "bindFunctions", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\nvar dateFormat = '';\nvar axisFormat = '';\nvar todayMarker = '';\nvar excludes = [];\nvar title = '';\nvar sections = [];\nvar tasks = [];\nvar currentSection = '';\nvar tags = ['active', 'done', 'crit', 'milestone'];\nvar funs = [];\nvar inclusiveEndDates = false; // The serial order of the task in the script\n\nvar lastOrder = 0;\nexport var clear = function clear() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\nexport var setAxisFormat = function setAxisFormat(txt) {\n axisFormat = txt;\n};\nexport var getAxisFormat = function getAxisFormat() {\n return axisFormat;\n};\nexport var setTodayMarker = function setTodayMarker(txt) {\n todayMarker = txt;\n};\nexport var getTodayMarker = function getTodayMarker() {\n return todayMarker;\n};\nexport var setDateFormat = function setDateFormat(txt) {\n dateFormat = txt;\n};\nexport var enableInclusiveEndDates = function enableInclusiveEndDates() {\n inclusiveEndDates = true;\n};\nexport var endDatesAreInclusive = function endDatesAreInclusive() {\n return inclusiveEndDates;\n};\nexport var getDateFormat = function getDateFormat() {\n return dateFormat;\n};\nexport var setExcludes = function setExcludes(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\nexport var getExcludes = function getExcludes() {\n return excludes;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsPricessed = compileTasks();\n var maxDepth = 10;\n var iterationCount = 0;\n\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n return tasks;\n};\n\nvar isInvalidDate = function isInvalidDate(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nvar checkTaskDates = function checkTaskDates(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n var startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n var endTime = moment(task.endTime, dateFormat, true);\n var renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nvar fixTaskDates = function fixTaskDates(startTime, endTime, dateFormat, excludes) {\n var invalid = false;\n var renderEndTime = null;\n\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n\n if (invalid) {\n endTime.add(1, 'd');\n }\n\n startTime.add(1, 'd');\n }\n\n return renderEndTime;\n};\n\nvar getStartDate = function getStartDate(prevTime, dateFormat, str) {\n str = str.trim(); // Test for after\n\n var re = /^after\\s+([\\d\\w- ]+)/;\n var afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n var latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function (id) {\n var task = findTaskById(id);\n\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n var dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n } // Check for actual date set\n\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n } // Default date - now\n\n\n return new Date();\n};\n\nvar durationToDate = function durationToDate(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n } // Default date - now\n\n\n return relativeTime.toDate();\n};\n\nvar getEndDate = function getEndDate(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim(); // Check for actual date\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nvar taskCnt = 0;\n\nvar parseId = function parseId(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n\n return idStr;\n}; // id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\n\nvar compileData = function compileData(prevTask, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n var endTimeData = '';\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nvar parseData = function parseData(prevTaskId, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n\n default:\n }\n\n return task;\n};\n\nvar lastTask;\nvar lastTaskID;\nvar rawTasks = [];\nvar taskDb = {};\nexport var addTask = function addTask(descr, data) {\n var rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: {\n data: data\n },\n task: descr,\n classes: []\n };\n var taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n lastOrder++;\n var pos = rawTasks.push(rawTask);\n lastTaskID = rawTask.id; // Store cross ref\n\n taskDb[rawTask.id] = pos - 1;\n};\nexport var findTaskById = function findTaskById(id) {\n var pos = taskDb[id];\n return rawTasks[pos];\n};\nexport var addTaskOrg = function addTaskOrg(descr, data) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n var taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n var task = rawTasks[pos];\n var startTime = '';\n\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd':\n {\n var prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);\n\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\n\n\nexport var setLink = function setLink(ids, _linkStr) {\n var linkStr = _linkStr;\n\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nvar setClickFun = function setClickFun(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n var argList = [];\n\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n\n for (var i = 0; i < argList.length; i++) {\n var item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n\n /* This preserves all starting and ending whitespace inside */\n\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n\n argList[i] = item;\n }\n }\n /* if no arguments passed into callback, default to passing in id */\n\n\n if (argList.length === 0) {\n argList.push(id);\n }\n\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n utils.runFunc.apply(utils, [functionName].concat(_toConsumableArray(argList)));\n });\n }\n};\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\n\n\nvar pushFun = function pushFun(id, callbackFunction) {\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"-text\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\n\n\nexport var setClickEvent = function setClickEvent(ids, functionName, functionArgs) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport default {\n clear: clear,\n setDateFormat: setDateFormat,\n getDateFormat: getDateFormat,\n enableInclusiveEndDates: enableInclusiveEndDates,\n endDatesAreInclusive: endDatesAreInclusive,\n setAxisFormat: setAxisFormat,\n getAxisFormat: getAxisFormat,\n setTodayMarker: setTodayMarker,\n getTodayMarker: getTodayMarker,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n findTaskById: findTaskById,\n addTaskOrg: addTaskOrg,\n setExcludes: setExcludes,\n getExcludes: getExcludes,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n durationToDate: durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n var matchFound = true;\n\n while (matchFound) {\n matchFound = false;\n tags.forEach(function (t) {\n var pattern = '^\\\\s*' + t + '\\\\s*$';\n var regex = new RegExp(pattern);\n\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "name": "./src/diagrams/gantt/ganttRenderer.js", - "index": 910, - "index2": 908, - "size": 12233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "28:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "340:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "341:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "531:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, scaleTime, min, max, scaleLinear, interpolateHcl, axisBottom, timeFormat } from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\nparser.yy = ganttDb;\nvar conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar w;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text);\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var taskArray = parser.yy.getTasks(); // Set height based on number of tasks\n\n var h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Set timescale\n\n var timeScale = scaleTime().domain([min(taskArray, function (d) {\n return d.startTime;\n }), max(taskArray, function (d) {\n return d.endTime;\n })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n var categories = [];\n\n for (var i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n var catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n var taskA = a.startTime;\n var taskB = b.startTime;\n var result = 0;\n\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n\n return result;\n } // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n\n\n taskArray.sort(taskCompare);\n makeGant(taskArray, w, h);\n\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg.append('text').text(parser.yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n var barHeight = conf.barHeight;\n var gap = barHeight + conf.barGap;\n var topPadding = conf.topPadding;\n var leftPadding = conf.leftPadding;\n var colorScale = scaleLinear().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(interpolateHcl);\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n }).attr('width', function () {\n return w - conf.rightPadding / 2;\n }).attr('height', theGap).attr('class', function (d) {\n for (var _i = 0; _i < categories.length; _i++) {\n if (d.type === categories[_i]) {\n return 'section section' + _i % conf.numberSectionStyles;\n }\n }\n\n return 'section section0';\n }); // Draw the rects representing the tasks\n\n var rectangles = svg.append('g').selectAll('rect').data(theArray).enter();\n rectangles.append('rect').attr('id', function (d) {\n return d.id;\n }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {\n if (d.milestone) {\n return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n return timeScale(d.startTime) + theSidePad;\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n }).attr('width', function (d) {\n if (d.milestone) {\n return theBarHeight;\n }\n\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {\n return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';\n }).attr('class', function (d) {\n var res = 'task';\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n\n for (var _i2 = 0; _i2 < categories.length; _i2++) {\n if (d.type === categories[_i2]) {\n secNum = _i2 % conf.numberSectionStyles;\n }\n }\n\n var taskClass = '';\n\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n taskClass += ' ' + classStr;\n return res + taskClass;\n }); // Append task labels\n\n rectangles.append('text').attr('id', function (d) {\n return d.id + '-text';\n }).text(function (d) {\n return d.task;\n }).attr('font-size', conf.fontSize).attr('x', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.renderEndTime || d.endTime);\n\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width; // Check id text width > width of rectangle\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n }).attr('text-height', theBarHeight).attr('class', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.endTime);\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width;\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n console.log(conf);\n\n for (var _i3 = 0; _i3 < categories.length; _i3++) {\n if (d.type === categories[_i3]) {\n secNum = _i3 % conf.numberSectionStyles;\n }\n }\n\n var taskType = '';\n\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n } // Check id text width > width of rectangle\n\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n var xAxis = axisBottom(timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n svg.append('g').attr('class', 'grid').attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')').call(xAxis).selectAll('text').style('text-anchor', 'middle').attr('fill', '#000').attr('stroke', 'none').attr('font-size', 10).attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n var numOccurances = [];\n var prevGap = 0;\n\n for (var _i4 = 0; _i4 < categories.length; _i4++) {\n numOccurances[_i4] = [categories[_i4], getCount(categories[_i4], catsUnfiltered)];\n }\n\n svg.append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text').data(numOccurances).enter().append(function (d) {\n var rows = d[0].split(common.lineBreakRegex);\n var dy = -(rows.length - 1) / 2;\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }).attr('x', 10).attr('y', function (d, i) {\n if (i > 0) {\n for (var j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return d[1] * theGap / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return d[1] * theGap / 2 + theTopPad;\n }\n }).attr('class', function (d) {\n for (var _i5 = 0; _i5 < categories.length; _i5++) {\n if (d[0] === categories[_i5]) {\n return 'sectionTitle sectionTitle' + _i5 % conf.numberSectionStyles;\n }\n }\n\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n var todayMarker = ganttDb.getTodayMarker();\n\n if (todayMarker === 'off') {\n return;\n }\n\n var todayG = svg.append('g').attr('class', 'today');\n var today = new Date();\n var todayLine = todayG.append('line');\n todayLine.attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n\n\n function checkUnique(arr) {\n var hash = {};\n var result = [];\n\n for (var _i6 = 0, l = arr.length; _i6 < l; ++_i6) {\n if (!hash.hasOwnProperty(arr[_i6])) {\n // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[_i6]] = true;\n result.push(arr[_i6]);\n }\n }\n\n return result;\n } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n\n\n function getCounts(arr) {\n var i = arr.length; // const to loop over\n\n var obj = {}; // obj to store results\n\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n\n return obj;\n } // get specific from everything\n\n\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "name": "./src/diagrams/class/classDb.js", - "index": 560, - "index2": 558, - "size": 8112, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "2:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "8:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "9:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "12:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "15:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "18:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classDb", - "loc": "33:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "77:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "91:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "102:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "104:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "115:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "423:20-27" - } - ], - "usedExports": [ - "default", - "lookUpDomId", - "relationType" - ], - "providedExports": [ - "addClass", - "lookUpDomId", - "clear", - "getClass", - "getClasses", - "getRelations", - "addRelation", - "addAnnotation", - "addMember", - "addMembers", - "cleanupLabel", - "setCssClass", - "setLink", - "setClickEvent", - "bindFunctions", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nvar MERMAID_DOM_ID_PREFIX = 'classid-';\nvar config = getConfig();\nvar relations = [];\nvar classes = {};\nvar classCounter = 0;\nvar funs = [];\n\nvar splitClassNameAndType = function splitClassNameAndType(id) {\n var genericType = '';\n var className = id;\n\n if (id.indexOf('~') > 0) {\n var split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return {\n className: className,\n type: genericType\n };\n};\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\n\n\nexport var addClass = function addClass(id) {\n var classId = splitClassNameAndType(id); // Only add class if not exists\n\n if (typeof classes[classId.className] !== 'undefined') return;\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\n\nexport var lookUpDomId = function lookUpDomId(id) {\n var classKeys = Object.keys(classes);\n\n for (var i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\nexport var clear = function clear() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\nexport var getClass = function getClass(id) {\n return classes[id];\n};\nexport var getClasses = function getClasses() {\n return classes;\n};\nexport var getRelations = function getRelations() {\n return relations;\n};\nexport var addRelation = function addRelation(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n relations.push(relation);\n};\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\n\nexport var addAnnotation = function addAnnotation(className, annotation) {\n var validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\n\nexport var addMember = function addMember(className, member) {\n var validatedClassName = splitClassNameAndType(className).className;\n var theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n var memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\nexport var addMembers = function addMembers(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(function (member) {\n return addMember(className, member);\n });\n }\n};\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setCssClass = function setCssClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nvar setClickFunc = function setClickFunc(domId, functionName, tooltip) {\n var id = domId;\n var elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(elemId, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, elemId);\n }, false);\n }\n });\n }\n};\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\nexport default {\n addClass: addClass,\n bindFunctions: bindFunctions,\n clear: clear,\n getClass: getClass,\n getClasses: getClasses,\n addAnnotation: addAnnotation,\n getRelations: getRelations,\n addRelation: addRelation,\n addMember: addMember,\n addMembers: addMembers,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n setClickEvent: setClickEvent,\n setCssClass: setCssClass,\n setLink: setLink,\n lookUpDomId: lookUpDomId\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "index": 911, - "index2": 910, - "size": 5731, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classRenderer", - "loc": "31:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "346:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "347:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "532:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nparser.yy = classDb;\nvar idCache = {};\nvar padding = 20;\nvar conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n}; // Todo optimize\n\nvar getGraphId = function getGraphId(label) {\n var keys = Object.keys(idCache);\n\n for (var i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'extensionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', 'extensionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem.append('defs').append('marker').attr('id', 'compositionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'compositionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n logger.info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var g = new graphlib.Graph({\n multigraph: true\n }); // Set an object for the graph label\n\n g.setGraph({\n isMultiGraph: true\n }); // Default to assigning a new object as a label for each new edge.\n\n g.setDefaultEdgeLabel(function () {\n return {};\n });\n var classes = classDb.getClasses();\n var keys = Object.keys(classes);\n\n for (var i = 0; i < keys.length; i++) {\n var classDef = classes[keys[i]];\n var node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n\n g.setNode(node.id, node);\n logger.info('Org height: ' + node.height);\n }\n\n var relations = classDb.getRelations();\n relations.forEach(function (relation) {\n logger.info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));\n g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {\n relation: relation\n }, relation.title || 'DEFAULT');\n });\n dagre.layout(g);\n g.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');\n }\n });\n g.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n var svgBounds = diagram.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n diagram.attr('viewBox', vBox);\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "name": "./src/diagrams/state/stateDb.js", - "index": 562, - "index2": 560, - "size": 6456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "11:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "26:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "29:9-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateDb", - "loc": "37:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "51:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "109:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "114:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "121:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "122:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "123:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "215:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "218:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "227:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "249:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "251:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "252:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "298:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "301:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "304:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "307:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "332:66-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addState", - "clear", - "getState", - "getStates", - "logDocuments", - "getRelations", - "addRelation", - "cleanupLabel", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nvar clone = function clone(o) {\n return JSON.parse(JSON.stringify(o));\n};\n\nvar rootDoc = [];\n\nvar setRootDoc = function setRootDoc(o) {\n logger.info('Setting root doc', o); // rootDoc = { id: 'root', doc: o };\n\n rootDoc = o;\n};\n\nvar getRootDoc = function getRootDoc() {\n return rootDoc;\n};\n\nvar docTranslator = function docTranslator(parent, node, first) {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n var doc = []; // Check for concurrency\n\n var i = 0;\n var currentDoc = [];\n\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n var newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n } // If any divider was encountered\n\n\n if (doc.length > 0 && currentDoc.length > 0) {\n var _newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(_newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(function (docNode) {\n return docTranslator(node, docNode, true);\n });\n }\n }\n};\n\nvar getRootDocV2 = function getRootDocV2() {\n docTranslator({\n id: 'root'\n }, {\n id: 'root',\n doc: rootDoc\n }, true);\n return {\n id: 'root',\n doc: rootDoc\n };\n};\n\nvar extract = function extract(_doc) {\n // const res = { states: [], relations: [] };\n var doc;\n\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n } // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n\n\n logger.info(doc);\n clear();\n logger.info('Extract', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nvar newDoc = function newDoc() {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nvar documents = {\n root: newDoc()\n};\nvar currentDocument = documents.root;\nvar startCnt = 0;\nvar endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\n\nexport var addState = function addState(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type: type,\n doc: doc,\n note: note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (_typeof(descr) === 'object') {\n descr.forEach(function (des) {\n return addDescription(id, des.trim());\n });\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\nexport var clear = function clear() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n currentDocument = documents.root;\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n\n classes = [];\n};\nexport var getState = function getState(id) {\n return currentDocument.states[id];\n};\nexport var getStates = function getStates() {\n return currentDocument.states;\n};\nexport var logDocuments = function logDocuments() {\n logger.info('Documents = ', documents);\n};\nexport var getRelations = function getRelations() {\n return currentDocument.relations;\n};\nexport var addRelation = function addRelation(_id1, _id2, title) {\n var id1 = _id1;\n var id2 = _id2;\n var type1 = 'default';\n var type2 = 'default';\n\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({\n id1: id1,\n id2: id2,\n title: title\n });\n};\n\nvar addDescription = function addDescription(id, _descr) {\n var theState = currentDocument.states[id];\n var descr = _descr;\n\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nvar dividerCnt = 0;\n\nvar getDividerId = function getDividerId() {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nvar classes = [];\n\nvar getClasses = function getClasses() {\n return classes;\n};\n\nvar getDirection = function getDirection() {\n return 'TB';\n};\n\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar trimColon = function trimColon(str) {\n return str && str[0] === ':' ? str.substr(1).trim() : str.trim();\n};\n\nexport default {\n addState: addState,\n clear: clear,\n getState: getState,\n getStates: getStates,\n getRelations: getRelations,\n getClasses: getClasses,\n getDirection: getDirection,\n addRelation: addRelation,\n getDividerId: getDividerId,\n // addDescription,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n logDocuments: logDocuments,\n getRootDoc: getRootDoc,\n setRootDoc: setRootDoc,\n getRootDocV2: getRootDocV2,\n extract: extract,\n trimColon: trimColon\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "index": 913, - "index2": 913, - "size": 8188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "34:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "352:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "353:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "533:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram'; // import idCache from './id-cache';\n\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\nparser.yy = stateDb; // TODO Move conf object to main conf in mermaidAPI\n\nvar conf;\nvar transformationLog = {};\nexport var setConf = function setConf() {}; // Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL' // ranksep: '20'\n\n }); // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n var rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n var padding = conf.padding;\n var bounds = diagram.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width * 1.75, \"px;\"));\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n } // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n\n\n diagram.attr('viewBox', \"\".concat(bounds.x - conf.padding, \" \").concat(bounds.y - conf.padding, \" \") + width + ' ' + height);\n};\n\nvar getLabelWidth = function getLabelWidth(text) {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nvar renderDoc = function renderDoc(doc, diagram, parentId, altBkg) {\n // // Layout graph, Create a new directed graph\n var graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n var i;\n var edgeFreeDoc = true;\n\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n } // Set an object for the graph label\n\n\n if (parentId) graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true // ranksep: 5,\n // nodesep: 1\n\n });else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n } // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n stateDb.extract(doc);\n var states = stateDb.getStates();\n var relations = stateDb.getRelations();\n var keys = Object.keys(states);\n var first = true;\n\n for (var _i = 0; _i < keys.length; _i++) {\n var stateDef = states[keys[_i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n var node = void 0;\n\n if (stateDef.doc) {\n var sub = diagram.append('g').attr('id', stateDef.id).attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n var boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = {\n y: conf.compositTitleSize\n };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n var _boxBounds = sub.node().getBBox();\n\n node.width = _boxBounds.width;\n node.height = _boxBounds.height; // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n var noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n var note = drawState(diagram, noteDef, graph); // graph.setNode(node.id, node);\n\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n } // graph.setNode(node.id);\n\n\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n var cnt = 0;\n relations.forEach(function (relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(relation.id1, relation.id2, {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n }, 'id' + cnt);\n });\n dagre.layout(graph);\n logger.debug('Graph after layout', graph.nodes());\n var svgElem = diagram.node();\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + ' )');\n select('#' + svgElem.id + ' #' + v).attr('data-x-shift', graph.node(v).x - graph.node(v).width / 2);\n var dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(function (divider) {\n var parent = divider.parentElement;\n var pWidth = 0;\n var pShift = 0;\n\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n var stateBox = svgElem.getBBox();\n graph.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n stateBox = svgElem.getBBox();\n var stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "name": "./src/diagrams/state/stateRenderer-v2.js", - "index": 916, - "index2": 914, - "size": 9719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "35:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "358:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "359:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "534:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\nvar nodeDb = {};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nvar setupNode = function setupNode(g, parent, node, altFlag) {\n // Add the node\n if (node.id !== 'root') {\n var shape = 'rect';\n\n if (node.start === true) {\n shape = 'start';\n }\n\n if (node.start === false) {\n shape = 'end';\n }\n\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape: shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n } // Build of the array of description strings accordinging\n\n\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n } // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n // group\n\n\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes = nodeDb[node.id].classes + ' ' + (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n var nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n\n if (node.note) {\n // Todo: set random id\n var noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note',\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n var groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n\n };\n g.setNode(node.id + '----parent', groupData);\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n var from = node.id;\n var to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\n\nvar cnt = 0;\n\nvar setupDoc = function setupDoc(g, parent, doc, altFlag) {\n logger.trace('items', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n var edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowType: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n var startId = item.state1.id;\n var endId = item.state2.id;\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Fetch the default direction, use TD if none was found\n\n\n var dir = stateDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n var conf = getConfig().state;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true); // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n var padding = 8; // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n var bounds = svg.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2; // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n // Zoom in a bit\n\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram'); // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n var svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\nexport default {\n setConf: setConf,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "name": "./src/diagrams/git/gitGraphAst.js", - "index": 551, - "index2": 549, - "size": 6939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./gitGraphAst", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "40:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "77:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "238:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "243:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "245:20-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "246:21-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "247:19-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setDirection", - "setOptions", - "getOptions", - "commit", - "branch", - "merge", - "checkout", - "reset", - "prettyPrint", - "clear", - "getBranchesAsObjArray", - "getBranches", - "getCommits", - "getCommitsArray", - "getCurrentBranch", - "getDirection", - "getHead", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { logger } from '../../logger';\nvar commits = {};\nvar head = null;\nvar branches = {\n master: head\n};\nvar curBranch = 'master';\nvar direction = 'LR';\nvar seq = 0;\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n}\n\nfunction getId() {\n return makeid(7);\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n var currentSeq = currentCommit.seq;\n var otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n var recordMap = Object.create(null);\n return list.reduce(function (out, item) {\n var key = fn(item);\n\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n\n return out;\n }, []);\n}\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n};\nvar options = {};\nexport var setOptions = function setOptions(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\nexport var getOptions = function getOptions() {\n return options;\n};\nexport var commit = function commit(msg) {\n var commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\nexport var branch = function branch(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\nexport var merge = function merge(otherBranch) {\n var currentCommit = commits[branches[curBranch]];\n var otherCommit = commits[branches[otherBranch]];\n\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n var _commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = _commit;\n commits[_commit.id] = _commit;\n branches[curBranch] = _commit.id;\n }\n\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\nexport var checkout = function checkout(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n var id = branches[curBranch];\n head = commits[id];\n};\nexport var reset = function reset(commitRef) {\n logger.debug('in reset', commitRef);\n var ref = commitRef.split(':')[0];\n var parentCount = parseInt(commitRef.split(':')[1]);\n var commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n\n if (!commit) {\n var err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n var index = arr.indexOf(key);\n\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n var commit = commitArr.reduce(function (out, commit) {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n var line = '';\n commitArr.forEach(function (c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n var label = [line, commit.id, commit.seq];\n\n for (var _branch in branches) {\n if (branches[_branch] === commit.id) label.push(_branch);\n }\n\n logger.debug(label.join(' '));\n\n if (Array.isArray(commit.parent)) {\n var newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n var nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n\n commitArr = uniqBy(commitArr, function (c) {\n return c.id;\n });\n prettyPrintCommitHistory(commitArr);\n}\n\nexport var prettyPrint = function prettyPrint() {\n logger.debug(commits);\n var node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\nexport var clear = function clear() {\n commits = {};\n head = null;\n branches = {\n master: head\n };\n curBranch = 'master';\n seq = 0;\n};\nexport var getBranchesAsObjArray = function getBranchesAsObjArray() {\n var branchArr = [];\n\n for (var _branch2 in branches) {\n branchArr.push({\n name: _branch2,\n commit: commits[branches[_branch2]]\n });\n }\n\n return branchArr;\n};\nexport var getBranches = function getBranches() {\n return branches;\n};\nexport var getCommits = function getCommits() {\n return commits;\n};\nexport var getCommitsArray = function getCommitsArray() {\n var commitArr = Object.keys(commits).map(function (key) {\n return commits[key];\n });\n commitArr.forEach(function (o) {\n logger.debug(o.id);\n });\n commitArr.sort(function (a, b) {\n return b.seq - a.seq;\n });\n return commitArr;\n};\nexport var getCurrentBranch = function getCurrentBranch() {\n return curBranch;\n};\nexport var getDirection = function getDirection() {\n return direction;\n};\nexport var getHead = function getHead() {\n return head;\n};\nexport default {\n setDirection: setDirection,\n setOptions: setOptions,\n getOptions: getOptions,\n commit: commit,\n branch: branch,\n merge: merge,\n checkout: checkout,\n reset: reset,\n prettyPrint: prettyPrint,\n clear: clear,\n getBranchesAsObjArray: getBranchesAsObjArray,\n getBranches: getBranches,\n getCommits: getCommits,\n getCommitsArray: getCommitsArray,\n getCurrentBranch: getCurrentBranch,\n getDirection: getDirection,\n getHead: getHead\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "name": "./src/diagrams/git/gitGraphRenderer.js", - "index": 890, - "index2": 888, - "size": 9304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "38:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "308:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "309:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "522:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { curveBasis, line, select } from 'd3';\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\nvar allCommitsDict = {};\nvar branchNum;\nvar config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nvar apiConfig = {};\nexport var setConf = function setConf(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);\n svg.select('#def-commit').append('foreignObject').attr('width', config.nodeLabel.width).attr('height', config.nodeLabel.height).attr('x', config.nodeLabel.x).attr('y', config.nodeLabel.y).attr('class', 'node-label').attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility').append('p').html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n var curve = interpolateToCurve(interpolate, curveBasis);\n var color = config.branchColors[colorIdx % config.branchColors.length];\n var lineGen = line().x(function (d) {\n return Math.round(d.x);\n }).y(function (d) {\n return Math.round(d.y);\n }).curve(curve);\n svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');\n} // Pass in the element and its pre-transform coords\n\n\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n var ctm = element.node().getCTM();\n var xn = ctm.e + coords.x * ctm.a;\n var yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n var fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n var toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n var lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n var lineEnd = {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: lineStart.y\n }, lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n }, {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }], color);\n }\n\n break;\n\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n var _lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n var _lineEnd = {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n };\n svgDrawLine(svg, [_lineStart, _lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: _lineStart.y - config.nodeSpacing / 2\n }, _lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }], color);\n }\n\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg.select(selector).node().cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n var commit;\n var numCommits = Object.keys(allCommitsDict).length;\n\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n\n svg.append(function () {\n return cloneNode(svg, '#def-commit');\n }).attr('class', 'commit').attr('id', function () {\n return 'node-' + commit.id;\n }).attr('transform', function () {\n switch (direction) {\n case 'LR':\n return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';\n\n case 'BT':\n return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';\n }\n }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);\n var branch = void 0;\n\n for (var branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');\n }\n\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);\n\n if (commit.message !== '' && direction === 'BT') {\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);\n }\n\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver); // Parse the graph definition\n\n parser.parse(txt + '\\n');\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n var direction = db.getDirection();\n allCommitsDict = db.getCommits();\n var branches = db.getBranchesAsObjArray();\n\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\"));\n svgCreateDefs(svg);\n branchNum = 1;\n\n for (var branch in branches) {\n var v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n\n svg.attr('height', function () {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "name": "./src/diagrams/info/infoDb.js", - "index": 564, - "index2": 562, - "size": 645, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./infoDb", - "loc": "5:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "./infoDb", - "loc": "24:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoDb", - "loc": "44:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoDb", - "loc": "120:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setMessage", - "getMessage", - "setInfo", - "getInfo", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\nvar message = '';\nvar info = false;\nexport var setMessage = function setMessage(txt) {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\nexport var getMessage = function getMessage() {\n return message;\n};\nexport var setInfo = function setInfo(inf) {\n info = inf;\n};\nexport var getInfo = function getInfo() {\n return info;\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage: setMessage,\n getMessage: getMessage,\n setInfo: setInfo,\n getInfo: getInfo // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "name": "./src/diagrams/info/infoRenderer.js", - "index": 917, - "index2": 915, - "size": 1276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "41:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "364:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "365:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "535:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt); // Parse the graph definition\n\n parser.parse(txt);\n logger.debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found\n\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('text') // text label for the x axis\n .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "name": "./src/errorRenderer.js", - "index": 924, - "index2": 922, - "size": 2972, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./errorRenderer", - "loc": "42:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "386:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "539:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(id, ver) {\n try {\n logger.debug('Renering svg for syntax error\\n');\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('path').attr('class', 'error-icon').attr('d', 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1240).attr('y', 250).attr('font-size', '150px').style('text-anchor', 'middle').text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1050).attr('y', 400).attr('font-size', '100px').style('text-anchor', 'middle').text('mermaid version ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "name": "./src/diagrams/pie/pieDb.js", - "index": 566, - "index2": 564, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./pieDb", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "25:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieDb", - "loc": "47:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "55:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieDb", - "loc": "126:25-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar sections = {};\nvar title = '';\n\nvar addSection = function addSection(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\n\nvar getSections = function getSections() {\n return sections;\n};\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar cleanupValue = function cleanupValue(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nvar clear = function clear() {\n sections = {};\n title = '';\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\n\nexport default {\n addSection: addSection,\n getSections: getSections,\n cleanupValue: cleanupValue,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "name": "./src/diagrams/pie/pieRenderer.js", - "index": 919, - "index2": 917, - "size": 3794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "45:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "370:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "371:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "536:2-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\n\nvar w;\nexport var draw = function draw(txt, id) {\n try {\n var parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt); // Parse the Pie Chart definition\n\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var h = 450;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h); // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n var radius = Math.min(width, height) / 2 - margin;\n var svg = select('#' + id).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function (key) {\n sum += data[key];\n });\n logger.info(data); // set the color scale\n\n var color = scaleOrdinal().domain(data).range(schemeSet2); // Compute the position of each group on the pie:\n\n var pie = d3pie().value(function (d) {\n return d.value;\n });\n var dataReady = pie(entries(data)); // shape helper to build arcs:\n\n var arcGenerator = arc().innerRadius(0).outerRadius(radius); // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n\n svg.selectAll('mySlices').data(dataReady).enter().append('path').attr('d', arcGenerator).attr('fill', function (d) {\n return color(d.data.key);\n }).attr('stroke', 'black').style('stroke-width', '2px').style('opacity', 0.7); // Now add the Percentage. Use the centroid method to get the best coordinates\n\n svg.selectAll('mySlices').data(dataReady).enter().append('text').text(function (d) {\n return (d.data.value / sum * 100).toFixed(0) + '%';\n }).attr('transform', function (d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n }).style('text-anchor', 'middle').attr('class', 'slice').style('font-size', 17);\n svg.append('text').text(parser.yy.getTitle()).attr('x', 0).attr('y', -(h - 50) / 2).attr('class', 'pieTitleText'); //Add the slegend/annotations for each section\n\n var legend = svg.selectAll('.legend').data(color.domain()).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = height * color.domain().length / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n legend.append('rect').attr('width', legendRectSize).attr('height', legendRectSize).style('fill', color).style('stroke', color);\n legend.append('text').attr('x', legendRectSize + legendSpacing).attr('y', legendRectSize - legendSpacing).text(function (d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "name": "./src/diagrams/er/erDb.js", - "index": 568, - "index2": 566, - "size": 1728, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erDb", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erDb", - "loc": "48:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "115:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "132:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erDb", - "loc": "132:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "136:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "140:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "144:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "150:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "154:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "158:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "162:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "189:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "191:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "239:38-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "242:39-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar entities = {};\nvar relationships = [];\nvar title = '';\nvar Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\nvar Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nvar addEntity = function addEntity(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nvar getEntities = function getEntities() {\n return entities;\n};\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\n\n\nvar addRelationship = function addRelationship(entA, rolA, entB, rSpec) {\n var rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nvar getRelationships = function getRelationships() {\n return relationships;\n}; // Keep this - TODO: revisit...allow the diagram to have a title\n\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar clear = function clear() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality: Cardinality,\n Identification: Identification,\n addEntity: addEntity,\n getEntities: getEntities,\n addRelationship: addRelationship,\n getRelationships: getRelationships,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "index": 920, - "index2": 919, - "size": 11270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erRenderer", - "loc": "50:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "375:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "376:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "537:2-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\nvar conf = {};\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\n\nvar drawEntities = function drawEntities(svgNode, entities, graph) {\n var keys = Object.keys(entities);\n var firstOne;\n keys.forEach(function (id) {\n // Create a group for each entity\n var groupNode = svgNode.append('g').attr('id', id);\n firstOne = firstOne === undefined ? id : firstOne; // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n\n var textId = 'entity-' + id;\n var textNode = groupNode.append('text').attr('class', 'er entityLabel').attr('id', textId).attr('x', 0).attr('y', 0).attr('dominant-baseline', 'middle').attr('text-anchor', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(id); // Calculate the width and height of the entity\n\n var textBBox = textNode.node().getBBox();\n var entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n var entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2); // Make sure the text gets centred relative to the entity box\n\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')'); // Draw the rectangle - insert it before the text so that the text is not obscured\n\n var rectNode = groupNode.insert('rect', '#' + textId).attr('class', 'er entityBox').attr('fill', conf.fill).attr('fill-opacity', '100%').attr('stroke', conf.stroke).attr('x', 0).attr('y', 0).attr('width', entityWidth).attr('height', entityHeight);\n var rectBBox = rectNode.node().getBBox(); // Add the entity to the graph\n\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\n\nvar adjustEntities = function adjustEntities(svgNode, graph) {\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode.select('#' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y - graph.node(v).height / 2) + ' )');\n }\n });\n return;\n};\n\nvar getEdgeName = function getEdgeName(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\n\n\nvar addRelationships = function addRelationships(relationships, g) {\n relationships.forEach(function (r) {\n g.setEdge(r.entityA, r.entityB, {\n relationship: r\n }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\n\nvar relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\n\nvar drawRelationshipFromLayout = function drawRelationshipFromLayout(svg, rel, g, insert) {\n relCnt++; // Find the edge relating to this relationship\n\n var edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel)); // Get a function that will generate the line path\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Insert the line at the right place\n\n var svgPath = svg.insert('path', '#' + insert).attr('class', 'er relationshipLine').attr('d', lineFunction(edge.points)).attr('stroke', conf.stroke).attr('fill', 'none'); // ...and with dashes if necessary\n\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n } // TODO: Understand this better\n\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n } // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n\n\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n } // Now label the relationship\n // Find the half-way point\n\n\n var len = svgPath.node().getTotalLength();\n var labelPoint = svgPath.node().getPointAtLength(len * 0.5); // Append a text node containing the label\n\n var labelId = 'rel' + relCnt;\n var labelNode = svg.append('text').attr('class', 'er relationshipLabel').attr('id', labelId).attr('x', labelPoint.x).attr('y', labelPoint.y).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(rel.roleA); // Figure out how big the opaque 'container' rectangle needs to be\n\n var labelBBox = labelNode.node().getBBox(); // Insert the opaque rectangle before the text label\n\n svg.insert('rect', '#' + labelId).attr('class', 'er relationshipLabelBox').attr('x', labelPoint.x - labelBBox.width / 2).attr('y', labelPoint.y - labelBBox.height / 2).attr('width', labelBBox.width).attr('height', labelBBox.height).attr('fill', 'white').attr('fill-opacity', '85%');\n return;\n};\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n var parser = erParser.parser;\n parser.yy = erDb; // Parse the text to populate erDb\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Get a reference to the svg node that contains the text\n\n\n var svg = select(\"[id='\".concat(id, \"']\")); // Add cardinality marker definitions to the svg\n\n erMarkers.insertMarkers(svg, conf); // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n // Create the graph\n\n var g; // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n }).setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n }).setDefaultEdgeLabel(function () {\n return {};\n }); // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n\n var firstEntity = drawEntities(svg, erDb.getEntities(), g); // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n // Add all the relationships to the graph\n\n var relationships = addRelationships(erDb.getRelationships(), g);\n dagre.layout(g); // Node and edge positions will be updated\n // Adjust the positions of the entities so that they adhere to the layout\n\n adjustEntities(svg, g); // Draw the relationships\n\n relationships.forEach(function (rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height));\n}; // draw\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyDb.js", - "name": "./src/diagrams/user-journey/journeyDb.js", - "index": 570, - "index2": 568, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./journeyDb", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./journeyDb", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "52:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "138:25-34" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "addTaskOrg", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar title = '';\nvar currentSection = '';\nvar sections = [];\nvar tasks = [];\nvar rawTasks = [];\nexport var clear = function clear() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsProcessed = compileTasks();\n var maxDepth = 100;\n var iterationCount = 0;\n\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push.apply(tasks, rawTasks);\n return tasks;\n};\n\nvar updateActors = function updateActors() {\n var tempActors = [];\n tasks.forEach(function (task) {\n if (task.people) {\n tempActors.push.apply(tempActors, _toConsumableArray(task.people));\n }\n });\n var unique = new Set(tempActors);\n return _toConsumableArray(unique).sort();\n};\n\nexport var addTask = function addTask(descr, taskData) {\n var pieces = taskData.substr(1).split(':');\n var score = 0;\n var peeps = [];\n\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n\n var peopleList = peeps.map(function (s) {\n return s.trim();\n });\n var rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score: score\n };\n rawTasks.push(rawTask);\n};\nexport var addTaskOrg = function addTaskOrg(descr) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n\nvar getActors = function getActors() {\n return updateActors();\n};\n\nexport default {\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n addTaskOrg: addTaskOrg,\n getActors: getActors\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "index": 922, - "index2": 921, - "size": 7798, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "53:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "380:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "381:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "538:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "bounds", - "drawTasks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\nparser.yy = journeyDb;\nvar conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n // width of activation box\n activationWidth: 10,\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n var yPos = 60;\n Object.keys(actors).forEach(function (person) {\n var colour = actors[person];\n var circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n var labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person\n };\n svgDraw.drawText(diagram, labelData);\n yPos += 20;\n });\n}\n\nvar LEFT_MARGIN = conf.leftMargin;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n bounds.init();\n var diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDraw.initGraphics(diagram);\n var tasks = parser.yy.getTasks();\n var title = parser.yy.getTitle();\n var actorNames = parser.yy.getActors();\n\n for (var member in actors) {\n delete actors[member];\n }\n\n var actorPos = 0;\n actorNames.forEach(function (actorName) {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n drawTasks(diagram, tasks, 0);\n var box = bounds.getBounds();\n\n if (title) {\n diagram.append('text').text(title).attr('x', LEFT_MARGIN).attr('font-size', '4ex').attr('font-weight', 'bold').attr('y', 25);\n }\n\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n var width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Draw activity line\n\n\n diagram.append('line').attr('x1', LEFT_MARGIN).attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4).attr('stroke-width', 4).attr('stroke', 'black').attr('marker-end', 'url(#arrowhead)');\n var extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', \"\".concat(box.startx, \" -25 \").concat(width, \" \").concat(height + extraVertForTitle));\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n init: function init() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return this.data;\n }\n};\nvar fills = conf.sectionFills;\nvar textColours = conf.sectionColours;\nexport var drawTasks = function drawTasks(diagram, tasks, verticalPos) {\n var lastSection = '';\n var sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n var taskPos = verticalPos + sectionVHeight;\n var sectionNumber = 0;\n var fill = '#CCC';\n var colour = 'black'; // Draw the tasks\n\n for (var i = 0; i < tasks.length; i++) {\n var task = tasks[i];\n\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n colour = textColours[sectionNumber % textColours.length];\n var section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill: fill,\n colour: colour\n };\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n } // Collect the actors involved in the task\n\n\n var taskActors = task.people.reduce(function (acc, actorName) {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {}); // Add some rendering data to the object\n\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.actors = taskActors; // Draw the box with the attached line\n\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowChartShapes.js", - "name": "./src/diagrams/flowchart/flowChartShapes.js", - "index": 889, - "index2": 886, - "size": 7760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowChartShapes", - "loc": "11:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowChartShapes", - "loc": "352:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addToRender", - "addToRenderV2", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var s = (w + h) * 0.9;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n var shapeSvg = insertPolygonShape(parent, s, s, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n var f = 4;\n var h = bbox.height;\n var m = h / f;\n var w = bbox.width + 2 * m;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n var h = bbox.height;\n var w = bbox.width + h / 4;\n var shapeSvg = parent.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n\n node.intersect = function (point) {\n return dagreD3.intersect.rect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n var w = bbox.width;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var shapeSvg = parent.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function (point) {\n var pos = dagreD3.intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_right = lean_right; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_left = lean_left; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().trapezoid = trapezoid; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().inv_trapezoid = inv_trapezoid; // Add custom shape for box with inverted arrow on right side\n\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\nexport function addToRenderV2(addShape) {\n addShape({\n question: question\n });\n addShape({\n hexagon: hexagon\n });\n addShape({\n stadium: stadium\n });\n addShape({\n subroutine: subroutine\n });\n addShape({\n cylinder: cylinder\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n rect_left_inv_arrow: rect_left_inv_arrow\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_right: lean_right\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_left: lean_left\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n trapezoid: trapezoid\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n inv_trapezoid: inv_trapezoid\n }); // Add custom shape for box with inverted arrow on right side\n\n addShape({\n rect_right_inv_arrow: rect_right_inv_arrow\n });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender: addToRender,\n addToRenderV2: addToRenderV2\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "index": 892, - "index2": 904, - "size": 5901, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "257:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "380:2-8" - } - ], - "usedExports": [ - "render" - ], - "providedExports": [ - "render" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport { clear as clearGraphlib, clusterDb, adjustClustersAndEdges, findNonClusterChild } from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nvar recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n var dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n\n\n if (!graph.nodes()) {\n log.trace('No nodes found for', graph);\n } else {\n log.trace('Recursive render', graph.nodes());\n }\n\n if (graph.edges().length > 0) {\n log.trace('Recursive edges', graph.edge(graph.edges()[0]));\n }\n\n var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n\n var edgePaths = elem.insert('g').attr('class', 'edgePaths');\n var edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n\n if (typeof parentCluster !== 'undefined') {\n var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true;\n\n log.trace('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n\n log.trace('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.trace('Cluster identified', v, node, graph.node(v));\n var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.trace('Cluster - the non recursive path', v, node.id, node, graph);\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = {\n id: findNonClusterChild(node.id, graph),\n node: node\n }; // insertCluster(clusters, graph.node(v));\n } else {\n log.trace('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n }); // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e.v, e.w, e.name);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n graph.edges().forEach(function (e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.trace('Graph after layout:', graphlib.json.write(graph)); // Move the nodes to the correct place\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n log.trace('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height);\n\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n }); // Move the edge labels to the correct place after layout\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n var updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n return elem;\n};\n\nexport var render = function render(elem, graph, markers, diagramtype, id) {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n}; // const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "name": "./src/diagrams/sequence/svgDraw.js", - "index": 909, - "index2": 906, - "size": 15081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/sequence/sequenceRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1467, - "building": 447, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "152:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "228:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "234:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "235:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "284:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "299:2-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "385:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "474:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "475:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "476:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "486:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "517:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "530:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "543:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "562:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "581:8-15" - } - ], - "usedExports": [ - "default", - "drawText" - ], - "providedExports": [ - "drawRect", - "drawText", - "drawLabel", - "drawActor", - "anchorElement", - "drawActivation", - "drawLoop", - "drawBackgroundRect", - "insertArrowHead", - "insertSequenceNumber", - "insertArrowCrossHead", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import common from '../common/common';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawText = function drawText(elem, textData) {\n var prevTextHeight = 0,\n textHeight = 0;\n var lines = textData.wrap ? textData.text.split(common.lineBreakRegex) : [textData.text.replace(common.lineBreakRegex, ' ')];\n var textElems = [];\n var dy = 0;\n\n var yfunc = function yfunc() {\n return textData.y;\n };\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = function yfunc() {\n return Math.round(textData.y + textData.textMargin);\n };\n\n break;\n\n case 'middle':\n case 'center':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n };\n\n break;\n\n case 'bottom':\n case 'end':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin);\n };\n\n break;\n }\n }\n\n if (typeof textData.anchor !== 'undefined' && typeof textData.textMargin !== 'undefined' && typeof textData.width !== 'undefined') {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n\n if (typeof textData.textMargin !== 'undefined' && textData.textMargin === 0 && typeof textData.fontSize !== 'undefined') {\n dy = i * textData.fontSize;\n }\n\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n\n if (typeof textData.anchor !== 'undefined') {\n textElem.attr('text-anchor', textData.anchor).attr('dominant-baseline', textData.dominantBaseline).attr('alignment-baseline', textData.alignmentBaseline);\n }\n\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n var span = textElem.append('tspan');\n span.attr('x', textData.x);\n\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n\n span.text(line);\n } else {\n textElem.text(line);\n }\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.height / 2;\n drawText(elem, txtObject);\n return polygon;\n};\nvar actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\n\nexport var drawActor = function drawActor(elem, actor, conf) {\n var center = actor.x + actor.width / 2;\n var g = elem.append('g');\n\n if (actor.y === 0) {\n actorCnt++;\n g.append('line').attr('id', 'actor' + actorCnt).attr('x1', center).attr('y1', 5).attr('x2', center).attr('y2', 2000).attr('class', 'actor-line').attr('stroke-width', '0.5px').attr('stroke', '#999');\n }\n\n var rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(actor.description, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'actor'\n }, conf);\n};\nexport var anchorElement = function anchorElement(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\n\nexport var drawActivation = function drawActivation(elem, bounds, verticalPos, conf, actorActivations) {\n var rect = getNoteRect();\n var g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2\n\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\n\nexport var drawLoop = function drawLoop(elem, loopModel, labelText, conf) {\n var boxMargin = conf.boxMargin,\n boxTextMargin = conf.boxTextMargin,\n labelBoxHeight = conf.labelBoxHeight,\n labelBoxWidth = conf.labelBoxWidth,\n fontFamily = conf.messageFontFamily,\n fontSize = conf.messageFontSize,\n fontWeight = conf.messageFontWeight;\n var g = elem.append('g');\n\n var drawLoopLine = function drawLoopLine(startx, starty, stopx, stopy) {\n return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');\n };\n\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function (item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style('stroke-dasharray', '3, 3');\n });\n }\n\n var txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n var textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function (item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n var sectionHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowHead = function insertArrowHead(elem) {\n elem.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\n\nexport var insertSequenceNumber = function insertSequenceNumber(elem) {\n elem.append('defs').append('marker').attr('id', 'sequencenumber').attr('refX', 15).attr('refY', 15).attr('markerWidth', 60).attr('markerHeight', 40).attr('orient', 'auto').append('circle').attr('cx', 15).attr('cy', 15).attr('r', 6); // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowCrossHead = function insertArrowCrossHead(elem) {\n var defs = elem.append('defs');\n var marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow\n\n marker.append('path').attr('fill', 'black').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 9,2 V 6 L16,4 Z'); // The cross\n\n marker.append('path').attr('fill', 'none').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); // this is actual shape for arrowhead\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n var actorFontSize = conf.actorFontSize,\n actorFontFamily = conf.actorFontFamily,\n actorFontWeight = conf.actorFontWeight;\n var lines = content.split(common.lineBreakRegex);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-weight', actorFontWeight).style('font-family', actorFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n var s = g.append('switch');\n var f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) {\n // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nexport default {\n drawRect: drawRect,\n drawText: drawText,\n drawLabel: drawLabel,\n drawActor: drawActor,\n anchorElement: anchorElement,\n drawActivation: drawActivation,\n drawLoop: drawLoop,\n drawBackgroundRect: drawBackgroundRect,\n insertArrowHead: insertArrowHead,\n insertSequenceNumber: insertSequenceNumber,\n insertArrowCrossHead: insertArrowCrossHead,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "name": "./src/diagrams/class/svgDraw.js", - "index": 912, - "index2": 909, - "size": 11509, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "7:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "82:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "108:6-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawEdge", - "drawClass", - "parseMember", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation, conf) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n\n case relationType.EXTENSION:\n return 'extension';\n\n case relationType.COMPOSITION:\n return 'composition';\n\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n\n if (relation.relation.type1 !== 'none') {\n svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');\n }\n\n if (relation.relation.type2 !== 'none') {\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');\n }\n\n var x, y;\n var l = path.points.length; // Calculate Label position\n\n var labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n var p1_card_x, p1_card_y;\n var p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n var cardinality_1_point = utils.calcCardinalityPosition(relation.relation.type1 !== 'none', path.points, path.points[0]);\n var cardinality_2_point = utils.calcCardinalityPosition(relation.relation.type2 !== 'none', path.points, path.points[l - 1]);\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n var g = elem.append('g').attr('class', 'classLabel');\n var label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);\n window.label = label;\n var bounds = label.node().getBBox();\n g.insert('rect', ':first-child').attr('class', 'box').attr('x', bounds.x - conf.padding / 2).attr('y', bounds.y - conf.padding / 2).attr('width', bounds.width + conf.padding).attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n var _g = elem.append('g').attr('class', 'cardinality');\n\n _g.append('text').attr('class', 'type1').attr('x', p1_card_x).attr('y', p1_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle1);\n }\n\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n var _g2 = elem.append('g').attr('class', 'cardinality');\n\n _g2.append('text').attr('class', 'type2').attr('x', p2_card_x).attr('y', p2_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\nexport var drawClass = function drawClass(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n var cssClassStr = 'classGroup ';\n\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n var id = classDef.id;\n var classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n }; // add class group\n\n var g = elem.append('g').attr('id', lookUpDomId(id)).attr('class', cssClassStr); // add title\n\n var title;\n\n if (classDef.link) {\n title = g.append('svg:a').attr('xlink:href', classDef.link).attr('target', '_blank').append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } else {\n title = g.append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } // add annotations\n\n\n var isFirst = true;\n classDef.annotations.forEach(function (member) {\n var titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n var classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n var classTitle = title.append('tspan').text(classTitleString).attr('class', 'title'); // If class has annotations the title needs to have an offset of the text height\n\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n var titleHeight = title.node().getBBox().height;\n var membersLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n var members = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.members.forEach(function (member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n var membersBox = members.node().getBBox();\n var methodsLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n var methods = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.methods.forEach(function (method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n var classBox = g.node().getBBox();\n var rect = g.insert('rect', ':first-child').attr('x', 0).attr('y', 0).attr('width', classBox.width + 2 * conf.padding).attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n var rectWidth = rect.node().getBBox().width; // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n\n title.node().childNodes.forEach(function (x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n return classInfo;\n};\nexport var parseMember = function parseMember(text) {\n var fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n var methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n var fieldMatch = text.match(fieldRegEx);\n var methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nvar buildFieldDisplay = function buildFieldDisplay(parsedText) {\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var fieldType = parsedText[2] ? parsedText[2].trim() : '';\n var genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var fieldName = parsedText[4] ? parsedText[4].trim() : '';\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nvar buildMethodDisplay = function buildMethodDisplay(parsedText) {\n var cssStyle = '';\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var methodName = parsedText[2] ? parsedText[2].trim() : '';\n var parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var classifier = parsedText[4] ? parsedText[4].trim() : '';\n var returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar buildLegacyDisplay = function buildLegacyDisplay(text) {\n // if for some reason we dont have any match, use old format to parse text\n var displayText = '';\n var cssStyle = '';\n var memberText = '';\n var returnType = '';\n var methodStart = text.indexOf('(');\n var methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n var visibility = '';\n var methodName = '';\n var firstChar = text.substring(0, 1);\n\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n var parameters = text.substring(methodStart + 1, methodEnd);\n var classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar addTspan = function addTspan(textEl, txt, isFirst, conf) {\n var member = parseMember(txt);\n var tSpan = textEl.append('tspan').attr('x', conf.padding).text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nvar parseGenericTypes = function parseGenericTypes(text) {\n var cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nvar parseClassifier = function parseClassifier(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n\n case '$':\n return 'text-decoration:underline;';\n\n default:\n return '';\n }\n};\n\nexport default {\n drawClass: drawClass,\n drawEdge: drawEdge,\n parseMember: parseMember\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "index": 914, - "index2": 912, - "size": 15372, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/stateRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1874, - "building": 443, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes", - "loc": "9:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "142:14-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "157:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "168:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "235:6-14" - } - ], - "usedExports": [ - "addTitleAndBox", - "drawState", - "drawEdge" - ], - "providedExports": [ - "drawStartState", - "drawDivider", - "drawSimpleState", - "drawDescrState", - "addTitleAndBox", - "drawText", - "drawNote", - "drawState", - "drawEdge" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger'; // let conf;\n\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawStartState = function drawStartState(g) {\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n};\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawDivider = function drawDivider(g) {\n return g.append('line').style('stroke', 'grey').style('stroke-dasharray', '3').attr('x1', getConfig().state.textHeight).attr('class', 'divider').attr('x2', getConfig().state.textHeight * 2).attr('y1', 0).attr('y2', 0);\n};\n/**\n * Draws a an end state as a black circle\n */\n\nexport var drawSimpleState = function drawSimpleState(g, stateDef) {\n var state = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var classBox = state.node().getBBox();\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', classBox.width + 2 * getConfig().state.padding).attr('height', classBox.height + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return state;\n};\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\n\nexport var drawDescrState = function drawDescrState(g, stateDef) {\n var addTspan = function addTspan(textEl, txt, isFirst) {\n var tSpan = textEl.append('tspan').attr('x', 2 * getConfig().state.padding).text(txt);\n\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n\n var title = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.descriptions[0]);\n var titleBox = title.node().getBBox();\n var titleHeight = titleBox.height;\n var description = g.append('text') // text label for the x axis\n .attr('x', getConfig().state.padding).attr('y', titleHeight + getConfig().state.padding * 0.4 + getConfig().state.dividerMargin + getConfig().state.textHeight).attr('class', 'state-description');\n var isFirst = true;\n var isSecond = true;\n stateDef.descriptions.forEach(function (descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n\n isFirst = false;\n });\n var descrLine = g.append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding).attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('class', 'descr-divider');\n var descrBox = description.node().getBBox();\n var width = Math.max(descrBox.width, titleBox.width);\n descrLine.attr('x2', width + 3 * getConfig().state.padding); // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', width + 2 * getConfig().state.padding).attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return g;\n};\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\n\nexport var addTitleAndBox = function addTitleAndBox(g, stateDef, altBkg) {\n var pad = getConfig().state.padding;\n var dblPad = 2 * getConfig().state.padding;\n var orgBox = g.node().getBBox();\n var orgWidth = orgBox.width;\n var orgX = orgBox.x;\n var title = g.append('text').attr('x', 0).attr('y', getConfig().state.titleShift).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var titleBox = title.node().getBBox();\n var titleWidth = titleBox.width + dblPad;\n var width = Math.max(titleWidth, orgWidth); // + dblPad;\n\n if (width === orgWidth) {\n width = width + dblPad;\n }\n\n var startX; // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n var graphBox = g.node().getBBox(); // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {// cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n var lineY = 1 - getConfig().state.textHeight; // White color\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', lineY).attr('class', altBkg ? 'alt-composit' : 'composit').attr('width', width).attr('height', graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1).attr('rx', '0');\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad); // Title background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width) // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3).attr('rx', getConfig().state.radius); // Full background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width).attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight).attr('rx', getConfig().state.radius);\n return g;\n};\n\nvar drawEndState = function drawEndState(g) {\n g.append('circle').style('stroke', 'black').style('fill', 'white').attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding);\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\n\nvar drawForkJoinState = function drawForkJoinState(g, stateDef) {\n var width = getConfig().state.forkWidth;\n var height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n var tmp = width;\n width = height;\n height = tmp;\n }\n\n return g.append('rect').style('stroke', 'black').style('fill', 'black').attr('width', width).attr('height', height).attr('x', getConfig().state.padding).attr('y', getConfig().state.padding);\n};\n\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\n\nvar _drawLongText = function _drawLongText(_text, x, y, g) {\n var textHeight = 0;\n var textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n var text = _text.replace(/\\r\\n/g, '
');\n\n text = text.replace(/\\n/g, '
');\n var lines = text.split(common.lineBreakRegex);\n var tHeight = 1.25 * getConfig().state.noteMargin;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _line = _step.value;\n\n var txt = _line.trim();\n\n if (txt.length > 0) {\n var span = textElem.append('tspan');\n span.text(txt);\n\n if (tHeight === 0) {\n var textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n } // console.warn('textBounds', textBounds);\n\n\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return {\n textWidth: textElem.node().getBBox().width,\n textHeight: textHeight\n };\n};\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\n\nexport var drawNote = function drawNote(text, g) {\n g.attr('class', 'state-note');\n var note = g.append('rect').attr('x', 0).attr('y', getConfig().state.padding);\n var rectElem = g.append('g');\n\n var _drawLongText2 = _drawLongText(text, 0, 0, rectElem),\n textWidth = _drawLongText2.textWidth,\n textHeight = _drawLongText2.textHeight;\n\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n return note;\n};\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport var drawState = function drawState(elem, stateDef) {\n var id = stateDef.id;\n var stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n var g = elem.append('g').attr('id', id).attr('class', 'stateGroup');\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0) drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n var stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n idCache.set(id, stateInfo); // stateCnt++;\n\n return stateInfo;\n};\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n\n case stateDb.relationType.EXTENSION:\n return 'extension';\n\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'transition');\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')');\n\n if (typeof relation.title !== 'undefined') {\n var label = elem.append('g').attr('class', 'stateLabel');\n\n var _utils$calcLabelPosit = utils.calcLabelPosition(path.points),\n x = _utils$calcLabelPosit.x,\n y = _utils$calcLabelPosit.y;\n\n var rows = common.getRows(relation.title); // console.warn(rows);\n\n var titleHeight = 0;\n var titleRows = [];\n var maxWidth = 0;\n var minX = 0;\n\n for (var i = 0; i <= rows.length; i++) {\n var title = label.append('text').attr('text-anchor', 'middle').text(rows[i]).attr('x', x).attr('y', y + titleHeight);\n var boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n var titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n\n titleRows.push(title);\n }\n\n var boxHeight = titleHeight * rows.length;\n\n if (rows.length > 1) {\n var heightAdj = (rows.length - 1) * titleHeight * 0.5;\n titleRows.forEach(function (title, i) {\n return title.attr('y', y + i * titleHeight - heightAdj);\n });\n boxHeight = titleHeight * rows.length;\n }\n\n var bounds = label.node().getBBox();\n label.insert('rect', ':first-child').attr('class', 'box').attr('x', x - maxWidth / 2 - getConfig().state.padding / 2).attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5).attr('width', maxWidth + getConfig().state.padding).attr('height', boxHeight + getConfig().state.padding);\n logger.info(bounds); //label.attr('transform', '0 -' + (bounds.y / 2));\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erMarkers.js", - "name": "./src/diagrams/er/erMarkers.js", - "index": 921, - "index2": 918, - "size": 3422, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/er/erRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1660, - "building": 393 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erMarkers", - "loc": "8:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "133:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "137:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "141:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "145:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "151:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "155:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "159:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "163:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "202:2-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "var ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\n\nvar insertMarkers = function insertMarkers(elem, conf) {\n var marker;\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18 M15,0 L15,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_END).attr('refX', 18).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,0 L3,18 M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 21).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_END).attr('refX', 30).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,0 L21,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_END).attr('refX', 27).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 48).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_END).attr('refX', 39).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n return;\n};\n\nexport default {\n ERMarkers: ERMarkers,\n insertMarkers: insertMarkers\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/svgDraw.js", - "name": "./src/diagrams/user-journey/svgDraw.js", - "index": 923, - "index2": 920, - "size": 9389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/user-journey/journeyRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1120, - "building": 474, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "57:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "76:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "227:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawRect", - "drawFace", - "drawCircle", - "drawText", - "drawLabel", - "drawSection", - "drawTask", - "drawBackgroundRect", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { arc as d3arc } from 'd3';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawFace = function drawFace(element, faceData) {\n var radius = 15;\n var circleElement = element.append('circle').attr('cx', faceData.cx).attr('cy', faceData.cy).attr('fill', '#FFF8DC').attr('stroke', '#999').attr('r', radius).attr('stroke-width', 2).attr('overflow', 'visible');\n var face = element.append('g'); //left eye\n\n face.append('circle').attr('cx', faceData.cx - radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666'); //right eye\n\n face.append('circle').attr('cx', faceData.cx + radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666');\n\n function smile(face) {\n var arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n var arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face.append('line').attr('stroke', 2).attr('x1', faceData.cx - 5).attr('y1', faceData.cy + 7).attr('x2', faceData.cx + 5).attr('y2', faceData.cy + 7).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\nexport var drawCircle = function drawCircle(element, circleData) {\n var circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(//gi, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('fill', textData.fill);\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n return textElem;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\nexport var drawSection = function drawSection(elem, section, conf) {\n var g = elem.append('g');\n var rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(section.text, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'journey-section'\n }, conf, section.colour);\n};\nvar taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\n\nexport var drawTask = function drawTask(elem, task, conf) {\n var center = task.x + conf.width / 2;\n var g = elem.append('g');\n taskCount++;\n var maxHeight = 300 + 5 * 30;\n g.append('line').attr('id', 'task' + taskCount).attr('x1', center).attr('y1', task.y).attr('x2', center).attr('y2', maxHeight).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke-dasharray', '4 2').attr('stroke', '#666');\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n var rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n var xPos = task.x + 14;\n task.people.forEach(function (person) {\n var colour = task.actors[person];\n var circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(task.task, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'task'\n }, conf, task.colour);\n};\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('font-color', colour).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n var taskFontSize = conf.taskFontSize,\n taskFontFamily = conf.taskFontFamily;\n var lines = content.split(//gi);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).attr('fill', colour).style('text-anchor', 'middle').style('font-size', taskFontSize).style('font-family', taskFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf, colour) {\n var body = g.append('switch');\n var f = body.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('position', 'fixed');\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').style('color', colour).text(content);\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nvar initGraphics = function initGraphics(graphics) {\n graphics.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect: drawRect,\n drawCircle: drawCircle,\n drawSection: drawSection,\n drawText: drawText,\n drawLabel: drawLabel,\n drawTask: drawTask,\n drawBackgroundRect: drawBackgroundRect,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect,\n initGraphics: initGraphics\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "name": "./src/dagre-wrapper/markers.js", - "index": 907, - "index2": 903, - "size": 6123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./markers", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./markers", - "loc": "125:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nimport { logger } from '../logger'; // Only add the number of markers that the diagram needs\n\nvar insertMarkers = function insertMarkers(elem, markerArray, type, id) {\n markerArray.forEach(function (markerName) {\n markers[markerName](elem, type, id);\n });\n};\n\nvar extension = function extension(elem, type, id) {\n logger.trace('Making markers for ', id);\n elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', type + '-extensionEnd ' + type).attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nvar composition = function composition(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar aggregation = function aggregation(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar dependency = function dependency(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nvar point = function point(elem, type) {\n elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar circle = function circle(elem, type) {\n elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar cross = function cross(elem, type) {\n elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n};\n\nvar barb = function barb(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n}; // TODO rename the class diagram markers to something shape descriptive and semanitc free\n\n\nvar markers = {\n extension: extension,\n composition: composition,\n aggregation: aggregation,\n dependency: dependency,\n point: point,\n circle: circle,\n cross: cross,\n barb: barb\n};\nexport default insertMarkers;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "name": "./src/dagre-wrapper/shapes/util.js", - "index": 893, - "index2": 890, - "size": 1604, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "./util", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "5:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "7:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "11:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "16:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "32:21-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "33:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "44:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "53:6-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "71:12-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "72:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "82:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "104:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "105:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "115:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "134:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "135:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "145:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "164:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "165:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "175:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "194:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "195:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "205:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "224:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "225:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "235:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "257:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "258:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "268:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "278:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "301:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "310:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "380:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "390:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "398:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "408:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "417:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "428:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "465:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "466:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "480:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "500:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "517:2-18" - } - ], - "usedExports": [ - "updateNodeBounds", - "labelHelper", - "insertPolygonShape" - ], - "providedExports": [ - "labelHelper", - "updateNodeBounds", - "insertPolygonShape" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport var labelHelper = function labelHelper(parent, node, _classes, isNode) {\n var classes;\n\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var halfPadding = node.padding / 2; // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n return {\n shapeSvg: shapeSvg,\n bbox: bbox,\n halfPadding: halfPadding,\n label: label\n };\n};\nexport var updateNodeBounds = function updateNodeBounds(node, element) {\n var bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\nexport function insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "name": "./src/dagre-wrapper/mermaid-graphlib.js", - "index": 904, - "index2": 900, - "size": 11877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaid-graphlib", - "loc": "5:0-116" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "61:18-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "62:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "63:14-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:84-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "108:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "118:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "129:2-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "131:2-24" - } - ], - "usedExports": [ - "findNonClusterChild", - "clusterDb", - "clear", - "adjustClustersAndEdges" - ], - "providedExports": [ - "clusterDb", - "clear", - "extractDecendants", - "validate", - "findNonClusterChild", - "adjustClustersAndEdges", - "extractor" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\nexport var clusterDb = {};\nvar decendants = {};\nvar parents = {};\nexport var clear = function clear() {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nvar isDecendant = function isDecendant(id, ancenstorId) {\n // if (id === ancenstorId) return true;\n log.debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0);\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n return false;\n};\n\nvar edgeInCluster = function edgeInCluster(edge, clusterId) {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent\n\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n\n log.info('Here ');\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n return false;\n};\n\nvar copy = function copy(clusterId, graph, newGraph, rootId) {\n log.info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root\n\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n nodes.forEach(function (node) {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n var data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId);\n }\n\n var edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(function (edge) {\n log.info('Edge', edge);\n var data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId);\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\n\nexport var extractDecendants = function extractDecendants(id, graph) {\n // log.debug('Extracting ', id);\n var children = graph.children(id);\n var res = [].concat(children);\n\n for (var i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\n\nexport var validate = function validate(graph) {\n var edges = graph.edges();\n log.trace('Edges: ', edges);\n\n for (var i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n\n return true;\n};\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\n\nexport var findNonClusterChild = function findNonClusterChild(id, graph) {\n // const node = graph.node(id);\n log.trace('Searching', id); // const children = graph.children(id).reverse();\n\n var children = graph.children(id); //.reverse();\n\n log.trace('Searching children of id ', id, children);\n\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n\n for (var i = 0; i < children.length; i++) {\n var _id = findNonClusterChild(children[i], graph);\n\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nvar getAnchorId = function getAnchorId(id) {\n if (!clusterDb[id]) {\n return id;\n } // If the cluster has no external connections\n\n\n if (!clusterDb[id].externalConnections) {\n return id;\n } // Return the replacement node\n\n\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n\n return id;\n};\n\nexport var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n } // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n\n if (children.length > 0) {\n log.warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph));\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = {\n id: findNonClusterChild(id, graph),\n clusterData: graph.node(id)\n };\n }\n }); // Check incoming and outgoing edges for each cluster\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n var edges = graph.edges();\n\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(function (edge) {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n var d1 = isDecendant(edge.v, id);\n var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n var v = e.v;\n var w = e.w; // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n log.trace(clusterDb); // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\nexport var extractor = function extractor(graph, depth) {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n\n if (depth > 10) {\n log.error('Bailing out');\n return;\n } // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n\n\n var nodes = graph.nodes();\n var hasChildren = false;\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n var children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n } // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n\n\n log.debug('Nodes = ', nodes, depth);\n\n for (var _i = 0; _i < nodes.length; _i++) {\n var _node = nodes[_i];\n log.debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n\n if (!clusterDb[_node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', _node, depth); // break;\n } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) {\n log.debug('Cluster without external connections, without a parent and with children', _node, depth);\n var graphSettings = graph.graph();\n var clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(_node, graph, clusterGraph, _node);\n graph.setNode(_node, {\n clusterNode: true,\n id: _node,\n clusterData: clusterDb[_node].clusterData,\n labelText: clusterDb[_node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth);\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n\n for (var _i2 = 0; _i2 < nodes.length; _i2++) {\n var _node2 = nodes[_i2];\n var data = graph.node(_node2);\n log.debug(' Now next leveö', _node2, data);\n\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "index": 895, - "index2": 899, - "size": 15504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "6:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "54:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "68:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "101:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "110:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "126:2-12" - } - ], - "usedExports": [ - "setNodeElem", - "insertNode", - "positionNode", - "clear" - ], - "providedExports": [ - "insertNode", - "setNodeElem", - "clear", - "positionNode" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersect from './intersect/index.js';\nimport { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nvar question = function question(parent, node) {\n var _labelHelper = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var s = w + h;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n logger.info('Question main (Circle)');\n var questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n\n node.intersect = function (point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nvar hexagon = function hexagon(parent, node) {\n var _labelHelper2 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper2.shapeSvg,\n bbox = _labelHelper2.bbox;\n\n var f = 4;\n var h = bbox.height + node.padding;\n var m = h / f;\n var w = bbox.width + 2 * m + node.padding;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) {\n var _labelHelper3 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper3.shapeSvg,\n bbox = _labelHelper3.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_right = function lean_right(parent, node) {\n var _labelHelper4 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper4.shapeSvg,\n bbox = _labelHelper4.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_left = function lean_left(parent, node) {\n var _labelHelper5 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper5.shapeSvg,\n bbox = _labelHelper5.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar trapezoid = function trapezoid(parent, node) {\n var _labelHelper6 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper6.shapeSvg,\n bbox = _labelHelper6.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar inv_trapezoid = function inv_trapezoid(parent, node) {\n var _labelHelper7 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper7.shapeSvg,\n bbox = _labelHelper7.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) {\n var _labelHelper8 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper8.shapeSvg,\n bbox = _labelHelper8.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar cylinder = function cylinder(parent, node) {\n var _labelHelper9 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper9.shapeSvg,\n bbox = _labelHelper9.bbox;\n\n var w = bbox.width + node.padding;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry + node.padding;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n var pos = intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nvar rect = function rect(parent, node) {\n var _labelHelper10 = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper10.shapeSvg,\n bbox = _labelHelper10.bbox,\n halfPadding = _labelHelper10.halfPadding;\n\n logger.trace('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rectWithTitle = function rectWithTitle(parent, node) {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n var classes;\n\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect');\n\n var innerLine = shapeSvg.insert('line');\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n var text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n var bbox;\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n logger.info('Text 2', text2);\n var textRows = text2.slice(1, text2.length);\n var titleBox = text.getBBox();\n var descr = label.node().appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n var _div = descr.children[0];\n\n var _dv = select(descr);\n\n bbox = _div.getBoundingClientRect();\n\n _dv.attr('width', bbox.width);\n\n _dv.attr('height', bbox.height);\n } // bbox = label.getBBox();\n // logger.info(descr);\n\n\n var halfPadding = node.padding / 2;\n select(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')');\n select(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label\n // Bounding box for title and text\n\n bbox = label.node().getBBox(); // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')');\n rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar stadium = function stadium(parent, node) {\n var _labelHelper11 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper11.shapeSvg,\n bbox = _labelHelper11.bbox;\n\n var h = bbox.height + node.padding;\n var w = bbox.width + h / 4 + node.padding; // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar circle = function circle(parent, node) {\n var _labelHelper12 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper12.shapeSvg,\n bbox = _labelHelper12.bbox,\n halfPadding = _labelHelper12.halfPadding;\n\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n logger.info('Circle main');\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nvar subroutine = function subroutine(parent, node) {\n var _labelHelper13 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper13.shapeSvg,\n bbox = _labelHelper13.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar start = function start(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar forkJoin = function forkJoin(parent, node, dir) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var width = 70;\n var height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join');\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar end = function end(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var innerCircle = shapeSvg.insert('circle', ':first-child');\n var circle = shapeSvg.insert('circle', ':first-child');\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n question: question,\n rect: rect,\n rectWithTitle: rectWithTitle,\n circle: circle,\n stadium: stadium,\n hexagon: hexagon,\n rect_left_inv_arrow: rect_left_inv_arrow,\n lean_right: lean_right,\n lean_left: lean_left,\n trapezoid: trapezoid,\n inv_trapezoid: inv_trapezoid,\n rect_right_inv_arrow: rect_right_inv_arrow,\n cylinder: cylinder,\n start: start,\n end: end,\n note: note,\n subroutine: subroutine,\n fork: forkJoin,\n join: forkJoin\n};\nvar nodeElems = {};\nexport var insertNode = function insertNode(elem, node, dir) {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport var setNodeElem = function setNodeElem(elem, node) {\n nodeElems[node.id] = elem;\n};\nexport var clear = function clear() {\n nodeElems = {};\n};\nexport var positionNode = function positionNode(node) {\n var el = nodeElems[node.id];\n logger.trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')');\n var padding = 8;\n\n if (node.clusterNode) {\n el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')');\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "index": 906, - "index2": 902, - "size": 5981, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clusters", - "loc": "7:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "107:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "128:2-15" - } - ], - "usedExports": [ - "insertCluster", - "clear" - ], - "providedExports": [ - "insertCluster", - "getClusterTitleWidth", - "clear", - "positionCluster" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nvar rect = function rect(parent, node) {\n log.trace('Creating subgraph rect for ', node.id, node); // Add outer g element\n\n var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var padding = 0 * node.padding;\n var halfPadding = padding / 2;\n log.trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n/**\n * Non visiable cluster where the note is group with its\n */\n\n\nvar noteGroup = function noteGroup(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar roundedWithTitle = function roundedWithTitle(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var innerRect = shapeSvg.append('rect');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n bbox = text.getBBox();\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding);\n innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar divider = function divider(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding);\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n rect: rect,\n roundedWithTitle: roundedWithTitle,\n noteGroup: noteGroup,\n divider: divider\n};\nvar clusterElems = {};\nexport var insertCluster = function insertCluster(elem, node) {\n log.trace('Inserting cluster');\n var shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport var getClusterTitleWidth = function getClusterTitleWidth(elem, node) {\n var label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n var width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\nexport var clear = function clear() {\n clusterElems = {};\n};\nexport var positionCluster = function positionCluster(node) {\n log.info('Position cluster');\n var el = clusterElems[node.id];\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "name": "./src/dagre-wrapper/edges.js", - "index": 905, - "index2": 901, - "size": 10214, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./edges", - "loc": "8:0-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "82:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "118:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "119:4-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "127:2-12" - } - ], - "usedExports": [ - "insertEdgeLabel", - "insertEdge", - "positionEdgeLabel", - "clear" - ], - "providedExports": [ - "clear", - "insertEdgeLabel", - "positionEdgeLabel", - "intersection", - "insertEdge" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import { logger } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils'; // import { calcLabelPosition } from '../utils';\n\nvar edgeLabels = {};\nexport var clear = function clear() {\n edgeLabels = {};\n};\nexport var insertEdgeLabel = function insertEdgeLabel(elem, edge) {\n // Create the actual text element\n var labelElement = createLabel(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout\n\n var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text\n\n var label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement); // Center the label\n\n var bbox = labelElement.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = labelElement.children[0];\n var dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning\n\n edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height\n\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\nexport var positionEdgeLabel = function positionEdgeLabel(edge, points) {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n\n if (edge.label) {\n var el = edgeLabels[edge.id];\n var x = edge.x;\n var y = edge.y;\n\n if (points) {\n // debugger;\n var pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n}; // const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nvar outsideNode = function outsideNode(node, point) {\n // logger.warn('Checking bounds ', node, point);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(point.x - x);\n var dy = Math.abs(point.y - y);\n var w = node.width / 2;\n var h = node.height / 2;\n\n if (dx >= w || dy >= h) {\n return true;\n }\n\n return false;\n};\n\nexport var intersection = function intersection(node, outsidePoint, insidePoint) {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(x - insidePoint.x);\n var w = node.width / 2;\n var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n var h = node.height / 2;\n var edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) {\n // logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n var Q = Math.abs(outsidePoint.y - insidePoint.y);\n var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn();\n\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {\n // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = R * q / Q;\n var res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(\"topp/bott calc, Q \".concat(Q, \", q \").concat(q, \", R \").concat(R, \", r \").concat(r), res);\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n\n var _q = _q = Q * r / R;\n\n logger.warn(\"sides calc, Q \".concat(Q, \", q \").concat(_q, \", R \").concat(R, \", r \").concat(r), {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n });\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n };\n }\n}; //(edgePaths, e, edge, clusterDb, diagramtype, graph)\n\nexport var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) {\n var points = edge.points;\n var pointsHasChanged = false;\n var tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1]));\n points.push(head.intersect(points[points.length - 1]));\n }\n\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n var lastPointOutside;\n var isInside = false;\n edge.points.forEach(function (point) {\n var node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect\n\n var insterection = intersection(node, lastPointOutside, point);\n logger.trace('intersect', insterection);\n points.push(insterection);\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n var updatedPoints = [];\n\n var _lastPointOutside;\n\n var _isInside = false;\n\n for (var i = points.length - 1; i >= 0; i--) {\n var point = points[i];\n var node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !_isInside) {\n logger.warn('inside', edge.fromCluster, point, node); // First point inside the rect\n\n var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point));\n\n updatedPoints.unshift(insterection); // points.push(insterection);\n\n _isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!_isInside) updatedPoints.unshift(point);\n }\n\n _lastPointOutside = point;\n }\n\n points = updatedPoints;\n pointsHasChanged = true;\n } // The data for our line\n\n\n var lineData = points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Contruct stroke classes based on properties\n\n var strokeClasses;\n\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n\n default:\n strokeClasses = '';\n }\n\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n logger.info('arrowType', edge.arrowType);\n\n switch (edge.arrowType) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n\n case 'double_arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n\n case 'double_arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n\n case 'double_arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barnEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n\n case 'double_arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/id-cache.js", - "name": "./src/diagrams/state/id-cache.js", - "index": 915, - "index2": 911, - "size": 347, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "profile": { - "factory": 1874, - "building": 443, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 58, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./id-cache.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./id-cache.js", - "loc": "290:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "set", - "get", - "keys", - "size", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var idCache = {};\nexport var set = function set(key, val) {\n idCache[key] = val;\n};\nexport var get = function get(k) {\n return idCache[k];\n};\nexport var keys = function keys() {\n return Object.keys(idCache);\n};\nexport var size = function size() {\n return keys().length;\n};\nexport default {\n get: get,\n set: set,\n keys: keys,\n size: size\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "name": "./src/dagre-wrapper/createLabel.js", - "index": 894, - "index2": 889, - "size": 4142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../createLabel", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "7:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "14:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "16:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../createLabel", - "loc": "17:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "78:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "142:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "338:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "352:39-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n// const rows = vertexText.split(common.lineBreakRegex);\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\n\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n var fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n var div = fo.append('xhtml:div');\n var label = node.label;\n var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block'); // Fix for firefox\n\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nvar createLabel = function createLabel(_vertexText, style, isTitle, isNode) {\n var vertexText = _vertexText || '';\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n var node = {\n isNode: isNode,\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode);\n\n return vertexNode;\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n var rows = [];\n\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }\n};\n\nexport default createLabel;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-rect.js", - "name": "./src/dagre-wrapper/intersect/intersect-rect.js", - "index": 902, - "index2": 896, - "size": 740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/clusters.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 121, - "building": 86 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/intersect-rect", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-rect.js", - "loc": "8:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-rect.js", - "loc": "14:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "40:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "64:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "103:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "123:11-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var intersectRect = function intersectRect(node, point) {\n var x = node.x;\n var y = node.y; // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n var sx, sy;\n\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {\n x: x + sx,\n y: y + sy\n };\n};\n\nexport default intersectRect;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "index": 896, - "index2": 897, - "size": 395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../intersect/index.js", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../intersect/index.js", - "loc": "19:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "37:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "75:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "108:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "138:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "168:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "198:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "228:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "261:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "281:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "313:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "383:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "401:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "421:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "469:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "483:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "505:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "520:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\nexport default {\n node: node,\n circle: circle,\n ellipse: ellipse,\n polygon: polygon,\n rect: rect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "name": "./src/dagre-wrapper/shapes/note.js", - "index": 903, - "index2": 898, - "size": 894, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/note", - "loc": "8:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/note", - "loc": "542:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport intersect from '../intersect/index.js';\n\nvar note = function note(parent, node) {\n var _labelHelper = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox,\n halfPadding = _labelHelper.halfPadding;\n\n logger.info('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-ellipse.js", - "name": "./src/dagre-wrapper/intersect/intersect-ellipse.js", - "index": 899, - "index2": 892, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse", - "loc": "4:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse.js", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse.js", - "loc": "12:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n var cx = node.x;\n var cy = node.y;\n var px = cx - point.x;\n var py = cy - point.y;\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n var dx = Math.abs(rx * ry * px / det);\n\n if (point.x < cx) {\n dx = -dx;\n }\n\n var dy = Math.abs(rx * ry * py / det);\n\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {\n x: cx + dx,\n y: cy + dy\n };\n}\n\nexport default intersectEllipse;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "name": "./src/dagre-wrapper/intersect/intersect-circle.js", - "index": 898, - "index2": 893, - "size": 179, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-circle.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-circle.js", - "loc": "11:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "index": 900, - "index2": 895, - "size": 1612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-polygon.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-polygon.js", - "loc": "13:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "/* eslint \"no-console\": off */\nimport intersectLine from './intersect-line';\nexport default intersectPolygon;\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\n\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n var intersections = [];\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function (entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point, {\n x: left + p1.x,\n y: top + p1.y\n }, {\n x: left + p2.x,\n y: top + p2.y\n });\n\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function (p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n\n return intersections[0];\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-line.js", - "name": "./src/dagre-wrapper/intersect/intersect-line.js", - "index": 901, - "index2": 894, - "size": 1886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - } - } - ], - "profile": { - "factory": 93, - "building": 82 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-line", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony import specifier", - "userRequest": "./intersect-line", - "loc": "25:20-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 7, - "source": "/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4.\n\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return;\n } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n\n\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2\n\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return;\n } // Line segments intersect: compute intersection point.\n\n\n denom = a1 * b2 - a2 * b1;\n\n if (denom === 0) {\n return;\n }\n\n offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n return {\n x: x,\n y: y\n };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;" - } - ], - "filteredModules": 0 - } - ], - "filteredModules": 0, - "origins": [ - { - "module": "", - "moduleIdentifier": "", - "moduleName": "", - "loc": "mermaid", - "request": "./src/mermaid.js", - "reasons": [] - } - ] - } - ], - "modules": [ - { - "id": 0, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js daa161b1f30eb913167fb63d2cd63e08", - "name": "./node_modules/d3/index.js + 520 modules", - "index": 3, - "index2": 521, - "size": 554982, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "module": "./node_modules/dagre-d3/lib/d3.js", - "moduleName": "./node_modules/dagre-d3/lib/d3.js", - "type": "cjs require", - "userRequest": "d3", - "loc": "7:11-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": true, - "providedExports": [ - "version", - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip", - "axisTop", - "axisRight", - "axisBottom", - "axisLeft", - "brush", - "brushX", - "brushY", - "brushSelection", - "chord", - "ribbon", - "nest", - "set", - "map", - "keys", - "values", - "entries", - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix", - "contours", - "contourDensity", - "dispatch", - "drag", - "dragDisable", - "dragEnable", - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType", - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut", - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg", - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY", - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound", - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform", - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize", - "path", - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength", - "quadtree", - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent", - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse", - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears", - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse", - "now", - "timer", - "timerFlush", - "timeout", - "interval", - "transition", - "active", - "interrupt", - "voronoi", - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [], - "depth": 2, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "index": 3, - "index2": 521, - "size": 893, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "module": "./node_modules/dagre-d3/lib/d3.js", - "moduleName": "./node_modules/dagre-d3/lib/d3.js", - "type": "cjs require", - "userRequest": "d3", - "loc": "7:11-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": true, - "providedExports": [ - "version", - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip", - "axisTop", - "axisRight", - "axisBottom", - "axisLeft", - "brush", - "brushX", - "brushY", - "brushSelection", - "chord", - "ribbon", - "nest", - "set", - "map", - "keys", - "values", - "entries", - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix", - "contours", - "contourDensity", - "dispatch", - "drag", - "dragDisable", - "dragEnable", - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType", - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut", - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg", - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY", - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound", - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform", - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize", - "path", - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength", - "quadtree", - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent", - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse", - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears", - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse", - "now", - "timer", - "timerFlush", - "timeout", - "interval", - "transition", - "active", - "interrupt", - "voronoi", - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./node_modules/dagre-d3/lib/d3.js (referenced with cjs require)" - ], - "depth": 2, - "source": "export {version} from \"./dist/package.js\";\nexport * from \"d3-array\";\nexport * from \"d3-axis\";\nexport * from \"d3-brush\";\nexport * from \"d3-chord\";\nexport * from \"d3-collection\";\nexport * from \"d3-color\";\nexport * from \"d3-contour\";\nexport * from \"d3-dispatch\";\nexport * from \"d3-drag\";\nexport * from \"d3-dsv\";\nexport * from \"d3-ease\";\nexport * from \"d3-fetch\";\nexport * from \"d3-force\";\nexport * from \"d3-format\";\nexport * from \"d3-geo\";\nexport * from \"d3-hierarchy\";\nexport * from \"d3-interpolate\";\nexport * from \"d3-path\";\nexport * from \"d3-polygon\";\nexport * from \"d3-quadtree\";\nexport * from \"d3-random\";\nexport * from \"d3-scale\";\nexport * from \"d3-scale-chromatic\";\nexport * from \"d3-selection\";\nexport * from \"d3-shape\";\nexport * from \"d3-time\";\nexport * from \"d3-time-format\";\nexport * from \"d3-timer\";\nexport * from \"d3-transition\";\nexport * from \"d3-voronoi\";\nexport * from \"d3-zoom\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/dist/package.js", - "name": "./node_modules/d3/dist/package.js", - "index": 4, - "index2": 1, - "size": 2149, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dist/package.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dist/package.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "version" - ], - "providedExports": [ - "name", - "version", - "description", - "keywords", - "homepage", - "license", - "author", - "main", - "unpkg", - "jsdelivr", - "module", - "repository", - "files", - "scripts", - "devDependencies", - "dependencies" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export var name = \"d3\";\nexport var version = \"5.15.0\";\nexport var description = \"Data-Driven Documents\";\nexport var keywords = [\"dom\",\"visualization\",\"svg\",\"animation\",\"canvas\"];\nexport var homepage = \"https://d3js.org\";\nexport var license = \"BSD-3-Clause\";\nexport var author = {\"name\":\"Mike Bostock\",\"url\":\"https://bost.ocks.org/mike\"};\nexport var main = \"dist/d3.node.js\";\nexport var unpkg = \"dist/d3.min.js\";\nexport var jsdelivr = \"dist/d3.min.js\";\nexport var module = \"index.js\";\nexport var repository = {\"type\":\"git\",\"url\":\"https://github.com/d3/d3.git\"};\nexport var files = [\"dist/**/*.js\",\"index.js\"];\nexport var scripts = {\"pretest\":\"rimraf dist && mkdir dist && json2module package.json > dist/package.js && rollup -c\",\"test\":\"tape 'test/**/*-test.js'\",\"prepublishOnly\":\"yarn test\",\"postpublish\":\"git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3/dist/d3.js d3.v5.js && cp ../d3/dist/d3.min.js d3.v5.min.js && git add d3.v5.js d3.v5.min.js && git commit -m \\\"d3 ${npm_package_version}\\\" && git push && cd - && cd ../d3-bower && git pull && cp ../d3/LICENSE ../d3/README.md ../d3/dist/d3.js ../d3/dist/d3.min.js . && git add -- LICENSE README.md d3.js d3.min.js && git commit -m \\\"${npm_package_version}\\\" && git tag -am \\\"${npm_package_version}\\\" v${npm_package_version} && git push && git push --tags && cd - && zip -j dist/d3.zip -- LICENSE README.md API.md CHANGES.md dist/d3.js dist/d3.min.js\"};\nexport var devDependencies = {\"json2module\":\"0.0\",\"rimraf\":\"2\",\"rollup\":\"1\",\"rollup-plugin-ascii\":\"0.0\",\"rollup-plugin-node-resolve\":\"3\",\"rollup-plugin-terser\":\"5\",\"tape\":\"4\"};\nexport var dependencies = {\"d3-array\":\"1\",\"d3-axis\":\"1\",\"d3-brush\":\"1\",\"d3-chord\":\"1\",\"d3-collection\":\"1\",\"d3-color\":\"1\",\"d3-contour\":\"1\",\"d3-dispatch\":\"1\",\"d3-drag\":\"1\",\"d3-dsv\":\"1\",\"d3-ease\":\"1\",\"d3-fetch\":\"1\",\"d3-force\":\"1\",\"d3-format\":\"1\",\"d3-geo\":\"1\",\"d3-hierarchy\":\"1\",\"d3-interpolate\":\"1\",\"d3-path\":\"1\",\"d3-polygon\":\"1\",\"d3-quadtree\":\"1\",\"d3-random\":\"1\",\"d3-scale\":\"2\",\"d3-scale-chromatic\":\"1\",\"d3-selection\":\"1\",\"d3-shape\":\"1\",\"d3-time\":\"1\",\"d3-time-format\":\"2\",\"d3-timer\":\"1\",\"d3-transition\":\"1\",\"d3-voronoi\":\"1\",\"d3-zoom\":\"1\"};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "index": 5, - "index2": 33, - "size": 1321, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "2:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-array", - "loc": "2:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "5:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-array", - "loc": "5:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "5:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "10:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "10:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "11:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "12:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "14:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "15:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "17:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "19:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "22:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "26:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "27:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "28:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "29:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "29:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "31:18-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "32:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "34:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "34:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "39:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "39:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "40:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "40:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "41:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "43:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "52:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "57:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "58:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "59:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "78:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "80:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "87:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "96:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "d3-array", - "loc": "106:10-15" - } - ], - "usedExports": [ - "tickStep", - "bisect", - "ticks", - "tickIncrement", - "ascending", - "bisector", - "quantile", - "range", - "max", - "thresholdSturges", - "extent", - "min", - "bisectRight", - "bisectLeft", - "cross", - "descending", - "deviation", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "mean", - "median", - "merge", - "pairs", - "permute", - "scan", - "shuffle", - "sum", - "transpose", - "variance", - "zip" - ], - "providedExports": [ - "bisect", - "bisectRight", - "bisectLeft", - "ascending", - "bisector", - "cross", - "descending", - "deviation", - "extent", - "histogram", - "thresholdFreedmanDiaconis", - "thresholdScott", - "thresholdSturges", - "max", - "mean", - "median", - "merge", - "min", - "pairs", - "permute", - "quantile", - "range", - "scan", - "shuffle", - "sum", - "ticks", - "tickIncrement", - "tickStep", - "transpose", - "variance", - "zip" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as bisect, bisectRight, bisectLeft} from \"./bisect\";\nexport {default as ascending} from \"./ascending\";\nexport {default as bisector} from \"./bisector\";\nexport {default as cross} from \"./cross\";\nexport {default as descending} from \"./descending\";\nexport {default as deviation} from \"./deviation\";\nexport {default as extent} from \"./extent\";\nexport {default as histogram} from \"./histogram\";\nexport {default as thresholdFreedmanDiaconis} from \"./threshold/freedmanDiaconis\";\nexport {default as thresholdScott} from \"./threshold/scott\";\nexport {default as thresholdSturges} from \"./threshold/sturges\";\nexport {default as max} from \"./max\";\nexport {default as mean} from \"./mean\";\nexport {default as median} from \"./median\";\nexport {default as merge} from \"./merge\";\nexport {default as min} from \"./min\";\nexport {default as pairs} from \"./pairs\";\nexport {default as permute} from \"./permute\";\nexport {default as quantile} from \"./quantile\";\nexport {default as range} from \"./range\";\nexport {default as scan} from \"./scan\";\nexport {default as shuffle} from \"./shuffle\";\nexport {default as sum} from \"./sum\";\nexport {default as ticks, tickIncrement, tickStep} from \"./ticks\";\nexport {default as transpose} from \"./transpose\";\nexport {default as variance} from \"./variance\";\nexport {default as zip} from \"./zip\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "index": 37, - "index2": 37, - "size": 75, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-axis", - "loc": "3:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-axis", - "loc": "3:0-24" - } - ], - "usedExports": [ - "axisBottom", - "axisTop", - "axisRight", - "axisLeft" - ], - "providedExports": [ - "axisTop", - "axisRight", - "axisBottom", - "axisLeft" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n axisTop,\n axisRight,\n axisBottom,\n axisLeft\n} from \"./axis\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "index": 43, - "index2": 122, - "size": 192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "5:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "5:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-transition", - "loc": "30:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-transition", - "loc": "30:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "236:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "248:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "261:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "313:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "d3-transition", - "loc": "390:4-13" - } - ], - "usedExports": [ - "interrupt", - "transition", - "active" - ], - "providedExports": [ - "transition", - "active", - "interrupt" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import \"./selection/index.js\";\nexport {default as transition} from \"./transition/index.js\";\nexport {default as active} from \"./active.js\";\nexport {default as interrupt} from \"./interrupt.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "index": 41, - "index2": 139, - "size": 87, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-brush", - "loc": "4:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-brush", - "loc": "4:0-25" - } - ], - "usedExports": [ - "brush", - "brushX", - "brushY", - "brushSelection" - ], - "providedExports": [ - "brush", - "brushX", - "brushY", - "brushSelection" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as brush,\n brushX,\n brushY,\n brushSelection\n} from \"./brush.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "index": 143, - "index2": 146, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-chord", - "loc": "5:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-chord", - "loc": "5:0-25" - } - ], - "usedExports": [ - "chord", - "ribbon" - ], - "providedExports": [ - "chord", - "ribbon" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as chord} from \"./chord\";\nexport {default as ribbon} from \"./ribbon\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "index": 150, - "index2": 153, - "size": 246, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-collection", - "loc": "6:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-collection", - "loc": "6:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "8:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "23:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "24:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "d3-collection", - "loc": "55:19-22" - } - ], - "usedExports": [ - "map", - "entries", - "nest", - "set", - "keys", - "values" - ], - "providedExports": [ - "nest", - "set", - "map", - "keys", - "values", - "entries" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as nest} from \"./nest\";\nexport {default as set} from \"./set\";\nexport {default as map} from \"./map\";\nexport {default as keys} from \"./keys\";\nexport {default as values} from \"./values\";\nexport {default as entries} from \"./entries\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "index": 157, - "index2": 157, - "size": 165, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-color", - "loc": "7:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-color", - "loc": "7:0-25" - } - ], - "usedExports": [ - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix" - ], - "providedExports": [ - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "gray", - "cubehelix" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as color, rgb, hsl} from \"./color.js\";\nexport {default as lab, hcl, lch, gray} from \"./lab.js\";\nexport {default as cubehelix} from \"./cubehelix.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "index": 161, - "index2": 167, - "size": 101, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-contour", - "loc": "8:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-contour", - "loc": "8:0-27" - } - ], - "usedExports": [ - "contours", - "contourDensity" - ], - "providedExports": [ - "contours", - "contourDensity" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as contours} from \"./contours\";\nexport {default as contourDensity} from \"./density\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "name": "./node_modules/d3-dispatch/src/index.js", - "index": 171, - "index2": 168, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dispatch", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-dispatch", - "loc": "9:0-28" - } - ], - "usedExports": [ - "dispatch" - ], - "providedExports": [ - "dispatch" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as dispatch} from \"./dispatch.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "index": 172, - "index2": 172, - "size": 118, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-drag", - "loc": "10:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-drag", - "loc": "10:0-24" - } - ], - "usedExports": [ - "drag", - "dragDisable", - "dragEnable" - ], - "providedExports": [ - "drag", - "dragDisable", - "dragEnable" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as drag} from \"./drag.js\";\nexport {default as dragDisable, yesdrag as dragEnable} from \"./nodrag.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "index": 176, - "index2": 177, - "size": 338, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dsv", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-dsv", - "loc": "11:0-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-dsv", - "loc": "11:0-23" - } - ], - "usedExports": [ - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType" - ], - "providedExports": [ - "dsvFormat", - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue", - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue", - "autoType" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as dsvFormat} from \"./dsv.js\";\nexport {csvParse, csvParseRows, csvFormat, csvFormatBody, csvFormatRows, csvFormatRow, csvFormatValue} from \"./csv.js\";\nexport {tsvParse, tsvParseRows, tsvFormat, tsvFormatBody, tsvFormatRows, tsvFormatRow, tsvFormatValue} from \"./tsv.js\";\nexport {default as autoType} from \"./autoType.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "index": 181, - "index2": 187, - "size": 1310, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-ease", - "loc": "3:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-ease", - "loc": "12:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-ease", - "loc": "12:0-24" - } - ], - "usedExports": [ - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut" - ], - "providedExports": [ - "easeLinear", - "easeQuad", - "easeQuadIn", - "easeQuadOut", - "easeQuadInOut", - "easeCubic", - "easeCubicIn", - "easeCubicOut", - "easeCubicInOut", - "easePoly", - "easePolyIn", - "easePolyOut", - "easePolyInOut", - "easeSin", - "easeSinIn", - "easeSinOut", - "easeSinInOut", - "easeExp", - "easeExpIn", - "easeExpOut", - "easeExpInOut", - "easeCircle", - "easeCircleIn", - "easeCircleOut", - "easeCircleInOut", - "easeBounce", - "easeBounceIn", - "easeBounceOut", - "easeBounceInOut", - "easeBack", - "easeBackIn", - "easeBackOut", - "easeBackInOut", - "easeElastic", - "easeElasticIn", - "easeElasticOut", - "easeElasticInOut" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n linear as easeLinear\n} from \"./linear.js\";\n\nexport {\n quadInOut as easeQuad,\n quadIn as easeQuadIn,\n quadOut as easeQuadOut,\n quadInOut as easeQuadInOut\n} from \"./quad.js\";\n\nexport {\n cubicInOut as easeCubic,\n cubicIn as easeCubicIn,\n cubicOut as easeCubicOut,\n cubicInOut as easeCubicInOut\n} from \"./cubic.js\";\n\nexport {\n polyInOut as easePoly,\n polyIn as easePolyIn,\n polyOut as easePolyOut,\n polyInOut as easePolyInOut\n} from \"./poly.js\";\n\nexport {\n sinInOut as easeSin,\n sinIn as easeSinIn,\n sinOut as easeSinOut,\n sinInOut as easeSinInOut\n} from \"./sin.js\";\n\nexport {\n expInOut as easeExp,\n expIn as easeExpIn,\n expOut as easeExpOut,\n expInOut as easeExpInOut\n} from \"./exp.js\";\n\nexport {\n circleInOut as easeCircle,\n circleIn as easeCircleIn,\n circleOut as easeCircleOut,\n circleInOut as easeCircleInOut\n} from \"./circle.js\";\n\nexport {\n bounceOut as easeBounce,\n bounceIn as easeBounceIn,\n bounceOut as easeBounceOut,\n bounceInOut as easeBounceInOut\n} from \"./bounce.js\";\n\nexport {\n backInOut as easeBack,\n backIn as easeBackIn,\n backOut as easeBackOut,\n backInOut as easeBackInOut\n} from \"./back.js\";\n\nexport {\n elasticOut as easeElastic,\n elasticIn as easeElasticIn,\n elasticOut as easeElasticOut,\n elasticInOut as easeElasticInOut\n} from \"./elastic.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "index": 191, - "index2": 195, - "size": 303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-fetch", - "loc": "13:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-fetch", - "loc": "13:0-25" - } - ], - "usedExports": [ - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg" - ], - "providedExports": [ - "blob", - "buffer", - "dsv", - "csv", - "tsv", - "image", - "json", - "text", - "xml", - "html", - "svg" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as blob} from \"./blob\";\nexport {default as buffer} from \"./buffer\";\nexport {default as dsv, csv, tsv} from \"./dsv\";\nexport {default as image} from \"./image\";\nexport {default as json} from \"./json\";\nexport {default as text} from \"./text\";\nexport {default as xml, html, svg} from \"./xml\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "index": 199, - "index2": 220, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-force", - "loc": "14:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-force", - "loc": "14:0-25" - } - ], - "usedExports": [ - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY" - ], - "providedExports": [ - "forceCenter", - "forceCollide", - "forceLink", - "forceManyBody", - "forceRadial", - "forceSimulation", - "forceX", - "forceY" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as forceCenter} from \"./center\";\nexport {default as forceCollide} from \"./collide\";\nexport {default as forceLink} from \"./link\";\nexport {default as forceManyBody} from \"./manyBody\";\nexport {default as forceRadial} from \"./radial\";\nexport {default as forceSimulation} from \"./simulation\";\nexport {default as forceX} from \"./x\";\nexport {default as forceY} from \"./y\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "index": 224, - "index2": 236, - "size": 415, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "2:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-format", - "loc": "15:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-format", - "loc": "15:0-26" - } - ], - "usedExports": [ - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound" - ], - "providedExports": [ - "formatDefaultLocale", - "format", - "formatPrefix", - "formatLocale", - "formatSpecifier", - "FormatSpecifier", - "precisionFixed", - "precisionPrefix", - "precisionRound" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as formatDefaultLocale, format, formatPrefix} from \"./defaultLocale.js\";\nexport {default as formatLocale} from \"./locale.js\";\nexport {default as formatSpecifier, FormatSpecifier} from \"./formatSpecifier.js\";\nexport {default as precisionFixed} from \"./precisionFixed.js\";\nexport {default as precisionPrefix} from \"./precisionPrefix.js\";\nexport {default as precisionRound} from \"./precisionRound.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "index": 240, - "index2": 295, - "size": 2872, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-geo", - "loc": "16:0-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-geo", - "loc": "16:0-23" - } - ], - "usedExports": [ - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform" - ], - "providedExports": [ - "geoArea", - "geoBounds", - "geoCentroid", - "geoCircle", - "geoClipAntimeridian", - "geoClipCircle", - "geoClipExtent", - "geoClipRectangle", - "geoContains", - "geoDistance", - "geoGraticule", - "geoGraticule10", - "geoInterpolate", - "geoLength", - "geoPath", - "geoAlbers", - "geoAlbersUsa", - "geoAzimuthalEqualArea", - "geoAzimuthalEqualAreaRaw", - "geoAzimuthalEquidistant", - "geoAzimuthalEquidistantRaw", - "geoConicConformal", - "geoConicConformalRaw", - "geoConicEqualArea", - "geoConicEqualAreaRaw", - "geoConicEquidistant", - "geoConicEquidistantRaw", - "geoEqualEarth", - "geoEqualEarthRaw", - "geoEquirectangular", - "geoEquirectangularRaw", - "geoGnomonic", - "geoGnomonicRaw", - "geoIdentity", - "geoProjection", - "geoProjectionMutator", - "geoMercator", - "geoMercatorRaw", - "geoNaturalEarth1", - "geoNaturalEarth1Raw", - "geoOrthographic", - "geoOrthographicRaw", - "geoStereographic", - "geoStereographicRaw", - "geoTransverseMercator", - "geoTransverseMercatorRaw", - "geoRotation", - "geoStream", - "geoTransform" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as geoArea} from \"./area.js\";\nexport {default as geoBounds} from \"./bounds.js\";\nexport {default as geoCentroid} from \"./centroid.js\";\nexport {default as geoCircle} from \"./circle.js\";\nexport {default as geoClipAntimeridian} from \"./clip/antimeridian.js\";\nexport {default as geoClipCircle} from \"./clip/circle.js\";\nexport {default as geoClipExtent} from \"./clip/extent.js\"; // DEPRECATED! Use d3.geoIdentity().clipExtent(…).\nexport {default as geoClipRectangle} from \"./clip/rectangle.js\";\nexport {default as geoContains} from \"./contains.js\";\nexport {default as geoDistance} from \"./distance.js\";\nexport {default as geoGraticule, graticule10 as geoGraticule10} from \"./graticule.js\";\nexport {default as geoInterpolate} from \"./interpolate.js\";\nexport {default as geoLength} from \"./length.js\";\nexport {default as geoPath} from \"./path/index.js\";\nexport {default as geoAlbers} from \"./projection/albers.js\";\nexport {default as geoAlbersUsa} from \"./projection/albersUsa.js\";\nexport {default as geoAzimuthalEqualArea, azimuthalEqualAreaRaw as geoAzimuthalEqualAreaRaw} from \"./projection/azimuthalEqualArea.js\";\nexport {default as geoAzimuthalEquidistant, azimuthalEquidistantRaw as geoAzimuthalEquidistantRaw} from \"./projection/azimuthalEquidistant.js\";\nexport {default as geoConicConformal, conicConformalRaw as geoConicConformalRaw} from \"./projection/conicConformal.js\";\nexport {default as geoConicEqualArea, conicEqualAreaRaw as geoConicEqualAreaRaw} from \"./projection/conicEqualArea.js\";\nexport {default as geoConicEquidistant, conicEquidistantRaw as geoConicEquidistantRaw} from \"./projection/conicEquidistant.js\";\nexport {default as geoEqualEarth, equalEarthRaw as geoEqualEarthRaw} from \"./projection/equalEarth.js\";\nexport {default as geoEquirectangular, equirectangularRaw as geoEquirectangularRaw} from \"./projection/equirectangular.js\";\nexport {default as geoGnomonic, gnomonicRaw as geoGnomonicRaw} from \"./projection/gnomonic.js\";\nexport {default as geoIdentity} from \"./projection/identity.js\";\nexport {default as geoProjection, projectionMutator as geoProjectionMutator} from \"./projection/index.js\";\nexport {default as geoMercator, mercatorRaw as geoMercatorRaw} from \"./projection/mercator.js\";\nexport {default as geoNaturalEarth1, naturalEarth1Raw as geoNaturalEarth1Raw} from \"./projection/naturalEarth1.js\";\nexport {default as geoOrthographic, orthographicRaw as geoOrthographicRaw} from \"./projection/orthographic.js\";\nexport {default as geoStereographic, stereographicRaw as geoStereographicRaw} from \"./projection/stereographic.js\";\nexport {default as geoTransverseMercator, transverseMercatorRaw as geoTransverseMercatorRaw} from \"./projection/transverseMercator.js\";\nexport {default as geoRotation} from \"./rotation.js\";\nexport {default as geoStream} from \"./stream.js\";\nexport {default as geoTransform} from \"./transform.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "index": 299, - "index2": 326, - "size": 861, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-hierarchy", - "loc": "17:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-hierarchy", - "loc": "17:0-29" - } - ], - "usedExports": [ - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify" - ], - "providedExports": [ - "cluster", - "hierarchy", - "pack", - "packSiblings", - "packEnclose", - "partition", - "stratify", - "tree", - "treemap", - "treemapBinary", - "treemapDice", - "treemapSlice", - "treemapSliceDice", - "treemapSquarify", - "treemapResquarify" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as cluster} from \"./cluster.js\";\nexport {default as hierarchy} from \"./hierarchy/index.js\";\nexport {default as pack} from \"./pack/index.js\";\nexport {default as packSiblings} from \"./pack/siblings.js\";\nexport {default as packEnclose} from \"./pack/enclose.js\";\nexport {default as partition} from \"./partition.js\";\nexport {default as stratify} from \"./stratify.js\";\nexport {default as tree} from \"./tree.js\";\nexport {default as treemap} from \"./treemap/index.js\";\nexport {default as treemapBinary} from \"./treemap/binary.js\";\nexport {default as treemapDice} from \"./treemap/dice.js\";\nexport {default as treemapSlice} from \"./treemap/slice.js\";\nexport {default as treemapSliceDice} from \"./treemap/sliceDice.js\";\nexport {default as treemapSquarify} from \"./treemap/squarify.js\";\nexport {default as treemapResquarify} from \"./treemap/resquarify.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "index": 330, - "index2": 337, - "size": 1397, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "module": "./node_modules/d3-scale-chromatic/src/ramp.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/ramp.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "2:0-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-interpolate", - "loc": "18:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-interpolate", - "loc": "18:0-31" - } - ], - "usedExports": [ - "interpolateHcl", - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize" - ], - "providedExports": [ - "interpolate", - "interpolateArray", - "interpolateBasis", - "interpolateBasisClosed", - "interpolateDate", - "interpolateDiscrete", - "interpolateHue", - "interpolateNumber", - "interpolateNumberArray", - "interpolateObject", - "interpolateRound", - "interpolateString", - "interpolateTransformCss", - "interpolateTransformSvg", - "interpolateZoom", - "interpolateRgb", - "interpolateRgbBasis", - "interpolateRgbBasisClosed", - "interpolateHsl", - "interpolateHslLong", - "interpolateLab", - "interpolateHcl", - "interpolateHclLong", - "interpolateCubehelix", - "interpolateCubehelixLong", - "piecewise", - "quantize" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as interpolate} from \"./value.js\";\nexport {default as interpolateArray} from \"./array.js\";\nexport {default as interpolateBasis} from \"./basis.js\";\nexport {default as interpolateBasisClosed} from \"./basisClosed.js\";\nexport {default as interpolateDate} from \"./date.js\";\nexport {default as interpolateDiscrete} from \"./discrete.js\";\nexport {default as interpolateHue} from \"./hue.js\";\nexport {default as interpolateNumber} from \"./number.js\";\nexport {default as interpolateNumberArray} from \"./numberArray.js\";\nexport {default as interpolateObject} from \"./object.js\";\nexport {default as interpolateRound} from \"./round.js\";\nexport {default as interpolateString} from \"./string.js\";\nexport {interpolateTransformCss, interpolateTransformSvg} from \"./transform/index.js\";\nexport {default as interpolateZoom} from \"./zoom.js\";\nexport {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from \"./rgb.js\";\nexport {default as interpolateHsl, hslLong as interpolateHslLong} from \"./hsl.js\";\nexport {default as interpolateLab} from \"./lab.js\";\nexport {default as interpolateHcl, hclLong as interpolateHclLong} from \"./hcl.js\";\nexport {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from \"./cubehelix.js\";\nexport {default as piecewise} from \"./piecewise.js\";\nexport {default as quantize} from \"./quantize.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "name": "./node_modules/d3-path/src/index.js", - "index": 341, - "index2": 338, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-path", - "loc": "19:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-path", - "loc": "19:0-24" - } - ], - "usedExports": [ - "path" - ], - "providedExports": [ - "path" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as path} from \"./path.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "index": 342, - "index2": 345, - "size": 270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-polygon", - "loc": "20:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-polygon", - "loc": "20:0-27" - } - ], - "usedExports": [ - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength" - ], - "providedExports": [ - "polygonArea", - "polygonCentroid", - "polygonHull", - "polygonContains", - "polygonLength" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as polygonArea} from \"./area.js\";\nexport {default as polygonCentroid} from \"./centroid.js\";\nexport {default as polygonHull} from \"./hull.js\";\nexport {default as polygonContains} from \"./contains.js\";\nexport {default as polygonLength} from \"./length.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "index": 349, - "index2": 346, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-quadtree", - "loc": "21:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-quadtree", - "loc": "21:0-28" - } - ], - "usedExports": [ - "quadtree" - ], - "providedExports": [ - "quadtree" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as quadtree} from \"./quadtree.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "index": 350, - "index2": 354, - "size": 322, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-random", - "loc": "22:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-random", - "loc": "22:0-26" - } - ], - "usedExports": [ - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential" - ], - "providedExports": [ - "randomUniform", - "randomNormal", - "randomLogNormal", - "randomBates", - "randomIrwinHall", - "randomExponential" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as randomUniform} from \"./uniform\";\nexport {default as randomNormal} from \"./normal\";\nexport {default as randomLogNormal} from \"./logNormal\";\nexport {default as randomBates} from \"./bates\";\nexport {default as randomIrwinHall} from \"./irwinHall\";\nexport {default as randomExponential} from \"./exponential\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "index": 358, - "index2": 395, - "size": 1295, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-scale", - "loc": "23:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-scale", - "loc": "23:0-25" - } - ], - "usedExports": [ - "scaleOrdinal", - "scaleTime", - "scaleLinear", - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLog", - "scaleSymlog", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat" - ], - "providedExports": [ - "scaleBand", - "scalePoint", - "scaleIdentity", - "scaleLinear", - "scaleLog", - "scaleSymlog", - "scaleOrdinal", - "scaleImplicit", - "scalePow", - "scaleSqrt", - "scaleQuantile", - "scaleQuantize", - "scaleThreshold", - "scaleTime", - "scaleUtc", - "scaleSequential", - "scaleSequentialLog", - "scaleSequentialPow", - "scaleSequentialSqrt", - "scaleSequentialSymlog", - "scaleSequentialQuantile", - "scaleDiverging", - "scaleDivergingLog", - "scaleDivergingPow", - "scaleDivergingSqrt", - "scaleDivergingSymlog", - "tickFormat" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as scaleBand,\n point as scalePoint\n} from \"./band\";\n\nexport {\n default as scaleIdentity\n} from \"./identity\";\n\nexport {\n default as scaleLinear\n} from \"./linear\";\n\nexport {\n default as scaleLog\n} from \"./log\";\n\nexport {\n default as scaleSymlog\n} from \"./symlog\";\n\nexport {\n default as scaleOrdinal,\n implicit as scaleImplicit\n} from \"./ordinal\";\n\nexport {\n default as scalePow,\n sqrt as scaleSqrt\n} from \"./pow\";\n\nexport {\n default as scaleQuantile\n} from \"./quantile\";\n\nexport {\n default as scaleQuantize\n} from \"./quantize\";\n\nexport {\n default as scaleThreshold\n} from \"./threshold\";\n\nexport {\n default as scaleTime\n} from \"./time\";\n\nexport {\n default as scaleUtc\n} from \"./utcTime\";\n\nexport {\n default as scaleSequential,\n sequentialLog as scaleSequentialLog,\n sequentialPow as scaleSequentialPow,\n sequentialSqrt as scaleSequentialSqrt,\n sequentialSymlog as scaleSequentialSymlog\n} from \"./sequential\";\n\nexport {\n default as scaleSequentialQuantile\n} from \"./sequentialQuantile\";\n\nexport {\n default as scaleDiverging,\n divergingLog as scaleDivergingLog,\n divergingPow as scaleDivergingPow,\n divergingSqrt as scaleDivergingSqrt,\n divergingSymlog as scaleDivergingSymlog\n} from \"./diverging\";\n\nexport {\n default as tickFormat\n} from \"./tickFormat\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "index": 399, - "index2": 441, - "size": 3792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-scale-chromatic", - "loc": "24:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-scale-chromatic", - "loc": "24:0-35" - } - ], - "usedExports": [ - "schemeSet2", - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma" - ], - "providedExports": [ - "schemeCategory10", - "schemeAccent", - "schemeDark2", - "schemePaired", - "schemePastel1", - "schemePastel2", - "schemeSet1", - "schemeSet2", - "schemeSet3", - "schemeTableau10", - "interpolateBrBG", - "schemeBrBG", - "interpolatePRGn", - "schemePRGn", - "interpolatePiYG", - "schemePiYG", - "interpolatePuOr", - "schemePuOr", - "interpolateRdBu", - "schemeRdBu", - "interpolateRdGy", - "schemeRdGy", - "interpolateRdYlBu", - "schemeRdYlBu", - "interpolateRdYlGn", - "schemeRdYlGn", - "interpolateSpectral", - "schemeSpectral", - "interpolateBuGn", - "schemeBuGn", - "interpolateBuPu", - "schemeBuPu", - "interpolateGnBu", - "schemeGnBu", - "interpolateOrRd", - "schemeOrRd", - "interpolatePuBuGn", - "schemePuBuGn", - "interpolatePuBu", - "schemePuBu", - "interpolatePuRd", - "schemePuRd", - "interpolateRdPu", - "schemeRdPu", - "interpolateYlGnBu", - "schemeYlGnBu", - "interpolateYlGn", - "schemeYlGn", - "interpolateYlOrBr", - "schemeYlOrBr", - "interpolateYlOrRd", - "schemeYlOrRd", - "interpolateBlues", - "schemeBlues", - "interpolateGreens", - "schemeGreens", - "interpolateGreys", - "schemeGreys", - "interpolatePurples", - "schemePurples", - "interpolateReds", - "schemeReds", - "interpolateOranges", - "schemeOranges", - "interpolateCividis", - "interpolateCubehelixDefault", - "interpolateRainbow", - "interpolateWarm", - "interpolateCool", - "interpolateSinebow", - "interpolateTurbo", - "interpolateViridis", - "interpolateMagma", - "interpolateInferno", - "interpolatePlasma" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as schemeCategory10} from \"./categorical/category10.js\";\nexport {default as schemeAccent} from \"./categorical/Accent.js\";\nexport {default as schemeDark2} from \"./categorical/Dark2.js\";\nexport {default as schemePaired} from \"./categorical/Paired.js\";\nexport {default as schemePastel1} from \"./categorical/Pastel1.js\";\nexport {default as schemePastel2} from \"./categorical/Pastel2.js\";\nexport {default as schemeSet1} from \"./categorical/Set1.js\";\nexport {default as schemeSet2} from \"./categorical/Set2.js\";\nexport {default as schemeSet3} from \"./categorical/Set3.js\";\nexport {default as schemeTableau10} from \"./categorical/Tableau10.js\";\nexport {default as interpolateBrBG, scheme as schemeBrBG} from \"./diverging/BrBG.js\";\nexport {default as interpolatePRGn, scheme as schemePRGn} from \"./diverging/PRGn.js\";\nexport {default as interpolatePiYG, scheme as schemePiYG} from \"./diverging/PiYG.js\";\nexport {default as interpolatePuOr, scheme as schemePuOr} from \"./diverging/PuOr.js\";\nexport {default as interpolateRdBu, scheme as schemeRdBu} from \"./diverging/RdBu.js\";\nexport {default as interpolateRdGy, scheme as schemeRdGy} from \"./diverging/RdGy.js\";\nexport {default as interpolateRdYlBu, scheme as schemeRdYlBu} from \"./diverging/RdYlBu.js\";\nexport {default as interpolateRdYlGn, scheme as schemeRdYlGn} from \"./diverging/RdYlGn.js\";\nexport {default as interpolateSpectral, scheme as schemeSpectral} from \"./diverging/Spectral.js\";\nexport {default as interpolateBuGn, scheme as schemeBuGn} from \"./sequential-multi/BuGn.js\";\nexport {default as interpolateBuPu, scheme as schemeBuPu} from \"./sequential-multi/BuPu.js\";\nexport {default as interpolateGnBu, scheme as schemeGnBu} from \"./sequential-multi/GnBu.js\";\nexport {default as interpolateOrRd, scheme as schemeOrRd} from \"./sequential-multi/OrRd.js\";\nexport {default as interpolatePuBuGn, scheme as schemePuBuGn} from \"./sequential-multi/PuBuGn.js\";\nexport {default as interpolatePuBu, scheme as schemePuBu} from \"./sequential-multi/PuBu.js\";\nexport {default as interpolatePuRd, scheme as schemePuRd} from \"./sequential-multi/PuRd.js\";\nexport {default as interpolateRdPu, scheme as schemeRdPu} from \"./sequential-multi/RdPu.js\";\nexport {default as interpolateYlGnBu, scheme as schemeYlGnBu} from \"./sequential-multi/YlGnBu.js\";\nexport {default as interpolateYlGn, scheme as schemeYlGn} from \"./sequential-multi/YlGn.js\";\nexport {default as interpolateYlOrBr, scheme as schemeYlOrBr} from \"./sequential-multi/YlOrBr.js\";\nexport {default as interpolateYlOrRd, scheme as schemeYlOrRd} from \"./sequential-multi/YlOrRd.js\";\nexport {default as interpolateBlues, scheme as schemeBlues} from \"./sequential-single/Blues.js\";\nexport {default as interpolateGreens, scheme as schemeGreens} from \"./sequential-single/Greens.js\";\nexport {default as interpolateGreys, scheme as schemeGreys} from \"./sequential-single/Greys.js\";\nexport {default as interpolatePurples, scheme as schemePurples} from \"./sequential-single/Purples.js\";\nexport {default as interpolateReds, scheme as schemeReds} from \"./sequential-single/Reds.js\";\nexport {default as interpolateOranges, scheme as schemeOranges} from \"./sequential-single/Oranges.js\";\nexport {default as interpolateCividis} from \"./sequential-multi/cividis.js\";\nexport {default as interpolateCubehelixDefault} from \"./sequential-multi/cubehelix.js\";\nexport {default as interpolateRainbow, warm as interpolateWarm, cool as interpolateCool} from \"./sequential-multi/rainbow.js\";\nexport {default as interpolateSinebow} from \"./sequential-multi/sinebow.js\";\nexport {default as interpolateTurbo} from \"./sequential-multi/turbo.js\";\nexport {default as interpolateViridis, magma as interpolateMagma, inferno as interpolateInferno, plasma as interpolatePlasma} from \"./sequential-multi/viridis.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "index": 445, - "index2": 446, - "size": 860, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "module": "./node_modules/d3-transition/src/transition/selection.js", - "moduleName": "./node_modules/d3-transition/src/transition/selection.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "module": "./node_modules/d3-transition/src/transition/attrTween.js", - "moduleName": "./node_modules/d3-transition/src/transition/attrTween.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "2:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "4:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "4:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-selection", - "loc": "25:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-selection", - "loc": "25:0-29" - } - ], - "usedExports": [ - "select", - "selectAll", - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent" - ], - "providedExports": [ - "create", - "creator", - "local", - "matcher", - "mouse", - "namespace", - "namespaces", - "clientPoint", - "select", - "selectAll", - "selection", - "selector", - "selectorAll", - "style", - "touch", - "touches", - "window", - "event", - "customEvent" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as create} from \"./create\";\nexport {default as creator} from \"./creator\";\nexport {default as local} from \"./local\";\nexport {default as matcher} from \"./matcher\";\nexport {default as mouse} from \"./mouse\";\nexport {default as namespace} from \"./namespace\";\nexport {default as namespaces} from \"./namespaces\";\nexport {default as clientPoint} from \"./point\";\nexport {default as select} from \"./select\";\nexport {default as selectAll} from \"./selectAll\";\nexport {default as selection} from \"./selection/index\";\nexport {default as selector} from \"./selector\";\nexport {default as selectorAll} from \"./selectorAll\";\nexport {styleValue as style} from \"./selection/style\";\nexport {default as touch} from \"./touch\";\nexport {default as touches} from \"./touches\";\nexport {default as window} from \"./window\";\nexport {event, customEvent} from \"./selection/on\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "index": 450, - "index2": 498, - "size": 2848, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-shape", - "loc": "26:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-shape", - "loc": "26:0-25" - } - ], - "usedExports": [ - "curveBasis", - "curveBasisClosed", - "curveBasisOpen", - "curveLinear", - "curveLinearClosed", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "arc", - "line", - "pie", - "area", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse" - ], - "providedExports": [ - "arc", - "area", - "line", - "pie", - "areaRadial", - "radialArea", - "lineRadial", - "radialLine", - "pointRadial", - "linkHorizontal", - "linkVertical", - "linkRadial", - "symbol", - "symbols", - "symbolCircle", - "symbolCross", - "symbolDiamond", - "symbolSquare", - "symbolStar", - "symbolTriangle", - "symbolWye", - "curveBasisClosed", - "curveBasisOpen", - "curveBasis", - "curveBundle", - "curveCardinalClosed", - "curveCardinalOpen", - "curveCardinal", - "curveCatmullRomClosed", - "curveCatmullRomOpen", - "curveCatmullRom", - "curveLinearClosed", - "curveLinear", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "stack", - "stackOffsetExpand", - "stackOffsetDiverging", - "stackOffsetNone", - "stackOffsetSilhouette", - "stackOffsetWiggle", - "stackOrderAppearance", - "stackOrderAscending", - "stackOrderDescending", - "stackOrderInsideOut", - "stackOrderNone", - "stackOrderReverse" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as arc} from \"./arc.js\";\nexport {default as area} from \"./area.js\";\nexport {default as line} from \"./line.js\";\nexport {default as pie} from \"./pie.js\";\nexport {default as areaRadial, default as radialArea} from \"./areaRadial.js\"; // Note: radialArea is deprecated!\nexport {default as lineRadial, default as radialLine} from \"./lineRadial.js\"; // Note: radialLine is deprecated!\nexport {default as pointRadial} from \"./pointRadial.js\";\nexport {linkHorizontal, linkVertical, linkRadial} from \"./link/index.js\";\n\nexport {default as symbol, symbols} from \"./symbol.js\";\nexport {default as symbolCircle} from \"./symbol/circle.js\";\nexport {default as symbolCross} from \"./symbol/cross.js\";\nexport {default as symbolDiamond} from \"./symbol/diamond.js\";\nexport {default as symbolSquare} from \"./symbol/square.js\";\nexport {default as symbolStar} from \"./symbol/star.js\";\nexport {default as symbolTriangle} from \"./symbol/triangle.js\";\nexport {default as symbolWye} from \"./symbol/wye.js\";\n\nexport {default as curveBasisClosed} from \"./curve/basisClosed.js\";\nexport {default as curveBasisOpen} from \"./curve/basisOpen.js\";\nexport {default as curveBasis} from \"./curve/basis.js\";\nexport {default as curveBundle} from \"./curve/bundle.js\";\nexport {default as curveCardinalClosed} from \"./curve/cardinalClosed.js\";\nexport {default as curveCardinalOpen} from \"./curve/cardinalOpen.js\";\nexport {default as curveCardinal} from \"./curve/cardinal.js\";\nexport {default as curveCatmullRomClosed} from \"./curve/catmullRomClosed.js\";\nexport {default as curveCatmullRomOpen} from \"./curve/catmullRomOpen.js\";\nexport {default as curveCatmullRom} from \"./curve/catmullRom.js\";\nexport {default as curveLinearClosed} from \"./curve/linearClosed.js\";\nexport {default as curveLinear} from \"./curve/linear.js\";\nexport {monotoneX as curveMonotoneX, monotoneY as curveMonotoneY} from \"./curve/monotone.js\";\nexport {default as curveNatural} from \"./curve/natural.js\";\nexport {default as curveStep, stepAfter as curveStepAfter, stepBefore as curveStepBefore} from \"./curve/step.js\";\n\nexport {default as stack} from \"./stack.js\";\nexport {default as stackOffsetExpand} from \"./offset/expand.js\";\nexport {default as stackOffsetDiverging} from \"./offset/diverging.js\";\nexport {default as stackOffsetNone} from \"./offset/none.js\";\nexport {default as stackOffsetSilhouette} from \"./offset/silhouette.js\";\nexport {default as stackOffsetWiggle} from \"./offset/wiggle.js\";\nexport {default as stackOrderAppearance} from \"./order/appearance.js\";\nexport {default as stackOrderAscending} from \"./order/ascending.js\";\nexport {default as stackOrderDescending} from \"./order/descending.js\";\nexport {default as stackOrderInsideOut} from \"./order/insideOut.js\";\nexport {default as stackOrderNone} from \"./order/none.js\";\nexport {default as stackOrderReverse} from \"./order/reverse.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "index": 502, - "index2": 499, - "size": 2081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "1:0-12:17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "2:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "3:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time", - "loc": "27:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-time", - "loc": "27:0-24" - } - ], - "usedExports": [ - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears" - ], - "providedExports": [ - "timeInterval", - "timeMillisecond", - "timeMilliseconds", - "utcMillisecond", - "utcMilliseconds", - "timeSecond", - "timeSeconds", - "utcSecond", - "utcSeconds", - "timeMinute", - "timeMinutes", - "timeHour", - "timeHours", - "timeDay", - "timeDays", - "timeWeek", - "timeWeeks", - "timeSunday", - "timeSundays", - "timeMonday", - "timeMondays", - "timeTuesday", - "timeTuesdays", - "timeWednesday", - "timeWednesdays", - "timeThursday", - "timeThursdays", - "timeFriday", - "timeFridays", - "timeSaturday", - "timeSaturdays", - "timeMonth", - "timeMonths", - "timeYear", - "timeYears", - "utcMinute", - "utcMinutes", - "utcHour", - "utcHours", - "utcDay", - "utcDays", - "utcWeek", - "utcWeeks", - "utcSunday", - "utcSundays", - "utcMonday", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursday", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays", - "utcMonth", - "utcMonths", - "utcYear", - "utcYears" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n default as timeInterval\n} from \"./interval.js\";\n\nexport {\n default as timeMillisecond,\n milliseconds as timeMilliseconds,\n default as utcMillisecond,\n milliseconds as utcMilliseconds\n} from \"./millisecond.js\";\n\nexport {\n default as timeSecond,\n seconds as timeSeconds,\n default as utcSecond,\n seconds as utcSeconds\n} from \"./second.js\";\n\nexport {\n default as timeMinute,\n minutes as timeMinutes\n} from \"./minute.js\";\n\nexport {\n default as timeHour,\n hours as timeHours\n} from \"./hour.js\";\n\nexport {\n default as timeDay,\n days as timeDays\n} from \"./day.js\";\n\nexport {\n sunday as timeWeek,\n sundays as timeWeeks,\n sunday as timeSunday,\n sundays as timeSundays,\n monday as timeMonday,\n mondays as timeMondays,\n tuesday as timeTuesday,\n tuesdays as timeTuesdays,\n wednesday as timeWednesday,\n wednesdays as timeWednesdays,\n thursday as timeThursday,\n thursdays as timeThursdays,\n friday as timeFriday,\n fridays as timeFridays,\n saturday as timeSaturday,\n saturdays as timeSaturdays\n} from \"./week.js\";\n\nexport {\n default as timeMonth,\n months as timeMonths\n} from \"./month.js\";\n\nexport {\n default as timeYear,\n years as timeYears\n} from \"./year.js\";\n\nexport {\n default as utcMinute,\n utcMinutes as utcMinutes\n} from \"./utcMinute.js\";\n\nexport {\n default as utcHour,\n utcHours as utcHours\n} from \"./utcHour.js\";\n\nexport {\n default as utcDay,\n utcDays as utcDays\n} from \"./utcDay.js\";\n\nexport {\n utcSunday as utcWeek,\n utcSundays as utcWeeks,\n utcSunday as utcSunday,\n utcSundays as utcSundays,\n utcMonday as utcMonday,\n utcMondays as utcMondays,\n utcTuesday as utcTuesday,\n utcTuesdays as utcTuesdays,\n utcWednesday as utcWednesday,\n utcWednesdays as utcWednesdays,\n utcThursday as utcThursday,\n utcThursdays as utcThursdays,\n utcFriday as utcFriday,\n utcFridays as utcFridays,\n utcSaturday as utcSaturday,\n utcSaturdays as utcSaturdays\n} from \"./utcWeek.js\";\n\nexport {\n default as utcMonth,\n utcMonths as utcMonths\n} from \"./utcMonth.js\";\n\nexport {\n default as utcYear,\n utcYears as utcYears\n} from \"./utcYear.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "index": 503, - "index2": 502, - "size": 276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-time-format", - "loc": "28:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-time-format", - "loc": "28:0-31" - } - ], - "usedExports": [ - "timeFormat", - "timeFormatDefaultLocale", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse" - ], - "providedExports": [ - "timeFormatDefaultLocale", - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "timeFormatLocale", - "isoFormat", - "isoParse" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from \"./defaultLocale.js\";\nexport {default as timeFormatLocale} from \"./locale.js\";\nexport {default as isoFormat} from \"./isoFormat.js\";\nexport {default as isoParse} from \"./isoParse.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "index": 506, - "index2": 504, - "size": 169, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "3:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-timer", - "loc": "29:0-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-timer", - "loc": "29:0-25" - } - ], - "usedExports": [ - "now", - "timer", - "timerFlush", - "timeout", - "interval" - ], - "providedExports": [ - "now", - "timer", - "timerFlush", - "timeout", - "interval" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {\n now,\n timer,\n timerFlush\n} from \"./timer.js\";\n\nexport {\n default as timeout\n} from \"./timeout.js\";\n\nexport {\n default as interval\n} from \"./interval.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "index": 508, - "index2": 514, - "size": 46, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-voronoi", - "loc": "31:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-voronoi", - "loc": "31:0-27" - } - ], - "usedExports": [ - "voronoi" - ], - "providedExports": [ - "voronoi" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as voronoi} from \"./voronoi\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "index": 518, - "index2": 520, - "size": 126, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony side effect evaluation", - "userRequest": "d3-zoom", - "loc": "32:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "module": "./node_modules/d3/index.js", - "moduleName": "./node_modules/d3/index.js", - "type": "harmony export imported specifier", - "userRequest": "d3-zoom", - "loc": "32:0-24" - } - ], - "usedExports": [ - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "providedExports": [ - "zoom", - "zoomTransform", - "zoomIdentity" - ], - "optimizationBailout": [], - "depth": 3, - "source": "export {default as zoom} from \"./zoom.js\";\nexport {default as zoomTransform, identity as zoomIdentity} from \"./transform.js\";\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/ascending.js", - "name": "./node_modules/d3-array/src/ascending.js", - "index": 7, - "index2": 2, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "module": "./node_modules/d3-array/src/bisector.js", - "moduleName": "./node_modules/d3-array/src/bisector.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "module": "./node_modules/d3-array/src/scan.js", - "moduleName": "./node_modules/d3-array/src/scan.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ascending", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../ascending", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "4:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../ascending", - "loc": "7:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "module": "./node_modules/d3-array/src/scan.js", - "moduleName": "./node_modules/d3-array/src/scan.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "11:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "27:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "module": "./node_modules/d3-array/src/bisector.js", - "moduleName": "./node_modules/d3-array/src/bisector.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "31:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisector.js", - "name": "./node_modules/d3-array/src/bisector.js", - "index": 8, - "index2": 3, - "size": 786, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisector", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisector", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisector", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "module": "./node_modules/d3-array/src/bisect.js", - "moduleName": "./node_modules/d3-array/src/bisect.js", - "type": "harmony import specifier", - "userRequest": "./bisector", - "loc": "4:22-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\n\nexport default function(compare) {\n if (compare.length === 1) compare = ascendingComparator(compare);\n return {\n left: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n }\n return lo;\n },\n right: function(a, x, lo, hi) {\n if (lo == null) lo = 0;\n if (hi == null) hi = a.length;\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n if (compare(a[mid], x) > 0) hi = mid;\n else lo = mid + 1;\n }\n return lo;\n }\n };\n}\n\nfunction ascendingComparator(f) {\n return function(d, x) {\n return ascending(f(d), x);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/bisect.js", - "name": "./node_modules/d3-array/src/bisect.js", - "index": 6, - "index2": 4, - "size": 238, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bisect", - "loc": "1:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./bisect", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./bisect", - "loc": "55:13-19" - } - ], - "usedExports": [ - "default", - "bisectRight", - "bisectLeft" - ], - "providedExports": [ - "bisectRight", - "bisectLeft", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/pairs.js", - "name": "./node_modules/d3-array/src/pairs.js", - "index": 10, - "index2": 5, - "size": 262, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "module": "./node_modules/d3-array/src/cross.js", - "moduleName": "./node_modules/d3-array/src/cross.js", - "type": "harmony side effect evaluation", - "userRequest": "./pairs", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "module": "./node_modules/d3-array/src/cross.js", - "moduleName": "./node_modules/d3-array/src/cross.js", - "type": "harmony import specifier", - "userRequest": "./pairs", - "loc": "12:31-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pairs", - "loc": "17:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pairs", - "loc": "17:0-41" - } - ], - "usedExports": [ - "pair", - "default" - ], - "providedExports": [ - "default", - "pair" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, f) {\n if (f == null) f = pair;\n var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n);\n while (i < n) pairs[i] = f(p, p = array[++i]);\n return pairs;\n}\n\nexport function pair(a, b) {\n return [a, b];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/cross.js", - "name": "./node_modules/d3-array/src/cross.js", - "index": 9, - "index2": 6, - "size": 428, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cross", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cross", - "loc": "4:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pair} from \"./pairs\";\n\nexport default function(values0, values1, reduce) {\n var n0 = values0.length,\n n1 = values1.length,\n values = new Array(n0 * n1),\n i0,\n i1,\n i,\n value0;\n\n if (reduce == null) reduce = pair;\n\n for (i0 = i = 0; i0 < n0; ++i0) {\n for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) {\n values[i] = reduce(value0, values1[i1]);\n }\n }\n\n return values;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/descending.js", - "name": "./node_modules/d3-array/src/descending.js", - "index": 11, - "index2": 7, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./descending", - "loc": "5:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./descending", - "loc": "5:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "name": "./node_modules/d3-array/src/variance.js", - "index": 13, - "index2": 9, - "size": 648, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "module": "./node_modules/d3-array/src/deviation.js", - "moduleName": "./node_modules/d3-array/src/deviation.js", - "type": "harmony side effect evaluation", - "userRequest": "./variance", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "module": "./node_modules/d3-array/src/deviation.js", - "moduleName": "./node_modules/d3-array/src/deviation.js", - "type": "harmony import specifier", - "userRequest": "./variance", - "loc": "4:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./variance", - "loc": "26:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./variance", - "loc": "26:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = 0,\n i = -1,\n mean = 0,\n value,\n delta,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n delta = value - mean;\n mean += delta / ++m;\n sum += delta * (value - mean);\n }\n }\n }\n\n if (m > 1) return sum / (m - 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/deviation.js", - "name": "./node_modules/d3-array/src/deviation.js", - "index": 12, - "index2": 10, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "module": "./node_modules/d3-array/src/threshold/scott.js", - "moduleName": "./node_modules/d3-array/src/threshold/scott.js", - "type": "harmony side effect evaluation", - "userRequest": "../deviation", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "module": "./node_modules/d3-array/src/threshold/scott.js", - "moduleName": "./node_modules/d3-array/src/threshold/scott.js", - "type": "harmony import specifier", - "userRequest": "../deviation", - "loc": "4:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./deviation", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./deviation", - "loc": "6:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import variance from \"./variance\";\n\nexport default function(array, f) {\n var v = variance(array, f);\n return v ? Math.sqrt(v) : v;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/extent.js", - "name": "./node_modules/d3-array/src/extent.js", - "index": 15, - "index2": 11, - "size": 961, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent", - "loc": "7:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./extent", - "loc": "7:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./extent", - "loc": "12:15-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null) {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n }\n\n return [min, max];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/range.js", - "name": "./node_modules/d3-array/src/range.js", - "index": 20, - "index2": 15, - "size": 344, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./range", - "loc": "6:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./range", - "loc": "20:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./range", - "loc": "20:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./range", - "loc": "33:11-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(start, stop, step) {\n start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;\n\n var i = -1,\n n = Math.max(0, Math.ceil((stop - start) / step)) | 0,\n range = new Array(n);\n\n while (++i < n) {\n range[i] = start + i * step;\n }\n\n return range;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/ticks.js", - "name": "./node_modules/d3-array/src/ticks.js", - "index": 21, - "index2": 16, - "size": 1635, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./ticks", - "loc": "7:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ticks", - "loc": "24:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./ticks", - "loc": "32:11-19" - } - ], - "usedExports": [ - "tickStep", - "default", - "tickIncrement" - ], - "providedExports": [ - "default", - "tickIncrement", - "tickStep" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nexport default function(start, stop, count) {\n var reverse,\n i = -1,\n n,\n ticks,\n step;\n\n stop = +stop, start = +start, count = +count;\n if (start === stop && count > 0) return [start];\n if (reverse = stop < start) n = start, start = stop, stop = n;\n if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];\n\n if (step > 0) {\n start = Math.ceil(start / step);\n stop = Math.floor(stop / step);\n ticks = new Array(n = Math.ceil(stop - start + 1));\n while (++i < n) ticks[i] = (start + i) * step;\n } else {\n start = Math.floor(start * step);\n stop = Math.ceil(stop * step);\n ticks = new Array(n = Math.ceil(start - stop + 1));\n while (++i < n) ticks[i] = (start - i) / step;\n }\n\n if (reverse) ticks.reverse();\n\n return ticks;\n}\n\nexport function tickIncrement(start, stop, count) {\n var step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log(step) / Math.LN10),\n error = step / Math.pow(10, power);\n return power >= 0\n ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)\n : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nexport function tickStep(start, stop, count) {\n var step0 = Math.abs(stop - start) / Math.max(0, count),\n step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),\n error = step0 / step1;\n if (error >= e10) step1 *= 10;\n else if (error >= e5) step1 *= 5;\n else if (error >= e2) step1 *= 2;\n return stop < start ? -step1 : step1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/sturges.js", - "name": "./node_modules/d3-array/src/threshold/sturges.js", - "index": 22, - "index2": 17, - "size": 96, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/sturges", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/sturges", - "loc": "11:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/sturges", - "loc": "11:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./threshold/sturges", - "loc": "13:18-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values) {\n return Math.ceil(Math.log(values.length) / Math.LN2) + 1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "index": 16, - "index2": 18, - "size": 1990, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./histogram", - "loc": "8:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./histogram", - "loc": "8:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport bisect from \"./bisect\";\nimport constant from \"./constant\";\nimport extent from \"./extent\";\nimport identity from \"./identity\";\nimport range from \"./range\";\nimport {tickStep} from \"./ticks\";\nimport sturges from \"./threshold/sturges\";\n\nexport default function() {\n var value = identity,\n domain = extent,\n threshold = sturges;\n\n function histogram(data) {\n var i,\n n = data.length,\n x,\n values = new Array(n);\n\n for (i = 0; i < n; ++i) {\n values[i] = value(data[i], i, data);\n }\n\n var xz = domain(values),\n x0 = xz[0],\n x1 = xz[1],\n tz = threshold(values, x0, x1);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n tz = tickStep(x0, x1, tz);\n tz = range(Math.ceil(x0 / tz) * tz, x1, tz); // exclusive\n }\n\n // Remove any thresholds outside the domain.\n var m = tz.length;\n while (tz[0] <= x0) tz.shift(), --m;\n while (tz[m - 1] > x1) tz.pop(), --m;\n\n var bins = new Array(m + 1),\n bin;\n\n // Initialize bins.\n for (i = 0; i <= m; ++i) {\n bin = bins[i] = [];\n bin.x0 = i > 0 ? tz[i - 1] : x0;\n bin.x1 = i < m ? tz[i] : x1;\n }\n\n // Assign data to bins by value, ignoring any outside the domain.\n for (i = 0; i < n; ++i) {\n x = values[i];\n if (x0 <= x && x <= x1) {\n bins[bisect(tz, x, 0, m)].push(data[i]);\n }\n }\n\n return bins;\n }\n\n histogram.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(_), histogram) : value;\n };\n\n histogram.domain = function(_) {\n return arguments.length ? (domain = typeof _ === \"function\" ? _ : constant([_[0], _[1]]), histogram) : domain;\n };\n\n histogram.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), histogram) : threshold;\n };\n\n return histogram;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "name": "./node_modules/d3-array/src/quantile.js", - "index": 24, - "index2": 19, - "size": 499, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../quantile", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../quantile", - "loc": "8:39-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../quantile", - "loc": "8:64-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantile", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./quantile", - "loc": "27:9-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, p, valueof) {\n if (valueof == null) valueof = number;\n if (!(n = values.length)) return;\n if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values);\n if (p >= 1) return +valueof(values[n - 1], n - 1, values);\n var n,\n i = (n - 1) * p,\n i0 = Math.floor(i),\n value0 = +valueof(values[i0], i0, values),\n value1 = +valueof(values[i0 + 1], i0 + 1, values);\n return value0 + (value1 - value0) * (i - i0);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "name": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "index": 23, - "index2": 20, - "size": 361, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/freedmanDiaconis", - "loc": "9:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/freedmanDiaconis", - "loc": "9:0-82" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"../array\";\nimport ascending from \"../ascending\";\nimport number from \"../number\";\nimport quantile from \"../quantile\";\n\nexport default function(values, min, max) {\n values = map.call(values, number).sort(ascending);\n return Math.ceil((max - min) / (2 * (quantile(values, 0.75) - quantile(values, 0.25)) * Math.pow(values.length, -1 / 3)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/scott.js", - "name": "./node_modules/d3-array/src/threshold/scott.js", - "index": 25, - "index2": 21, - "size": 180, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold/scott", - "loc": "10:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold/scott", - "loc": "10:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import deviation from \"../deviation\";\n\nexport default function(values, min, max) {\n return Math.ceil((max - min) / (3.5 * deviation(values) * Math.pow(values.length, -1 / 3)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/max.js", - "name": "./node_modules/d3-array/src/max.js", - "index": 26, - "index2": 22, - "size": 843, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./max", - "loc": "12:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./max", - "loc": "12:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n max;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n max = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && value > max) {\n max = value;\n }\n }\n }\n }\n }\n\n return max;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "name": "./node_modules/d3-array/src/mean.js", - "index": 27, - "index2": 23, - "size": 453, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mean", - "loc": "13:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./mean", - "loc": "13:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number\";\n\nexport default function(values, valueof) {\n var n = values.length,\n m = n,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) sum += value;\n else --m;\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) sum += value;\n else --m;\n }\n }\n\n if (m) return sum / m;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "name": "./node_modules/d3-array/src/median.js", - "index": 28, - "index2": 24, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./median", - "loc": "14:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./median", - "loc": "14:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\nimport number from \"./number\";\nimport quantile from \"./quantile\";\n\nexport default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n numbers = [];\n\n if (valueof == null) {\n while (++i < n) {\n if (!isNaN(value = number(values[i]))) {\n numbers.push(value);\n }\n }\n }\n\n else {\n while (++i < n) {\n if (!isNaN(value = number(valueof(values[i], i, values)))) {\n numbers.push(value);\n }\n }\n }\n\n return quantile(numbers.sort(ascending), 0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/merge.js", - "name": "./node_modules/d3-array/src/merge.js", - "index": 29, - "index2": 25, - "size": 339, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./merge", - "loc": "15:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(arrays) {\n var n = arrays.length,\n m,\n i = -1,\n j = 0,\n merged,\n array;\n\n while (++i < n) j += arrays[i].length;\n merged = new Array(j);\n\n while (--n >= 0) {\n array = arrays[n];\n m = array.length;\n while (--m >= 0) {\n merged[--j] = array[m];\n }\n }\n\n return merged;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/min.js", - "name": "./node_modules/d3-array/src/min.js", - "index": 30, - "index2": 26, - "size": 843, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "module": "./node_modules/d3-array/src/transpose.js", - "moduleName": "./node_modules/d3-array/src/transpose.js", - "type": "harmony side effect evaluation", - "userRequest": "./min", - "loc": "1:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "module": "./node_modules/d3-array/src/transpose.js", - "moduleName": "./node_modules/d3-array/src/transpose.js", - "type": "harmony import specifier", - "userRequest": "./min", - "loc": "5:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./min", - "loc": "16:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./min", - "loc": "16:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n min;\n\n if (valueof == null) {\n while (++i < n) { // Find the first comparable value.\n if ((value = values[i]) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = values[i]) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n else {\n while (++i < n) { // Find the first comparable value.\n if ((value = valueof(values[i], i, values)) != null && value >= value) {\n min = value;\n while (++i < n) { // Compare the remaining values.\n if ((value = valueof(values[i], i, values)) != null && min > value) {\n min = value;\n }\n }\n }\n }\n }\n\n return min;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/permute.js", - "name": "./node_modules/d3-array/src/permute.js", - "index": 31, - "index2": 27, - "size": 161, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./permute", - "loc": "18:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./permute", - "loc": "18:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, indexes) {\n var i = indexes.length, permutes = new Array(i);\n while (i--) permutes[i] = array[indexes[i]];\n return permutes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/scan.js", - "name": "./node_modules/d3-array/src/scan.js", - "index": 32, - "index2": 28, - "size": 392, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./scan", - "loc": "21:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./scan", - "loc": "21:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending\";\n\nexport default function(values, compare) {\n if (!(n = values.length)) return;\n var n,\n i = 0,\n j = 0,\n xi,\n xj = values[j];\n\n if (compare == null) compare = ascending;\n\n while (++i < n) {\n if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) {\n xj = xi, j = i;\n }\n }\n\n if (compare(xj, xj) === 0) return j;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/shuffle.js", - "name": "./node_modules/d3-array/src/shuffle.js", - "index": 33, - "index2": 29, - "size": 285, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shuffle", - "loc": "22:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./shuffle", - "loc": "22:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(array, i0, i1) {\n var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0),\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m + i0];\n array[m + i0] = array[i + i0];\n array[i + i0] = t;\n }\n\n return array;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/sum.js", - "name": "./node_modules/d3-array/src/sum.js", - "index": 34, - "index2": 30, - "size": 374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sum", - "loc": "23:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sum", - "loc": "23:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(values, valueof) {\n var n = values.length,\n i = -1,\n value,\n sum = 0;\n\n if (valueof == null) {\n while (++i < n) {\n if (value = +values[i]) sum += value; // Note: zero and null are equivalent.\n }\n }\n\n else {\n while (++i < n) {\n if (value = +valueof(values[i], i, values)) sum += value;\n }\n }\n\n return sum;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/transpose.js", - "name": "./node_modules/d3-array/src/transpose.js", - "index": 35, - "index2": 31, - "size": 356, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "module": "./node_modules/d3-array/src/zip.js", - "moduleName": "./node_modules/d3-array/src/zip.js", - "type": "harmony side effect evaluation", - "userRequest": "./transpose", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "module": "./node_modules/d3-array/src/zip.js", - "moduleName": "./node_modules/d3-array/src/zip.js", - "type": "harmony import specifier", - "userRequest": "./transpose", - "loc": "4:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transpose", - "loc": "25:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transpose", - "loc": "25:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import min from \"./min\";\n\nexport default function(matrix) {\n if (!(n = matrix.length)) return [];\n for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) {\n for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) {\n row[j] = matrix[j][i];\n }\n }\n return transpose;\n}\n\nfunction length(d) {\n return d.length;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/zip.js", - "name": "./node_modules/d3-array/src/zip.js", - "index": 36, - "index2": 32, - "size": 99, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zip", - "loc": "27:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "module": "./node_modules/d3-array/src/index.js", - "moduleName": "./node_modules/d3-array/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zip", - "loc": "27:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import transpose from \"./transpose\";\n\nexport default function() {\n return transpose(arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "index": 38, - "index2": 36, - "size": 5299, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "module": "./node_modules/d3-axis/src/index.js", - "moduleName": "./node_modules/d3-axis/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./axis", - "loc": "1:0-6:16" - } - ], - "usedExports": [ - "axisBottom", - "axisTop", - "axisRight", - "axisLeft" - ], - "providedExports": [ - "axisTop", - "axisRight", - "axisBottom", - "axisLeft" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport identity from \"./identity\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + (x + 0.5) + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + (y + 0.5) + \")\";\n}\n\nfunction number(scale) {\n return function(d) {\n return +scale(d);\n };\n}\n\nfunction center(scale) {\n var offset = Math.max(0, scale.bandwidth() - 1) / 2; // Adjust for 0.5px offset.\n if (scale.round()) offset = Math.round(offset);\n return function(d) {\n return +scale(d) + offset;\n };\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + 0.5,\n range1 = +range[range.length - 1] + 0.5,\n position = (scale.bandwidth ? center : number)(scale.copy()),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !== selection) {\n path = path.transition(context);\n tick = tick.transition(context);\n line = line.transition(context);\n text = text.transition(context);\n\n tickExit = tickExit.transition(context)\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute(\"transform\"); });\n\n tickEnter\n .attr(\"opacity\", epsilon)\n .attr(\"transform\", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });\n }\n\n tickExit.remove();\n\n path\n .attr(\"d\", orient === left || orient == right\n ? (tickSizeOuter ? \"M\" + k * tickSizeOuter + \",\" + range0 + \"H0.5V\" + range1 + \"H\" + k * tickSizeOuter : \"M0.5,\" + range0 + \"V\" + range1)\n : (tickSizeOuter ? \"M\" + range0 + \",\" + k * tickSizeOuter + \"V0.5H\" + range1 + \"V\" + k * tickSizeOuter : \"M\" + range0 + \",0.5H\" + range1));\n\n tick\n .attr(\"opacity\", 1)\n .attr(\"transform\", function(d) { return transform(position(d)); });\n\n line\n .attr(x + \"2\", k * tickSizeInner);\n\n text\n .attr(x, k * spacing)\n .text(format);\n\n selection.filter(entering)\n .attr(\"fill\", \"none\")\n .attr(\"font-size\", 10)\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"text-anchor\", orient === right ? \"start\" : orient === left ? \"end\" : \"middle\");\n\n selection\n .each(function() { this.__axis = position; });\n }\n\n axis.scale = function(_) {\n return arguments.length ? (scale = _, axis) : scale;\n };\n\n axis.ticks = function() {\n return tickArguments = slice.call(arguments), axis;\n };\n\n axis.tickArguments = function(_) {\n return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();\n };\n\n axis.tickValues = function(_) {\n return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();\n };\n\n axis.tickFormat = function(_) {\n return arguments.length ? (tickFormat = _, axis) : tickFormat;\n };\n\n axis.tickSize = function(_) {\n return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeInner = function(_) {\n return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;\n };\n\n axis.tickSizeOuter = function(_) {\n return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;\n };\n\n axis.tickPadding = function(_) {\n return arguments.length ? (tickPadding = +_, axis) : tickPadding;\n };\n\n return axis;\n}\n\nexport function axisTop(scale) {\n return axis(top, scale);\n}\n\nexport function axisRight(scale) {\n return axis(right, scale);\n}\n\nexport function axisBottom(scale) {\n return axis(bottom, scale);\n}\n\nexport function axisLeft(scale) {\n return axis(left, scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/dispatch.js", - "name": "./node_modules/d3-dispatch/src/dispatch.js", - "index": 48, - "index2": 38, - "size": 2748, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dispatch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "name": "./node_modules/d3-dispatch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 57 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "module": "./node_modules/d3-dispatch/src/index.js", - "moduleName": "./node_modules/d3-dispatch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dispatch.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dispatch/src/index.js", - "module": "./node_modules/d3-dispatch/src/index.js", - "moduleName": "./node_modules/d3-dispatch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dispatch.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "4:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "25:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "31:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "62:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dispatch", - "loc": "162:18-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var noop = {value: function() {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport default dispatch;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selector.js", - "name": "./node_modules/d3-selection/src/selector.js", - "index": 80, - "index2": 70, - "size": 152, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/select.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "name": "./node_modules/d3-selection/src/selection/select.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 58, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony side effect evaluation", - "userRequest": "../selector", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony side effect evaluation", - "userRequest": "../selector", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony import specifier", - "userRequest": "../selector", - "loc": "5:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony import specifier", - "userRequest": "../selector", - "loc": "10:87-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selector", - "loc": "12:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selector", - "loc": "12:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectorAll.js", - "name": "./node_modules/d3-selection/src/selectorAll.js", - "index": 82, - "index2": 72, - "size": 171, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/selectAll.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "name": "./node_modules/d3-selection/src/selection/selectAll.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 82, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "../selectorAll", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony import specifier", - "userRequest": "../selectorAll", - "loc": "5:45-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:45-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectorAll", - "loc": "13:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selectorAll", - "loc": "13:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/matcher.js", - "name": "./node_modules/d3-selection/src/matcher.js", - "index": 75, - "index2": 65, - "size": 100, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "name": "./node_modules/d3-selection/src/selection/filter.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 80, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "../matcher", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./matcher", - "loc": "4:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./matcher", - "loc": "4:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony import specifier", - "userRequest": "../matcher", - "loc": "5:43-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "5:43-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespaces.js", - "name": "./node_modules/d3-selection/src/namespaces.js", - "index": 66, - "index2": 55, - "size": 254, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/creator.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 78, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "6:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "module": "./node_modules/d3-selection/src/namespace.js", - "moduleName": "./node_modules/d3-selection/src/namespace.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "6:53-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespaces", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./namespaces", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "8:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespaces", - "loc": "8:70-75" - } - ], - "usedExports": [ - "xhtml", - "default" - ], - "providedExports": [ - "xhtml", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/namespace.js", - "name": "./node_modules/d3-selection/src/namespace.js", - "index": 65, - "index2": 56, - "size": 303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/creator.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 78, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespace", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "module": "./node_modules/d3-selection/src/selection/attr.js", - "moduleName": "./node_modules/d3-selection/src/selection/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "../namespace", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./namespace", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./namespace", - "loc": "6:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "module": "./node_modules/d3-selection/src/creator.js", - "moduleName": "./node_modules/d3-selection/src/creator.js", - "type": "harmony import specifier", - "userRequest": "./namespace", - "loc": "21:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "module": "./node_modules/d3-transition/src/transition/attrTween.js", - "moduleName": "./node_modules/d3-transition/src/transition/attrTween.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "42:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "module": "./node_modules/d3-selection/src/selection/attr.js", - "moduleName": "./node_modules/d3-selection/src/selection/attr.js", - "type": "harmony import specifier", - "userRequest": "../namespace", - "loc": "44:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/window.js", - "name": "./node_modules/d3-selection/src/window.js", - "index": 105, - "index2": 93, - "size": 218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/dispatch.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "name": "./node_modules/d3-selection/src/selection/dispatch.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 60, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "module": "./node_modules/d3-selection/src/selection/dispatch.js", - "moduleName": "./node_modules/d3-selection/src/selection/dispatch.js", - "type": "harmony side effect evaluation", - "userRequest": "../window", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "module": "./node_modules/d3-selection/src/selection/style.js", - "moduleName": "./node_modules/d3-selection/src/selection/style.js", - "type": "harmony side effect evaluation", - "userRequest": "../window", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "module": "./node_modules/d3-selection/src/selection/dispatch.js", - "moduleName": "./node_modules/d3-selection/src/selection/dispatch.js", - "type": "harmony import specifier", - "userRequest": "../window", - "loc": "4:15-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./window", - "loc": "17:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./window", - "loc": "17:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "module": "./node_modules/d3-selection/src/selection/style.js", - "moduleName": "./node_modules/d3-selection/src/selection/style.js", - "type": "harmony import specifier", - "userRequest": "../window", - "loc": "34:9-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/style.js", - "name": "./node_modules/d3-selection/src/selection/style.js", - "index": 104, - "index2": 94, - "size": 968, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "12:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:52-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/style", - "loc": "14:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/style", - "loc": "14:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./style", - "loc": "18:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "31:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "43:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "46:77-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./style", - "loc": "63:9-24" - } - ], - "usedExports": [ - "default", - "styleValue" - ], - "providedExports": [ - "default", - "styleValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/creator.js", - "name": "./node_modules/d3-selection/src/creator.js", - "index": 113, - "index2": 101, - "size": 662, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/create.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 102, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony side effect evaluation", - "userRequest": "./creator", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony side effect evaluation", - "userRequest": "../creator", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "module": "./node_modules/d3-selection/src/selection/append.js", - "moduleName": "./node_modules/d3-selection/src/selection/append.js", - "type": "harmony side effect evaluation", - "userRequest": "../creator", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./creator", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./creator", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "module": "./node_modules/d3-selection/src/selection/append.js", - "moduleName": "./node_modules/d3-selection/src/selection/append.js", - "type": "harmony import specifier", - "userRequest": "../creator", - "loc": "4:51-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony import specifier", - "userRequest": "./creator", - "loc": "5:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "module": "./node_modules/d3-selection/src/selection/insert.js", - "moduleName": "./node_modules/d3-selection/src/selection/insert.js", - "type": "harmony import specifier", - "userRequest": "../creator", - "loc": "9:51-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/on.js", - "name": "./node_modules/d3-selection/src/selection/on.js", - "index": 118, - "index2": 107, - "size": 3119, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "module": "./node_modules/d3-selection/src/sourceEvent.js", - "moduleName": "./node_modules/d3-selection/src/sourceEvent.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/on", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "4:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "module": "./node_modules/d3-selection/src/sourceEvent.js", - "moduleName": "./node_modules/d3-selection/src/sourceEvent.js", - "type": "harmony import specifier", - "userRequest": "./selection/on", - "loc": "4:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "8:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "module": "./node_modules/d3-drag/src/noevent.js", - "moduleName": "./node_modules/d3-drag/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "module": "./node_modules/d3-zoom/src/noevent.js", - "moduleName": "./node_modules/d3-zoom/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "module": "./node_modules/d3-brush/src/noevent.js", - "moduleName": "./node_modules/d3-brush/src/noevent.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "9:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "10:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "10:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "13:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/on", - "loc": "18:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "18:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "18:37-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "25:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./on", - "loc": "30:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "34:57-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "54:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "55:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "58:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "59:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "66:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "66:48-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "74:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./on", - "loc": "75:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "81:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "94:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "106:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "113:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "113:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "123:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "124:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "137:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "210:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "253:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "255:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "256:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "258:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "267:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "267:42-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "275:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "286:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "296:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "298:37-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "320:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "321:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "325:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "329:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "330:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "330:104-109" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "343:45-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:42-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "350:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "375:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "379:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "386:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "463:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "464:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "468:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "479:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "509:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "528:16-21" - } - ], - "usedExports": [ - "event", - "customEvent", - "default" - ], - "providedExports": [ - "event", - "default", - "customEvent" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "index": 84, - "index2": 109, - "size": 2342, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/select.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - } - ], - "profile": { - "factory": 81, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "module": "./node_modules/d3-selection/src/selection/sort.js", - "moduleName": "./node_modules/d3-selection/src/selection/sort.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "module": "./node_modules/d3-selection/src/selection/merge.js", - "moduleName": "./node_modules/d3-selection/src/selection/merge.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "module": "./node_modules/d3-transition/src/transition/selection.js", - "moduleName": "./node_modules/d3-transition/src/transition/selection.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "3:16-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "5:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "5:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "5:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "6:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "module": "./node_modules/d3-selection/src/select.js", - "moduleName": "./node_modules/d3-selection/src/select.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "module": "./node_modules/d3-selection/src/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./selection/index", - "loc": "6:58-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selection/index", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "module": "./node_modules/d3-selection/src/selection/filter.js", - "moduleName": "./node_modules/d3-selection/src/selection/filter.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "15:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "module": "./node_modules/d3-selection/src/selection/select.js", - "moduleName": "./node_modules/d3-selection/src/selection/select.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "16:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "module": "./node_modules/d3-selection/src/selection/selectAll.js", - "moduleName": "./node_modules/d3-selection/src/selection/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "16:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "module": "./node_modules/d3-selection/src/selection/merge.js", - "moduleName": "./node_modules/d3-selection/src/selection/merge.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "17:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "module": "./node_modules/d3-selection/src/selection/sort.js", - "moduleName": "./node_modules/d3-selection/src/selection/sort.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "19:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "39:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./index", - "loc": "114:15-24" - } - ], - "usedExports": [ - "Selection", - "root", - "default" - ], - "providedExports": [ - "root", - "Selection", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_join from \"./join\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "index": 134, - "index2": 129, - "size": 259, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/create.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 102, - "building": 30 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "module": "./node_modules/d3-selection/src/create.js", - "moduleName": "./node_modules/d3-selection/src/create.js", - "type": "harmony import specifier", - "userRequest": "./select", - "loc": "5:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "6:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "9:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./select", - "loc": "9:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "17:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "54:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "73:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "179:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "253:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "261:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "290:22-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "291:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "367:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "369:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "379:17-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "name": "./node_modules/d3-drag/src/nodrag.js", - "index": 141, - "index2": 137, - "size": 860, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nodrag.js", - "loc": "2:0-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodrag.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./nodrag.js", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./nodrag.js", - "loc": "74:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "258:4-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "275:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "386:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-drag", - "loc": "468:8-18" - } - ], - "usedExports": [ - "default", - "yesdrag" - ], - "providedExports": [ - "default", - "yesdrag" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {select} from \"d3-selection\";\nimport noevent from \"./noevent.js\";\n\nexport default function(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, true);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, true);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nexport function yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, true);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "name": "./node_modules/d3-color/src/color.js", - "index": 57, - "index2": 47, - "size": 10673, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./color.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "3:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:52-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "7:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "8:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "10:27-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "10:54-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "15:31-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "16:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "16:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "16:31-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "18:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "18:31-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "36:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "39:36-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "41:20-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "41:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:20-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "45:38-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "54:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "113:24-29" - } - ], - "usedExports": [ - "default", - "rgb", - "Rgb", - "rgbConvert", - "Color", - "brighter", - "darker", - "hsl" - ], - "providedExports": [ - "Color", - "darker", - "brighter", - "default", - "rgbConvert", - "rgb", - "Rgb", - "hslConvert", - "hsl" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy: function(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable: function() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function() {\n return this;\n },\n displayable: function() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\")\n + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \"\n + Math.max(0, Math.min(255, Math.round(this.b) || 0))\n + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n displayable: function() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl: function() {\n var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\")\n + (this.h || 0) + \", \"\n + (this.s || 0) * 100 + \"%, \"\n + (this.l || 0) * 100 + \"%\"\n + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basis.js", - "name": "./node_modules/d3-interpolate/src/basis.js", - "index": 62, - "index2": 50, - "size": 600, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "module": "./node_modules/d3-interpolate/src/basisClosed.js", - "moduleName": "./node_modules/d3-interpolate/src/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./basis.js", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "module": "./node_modules/d3-interpolate/src/basisClosed.js", - "moduleName": "./node_modules/d3-interpolate/src/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "11:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "54:32-37" - } - ], - "usedExports": [ - "default", - "basis" - ], - "providedExports": [ - "basis", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nexport default function(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/basisClosed.js", - "name": "./node_modules/d3-interpolate/src/basisClosed.js", - "index": 63, - "index2": 51, - "size": 363, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./basisClosed.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./basisClosed.js", - "loc": "4:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./basisClosed.js", - "loc": "4:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./basisClosed.js", - "loc": "55:38-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {basis} from \"./basis.js\";\n\nexport default function(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "index": 59, - "index2": 52, - "size": 1297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./rgb.js", - "loc": "2:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "module": "./node_modules/d3-scale-chromatic/src/ramp.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/ramp.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:9-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "7:29-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "8:33-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rgb.js", - "loc": "15:0-129" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./rgb.js", - "loc": "15:51-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./rgb.js", - "loc": "16:29-32" - } - ], - "usedExports": [ - "default", - "rgbBasis", - "rgbBasisClosed" - ], - "providedExports": [ - "default", - "rgbBasis", - "rgbBasisClosed" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {rgb as colorRgb} from \"d3-color\";\nimport basis from \"./basis.js\";\nimport basisClosed from \"./basisClosed.js\";\nimport nogamma, {gamma} from \"./color.js\";\n\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/numberArray.js", - "name": "./node_modules/d3-interpolate/src/numberArray.js", - "index": 137, - "index2": 131, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "5:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "5:29-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./numberArray.js", - "loc": "9:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "9:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./numberArray.js", - "loc": "9:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "18:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./numberArray.js", - "loc": "18:27-38" - } - ], - "usedExports": [ - "isNumberArray", - "default" - ], - "providedExports": [ - "default", - "isNumberArray" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "name": "./node_modules/d3-interpolate/src/array.js", - "index": 138, - "index2": 132, - "size": 540, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "2:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./array.js", - "loc": "2:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "19:27-39" - } - ], - "usedExports": [ - "genericArray", - "default" - ], - "providedExports": [ - "default", - "genericArray" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/date.js", - "name": "./node_modules/d3-interpolate/src/date.js", - "index": 136, - "index2": 130, - "size": 144, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./date.js", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./date.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./date.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./date.js", - "loc": "17:28-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/number.js", - "name": "./node_modules/d3-interpolate/src/number.js", - "index": 56, - "index2": 45, - "size": 110, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "module": "./node_modules/d3-interpolate/src/string.js", - "moduleName": "./node_modules/d3-interpolate/src/string.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../number.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "6:34-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./number.js", - "loc": "8:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./number.js", - "loc": "8:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "13:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "13:58-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "14:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "21:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "22:68-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "30:67-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "39:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "../number.js", - "loc": "39:58-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "module": "./node_modules/d3-interpolate/src/string.js", - "moduleName": "./node_modules/d3-interpolate/src/string.js", - "type": "harmony import specifier", - "userRequest": "./number.js", - "loc": "43:23-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "89:88-105" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "name": "./node_modules/d3-interpolate/src/object.js", - "index": 139, - "index2": 133, - "size": 393, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./object.js", - "loc": "6:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./object.js", - "loc": "10:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./object.js", - "loc": "10:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./object.js", - "loc": "20:90-96" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/string.js", - "name": "./node_modules/d3-interpolate/src/string.js", - "index": 64, - "index2": 53, - "size": 1761, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "7:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "module": "./node_modules/d3-transition/src/transition/interpolate.js", - "moduleName": "./node_modules/d3-transition/src/transition/interpolate.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "9:8-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./string.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./string.js", - "loc": "15:58-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"./number.js\";\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nexport default function(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "index": 135, - "index2": 134, - "size": 806, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./value.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "module": "./node_modules/d3-interpolate/src/object.js", - "moduleName": "./node_modules/d3-interpolate/src/object.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony side effect evaluation", - "userRequest": "./value.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/object.js", - "module": "./node_modules/d3-interpolate/src/object.js", - "moduleName": "./node_modules/d3-interpolate/src/object.js", - "type": "harmony import specifier", - "userRequest": "./value.js", - "loc": "13:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/array.js", - "module": "./node_modules/d3-interpolate/src/array.js", - "moduleName": "./node_modules/d3-interpolate/src/array.js", - "type": "harmony import specifier", - "userRequest": "./value.js", - "loc": "15:34-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "69:20-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "229:20-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/point.js", - "name": "./node_modules/d3-selection/src/point.js", - "index": 133, - "index2": 127, - "size": 448, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "7:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "8:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./point", - "loc": "8:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "8:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "9:13-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(node, event) {\n var svg = node.ownerSVGElement || node;\n\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "name": "./node_modules/d3-selection/src/touch.js", - "index": 131, - "index2": 128, - "size": 407, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./touch", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./touch", - "loc": "15:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "25:11-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "86:58-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "303:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "328:26-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches, identifier) {\n if (arguments.length < 3) identifier = touches, touches = sourceEvent().changedTouches;\n\n for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) {\n if ((touch = touches[i]).identifier === identifier) {\n return point(node, touch);\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "name": "./node_modules/d3-selection/src/mouse.js", - "index": 140, - "index2": 135, - "size": 224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mouse", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./mouse", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "52:73-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "219:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "254:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "270:70-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "284:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-selection", - "loc": "346:80-85" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node) {\n var event = sourceEvent();\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timer.js", - "name": "./node_modules/d3-timer/src/timer.js", - "index": 49, - "index2": 39, - "size": 2905, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timer.js", - "loc": "1:0-5:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "module": "./node_modules/d3-timer/src/timeout.js", - "moduleName": "./node_modules/d3-timer/src/timeout.js", - "type": "harmony side effect evaluation", - "userRequest": "./timer.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "4:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "module": "./node_modules/d3-timer/src/timeout.js", - "moduleName": "./node_modules/d3-timer/src/timeout.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "4:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "module": "./node_modules/d3-timer/src/interval.js", - "moduleName": "./node_modules/d3-timer/src/interval.js", - "type": "harmony import specifier", - "userRequest": "./timer.js", - "loc": "6:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "17:34-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "module": "./node_modules/d3-force/src/simulation.js", - "moduleName": "./node_modules/d3-force/src/simulation.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "24:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "30:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "59:15-20" - } - ], - "usedExports": [ - "timer", - "Timer", - "now", - "timerFlush" - ], - "providedExports": [ - "now", - "Timer", - "timer", - "timerFlush" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var frame = 0, // is an animation frame pending?\n timeout = 0, // is a timeout pending?\n interval = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nexport function timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/timeout.js", - "name": "./node_modules/d3-timer/src/timeout.js", - "index": 50, - "index2": 40, - "size": 253, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./timeout.js", - "loc": "7:0-9:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./timeout.js", - "loc": "7:0-9:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "82:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "module": "./node_modules/d3-transition/src/transition/schedule.js", - "moduleName": "./node_modules/d3-transition/src/transition/schedule.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-timer", - "loc": "105:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Timer} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(function(elapsed) {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "name": "./node_modules/d3-transition/src/interrupt.js", - "index": 46, - "index2": 42, - "size": 676, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "module": "./node_modules/d3-transition/src/selection/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/selection/interrupt.js", - "type": "harmony side effect evaluation", - "userRequest": "../interrupt.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interrupt.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interrupt.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "module": "./node_modules/d3-transition/src/selection/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/selection/interrupt.js", - "type": "harmony import specifier", - "userRequest": "../interrupt.js", - "loc": "5:4-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {STARTING, ENDING, ENDED} from \"./transition/schedule.js\";\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "index": 67, - "index2": 59, - "size": 2070, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform/index.js", - "loc": "13:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "70:41-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "73:65-85" - } - ], - "usedExports": [ - "interpolateTransformCss", - "interpolateTransformSvg" - ], - "providedExports": [ - "interpolateTransformCss", - "interpolateTransformSvg" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import number from \"../number.js\";\nimport {parseCss, parseSvg} from \"./parse.js\";\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nexport var interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nexport var interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "index": 52, - "index2": 117, - "size": 2091, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/transition.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "../transition/index.js", - "loc": "1:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/index.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "module": "./node_modules/d3-transition/src/transition/merge.js", - "moduleName": "./node_modules/d3-transition/src/transition/merge.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/index.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transition/index.js", - "loc": "2:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "module": "./node_modules/d3-transition/src/transition/filter.js", - "moduleName": "./node_modules/d3-transition/src/transition/filter.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "15:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony import specifier", - "userRequest": "./transition/index.js", - "loc": "15:19-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "module": "./node_modules/d3-transition/src/transition/merge.js", - "moduleName": "./node_modules/d3-transition/src/transition/merge.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "18:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "21:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "23:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "25:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "27:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "30:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/index.js", - "loc": "41:13-23" - } - ], - "usedExports": [ - "Transition", - "newId", - "default" - ], - "providedExports": [ - "Transition", - "default", - "newId" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {selection} from \"d3-selection\";\nimport transition_attr from \"./attr.js\";\nimport transition_attrTween from \"./attrTween.js\";\nimport transition_delay from \"./delay.js\";\nimport transition_duration from \"./duration.js\";\nimport transition_ease from \"./ease.js\";\nimport transition_filter from \"./filter.js\";\nimport transition_merge from \"./merge.js\";\nimport transition_on from \"./on.js\";\nimport transition_remove from \"./remove.js\";\nimport transition_select from \"./select.js\";\nimport transition_selectAll from \"./selectAll.js\";\nimport transition_selection from \"./selection.js\";\nimport transition_style from \"./style.js\";\nimport transition_styleTween from \"./styleTween.js\";\nimport transition_text from \"./text.js\";\nimport transition_textTween from \"./textTween.js\";\nimport transition_transition from \"./transition.js\";\nimport transition_tween from \"./tween.js\";\nimport transition_end from \"./end.js\";\n\nvar id = 0;\n\nexport function Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nexport default function transition(name) {\n return selection().transition(name);\n}\n\nexport function newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n end: transition_end\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/cubic.js", - "name": "./node_modules/d3-ease/src/cubic.js", - "index": 126, - "index2": 118, - "size": 210, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-ease", - "loc": "10:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubic.js", - "loc": "12:0-17:20" - } - ], - "usedExports": [ - "cubicInOut", - "cubicIn", - "cubicOut" - ], - "providedExports": [ - "cubicIn", - "cubicOut", - "cubicInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function cubicIn(t) {\n return t * t * t;\n}\n\nexport function cubicOut(t) {\n return --t * t * t + 1;\n}\n\nexport function cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "index": 44, - "index2": 120, - "size": 251, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection/index.js", - "loc": "1:0-30" - } - ], - "usedExports": false, - "providedExports": [], - "optimizationBailout": [], - "depth": 4, - "source": "import {selection} from \"d3-selection\";\nimport selection_interrupt from \"./interrupt.js\";\nimport selection_transition from \"./transition.js\";\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "name": "./node_modules/d3-transition/src/active.js", - "index": 127, - "index2": 121, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./active.js", - "loc": "3:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "module": "./node_modules/d3-transition/src/index.js", - "moduleName": "./node_modules/d3-transition/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./active.js", - "loc": "3:0-46" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Transition} from \"./transition/index.js\";\nimport {SCHEDULED} from \"./transition/schedule.js\";\n\nvar root = [null];\n\nexport default function(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "index": 42, - "index2": 138, - "size": 17019, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "module": "./node_modules/d3-brush/src/index.js", - "moduleName": "./node_modules/d3-brush/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./brush.js", - "loc": "1:0-6:20" - } - ], - "usedExports": [ - "default", - "brushX", - "brushY", - "brushSelection" - ], - "providedExports": [ - "brushSelection", - "brushX", - "brushY", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolate} from \"d3-interpolate\";\nimport {customEvent, event, touch, mouse, select} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport BrushEvent from \"./event.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\nvar MODE_DRAG = {name: \"drag\"},\n MODE_SPACE = {name: \"space\"},\n MODE_HANDLE = {name: \"handle\"},\n MODE_CENTER = {name: \"center\"};\n\nfunction number1(e) {\n return [+e[0], +e[1]];\n}\n\nfunction number2(e) {\n return [number1(e[0]), number1(e[1])];\n}\n\nfunction toucher(identifier) {\n return function(target) {\n return touch(target, event.touches, identifier);\n };\n}\n\nvar X = {\n name: \"x\",\n handles: [\"w\", \"e\"].map(type),\n input: function(x, e) { return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]]; },\n output: function(xy) { return xy && [xy[0][0], xy[1][0]]; }\n};\n\nvar Y = {\n name: \"y\",\n handles: [\"n\", \"s\"].map(type),\n input: function(y, e) { return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]]; },\n output: function(xy) { return xy && [xy[0][1], xy[1][1]]; }\n};\n\nvar XY = {\n name: \"xy\",\n handles: [\"n\", \"w\", \"e\", \"s\", \"nw\", \"ne\", \"sw\", \"se\"].map(type),\n input: function(xy) { return xy == null ? null : number2(xy); },\n output: function(xy) { return xy; }\n};\n\nvar cursors = {\n overlay: \"crosshair\",\n selection: \"move\",\n n: \"ns-resize\",\n e: \"ew-resize\",\n s: \"ns-resize\",\n w: \"ew-resize\",\n nw: \"nwse-resize\",\n ne: \"nesw-resize\",\n se: \"nwse-resize\",\n sw: \"nesw-resize\"\n};\n\nvar flipX = {\n e: \"w\",\n w: \"e\",\n nw: \"ne\",\n ne: \"nw\",\n se: \"sw\",\n sw: \"se\"\n};\n\nvar flipY = {\n n: \"s\",\n s: \"n\",\n nw: \"sw\",\n ne: \"se\",\n se: \"ne\",\n sw: \"nw\"\n};\n\nvar signsX = {\n overlay: +1,\n selection: +1,\n n: null,\n e: +1,\n s: null,\n w: -1,\n nw: -1,\n ne: +1,\n se: +1,\n sw: -1\n};\n\nvar signsY = {\n overlay: +1,\n selection: +1,\n n: -1,\n e: null,\n s: +1,\n w: null,\n nw: -1,\n ne: -1,\n se: +1,\n sw: +1\n};\n\nfunction type(t) {\n return {type: t};\n}\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var svg = this.ownerSVGElement || this;\n if (svg.hasAttribute(\"viewBox\")) {\n svg = svg.viewBox.baseVal;\n return [[svg.x, svg.y], [svg.x + svg.width, svg.y + svg.height]];\n }\n return [[0, 0], [svg.width.baseVal.value, svg.height.baseVal.value]];\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\n// Like d3.local, but with the name “__brush” rather than auto-generated.\nfunction local(node) {\n while (!node.__brush) if (!(node = node.parentNode)) return;\n return node.__brush;\n}\n\nfunction empty(extent) {\n return extent[0][0] === extent[1][0]\n || extent[0][1] === extent[1][1];\n}\n\nexport function brushSelection(node) {\n var state = node.__brush;\n return state ? state.dim.output(state.selection) : null;\n}\n\nexport function brushX() {\n return brush(X);\n}\n\nexport function brushY() {\n return brush(Y);\n}\n\nexport default function() {\n return brush(XY);\n}\n\nfunction brush(dim) {\n var extent = defaultExtent,\n filter = defaultFilter,\n touchable = defaultTouchable,\n keys = true,\n listeners = dispatch(\"start\", \"brush\", \"end\"),\n handleSize = 6,\n touchending;\n\n function brush(group) {\n var overlay = group\n .property(\"__brush\", initialize)\n .selectAll(\".overlay\")\n .data([type(\"overlay\")]);\n\n overlay.enter().append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"pointer-events\", \"all\")\n .attr(\"cursor\", cursors.overlay)\n .merge(overlay)\n .each(function() {\n var extent = local(this).extent;\n select(this)\n .attr(\"x\", extent[0][0])\n .attr(\"y\", extent[0][1])\n .attr(\"width\", extent[1][0] - extent[0][0])\n .attr(\"height\", extent[1][1] - extent[0][1]);\n });\n\n group.selectAll(\".selection\")\n .data([type(\"selection\")])\n .enter().append(\"rect\")\n .attr(\"class\", \"selection\")\n .attr(\"cursor\", cursors.selection)\n .attr(\"fill\", \"#777\")\n .attr(\"fill-opacity\", 0.3)\n .attr(\"stroke\", \"#fff\")\n .attr(\"shape-rendering\", \"crispEdges\");\n\n var handle = group.selectAll(\".handle\")\n .data(dim.handles, function(d) { return d.type; });\n\n handle.exit().remove();\n\n handle.enter().append(\"rect\")\n .attr(\"class\", function(d) { return \"handle handle--\" + d.type; })\n .attr(\"cursor\", function(d) { return cursors[d.type]; });\n\n group\n .each(redraw)\n .attr(\"fill\", \"none\")\n .attr(\"pointer-events\", \"all\")\n .on(\"mousedown.brush\", started)\n .filter(touchable)\n .on(\"touchstart.brush\", started)\n .on(\"touchmove.brush\", touchmoved)\n .on(\"touchend.brush touchcancel.brush\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n brush.move = function(group, selection) {\n if (group.selection) {\n group\n .on(\"start.brush\", function() { emitter(this, arguments).beforestart().start(); })\n .on(\"interrupt.brush end.brush\", function() { emitter(this, arguments).end(); })\n .tween(\"brush\", function() {\n var that = this,\n state = that.__brush,\n emit = emitter(that, arguments),\n selection0 = state.selection,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(this, arguments) : selection, state.extent),\n i = interpolate(selection0, selection1);\n\n function tween(t) {\n state.selection = t === 1 && selection1 === null ? null : i(t);\n redraw.call(that);\n emit.brush();\n }\n\n return selection0 !== null && selection1 !== null ? tween : tween(1);\n });\n } else {\n group\n .each(function() {\n var that = this,\n args = arguments,\n state = that.__brush,\n selection1 = dim.input(typeof selection === \"function\" ? selection.apply(that, args) : selection, state.extent),\n emit = emitter(that, args).beforestart();\n\n interrupt(that);\n state.selection = selection1 === null ? null : selection1;\n redraw.call(that);\n emit.start().brush().end();\n });\n }\n };\n\n brush.clear = function(group) {\n brush.move(group, null);\n };\n\n function redraw() {\n var group = select(this),\n selection = local(this).selection;\n\n if (selection) {\n group.selectAll(\".selection\")\n .style(\"display\", null)\n .attr(\"x\", selection[0][0])\n .attr(\"y\", selection[0][1])\n .attr(\"width\", selection[1][0] - selection[0][0])\n .attr(\"height\", selection[1][1] - selection[0][1]);\n\n group.selectAll(\".handle\")\n .style(\"display\", null)\n .attr(\"x\", function(d) { return d.type[d.type.length - 1] === \"e\" ? selection[1][0] - handleSize / 2 : selection[0][0] - handleSize / 2; })\n .attr(\"y\", function(d) { return d.type[0] === \"s\" ? selection[1][1] - handleSize / 2 : selection[0][1] - handleSize / 2; })\n .attr(\"width\", function(d) { return d.type === \"n\" || d.type === \"s\" ? selection[1][0] - selection[0][0] + handleSize : handleSize; })\n .attr(\"height\", function(d) { return d.type === \"e\" || d.type === \"w\" ? selection[1][1] - selection[0][1] + handleSize : handleSize; });\n }\n\n else {\n group.selectAll(\".selection,.handle\")\n .style(\"display\", \"none\")\n .attr(\"x\", null)\n .attr(\"y\", null)\n .attr(\"width\", null)\n .attr(\"height\", null);\n }\n }\n\n function emitter(that, args, clean) {\n return (!clean && that.__brush.emitter) || new Emitter(that, args);\n }\n\n function Emitter(that, args) {\n this.that = that;\n this.args = args;\n this.state = that.__brush;\n this.active = 0;\n }\n\n Emitter.prototype = {\n beforestart: function() {\n if (++this.active === 1) this.state.emitter = this, this.starting = true;\n return this;\n },\n start: function() {\n if (this.starting) this.starting = false, this.emit(\"start\");\n else this.emit(\"brush\");\n return this;\n },\n brush: function() {\n this.emit(\"brush\");\n return this;\n },\n end: function() {\n if (--this.active === 0) delete this.state.emitter, this.emit(\"end\");\n return this;\n },\n emit: function(type) {\n customEvent(new BrushEvent(brush, type, dim.output(this.state.selection)), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function started() {\n if (touchending && !event.touches) return;\n if (!filter.apply(this, arguments)) return;\n\n var that = this,\n type = event.target.__data__.type,\n mode = (keys && event.metaKey ? type = \"overlay\" : type) === \"selection\" ? MODE_DRAG : (keys && event.altKey ? MODE_CENTER : MODE_HANDLE),\n signX = dim === Y ? null : signsX[type],\n signY = dim === X ? null : signsY[type],\n state = local(that),\n extent = state.extent,\n selection = state.selection,\n W = extent[0][0], w0, w1,\n N = extent[0][1], n0, n1,\n E = extent[1][0], e0, e1,\n S = extent[1][1], s0, s1,\n dx = 0,\n dy = 0,\n moving,\n shifting = signX && signY && keys && event.shiftKey,\n lockX,\n lockY,\n pointer = event.touches ? toucher(event.changedTouches[0].identifier) : mouse,\n point0 = pointer(that),\n point = point0,\n emit = emitter(that, arguments, true).beforestart();\n\n if (type === \"overlay\") {\n if (selection) moving = true;\n state.selection = selection = [\n [w0 = dim === Y ? W : point0[0], n0 = dim === X ? N : point0[1]],\n [e0 = dim === Y ? E : w0, s0 = dim === X ? S : n0]\n ];\n } else {\n w0 = selection[0][0];\n n0 = selection[0][1];\n e0 = selection[1][0];\n s0 = selection[1][1];\n }\n\n w1 = w0;\n n1 = n0;\n e1 = e0;\n s1 = s0;\n\n var group = select(that)\n .attr(\"pointer-events\", \"none\");\n\n var overlay = group.selectAll(\".overlay\")\n .attr(\"cursor\", cursors[type]);\n\n if (event.touches) {\n emit.moved = moved;\n emit.ended = ended;\n } else {\n var view = select(event.view)\n .on(\"mousemove.brush\", moved, true)\n .on(\"mouseup.brush\", ended, true);\n if (keys) view\n .on(\"keydown.brush\", keydowned, true)\n .on(\"keyup.brush\", keyupped, true)\n\n dragDisable(event.view);\n }\n\n nopropagation();\n interrupt(that);\n redraw.call(that);\n emit.start();\n\n function moved() {\n var point1 = pointer(that);\n if (shifting && !lockX && !lockY) {\n if (Math.abs(point1[0] - point[0]) > Math.abs(point1[1] - point[1])) lockY = true;\n else lockX = true;\n }\n point = point1;\n moving = true;\n noevent();\n move();\n }\n\n function move() {\n var t;\n\n dx = point[0] - point0[0];\n dy = point[1] - point0[1];\n\n switch (mode) {\n case MODE_SPACE:\n case MODE_DRAG: {\n if (signX) dx = Math.max(W - w0, Math.min(E - e0, dx)), w1 = w0 + dx, e1 = e0 + dx;\n if (signY) dy = Math.max(N - n0, Math.min(S - s0, dy)), n1 = n0 + dy, s1 = s0 + dy;\n break;\n }\n case MODE_HANDLE: {\n if (signX < 0) dx = Math.max(W - w0, Math.min(E - w0, dx)), w1 = w0 + dx, e1 = e0;\n else if (signX > 0) dx = Math.max(W - e0, Math.min(E - e0, dx)), w1 = w0, e1 = e0 + dx;\n if (signY < 0) dy = Math.max(N - n0, Math.min(S - n0, dy)), n1 = n0 + dy, s1 = s0;\n else if (signY > 0) dy = Math.max(N - s0, Math.min(S - s0, dy)), n1 = n0, s1 = s0 + dy;\n break;\n }\n case MODE_CENTER: {\n if (signX) w1 = Math.max(W, Math.min(E, w0 - dx * signX)), e1 = Math.max(W, Math.min(E, e0 + dx * signX));\n if (signY) n1 = Math.max(N, Math.min(S, n0 - dy * signY)), s1 = Math.max(N, Math.min(S, s0 + dy * signY));\n break;\n }\n }\n\n if (e1 < w1) {\n signX *= -1;\n t = w0, w0 = e0, e0 = t;\n t = w1, w1 = e1, e1 = t;\n if (type in flipX) overlay.attr(\"cursor\", cursors[type = flipX[type]]);\n }\n\n if (s1 < n1) {\n signY *= -1;\n t = n0, n0 = s0, s0 = t;\n t = n1, n1 = s1, s1 = t;\n if (type in flipY) overlay.attr(\"cursor\", cursors[type = flipY[type]]);\n }\n\n if (state.selection) selection = state.selection; // May be set by brush.move!\n if (lockX) w1 = selection[0][0], e1 = selection[1][0];\n if (lockY) n1 = selection[0][1], s1 = selection[1][1];\n\n if (selection[0][0] !== w1\n || selection[0][1] !== n1\n || selection[1][0] !== e1\n || selection[1][1] !== s1) {\n state.selection = [[w1, n1], [e1, s1]];\n redraw.call(that);\n emit.brush();\n }\n }\n\n function ended() {\n nopropagation();\n if (event.touches) {\n if (event.touches.length) return;\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n } else {\n dragEnable(event.view, moving);\n view.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\", null);\n }\n group.attr(\"pointer-events\", \"all\");\n overlay.attr(\"cursor\", cursors.overlay);\n if (state.selection) selection = state.selection; // May be set by brush.move (on start)!\n if (empty(selection)) state.selection = null, redraw.call(that);\n emit.end();\n }\n\n function keydowned() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n shifting = signX && signY;\n break;\n }\n case 18: { // ALT\n if (mode === MODE_HANDLE) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n move();\n }\n break;\n }\n case 32: { // SPACE; takes priority over ALT\n if (mode === MODE_HANDLE || mode === MODE_CENTER) {\n if (signX < 0) e0 = e1 - dx; else if (signX > 0) w0 = w1 - dx;\n if (signY < 0) s0 = s1 - dy; else if (signY > 0) n0 = n1 - dy;\n mode = MODE_SPACE;\n overlay.attr(\"cursor\", cursors.selection);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n\n function keyupped() {\n switch (event.keyCode) {\n case 16: { // SHIFT\n if (shifting) {\n lockX = lockY = shifting = false;\n move();\n }\n break;\n }\n case 18: { // ALT\n if (mode === MODE_CENTER) {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n move();\n }\n break;\n }\n case 32: { // SPACE\n if (mode === MODE_SPACE) {\n if (event.altKey) {\n if (signX) e0 = e1 - dx * signX, w0 = w1 + dx * signX;\n if (signY) s0 = s1 - dy * signY, n0 = n1 + dy * signY;\n mode = MODE_CENTER;\n } else {\n if (signX < 0) e0 = e1; else if (signX > 0) w0 = w1;\n if (signY < 0) s0 = s1; else if (signY > 0) n0 = n1;\n mode = MODE_HANDLE;\n }\n overlay.attr(\"cursor\", cursors[type]);\n move();\n }\n break;\n }\n default: return;\n }\n noevent();\n }\n }\n\n function touchmoved() {\n emitter(this, arguments).moved();\n }\n\n function touchended() {\n emitter(this, arguments).ended();\n }\n\n function initialize() {\n var state = this.__brush || {selection: null};\n state.extent = number2(extent.apply(this, arguments));\n state.dim = dim;\n return state;\n }\n\n brush.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant(number2(_)), brush) : extent;\n };\n\n brush.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), brush) : filter;\n };\n\n brush.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), brush) : touchable;\n };\n\n brush.handleSize = function(_) {\n return arguments.length ? (handleSize = +_, brush) : handleSize;\n };\n\n brush.keyModifiers = function(_) {\n return arguments.length ? (keys = !!_, brush) : keys;\n };\n\n brush.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? brush : value;\n };\n\n return brush;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "name": "./node_modules/d3-chord/src/chord.js", - "index": 144, - "index2": 141, - "size": 3178, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./chord", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./chord", - "loc": "1:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range} from \"d3-array\";\nimport {max, tau} from \"./math\";\n\nfunction compareValue(compare) {\n return function(a, b) {\n return compare(\n a.source.value + a.target.value,\n b.source.value + b.target.value\n );\n };\n}\n\nexport default function() {\n var padAngle = 0,\n sortGroups = null,\n sortSubgroups = null,\n sortChords = null;\n\n function chord(matrix) {\n var n = matrix.length,\n groupSums = [],\n groupIndex = range(n),\n subgroupIndex = [],\n chords = [],\n groups = chords.groups = new Array(n),\n subgroups = new Array(n * n),\n k,\n x,\n x0,\n dx,\n i,\n j;\n\n // Compute the sum.\n k = 0, i = -1; while (++i < n) {\n x = 0, j = -1; while (++j < n) {\n x += matrix[i][j];\n }\n groupSums.push(x);\n subgroupIndex.push(range(n));\n k += x;\n }\n\n // Sort groups…\n if (sortGroups) groupIndex.sort(function(a, b) {\n return sortGroups(groupSums[a], groupSums[b]);\n });\n\n // Sort subgroups…\n if (sortSubgroups) subgroupIndex.forEach(function(d, i) {\n d.sort(function(a, b) {\n return sortSubgroups(matrix[i][a], matrix[i][b]);\n });\n });\n\n // Convert the sum to scaling factor for [0, 2pi].\n // TODO Allow start and end angle to be specified?\n // TODO Allow padding to be specified as percentage?\n k = max(0, tau - padAngle * n) / k;\n dx = k ? padAngle : tau / n;\n\n // Compute the start and end angle for each group and subgroup.\n // Note: Opera has a bug reordering object literal properties!\n x = 0, i = -1; while (++i < n) {\n x0 = x, j = -1; while (++j < n) {\n var di = groupIndex[i],\n dj = subgroupIndex[di][j],\n v = matrix[di][dj],\n a0 = x,\n a1 = x += v * k;\n subgroups[dj * n + di] = {\n index: di,\n subindex: dj,\n startAngle: a0,\n endAngle: a1,\n value: v\n };\n }\n groups[di] = {\n index: di,\n startAngle: x0,\n endAngle: x,\n value: groupSums[di]\n };\n x += dx;\n }\n\n // Generate chords for each (non-empty) subgroup-subgroup link.\n i = -1; while (++i < n) {\n j = i - 1; while (++j < n) {\n var source = subgroups[j * n + i],\n target = subgroups[i * n + j];\n if (source.value || target.value) {\n chords.push(source.value < target.value\n ? {source: target, target: source}\n : {source: source, target: target});\n }\n }\n }\n\n return sortChords ? chords.sort(sortChords) : chords;\n }\n\n chord.padAngle = function(_) {\n return arguments.length ? (padAngle = max(0, _), chord) : padAngle;\n };\n\n chord.sortGroups = function(_) {\n return arguments.length ? (sortGroups = _, chord) : sortGroups;\n };\n\n chord.sortSubgroups = function(_) {\n return arguments.length ? (sortSubgroups = _, chord) : sortSubgroups;\n };\n\n chord.sortChords = function(_) {\n return arguments.length ? (_ == null ? sortChords = null : (sortChords = compareValue(_))._ = _, chord) : sortChords && sortChords._;\n };\n\n return chord;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/path.js", - "name": "./node_modules/d3-path/src/path.js", - "index": 149, - "index2": 144, - "size": 4189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-path/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "name": "./node_modules/d3-path/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 70, - "building": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "module": "./node_modules/d3-path/src/index.js", - "moduleName": "./node_modules/d3-path/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-path/src/index.js", - "module": "./node_modules/d3-path/src/index.js", - "moduleName": "./node_modules/d3-path/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./path.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "21:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "24:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "28:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "28:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "48:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-path", - "loc": "97:37-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var pi = Math.PI,\n tau = 2 * pi,\n epsilon = 1e-6,\n tauEpsilon = tau - epsilon;\n\nfunction Path() {\n this._x0 = this._y0 = // start of current subpath\n this._x1 = this._y1 = null; // end of current subpath\n this._ = \"\";\n}\n\nfunction path() {\n return new Path;\n}\n\nPath.prototype = path.prototype = {\n constructor: Path,\n moveTo: function(x, y) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n },\n closePath: function() {\n if (this._x1 !== null) {\n this._x1 = this._x0, this._y1 = this._y0;\n this._ += \"Z\";\n }\n },\n lineTo: function(x, y) {\n this._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n quadraticCurveTo: function(x1, y1, x, y) {\n this._ += \"Q\" + (+x1) + \",\" + (+y1) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) {\n this._ += \"C\" + (+x1) + \",\" + (+y1) + \",\" + (+x2) + \",\" + (+y2) + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n },\n arcTo: function(x1, y1, x2, y2, r) {\n x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n var x0 = this._x1,\n y0 = this._y1,\n x21 = x2 - x1,\n y21 = y2 - y1,\n x01 = x0 - x1,\n y01 = y0 - y1,\n l01_2 = x01 * x01 + y01 * y01;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x1,y1).\n if (this._x1 === null) {\n this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.\n else if (!(l01_2 > epsilon));\n\n // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?\n // Equivalently, is (x1,y1) coincident with (x2,y2)?\n // Or, is the radius zero? Line to (x1,y1).\n else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {\n this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n }\n\n // Otherwise, draw an arc!\n else {\n var x20 = x2 - x0,\n y20 = y2 - y0,\n l21_2 = x21 * x21 + y21 * y21,\n l20_2 = x20 * x20 + y20 * y20,\n l21 = Math.sqrt(l21_2),\n l01 = Math.sqrt(l01_2),\n l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),\n t01 = l / l01,\n t21 = l / l21;\n\n // If the start tangent is not coincident with (x0,y0), line to.\n if (Math.abs(t01 - 1) > epsilon) {\n this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n }\n\n this._ += \"A\" + r + \",\" + r + \",0,0,\" + (+(y01 * x20 > x01 * y20)) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n }\n },\n arc: function(x, y, r, a0, a1, ccw) {\n x = +x, y = +y, r = +r, ccw = !!ccw;\n var dx = r * Math.cos(a0),\n dy = r * Math.sin(a0),\n x0 = x + dx,\n y0 = y + dy,\n cw = 1 ^ ccw,\n da = ccw ? a0 - a1 : a1 - a0;\n\n // Is the radius negative? Error.\n if (r < 0) throw new Error(\"negative radius: \" + r);\n\n // Is this path empty? Move to (x0,y0).\n if (this._x1 === null) {\n this._ += \"M\" + x0 + \",\" + y0;\n }\n\n // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).\n else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {\n this._ += \"L\" + x0 + \",\" + y0;\n }\n\n // Is this arc empty? We’re done.\n if (!r) return;\n\n // Does the angle go the wrong way? Flip the direction.\n if (da < 0) da = da % tau + tau;\n\n // Is this a complete circle? Draw two arcs to complete the circle.\n if (da > tauEpsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n }\n\n // Is this arc non-empty? Draw an arc!\n else if (da > epsilon) {\n this._ += \"A\" + r + \",\" + r + \",0,\" + (+(da >= pi)) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n }\n },\n rect: function(x, y, w, h) {\n this._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + (+w) + \"v\" + (+h) + \"h\" + (-w) + \"Z\";\n },\n toString: function() {\n return this._;\n }\n};\n\nexport default path;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "index": 146, - "index2": 145, - "size": 2340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ribbon", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "module": "./node_modules/d3-chord/src/index.js", - "moduleName": "./node_modules/d3-chord/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ribbon", - "loc": "2:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array\";\nimport constant from \"./constant\";\nimport {cos, halfPi, sin} from \"./math\";\nimport {path} from \"d3-path\";\n\nfunction defaultSource(d) {\n return d.source;\n}\n\nfunction defaultTarget(d) {\n return d.target;\n}\n\nfunction defaultRadius(d) {\n return d.radius;\n}\n\nfunction defaultStartAngle(d) {\n return d.startAngle;\n}\n\nfunction defaultEndAngle(d) {\n return d.endAngle;\n}\n\nexport default function() {\n var source = defaultSource,\n target = defaultTarget,\n radius = defaultRadius,\n startAngle = defaultStartAngle,\n endAngle = defaultEndAngle,\n context = null;\n\n function ribbon() {\n var buffer,\n argv = slice.call(arguments),\n s = source.apply(this, argv),\n t = target.apply(this, argv),\n sr = +radius.apply(this, (argv[0] = s, argv)),\n sa0 = startAngle.apply(this, argv) - halfPi,\n sa1 = endAngle.apply(this, argv) - halfPi,\n sx0 = sr * cos(sa0),\n sy0 = sr * sin(sa0),\n tr = +radius.apply(this, (argv[0] = t, argv)),\n ta0 = startAngle.apply(this, argv) - halfPi,\n ta1 = endAngle.apply(this, argv) - halfPi;\n\n if (!context) context = buffer = path();\n\n context.moveTo(sx0, sy0);\n context.arc(0, 0, sr, sa0, sa1);\n if (sa0 !== ta0 || sa1 !== ta1) { // TODO sr !== tr?\n context.quadraticCurveTo(0, 0, tr * cos(ta0), tr * sin(ta0));\n context.arc(0, 0, tr, ta0, ta1);\n }\n context.quadraticCurveTo(0, 0, sx0, sy0);\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n ribbon.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), ribbon) : radius;\n };\n\n ribbon.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : startAngle;\n };\n\n ribbon.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), ribbon) : endAngle;\n };\n\n ribbon.source = function(_) {\n return arguments.length ? (source = _, ribbon) : source;\n };\n\n ribbon.target = function(_) {\n return arguments.length ? (target = _, ribbon) : target;\n };\n\n ribbon.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), ribbon) : context;\n };\n\n return ribbon;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/map.js", - "name": "./node_modules/d3-collection/src/map.js", - "index": 152, - "index2": 147, - "size": 1988, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "1:0-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./map", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./map", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "5:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "module": "./node_modules/d3-collection/src/set.js", - "moduleName": "./node_modules/d3-collection/src/set.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "12:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "21:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "module": "./node_modules/d3-collection/src/nest.js", - "moduleName": "./node_modules/d3-collection/src/nest.js", - "type": "harmony import specifier", - "userRequest": "./map", - "loc": "68:9-12" - } - ], - "usedExports": [ - "default", - "prefix" - ], - "providedExports": [ - "prefix", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export var prefix = \"$\";\n\nfunction Map() {}\n\nMap.prototype = map.prototype = {\n constructor: Map,\n has: function(key) {\n return (prefix + key) in this;\n },\n get: function(key) {\n return this[prefix + key];\n },\n set: function(key, value) {\n this[prefix + key] = value;\n return this;\n },\n remove: function(key) {\n var property = prefix + key;\n return property in this && delete this[property];\n },\n clear: function() {\n for (var property in this) if (property[0] === prefix) delete this[property];\n },\n keys: function() {\n var keys = [];\n for (var property in this) if (property[0] === prefix) keys.push(property.slice(1));\n return keys;\n },\n values: function() {\n var values = [];\n for (var property in this) if (property[0] === prefix) values.push(this[property]);\n return values;\n },\n entries: function() {\n var entries = [];\n for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]});\n return entries;\n },\n size: function() {\n var size = 0;\n for (var property in this) if (property[0] === prefix) ++size;\n return size;\n },\n empty: function() {\n for (var property in this) if (property[0] === prefix) return false;\n return true;\n },\n each: function(f) {\n for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this);\n }\n};\n\nfunction map(object, f) {\n var map = new Map;\n\n // Copy constructor.\n if (object instanceof Map) object.each(function(value, key) { map.set(key, value); });\n\n // Index array by numeric index or specified key function.\n else if (Array.isArray(object)) {\n var i = -1,\n n = object.length,\n o;\n\n if (f == null) while (++i < n) map.set(i, object[i]);\n else while (++i < n) map.set(f(o = object[i], i, object), o);\n }\n\n // Convert object to map.\n else if (object) for (var key in object) map.set(key, object[key]);\n\n return map;\n}\n\nexport default map;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/nest.js", - "name": "./node_modules/d3-collection/src/nest.js", - "index": 151, - "index2": 148, - "size": 2017, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nest", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./nest", - "loc": "1:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import map from \"./map\";\n\nexport default function() {\n var keys = [],\n sortKeys = [],\n sortValues,\n rollup,\n nest;\n\n function apply(array, depth, createResult, setResult) {\n if (depth >= keys.length) {\n if (sortValues != null) array.sort(sortValues);\n return rollup != null ? rollup(array) : array;\n }\n\n var i = -1,\n n = array.length,\n key = keys[depth++],\n keyValue,\n value,\n valuesByKey = map(),\n values,\n result = createResult();\n\n while (++i < n) {\n if (values = valuesByKey.get(keyValue = key(value = array[i]) + \"\")) {\n values.push(value);\n } else {\n valuesByKey.set(keyValue, [value]);\n }\n }\n\n valuesByKey.each(function(values, key) {\n setResult(result, key, apply(values, depth, createResult, setResult));\n });\n\n return result;\n }\n\n function entries(map, depth) {\n if (++depth > keys.length) return map;\n var array, sortKey = sortKeys[depth - 1];\n if (rollup != null && depth >= keys.length) array = map.entries();\n else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); });\n return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array;\n }\n\n return nest = {\n object: function(array) { return apply(array, 0, createObject, setObject); },\n map: function(array) { return apply(array, 0, createMap, setMap); },\n entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); },\n key: function(d) { keys.push(d); return nest; },\n sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; },\n sortValues: function(order) { sortValues = order; return nest; },\n rollup: function(f) { rollup = f; return nest; }\n };\n}\n\nfunction createObject() {\n return {};\n}\n\nfunction setObject(object, key, value) {\n object[key] = value;\n}\n\nfunction createMap() {\n return map();\n}\n\nfunction setMap(map, key, value) {\n map.set(key, value);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/set.js", - "name": "./node_modules/d3-collection/src/set.js", - "index": 153, - "index2": 149, - "size": 800, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./set", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./set", - "loc": "2:0-37" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {default as map, prefix} from \"./map\";\n\nfunction Set() {}\n\nvar proto = map.prototype;\n\nSet.prototype = set.prototype = {\n constructor: Set,\n has: proto.has,\n add: function(value) {\n value += \"\";\n this[prefix + value] = value;\n return this;\n },\n remove: proto.remove,\n clear: proto.clear,\n values: proto.keys,\n size: proto.size,\n empty: proto.empty,\n each: proto.each\n};\n\nfunction set(object, f) {\n var set = new Set;\n\n // Copy constructor.\n if (object instanceof Set) object.each(function(value) { set.add(value); });\n\n // Otherwise, assume it’s an array.\n else if (object) {\n var i = -1, n = object.length;\n if (f == null) while (++i < n) set.add(object[i]);\n else while (++i < n) set.add(f(object[i], i, object));\n }\n\n return set;\n}\n\nexport default set;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/keys.js", - "name": "./node_modules/d3-collection/src/keys.js", - "index": 154, - "index2": 150, - "size": 104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./keys", - "loc": "4:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./keys", - "loc": "4:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var keys = [];\n for (var key in map) keys.push(key);\n return keys;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/values.js", - "name": "./node_modules/d3-collection/src/values.js", - "index": 155, - "index2": 151, - "size": 115, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./values", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./values", - "loc": "5:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var values = [];\n for (var key in map) values.push(map[key]);\n return values;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/entries.js", - "name": "./node_modules/d3-collection/src/entries.js", - "index": 156, - "index2": 152, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-collection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "name": "./node_modules/d3-collection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 188, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./entries", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-collection/src/index.js", - "module": "./node_modules/d3-collection/src/index.js", - "moduleName": "./node_modules/d3-collection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./entries", - "loc": "6:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(map) {\n var entries = [];\n for (var key in map) entries.push({key: key, value: map[key]});\n return entries;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "name": "./node_modules/d3-color/src/lab.js", - "index": 158, - "index2": 155, - "size": 3661, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "5:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "5:52-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:52-60" - } - ], - "usedExports": [ - "hcl", - "default", - "lch", - "gray" - ], - "providedExports": [ - "gray", - "default", - "Lab", - "lch", - "hcl", - "Hcl" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nvar K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nexport function gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nexport default function lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nexport function Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter: function(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker: function(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb: function() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * rad2deg;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nexport function lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nexport function Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * deg2rad;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter: function(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker: function(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb: function() {\n return hcl2lab(this).rgb();\n }\n}));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "name": "./node_modules/d3-color/src/cubehelix.js", - "index": 160, - "index2": 156, - "size": 1864, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubehelix.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "module": "./node_modules/d3-color/src/index.js", - "moduleName": "./node_modules/d3-color/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:66-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "4:72-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "6:71-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "8:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "9:27-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-color", - "loc": "9:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default", - "Cubehelix" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import define, {extend} from \"./define.js\";\nimport {Color, rgbConvert, Rgb, darker, brighter} from \"./color.js\";\nimport {deg2rad, rad2deg} from \"./math.js\";\n\nvar A = -0.14861,\n B = +1.78277,\n C = -0.29227,\n D = -0.90649,\n E = +1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nexport default function cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nexport function Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter: function(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "index": 162, - "index2": 164, - "size": 6224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contours", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contours", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./contours", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./contours", - "loc": "63:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {extent, thresholdSturges, tickStep, range} from \"d3-array\";\nimport {slice} from \"./array\";\nimport ascending from \"./ascending\";\nimport area from \"./area\";\nimport constant from \"./constant\";\nimport contains from \"./contains\";\nimport noop from \"./noop\";\n\nvar cases = [\n [],\n [[[1.0, 1.5], [0.5, 1.0]]],\n [[[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [0.5, 1.0]]],\n [[[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 1.5], [0.5, 1.0]], [[1.0, 0.5], [1.5, 1.0]]],\n [[[1.0, 0.5], [1.0, 1.5]]],\n [[[1.0, 0.5], [0.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 0.5]]],\n [[[1.0, 1.5], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.0, 0.5]], [[1.5, 1.0], [1.0, 1.5]]],\n [[[1.5, 1.0], [1.0, 0.5]]],\n [[[0.5, 1.0], [1.5, 1.0]]],\n [[[1.0, 1.5], [1.5, 1.0]]],\n [[[0.5, 1.0], [1.0, 1.5]]],\n []\n];\n\nexport default function() {\n var dx = 1,\n dy = 1,\n threshold = thresholdSturges,\n smooth = smoothLinear;\n\n function contours(values) {\n var tz = threshold(values);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var domain = extent(values), start = domain[0], stop = domain[1];\n tz = tickStep(start, stop, tz);\n tz = range(Math.floor(start / tz) * tz, Math.floor(stop / tz) * tz, tz);\n } else {\n tz = tz.slice().sort(ascending);\n }\n\n return tz.map(function(value) {\n return contour(values, value);\n });\n }\n\n // Accumulate, smooth contour rings, assign holes to exterior rings.\n // Based on https://github.com/mbostock/shapefile/blob/v0.6.2/shp/polygon.js\n function contour(values, value) {\n var polygons = [],\n holes = [];\n\n isorings(values, value, function(ring) {\n smooth(ring, values, value);\n if (area(ring) > 0) polygons.push([ring]);\n else holes.push(ring);\n });\n\n holes.forEach(function(hole) {\n for (var i = 0, n = polygons.length, polygon; i < n; ++i) {\n if (contains((polygon = polygons[i])[0], hole) !== -1) {\n polygon.push(hole);\n return;\n }\n }\n });\n\n return {\n type: \"MultiPolygon\",\n value: value,\n coordinates: polygons\n };\n }\n\n // Marching squares with isolines stitched into rings.\n // Based on https://github.com/topojson/topojson-client/blob/v3.0.0/src/stitch.js\n function isorings(values, value, callback) {\n var fragmentByStart = new Array,\n fragmentByEnd = new Array,\n x, y, t0, t1, t2, t3;\n\n // Special case for the first row (y = -1, t2 = t3 = 0).\n x = y = -1;\n t1 = values[0] >= value;\n cases[t1 << 1].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[x + 1] >= value;\n cases[t0 | t1 << 1].forEach(stitch);\n }\n cases[t1 << 0].forEach(stitch);\n\n // General case for the intermediate rows.\n while (++y < dy - 1) {\n x = -1;\n t1 = values[y * dx + dx] >= value;\n t2 = values[y * dx] >= value;\n cases[t1 << 1 | t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t0 = t1, t1 = values[y * dx + dx + x + 1] >= value;\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t1 | t2 << 3].forEach(stitch);\n }\n\n // Special case for the last row (y = dy - 1, t0 = t1 = 0).\n x = -1;\n t2 = values[y * dx] >= value;\n cases[t2 << 2].forEach(stitch);\n while (++x < dx - 1) {\n t3 = t2, t2 = values[y * dx + x + 1] >= value;\n cases[t2 << 2 | t3 << 3].forEach(stitch);\n }\n cases[t2 << 3].forEach(stitch);\n\n function stitch(line) {\n var start = [line[0][0] + x, line[0][1] + y],\n end = [line[1][0] + x, line[1][1] + y],\n startIndex = index(start),\n endIndex = index(end),\n f, g;\n if (f = fragmentByEnd[startIndex]) {\n if (g = fragmentByStart[endIndex]) {\n delete fragmentByEnd[f.end];\n delete fragmentByStart[g.start];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[f.start] = fragmentByEnd[g.end] = {start: f.start, end: g.end, ring: f.ring.concat(g.ring)};\n }\n } else {\n delete fragmentByEnd[f.end];\n f.ring.push(end);\n fragmentByEnd[f.end = endIndex] = f;\n }\n } else if (f = fragmentByStart[endIndex]) {\n if (g = fragmentByEnd[startIndex]) {\n delete fragmentByStart[f.start];\n delete fragmentByEnd[g.end];\n if (f === g) {\n f.ring.push(end);\n callback(f.ring);\n } else {\n fragmentByStart[g.start] = fragmentByEnd[f.end] = {start: g.start, end: f.end, ring: g.ring.concat(f.ring)};\n }\n } else {\n delete fragmentByStart[f.start];\n f.ring.unshift(start);\n fragmentByStart[f.start = startIndex] = f;\n }\n } else {\n fragmentByStart[startIndex] = fragmentByEnd[endIndex] = {start: startIndex, end: endIndex, ring: [start, end]};\n }\n }\n }\n\n function index(point) {\n return point[0] * 2 + point[1] * (dx + 1) * 4;\n }\n\n function smoothLinear(ring, values, value) {\n ring.forEach(function(point) {\n var x = point[0],\n y = point[1],\n xt = x | 0,\n yt = y | 0,\n v0,\n v1 = values[yt * dx + xt];\n if (x > 0 && x < dx && xt === x) {\n v0 = values[yt * dx + xt - 1];\n point[0] = x + (value - v0) / (v1 - v0) - 0.5;\n }\n if (y > 0 && y < dy && yt === y) {\n v0 = values[(yt - 1) * dx + xt];\n point[1] = y + (value - v0) / (v1 - v0) - 0.5;\n }\n });\n }\n\n contours.contour = contour;\n\n contours.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 > 0) || !(_1 > 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, contours;\n };\n\n contours.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), contours) : threshold;\n };\n\n contours.smooth = function(_) {\n return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;\n };\n\n return contours;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "index": 169, - "index2": 166, - "size": 3990, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./density", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "module": "./node_modules/d3-contour/src/index.js", - "moduleName": "./node_modules/d3-contour/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./density", - "loc": "2:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {max, range, tickStep} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {blurX, blurY} from \"./blur\";\nimport constant from \"./constant\";\nimport contours from \"./contours\";\n\nfunction defaultX(d) {\n return d[0];\n}\n\nfunction defaultY(d) {\n return d[1];\n}\n\nfunction defaultWeight() {\n return 1;\n}\n\nexport default function() {\n var x = defaultX,\n y = defaultY,\n weight = defaultWeight,\n dx = 960,\n dy = 500,\n r = 20, // blur radius\n k = 2, // log2(grid cell size)\n o = r * 3, // grid offset, to pad for blur\n n = (dx + o * 2) >> k, // grid width\n m = (dy + o * 2) >> k, // grid height\n threshold = constant(20);\n\n function density(data) {\n var values0 = new Float32Array(n * m),\n values1 = new Float32Array(n * m);\n\n data.forEach(function(d, i, data) {\n var xi = (+x(d, i, data) + o) >> k,\n yi = (+y(d, i, data) + o) >> k,\n wi = +weight(d, i, data);\n if (xi >= 0 && xi < n && yi >= 0 && yi < m) {\n values0[xi + yi * n] += wi;\n }\n });\n\n // TODO Optimize.\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n blurX({width: n, height: m, data: values0}, {width: n, height: m, data: values1}, r >> k);\n blurY({width: n, height: m, data: values1}, {width: n, height: m, data: values0}, r >> k);\n\n var tz = threshold(values0);\n\n // Convert number of thresholds into uniform thresholds.\n if (!Array.isArray(tz)) {\n var stop = max(values0);\n tz = tickStep(0, stop, tz);\n tz = range(0, Math.floor(stop / tz) * tz, tz);\n tz.shift();\n }\n\n return contours()\n .thresholds(tz)\n .size([n, m])\n (values0)\n .map(transform);\n }\n\n function transform(geometry) {\n geometry.value *= Math.pow(2, -2 * k); // Density in points per square pixel.\n geometry.coordinates.forEach(transformPolygon);\n return geometry;\n }\n\n function transformPolygon(coordinates) {\n coordinates.forEach(transformRing);\n }\n\n function transformRing(coordinates) {\n coordinates.forEach(transformPoint);\n }\n\n // TODO Optimize.\n function transformPoint(coordinates) {\n coordinates[0] = coordinates[0] * Math.pow(2, k) - o;\n coordinates[1] = coordinates[1] * Math.pow(2, k) - o;\n }\n\n function resize() {\n o = r * 3;\n n = (dx + o * 2) >> k;\n m = (dy + o * 2) >> k;\n return density;\n }\n\n density.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), density) : x;\n };\n\n density.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), density) : y;\n };\n\n density.weight = function(_) {\n return arguments.length ? (weight = typeof _ === \"function\" ? _ : constant(+_), density) : weight;\n };\n\n density.size = function(_) {\n if (!arguments.length) return [dx, dy];\n var _0 = Math.ceil(_[0]), _1 = Math.ceil(_[1]);\n if (!(_0 >= 0) && !(_0 >= 0)) throw new Error(\"invalid size\");\n return dx = _0, dy = _1, resize();\n };\n\n density.cellSize = function(_) {\n if (!arguments.length) return 1 << k;\n if (!((_ = +_) >= 1)) throw new Error(\"invalid cell size\");\n return k = Math.floor(Math.log(_) / Math.LN2), resize();\n };\n\n density.thresholds = function(_) {\n return arguments.length ? (threshold = typeof _ === \"function\" ? _ : Array.isArray(_) ? constant(slice.call(_)) : constant(_), density) : threshold;\n };\n\n density.bandwidth = function(_) {\n if (!arguments.length) return Math.sqrt(r * (r + 1));\n if (!((_ = +_) >= 0)) throw new Error(\"invalid bandwidth\");\n return r = Math.round((Math.sqrt(4 * _ * _ + 1) - 1) / 2), resize();\n };\n\n return density;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "index": 173, - "index2": 171, - "size": 5073, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./drag.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "module": "./node_modules/d3-drag/src/index.js", - "moduleName": "./node_modules/d3-drag/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./drag.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport nodrag, {yesdrag} from \"./nodrag.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\nimport constant from \"./constant.js\";\nimport DragEvent from \"./event.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nexport default function() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var gesture = beforestart(\"mouse\", container.apply(this, arguments), mouse, this, arguments);\n if (!gesture) return;\n select(event.view).on(\"mousemove.drag\", mousemoved, true).on(\"mouseup.drag\", mouseupped, true);\n nodrag(event.view);\n nopropagation();\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\");\n }\n\n function mousemoved() {\n noevent();\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\");\n }\n\n function mouseupped() {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent();\n gestures.mouse(\"end\");\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.changedTouches,\n c = container.apply(this, arguments),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(touches[i].identifier, c, touch, this, arguments)) {\n nopropagation();\n gesture(\"start\");\n }\n }\n }\n\n function touchmoved() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent();\n gesture(\"drag\");\n }\n }\n }\n\n function touchended() {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation();\n gesture(\"end\");\n }\n }\n }\n\n function beforestart(id, container, point, that, args) {\n var p = point(container, id), s, dx, dy,\n sublisteners = listeners.copy();\n\n if (!customEvent(new DragEvent(drag, \"beforestart\", s, id, active, p[0], p[1], 0, 0, sublisteners), function() {\n if ((event.subject = s = subject.apply(that, args)) == null) return false;\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n return true;\n })) return;\n\n return function gesture(type) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[id] = gesture, n = active++; break;\n case \"end\": delete gestures[id], --active; // nobreak\n case \"drag\": p = point(container, id), n = active; break;\n }\n customEvent(new DragEvent(drag, type, s, id, n, p[0] + dx, p[1] + dy, p[0] - p0[0], p[1] - p0[1], sublisteners), sublisteners.apply, sublisteners, [type, that, args]);\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/dsv.js", - "name": "./node_modules/d3-dsv/src/dsv.js", - "index": 177, - "index2": 173, - "size": 4838, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv.js", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "module": "./node_modules/d3-dsv/src/csv.js", - "moduleName": "./node_modules/d3-dsv/src/csv.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "module": "./node_modules/d3-dsv/src/tsv.js", - "moduleName": "./node_modules/d3-dsv/src/tsv.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv.js", - "loc": "1:0-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "module": "./node_modules/d3-dsv/src/csv.js", - "moduleName": "./node_modules/d3-dsv/src/csv.js", - "type": "harmony import specifier", - "userRequest": "./dsv.js", - "loc": "3:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "module": "./node_modules/d3-dsv/src/tsv.js", - "moduleName": "./node_modules/d3-dsv/src/tsv.js", - "type": "harmony import specifier", - "userRequest": "./dsv.js", - "loc": "3:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "15:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var EOL = {},\n EOF = {},\n QUOTE = 34,\n NEWLINE = 10,\n RETURN = 13;\n\nfunction objectConverter(columns) {\n return new Function(\"d\", \"return {\" + columns.map(function(name, i) {\n return JSON.stringify(name) + \": d[\" + i + \"] || \\\"\\\"\";\n }).join(\",\") + \"}\");\n}\n\nfunction customConverter(columns, f) {\n var object = objectConverter(columns);\n return function(row, i) {\n return f(object(row), i, columns);\n };\n}\n\n// Compute unique columns in order of discovery.\nfunction inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}\n\nfunction pad(value, width) {\n var s = value + \"\", length = s.length;\n return length < width ? new Array(width - length + 1).join(0) + s : s;\n}\n\nfunction formatYear(year) {\n return year < 0 ? \"-\" + pad(-year, 6)\n : year > 9999 ? \"+\" + pad(year, 6)\n : pad(year, 4);\n}\n\nfunction formatDate(date) {\n var hours = date.getUTCHours(),\n minutes = date.getUTCMinutes(),\n seconds = date.getUTCSeconds(),\n milliseconds = date.getUTCMilliseconds();\n return isNaN(date) ? \"Invalid Date\"\n : formatYear(date.getUTCFullYear(), 4) + \"-\" + pad(date.getUTCMonth() + 1, 2) + \"-\" + pad(date.getUTCDate(), 2)\n + (milliseconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \".\" + pad(milliseconds, 3) + \"Z\"\n : seconds ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \":\" + pad(seconds, 2) + \"Z\"\n : minutes || hours ? \"T\" + pad(hours, 2) + \":\" + pad(minutes, 2) + \"Z\"\n : \"\");\n}\n\nexport default function(delimiter) {\n var reFormat = new RegExp(\"[\\\"\" + delimiter + \"\\n\\r]\"),\n DELIMITER = delimiter.charCodeAt(0);\n\n function parse(text, f) {\n var convert, columns, rows = parseRows(text, function(row, i) {\n if (convert) return convert(row, i - 1);\n columns = row, convert = f ? customConverter(row, f) : objectConverter(row);\n });\n rows.columns = columns || [];\n return rows;\n }\n\n function parseRows(text, f) {\n var rows = [], // output rows\n N = text.length,\n I = 0, // current character index\n n = 0, // current line number\n t, // current token\n eof = N <= 0, // current token followed by EOF?\n eol = false; // current token followed by EOL?\n\n // Strip the trailing newline.\n if (text.charCodeAt(N - 1) === NEWLINE) --N;\n if (text.charCodeAt(N - 1) === RETURN) --N;\n\n function token() {\n if (eof) return EOF;\n if (eol) return eol = false, EOL;\n\n // Unescape quotes.\n var i, j = I, c;\n if (text.charCodeAt(j) === QUOTE) {\n while (I++ < N && text.charCodeAt(I) !== QUOTE || text.charCodeAt(++I) === QUOTE);\n if ((i = I) >= N) eof = true;\n else if ((c = text.charCodeAt(I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n return text.slice(j + 1, i - 1).replace(/\"\"/g, \"\\\"\");\n }\n\n // Find next delimiter or newline.\n while (I < N) {\n if ((c = text.charCodeAt(i = I++)) === NEWLINE) eol = true;\n else if (c === RETURN) { eol = true; if (text.charCodeAt(I) === NEWLINE) ++I; }\n else if (c !== DELIMITER) continue;\n return text.slice(j, i);\n }\n\n // Return last token before EOF.\n return eof = true, text.slice(j, N);\n }\n\n while ((t = token()) !== EOF) {\n var row = [];\n while (t !== EOL && t !== EOF) row.push(t), t = token();\n if (f && (row = f(row, n++)) == null) continue;\n rows.push(row);\n }\n\n return rows;\n }\n\n function preformatBody(rows, columns) {\n return rows.map(function(row) {\n return columns.map(function(column) {\n return formatValue(row[column]);\n }).join(delimiter);\n });\n }\n\n function format(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return [columns.map(formatValue).join(delimiter)].concat(preformatBody(rows, columns)).join(\"\\n\");\n }\n\n function formatBody(rows, columns) {\n if (columns == null) columns = inferColumns(rows);\n return preformatBody(rows, columns).join(\"\\n\");\n }\n\n function formatRows(rows) {\n return rows.map(formatRow).join(\"\\n\");\n }\n\n function formatRow(row) {\n return row.map(formatValue).join(delimiter);\n }\n\n function formatValue(value) {\n return value == null ? \"\"\n : value instanceof Date ? formatDate(value)\n : reFormat.test(value += \"\") ? \"\\\"\" + value.replace(/\"/g, \"\\\"\\\"\") + \"\\\"\"\n : value;\n }\n\n return {\n parse: parse,\n parseRows: parseRows,\n format: format,\n formatBody: formatBody,\n formatRows: formatRows,\n formatRow: formatRow,\n formatValue: formatValue\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/csv.js", - "name": "./node_modules/d3-dsv/src/csv.js", - "index": 178, - "index2": 174, - "size": 331, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./csv.js", - "loc": "2:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "21:26-34" - } - ], - "usedExports": [ - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue" - ], - "providedExports": [ - "csvParse", - "csvParseRows", - "csvFormat", - "csvFormatBody", - "csvFormatRows", - "csvFormatRow", - "csvFormatValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dsv from \"./dsv.js\";\n\nvar csv = dsv(\",\");\n\nexport var csvParse = csv.parse;\nexport var csvParseRows = csv.parseRows;\nexport var csvFormat = csv.format;\nexport var csvFormatBody = csv.formatBody;\nexport var csvFormatRows = csv.formatRows;\nexport var csvFormatRow = csv.formatRow;\nexport var csvFormatValue = csv.formatValue;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/tsv.js", - "name": "./node_modules/d3-dsv/src/tsv.js", - "index": 179, - "index2": 175, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tsv.js", - "loc": "3:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-dsv", - "loc": "22:26-34" - } - ], - "usedExports": [ - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue" - ], - "providedExports": [ - "tsvParse", - "tsvParseRows", - "tsvFormat", - "tsvFormatBody", - "tsvFormatRows", - "tsvFormatRow", - "tsvFormatValue" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dsv from \"./dsv.js\";\n\nvar tsv = dsv(\"\\t\");\n\nexport var tsvParse = tsv.parse;\nexport var tsvParseRows = tsv.parseRows;\nexport var tsvFormat = tsv.format;\nexport var tsvFormatBody = tsv.formatBody;\nexport var tsvFormatRows = tsv.formatRows;\nexport var tsvFormatRow = tsv.formatRow;\nexport var tsvFormatValue = tsv.formatValue;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/autoType.js", - "name": "./node_modules/d3-dsv/src/autoType.js", - "index": 180, - "index2": 176, - "size": 794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-dsv/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "name": "./node_modules/d3-dsv/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 77, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./autoType.js", - "loc": "4:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-dsv/src/index.js", - "module": "./node_modules/d3-dsv/src/index.js", - "moduleName": "./node_modules/d3-dsv/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./autoType.js", - "loc": "4:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function autoType(object) {\n for (var key in object) {\n var value = object[key].trim(), number, m;\n if (!value) value = null;\n else if (value === \"true\") value = true;\n else if (value === \"false\") value = false;\n else if (value === \"NaN\") value = NaN;\n else if (!isNaN(number = +value)) value = number;\n else if (m = value.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)) {\n if (fixtz && !!m[4] && !m[7]) value = value.replace(/-/g, \"/\").replace(/T/, \" \");\n value = new Date(value);\n }\n else continue;\n object[key] = value;\n }\n return object;\n}\n\n// https://github.com/d3/d3-dsv/issues/45\nvar fixtz = new Date(\"2019-01-01T00:00\").getHours() || new Date(\"2019-07-01T00:00\").getHours();" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/linear.js", - "name": "./node_modules/d3-ease/src/linear.js", - "index": 182, - "index2": 178, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear.js", - "loc": "1:0-3:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./linear.js", - "loc": "1:0-3:21" - } - ], - "usedExports": [ - "linear" - ], - "providedExports": [ - "linear" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function linear(t) {\n return +t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/quad.js", - "name": "./node_modules/d3-ease/src/quad.js", - "index": 183, - "index2": 179, - "size": 192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quad.js", - "loc": "5:0-10:19" - } - ], - "usedExports": [ - "quadInOut", - "quadIn", - "quadOut" - ], - "providedExports": [ - "quadIn", - "quadOut", - "quadInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function quadIn(t) {\n return t * t;\n}\n\nexport function quadOut(t) {\n return t * (2 - t);\n}\n\nexport function quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/poly.js", - "name": "./node_modules/d3-ease/src/poly.js", - "index": 184, - "index2": 180, - "size": 596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./poly.js", - "loc": "19:0-24:19" - } - ], - "usedExports": [ - "polyInOut", - "polyIn", - "polyOut" - ], - "providedExports": [ - "polyIn", - "polyOut", - "polyInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var exponent = 3;\n\nexport var polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nexport var polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nexport var polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/sin.js", - "name": "./node_modules/d3-ease/src/sin.js", - "index": 185, - "index2": 181, - "size": 236, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sin.js", - "loc": "26:0-31:18" - } - ], - "usedExports": [ - "sinInOut", - "sinIn", - "sinOut" - ], - "providedExports": [ - "sinIn", - "sinOut", - "sinInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var pi = Math.PI,\n halfPi = pi / 2;\n\nexport function sinIn(t) {\n return 1 - Math.cos(t * halfPi);\n}\n\nexport function sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nexport function sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/exp.js", - "name": "./node_modules/d3-ease/src/exp.js", - "index": 186, - "index2": 182, - "size": 251, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exp.js", - "loc": "33:0-38:18" - } - ], - "usedExports": [ - "expInOut", - "expIn", - "expOut" - ], - "providedExports": [ - "expIn", - "expOut", - "expInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function expIn(t) {\n return Math.pow(2, 10 * t - 10);\n}\n\nexport function expOut(t) {\n return 1 - Math.pow(2, -10 * t);\n}\n\nexport function expInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/circle.js", - "name": "./node_modules/d3-ease/src/circle.js", - "index": 187, - "index2": 183, - "size": 261, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "40:0-45:21" - } - ], - "usedExports": [ - "circleInOut", - "circleIn", - "circleOut" - ], - "providedExports": [ - "circleIn", - "circleOut", - "circleInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nexport function circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nexport function circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/bounce.js", - "name": "./node_modules/d3-ease/src/bounce.js", - "index": 188, - "index2": 184, - "size": 521, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounce.js", - "loc": "47:0-52:21" - } - ], - "usedExports": [ - "bounceOut", - "bounceIn", - "bounceInOut" - ], - "providedExports": [ - "bounceIn", - "bounceOut", - "bounceInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nexport function bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nexport function bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nexport function bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/back.js", - "name": "./node_modules/d3-ease/src/back.js", - "index": 189, - "index2": 185, - "size": 653, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./back.js", - "loc": "54:0-59:19" - } - ], - "usedExports": [ - "backInOut", - "backIn", - "backOut" - ], - "providedExports": [ - "backIn", - "backOut", - "backInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var overshoot = 1.70158;\n\nexport var backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return t * t * ((s + 1) * t - s);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nexport var backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((s + 1) * t + s) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nexport var backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/elastic.js", - "name": "./node_modules/d3-ease/src/elastic.js", - "index": 190, - "index2": 186, - "size": 1309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-ease/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "name": "./node_modules/d3-ease/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 868, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-ease/src/index.js", - "module": "./node_modules/d3-ease/src/index.js", - "moduleName": "./node_modules/d3-ease/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./elastic.js", - "loc": "61:0-66:22" - } - ], - "usedExports": [ - "elasticOut", - "elasticIn", - "elasticInOut" - ], - "providedExports": [ - "elasticIn", - "elasticOut", - "elasticInOut" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nexport var elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nexport var elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nexport var elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p)\n : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/blob.js", - "name": "./node_modules/d3-fetch/src/blob.js", - "index": 192, - "index2": 188, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./blob", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./blob", - "loc": "1:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseBlob(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.blob();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseBlob);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/buffer.js", - "name": "./node_modules/d3-fetch/src/buffer.js", - "index": 193, - "index2": 189, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./buffer", - "loc": "2:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseArrayBuffer(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.arrayBuffer();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseArrayBuffer);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/text.js", - "name": "./node_modules/d3-fetch/src/text.js", - "index": 195, - "index2": 190, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "module": "./node_modules/d3-fetch/src/xml.js", - "moduleName": "./node_modules/d3-fetch/src/xml.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "1:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "2:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "module": "./node_modules/d3-fetch/src/xml.js", - "moduleName": "./node_modules/d3-fetch/src/xml.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "5:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./text", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "7:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "module": "./node_modules/d3-fetch/src/dsv.js", - "moduleName": "./node_modules/d3-fetch/src/dsv.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "16:9-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/dsv.js", - "name": "./node_modules/d3-fetch/src/dsv.js", - "index": 194, - "index2": 191, - "size": 707, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./dsv", - "loc": "3:0-47" - } - ], - "usedExports": [ - "default", - "csv", - "tsv" - ], - "providedExports": [ - "default", - "csv", - "tsv" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {csvParse, dsvFormat, tsvParse} from \"d3-dsv\";\nimport text from \"./text\";\n\nfunction dsvParse(parse) {\n return function(input, init, row) {\n if (arguments.length === 2 && typeof init === \"function\") row = init, init = undefined;\n return text(input, init).then(function(response) {\n return parse(response, row);\n });\n };\n}\n\nexport default function dsv(delimiter, input, init, row) {\n if (arguments.length === 3 && typeof init === \"function\") row = init, init = undefined;\n var format = dsvFormat(delimiter);\n return text(input, init).then(function(response) {\n return format.parse(response, row);\n });\n}\n\nexport var csv = dsvParse(csvParse);\nexport var tsv = dsvParse(tsvParse);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/image.js", - "name": "./node_modules/d3-fetch/src/image.js", - "index": 196, - "index2": 192, - "size": 275, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./image", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./image", - "loc": "4:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(input, init) {\n return new Promise(function(resolve, reject) {\n var image = new Image;\n for (var key in init) image[key] = init[key];\n image.onerror = reject;\n image.onload = function() { resolve(image); };\n image.src = input;\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/json.js", - "name": "./node_modules/d3-fetch/src/json.js", - "index": 197, - "index2": 193, - "size": 234, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./json", - "loc": "5:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./json", - "loc": "5:0-39" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function responseJson(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.json();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseJson);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/xml.js", - "name": "./node_modules/d3-fetch/src/xml.js", - "index": 198, - "index2": 194, - "size": 336, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-fetch/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "name": "./node_modules/d3-fetch/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 896, - "building": 20, - "dependencies": 12 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-fetch/src/index.js", - "module": "./node_modules/d3-fetch/src/index.js", - "moduleName": "./node_modules/d3-fetch/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./xml", - "loc": "7:0-48" - } - ], - "usedExports": [ - "default", - "html", - "svg" - ], - "providedExports": [ - "default", - "html", - "svg" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import text from \"./text\";\n\nfunction parser(type) {\n return function(input, init) {\n return text(input, init).then(function(text) {\n return (new DOMParser).parseFromString(text, type);\n });\n };\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/center.js", - "name": "./node_modules/d3-force/src/center.js", - "index": 200, - "index2": 196, - "size": 654, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./center", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./center", - "loc": "1:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(x, y) {\n var nodes;\n\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force() {\n var i,\n n = nodes.length,\n node,\n sx = 0,\n sy = 0;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], sx += node.x, sy += node.y;\n }\n\n for (sx = sx / n - x, sy = sy / n - y, i = 0; i < n; ++i) {\n node = nodes[i], node.x -= sx, node.y -= sy;\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "index": 204, - "index2": 212, - "size": 2113, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 73, - "building": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "module": "./node_modules/d3-quadtree/src/index.js", - "moduleName": "./node_modules/d3-quadtree/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quadtree.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "module": "./node_modules/d3-quadtree/src/index.js", - "moduleName": "./node_modules/d3-quadtree/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quadtree.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-quadtree", - "loc": "17:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-quadtree", - "loc": "31:13-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import tree_add, {addAll as tree_addAll} from \"./add.js\";\nimport tree_cover from \"./cover.js\";\nimport tree_data from \"./data.js\";\nimport tree_extent from \"./extent.js\";\nimport tree_find from \"./find.js\";\nimport tree_remove, {removeAll as tree_removeAll} from \"./remove.js\";\nimport tree_root from \"./root.js\";\nimport tree_size from \"./size.js\";\nimport tree_visit from \"./visit.js\";\nimport tree_visitAfter from \"./visitAfter.js\";\nimport tree_x, {defaultX} from \"./x.js\";\nimport tree_y, {defaultY} from \"./y.js\";\n\nexport default function quadtree(nodes, x, y) {\n var tree = new Quadtree(x == null ? defaultX : x, y == null ? defaultY : y, NaN, NaN, NaN, NaN);\n return nodes == null ? tree : tree.addAll(nodes);\n}\n\nfunction Quadtree(x, y, x0, y0, x1, y1) {\n this._x = x;\n this._y = y;\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n this._root = undefined;\n}\n\nfunction leaf_copy(leaf) {\n var copy = {data: leaf.data}, next = copy;\n while (leaf = leaf.next) next = next.next = {data: leaf.data};\n return copy;\n}\n\nvar treeProto = quadtree.prototype = Quadtree.prototype;\n\ntreeProto.copy = function() {\n var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1),\n node = this._root,\n nodes,\n child;\n\n if (!node) return copy;\n\n if (!node.length) return copy._root = leaf_copy(node), copy;\n\n nodes = [{source: node, target: copy._root = new Array(4)}];\n while (node = nodes.pop()) {\n for (var i = 0; i < 4; ++i) {\n if (child = node.source[i]) {\n if (child.length) nodes.push({source: child, target: node.target[i] = new Array(4)});\n else node.target[i] = leaf_copy(child);\n }\n }\n }\n\n return copy;\n};\n\ntreeProto.add = tree_add;\ntreeProto.addAll = tree_addAll;\ntreeProto.cover = tree_cover;\ntreeProto.data = tree_data;\ntreeProto.extent = tree_extent;\ntreeProto.find = tree_find;\ntreeProto.remove = tree_remove;\ntreeProto.removeAll = tree_removeAll;\ntreeProto.root = tree_root;\ntreeProto.size = tree_size;\ntreeProto.visit = tree_visit;\ntreeProto.visitAfter = tree_visitAfter;\ntreeProto.x = tree_x;\ntreeProto.y = tree_y;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "name": "./node_modules/d3-force/src/collide.js", - "index": 201, - "index2": 213, - "size": 2447, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./collide", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./collide", - "loc": "2:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\n\nfunction x(d) {\n return d.x + d.vx;\n}\n\nfunction y(d) {\n return d.y + d.vy;\n}\n\nexport default function(radius) {\n var nodes,\n radii,\n strength = 1,\n iterations = 1;\n\n if (typeof radius !== \"function\") radius = constant(radius == null ? 1 : +radius);\n\n function force() {\n var i, n = nodes.length,\n tree,\n node,\n xi,\n yi,\n ri,\n ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = quadtree(nodes, x, y).visitAfter(prepare);\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index], ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n }\n }\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data, rj = quad.r, r = ri + rj;\n if (data) {\n if (data.index > node.index) {\n var x = xi - data.x - data.vx,\n y = yi - data.y - data.vy,\n l = x * x + y * y;\n if (l < r * r) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (y *= l) * r;\n data.vx -= x * (r = 1 - r);\n data.vy -= y * r;\n }\n }\n return;\n }\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n }\n }\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n radii = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "name": "./node_modules/d3-force/src/link.js", - "index": 218, - "index2": 214, - "size": 3213, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./link", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link", - "loc": "3:0-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {map} from \"d3-collection\";\n\nfunction index(d) {\n return d.index;\n}\n\nfunction find(nodeById, nodeId) {\n var node = nodeById.get(nodeId);\n if (!node) throw new Error(\"missing: \" + nodeId);\n return node;\n}\n\nexport default function(links) {\n var id = index,\n strength = defaultStrength,\n strengths,\n distance = constant(30),\n distances,\n nodes,\n count,\n bias,\n iterations = 1;\n\n if (links == null) links = [];\n\n function defaultStrength(link) {\n return 1 / Math.min(count[link.source.index], count[link.target.index]);\n }\n\n function force(alpha) {\n for (var k = 0, n = links.length; k < iterations; ++k) {\n for (var i = 0, link, source, target, x, y, l, b; i < n; ++i) {\n link = links[i], source = link.source, target = link.target;\n x = target.x + target.vx - source.x - source.vx || jiggle();\n y = target.y + target.vy - source.y - source.vy || jiggle();\n l = Math.sqrt(x * x + y * y);\n l = (l - distances[i]) / l * alpha * strengths[i];\n x *= l, y *= l;\n target.vx -= x * (b = bias[i]);\n target.vy -= y * b;\n source.vx += x * (b = 1 - b);\n source.vy += y * b;\n }\n }\n }\n\n function initialize() {\n if (!nodes) return;\n\n var i,\n n = nodes.length,\n m = links.length,\n nodeById = map(nodes, id),\n link;\n\n for (i = 0, count = new Array(n); i < m; ++i) {\n link = links[i], link.index = i;\n if (typeof link.source !== \"object\") link.source = find(nodeById, link.source);\n if (typeof link.target !== \"object\") link.target = find(nodeById, link.target);\n count[link.source.index] = (count[link.source.index] || 0) + 1;\n count[link.target.index] = (count[link.target.index] || 0) + 1;\n }\n\n for (i = 0, bias = new Array(m); i < m; ++i) {\n link = links[i], bias[i] = count[link.source.index] / (count[link.source.index] + count[link.target.index]);\n }\n\n strengths = new Array(m), initializeStrength();\n distances = new Array(m), initializeDistance();\n }\n\n function initializeStrength() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n strengths[i] = +strength(links[i], i, links);\n }\n }\n\n function initializeDistance() {\n if (!nodes) return;\n\n for (var i = 0, n = links.length; i < n; ++i) {\n distances[i] = +distance(links[i], i, links);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.links = function(_) {\n return arguments.length ? (links = _, initialize(), force) : links;\n };\n\n force.id = function(_) {\n return arguments.length ? (id = _, force) : id;\n };\n\n force.iterations = function(_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initializeStrength(), force) : strength;\n };\n\n force.distance = function(_) {\n return arguments.length ? (distance = typeof _ === \"function\" ? _ : constant(+_), initializeDistance(), force) : distance;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/simulation.js", - "name": "./node_modules/d3-force/src/simulation.js", - "index": 220, - "index2": 215, - "size": 3691, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./simulation", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./simulation", - "loc": "6:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./simulation", - "loc": "6:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./simulation", - "loc": "17:52-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./simulation", - "loc": "17:55-56" - } - ], - "usedExports": [ - "x", - "y", - "default" - ], - "providedExports": [ - "x", - "y", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {map} from \"d3-collection\";\nimport {timer} from \"d3-timer\";\n\nexport function x(d) {\n return d.x;\n}\n\nexport function y(d) {\n return d.y;\n}\n\nvar initialRadius = 10,\n initialAngle = Math.PI * (3 - Math.sqrt(5));\n\nexport default function(nodes) {\n var simulation,\n alpha = 1,\n alphaMin = 0.001,\n alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),\n alphaTarget = 0,\n velocityDecay = 0.6,\n forces = map(),\n stepper = timer(step),\n event = dispatch(\"tick\", \"end\");\n\n if (nodes == null) nodes = [];\n\n function step() {\n tick();\n event.call(\"tick\", simulation);\n if (alpha < alphaMin) {\n stepper.stop();\n event.call(\"end\", simulation);\n }\n }\n\n function tick(iterations) {\n var i, n = nodes.length, node;\n\n if (iterations === undefined) iterations = 1;\n\n for (var k = 0; k < iterations; ++k) {\n alpha += (alphaTarget - alpha) * alphaDecay;\n\n forces.each(function (force) {\n force(alpha);\n });\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n if (node.fx == null) node.x += node.vx *= velocityDecay;\n else node.x = node.fx, node.vx = 0;\n if (node.fy == null) node.y += node.vy *= velocityDecay;\n else node.y = node.fy, node.vy = 0;\n }\n }\n\n return simulation;\n }\n\n function initializeNodes() {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.index = i;\n if (node.fx != null) node.x = node.fx;\n if (node.fy != null) node.y = node.fy;\n if (isNaN(node.x) || isNaN(node.y)) {\n var radius = initialRadius * Math.sqrt(i), angle = i * initialAngle;\n node.x = radius * Math.cos(angle);\n node.y = radius * Math.sin(angle);\n }\n if (isNaN(node.vx) || isNaN(node.vy)) {\n node.vx = node.vy = 0;\n }\n }\n }\n\n function initializeForce(force) {\n if (force.initialize) force.initialize(nodes);\n return force;\n }\n\n initializeNodes();\n\n return simulation = {\n tick: tick,\n\n restart: function() {\n return stepper.restart(step), simulation;\n },\n\n stop: function() {\n return stepper.stop(), simulation;\n },\n\n nodes: function(_) {\n return arguments.length ? (nodes = _, initializeNodes(), forces.each(initializeForce), simulation) : nodes;\n },\n\n alpha: function(_) {\n return arguments.length ? (alpha = +_, simulation) : alpha;\n },\n\n alphaMin: function(_) {\n return arguments.length ? (alphaMin = +_, simulation) : alphaMin;\n },\n\n alphaDecay: function(_) {\n return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;\n },\n\n alphaTarget: function(_) {\n return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;\n },\n\n velocityDecay: function(_) {\n return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;\n },\n\n force: function(name, _) {\n return arguments.length > 1 ? ((_ == null ? forces.remove(name) : forces.set(name, initializeForce(_))), simulation) : forces.get(name);\n },\n\n find: function(x, y, radius) {\n var i = 0,\n n = nodes.length,\n dx,\n dy,\n d2,\n node,\n closest;\n\n if (radius == null) radius = Infinity;\n else radius *= radius;\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n dx = x - node.x;\n dy = y - node.y;\n d2 = dx * dx + dy * dy;\n if (d2 < radius) closest = node, radius = d2;\n }\n\n return closest;\n },\n\n on: function(name, _) {\n return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "name": "./node_modules/d3-force/src/manyBody.js", - "index": 219, - "index2": 216, - "size": 3218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./manyBody", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./manyBody", - "loc": "4:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport jiggle from \"./jiggle\";\nimport {quadtree} from \"d3-quadtree\";\nimport {x, y} from \"./simulation\";\n\nexport default function() {\n var nodes,\n node,\n alpha,\n strength = constant(-30),\n strengths,\n distanceMin2 = 1,\n distanceMax2 = Infinity,\n theta2 = 0.81;\n\n function force(_) {\n var i, n = nodes.length, tree = quadtree(nodes, x, y).visitAfter(accumulate);\n for (alpha = _, i = 0; i < n; ++i) node = nodes[i], tree.visit(apply);\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length, node;\n strengths = new Array(n);\n for (i = 0; i < n; ++i) node = nodes[i], strengths[node.index] = +strength(node, i, nodes);\n }\n\n function accumulate(quad) {\n var strength = 0, q, c, weight = 0, x, y, i;\n\n // For internal nodes, accumulate forces from child quadrants.\n if (quad.length) {\n for (x = y = i = 0; i < 4; ++i) {\n if ((q = quad[i]) && (c = Math.abs(q.value))) {\n strength += q.value, weight += c, x += c * q.x, y += c * q.y;\n }\n }\n quad.x = x / weight;\n quad.y = y / weight;\n }\n\n // For leaf nodes, accumulate forces from coincident quadrants.\n else {\n q = quad;\n q.x = q.data.x;\n q.y = q.data.y;\n do strength += strengths[q.data.index];\n while (q = q.next);\n }\n\n quad.value = strength;\n }\n\n function apply(quad, x1, _, x2) {\n if (!quad.value) return true;\n\n var x = quad.x - node.x,\n y = quad.y - node.y,\n w = x2 - x1,\n l = x * x + y * y;\n\n // Apply the Barnes-Hut approximation if possible.\n // Limit forces for very close nodes; randomize direction if coincident.\n if (w * w / theta2 < l) {\n if (l < distanceMax2) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n node.vx += x * quad.value * alpha / l;\n node.vy += y * quad.value * alpha / l;\n }\n return true;\n }\n\n // Otherwise, process points directly.\n else if (quad.length || l >= distanceMax2) return;\n\n // Limit forces for very close nodes; randomize direction if coincident.\n if (quad.data !== node || quad.next) {\n if (x === 0) x = jiggle(), l += x * x;\n if (y === 0) y = jiggle(), l += y * y;\n if (l < distanceMin2) l = Math.sqrt(distanceMin2 * l);\n }\n\n do if (quad.data !== node) {\n w = strengths[quad.data.index] * alpha / l;\n node.vx += x * w;\n node.vy += y * w;\n } while (quad = quad.next);\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.distanceMin = function(_) {\n return arguments.length ? (distanceMin2 = _ * _, force) : Math.sqrt(distanceMin2);\n };\n\n force.distanceMax = function(_) {\n return arguments.length ? (distanceMax2 = _ * _, force) : Math.sqrt(distanceMax2);\n };\n\n force.theta = function(_) {\n return arguments.length ? (theta2 = _ * _, force) : Math.sqrt(theta2);\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "name": "./node_modules/d3-force/src/radial.js", - "index": 221, - "index2": 217, - "size": 1477, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./radial", - "loc": "5:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./radial", - "loc": "5:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(radius, x, y) {\n var nodes,\n strength = constant(0.1),\n strengths,\n radiuses;\n\n if (typeof radius !== \"function\") radius = constant(+radius);\n if (x == null) x = 0;\n if (y == null) y = 0;\n\n function force(alpha) {\n for (var i = 0, n = nodes.length; i < n; ++i) {\n var node = nodes[i],\n dx = node.x - x || 1e-6,\n dy = node.y - y || 1e-6,\n r = Math.sqrt(dx * dx + dy * dy),\n k = (radiuses[i] - r) * strengths[i] * alpha / r;\n node.vx += dx * k;\n node.vy += dy * k;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n radiuses = new Array(n);\n for (i = 0; i < n; ++i) {\n radiuses[i] = +radius(nodes[i], i, nodes);\n strengths[i] = isNaN(radiuses[i]) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _, initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : radius;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = +_, force) : x;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = +_, force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "name": "./node_modules/d3-force/src/x.js", - "index": 222, - "index2": 218, - "size": 1030, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./x", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./x", - "loc": "7:0-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(x) {\n var strength = constant(0.1),\n nodes,\n strengths,\n xz;\n\n if (typeof x !== \"function\") x = constant(x == null ? 0 : +x);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n xz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(xz[i] = +x(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : x;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "name": "./node_modules/d3-force/src/y.js", - "index": 223, - "index2": 219, - "size": 1030, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./y", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "module": "./node_modules/d3-force/src/index.js", - "moduleName": "./node_modules/d3-force/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./y", - "loc": "8:0-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\n\nexport default function(y) {\n var strength = constant(0.1),\n nodes,\n strengths,\n yz;\n\n if (typeof y !== \"function\") y = constant(y == null ? 0 : +y);\n\n function force(alpha) {\n for (var i = 0, n = nodes.length, node; i < n; ++i) {\n node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;\n }\n }\n\n function initialize() {\n if (!nodes) return;\n var i, n = nodes.length;\n strengths = new Array(n);\n yz = new Array(n);\n for (i = 0; i < n; ++i) {\n strengths[i] = isNaN(yz[i] = +y(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);\n }\n }\n\n force.initialize = function(_) {\n nodes = _;\n initialize();\n };\n\n force.strength = function(_) {\n return arguments.length ? (strength = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : strength;\n };\n\n force.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), initialize(), force) : y;\n };\n\n return force;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatSpecifier.js", - "name": "./node_modules/d3-format/src/formatSpecifier.js", - "index": 230, - "index2": 224, - "size": 1719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./formatSpecifier.js", - "loc": "3:0-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatSpecifier.js", - "loc": "4:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "7:14-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatSpecifier.js", - "loc": "24:16-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatSpecifier.js", - "loc": "134:35-50" - } - ], - "usedExports": [ - "default", - "FormatSpecifier" - ], - "providedExports": [ - "default", - "FormatSpecifier" - ], - "optimizationBailout": [], - "depth": 4, - "source": "// [[fill]align][sign][symbol][0][width][,][.precision][~][type]\nvar re = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\n\nexport default function formatSpecifier(specifier) {\n if (!(match = re.exec(specifier))) throw new Error(\"invalid format: \" + specifier);\n var match;\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10]\n });\n}\n\nformatSpecifier.prototype = FormatSpecifier.prototype; // instanceof\n\nexport function FormatSpecifier(specifier) {\n this.fill = specifier.fill === undefined ? \" \" : specifier.fill + \"\";\n this.align = specifier.align === undefined ? \">\" : specifier.align + \"\";\n this.sign = specifier.sign === undefined ? \"-\" : specifier.sign + \"\";\n this.symbol = specifier.symbol === undefined ? \"\" : specifier.symbol + \"\";\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? \"\" : specifier.type + \"\";\n}\n\nFormatSpecifier.prototype.toString = function() {\n return this.fill\n + this.align\n + this.sign\n + this.symbol\n + (this.zero ? \"0\" : \"\")\n + (this.width === undefined ? \"\" : Math.max(1, this.width | 0))\n + (this.comma ? \",\" : \"\")\n + (this.precision === undefined ? \"\" : \".\" + Math.max(0, this.precision | 0))\n + (this.trim ? \"~\" : \"\")\n + this.type;\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "index": 226, - "index2": 231, - "size": 6031, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/defaultLocale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 50, - "building": 45 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "module": "./node_modules/d3-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-format/src/defaultLocale.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./locale.js", - "loc": "2:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "module": "./node_modules/d3-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-format/src/defaultLocale.js", - "type": "harmony import specifier", - "userRequest": "./locale.js", - "loc": "16:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\nimport formatGroup from \"./formatGroup.js\";\nimport formatNumerals from \"./formatNumerals.js\";\nimport formatSpecifier from \"./formatSpecifier.js\";\nimport formatTrim from \"./formatTrim.js\";\nimport formatTypes from \"./formatTypes.js\";\nimport {prefixExponent} from \"./formatPrefixAuto.js\";\nimport identity from \"./identity.js\";\n\nvar map = Array.prototype.map,\n prefixes = [\"y\",\"z\",\"a\",\"f\",\"p\",\"n\",\"µ\",\"m\",\"\",\"k\",\"M\",\"G\",\"T\",\"P\",\"E\",\"Z\",\"Y\"];\n\nexport default function(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + \"\"),\n currencyPrefix = locale.currency === undefined ? \"\" : locale.currency[0] + \"\",\n currencySuffix = locale.currency === undefined ? \"\" : locale.currency[1] + \"\",\n decimal = locale.decimal === undefined ? \".\" : locale.decimal + \"\",\n numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),\n percent = locale.percent === undefined ? \"%\" : locale.percent + \"\",\n minus = locale.minus === undefined ? \"-\" : locale.minus + \"\",\n nan = locale.nan === undefined ? \"NaN\" : locale.nan + \"\";\n\n function newFormat(specifier) {\n specifier = formatSpecifier(specifier);\n\n var fill = specifier.fill,\n align = specifier.align,\n sign = specifier.sign,\n symbol = specifier.symbol,\n zero = specifier.zero,\n width = specifier.width,\n comma = specifier.comma,\n precision = specifier.precision,\n trim = specifier.trim,\n type = specifier.type;\n\n // The \"n\" type is an alias for \",g\".\n if (type === \"n\") comma = true, type = \"g\";\n\n // The \"\" type, and any invalid type, is an alias for \".12~g\".\n else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = \"g\";\n\n // If zero fill is specified, padding goes after sign and before digits.\n if (zero || (fill === \"0\" && align === \"=\")) zero = true, fill = \"0\", align = \"=\";\n\n // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n var prefix = symbol === \"$\" ? currencyPrefix : symbol === \"#\" && /[boxX]/.test(type) ? \"0\" + type.toLowerCase() : \"\",\n suffix = symbol === \"$\" ? currencySuffix : /[%p]/.test(type) ? percent : \"\";\n\n // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n var formatType = formatTypes[type],\n maybeSuffix = /[defgprs%]/.test(type);\n\n // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n precision = precision === undefined ? 6\n : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))\n : Math.max(0, Math.min(20, precision));\n\n function format(value) {\n var valuePrefix = prefix,\n valueSuffix = suffix,\n i, n, c;\n\n if (type === \"c\") {\n valueSuffix = formatType(value) + valueSuffix;\n value = \"\";\n } else {\n value = +value;\n\n // Perform the initial formatting.\n var valueNegative = value < 0;\n value = isNaN(value) ? nan : formatType(Math.abs(value), precision);\n\n // Trim insignificant zeros.\n if (trim) value = formatTrim(value);\n\n // If a negative value rounds to zero during formatting, treat as positive.\n if (valueNegative && +value === 0) valueNegative = false;\n\n // Compute the prefix and suffix.\n valuePrefix = (valueNegative ? (sign === \"(\" ? sign : minus) : sign === \"-\" || sign === \"(\" ? \"\" : sign) + valuePrefix;\n\n valueSuffix = (type === \"s\" ? prefixes[8 + prefixExponent / 3] : \"\") + valueSuffix + (valueNegative && sign === \"(\" ? \")\" : \"\");\n\n // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n if (maybeSuffix) {\n i = -1, n = value.length;\n while (++i < n) {\n if (c = value.charCodeAt(i), 48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n }\n\n // If the fill character is not \"0\", grouping is applied before padding.\n if (comma && !zero) value = group(value, Infinity);\n\n // Compute the padding.\n var length = valuePrefix.length + value.length + valueSuffix.length,\n padding = length < width ? new Array(width - length + 1).join(fill) : \"\";\n\n // If the fill character is \"0\", grouping is applied after padding.\n if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = \"\";\n\n // Reconstruct the final output based on the desired alignment.\n switch (align) {\n case \"<\": value = valuePrefix + value + valueSuffix + padding; break;\n case \"=\": value = valuePrefix + padding + value + valueSuffix; break;\n case \"^\": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;\n default: value = padding + valuePrefix + value + valueSuffix; break;\n }\n\n return numerals(value);\n }\n\n format.toString = function() {\n return specifier + \"\";\n };\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = \"f\", specifier)),\n e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,\n k = Math.pow(10, -e),\n prefix = prefixes[8 + e / 3];\n return function(value) {\n return f(k * value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "index": 225, - "index2": 232, - "size": 378, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "12:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "28:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "114:53-59" - } - ], - "usedExports": [ - "formatPrefix", - "format", - "default" - ], - "providedExports": [ - "format", - "formatPrefix", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var format;\nexport var formatPrefix;\n\ndefaultLocale({\n decimal: \".\",\n thousands: \",\",\n grouping: [3],\n currency: [\"$\", \"\"],\n minus: \"-\"\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n format = locale.format;\n formatPrefix = locale.formatPrefix;\n return locale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "name": "./node_modules/d3-format/src/precisionFixed.js", - "index": 237, - "index2": 233, - "size": 122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionFixed.js", - "loc": "4:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionFixed.js", - "loc": "4:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "24:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "name": "./node_modules/d3-format/src/precisionPrefix.js", - "index": 238, - "index2": 234, - "size": 193, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionPrefix.js", - "loc": "5:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionPrefix.js", - "loc": "5:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "11:60-75" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step, value) {\n return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "name": "./node_modules/d3-format/src/precisionRound.js", - "index": 239, - "index2": 235, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./precisionRound.js", - "loc": "6:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "module": "./node_modules/d3-format/src/index.js", - "moduleName": "./node_modules/d3-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./precisionRound.js", - "loc": "6:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "module": "./node_modules/d3-scale/src/tickFormat.js", - "moduleName": "./node_modules/d3-scale/src/tickFormat.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-format", - "loc": "19:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import exponent from \"./exponent.js\";\n\nexport default function(step, max) {\n step = Math.abs(step), max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/stream.js", - "name": "./node_modules/d3-geo/src/stream.js", - "index": 245, - "index2": 240, - "size": 2303, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony side effect evaluation", - "userRequest": "../stream.js", - "loc": "1:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../stream.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "8:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "18:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "24:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "29:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stream.js", - "loc": "33:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stream.js", - "loc": "33:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "34:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../stream.js", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "51:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "122:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./stream.js", - "loc": "149:2-8" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function streamGeometry(geometry, stream) {\n if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {\n streamGeometryType[geometry.type](geometry, stream);\n }\n}\n\nvar streamObjectType = {\n Feature: function(object, stream) {\n streamGeometry(object.geometry, stream);\n },\n FeatureCollection: function(object, stream) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) streamGeometry(features[i].geometry, stream);\n }\n};\n\nvar streamGeometryType = {\n Sphere: function(object, stream) {\n stream.sphere();\n },\n Point: function(object, stream) {\n object = object.coordinates;\n stream.point(object[0], object[1], object[2]);\n },\n MultiPoint: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]);\n },\n LineString: function(object, stream) {\n streamLine(object.coordinates, stream, 0);\n },\n MultiLineString: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamLine(coordinates[i], stream, 0);\n },\n Polygon: function(object, stream) {\n streamPolygon(object.coordinates, stream);\n },\n MultiPolygon: function(object, stream) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) streamPolygon(coordinates[i], stream);\n },\n GeometryCollection: function(object, stream) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) streamGeometry(geometries[i], stream);\n }\n};\n\nfunction streamLine(coordinates, stream, closed) {\n var i = -1, n = coordinates.length - closed, coordinate;\n stream.lineStart();\n while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);\n stream.lineEnd();\n}\n\nfunction streamPolygon(coordinates, stream) {\n var i = -1, n = coordinates.length;\n stream.polygonStart();\n while (++i < n) streamLine(coordinates[i], stream, 1);\n stream.polygonEnd();\n}\n\nexport default function(object, stream) {\n if (object && streamObjectType.hasOwnProperty(object.type)) {\n streamObjectType[object.type](object, stream);\n } else {\n streamGeometry(object, stream);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "index": 241, - "index2": 241, - "size": 1970, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "24:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "27:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "31:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "113:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "118:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "123:2-12" - } - ], - "usedExports": [ - "default", - "areaStream", - "areaRingSum" - ], - "providedExports": [ - "areaRingSum", - "areaStream", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {atan2, cos, quarterPi, radians, sin, tau} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nexport var areaRingSum = adder();\n\nvar areaSum = adder(),\n lambda00,\n phi00,\n lambda0,\n cosPhi0,\n sinPhi0;\n\nexport var areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaRingSum.reset();\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n var areaRing = +areaRingSum;\n areaSum.add(areaRing < 0 ? tau + areaRing : areaRing);\n this.lineStart = this.lineEnd = this.point = noop;\n },\n sphere: function() {\n areaSum.add(tau);\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaRingEnd() {\n areaPoint(lambda00, phi00);\n}\n\nfunction areaPointFirst(lambda, phi) {\n areaStream.point = areaPoint;\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n lambda0 = lambda, cosPhi0 = cos(phi = phi / 2 + quarterPi), sinPhi0 = sin(phi);\n}\n\nfunction areaPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n phi = phi / 2 + quarterPi; // half the angular distance from south pole\n\n // Spherical excess E for a spherical triangle with vertices: south pole,\n // previous point, current point. Uses a formula derived from Cagnoli’s\n // theorem. See Todhunter, Spherical Trig. (1871), Sec. 103, Eq. (2).\n var dLambda = lambda - lambda0,\n sdLambda = dLambda >= 0 ? 1 : -1,\n adLambda = sdLambda * dLambda,\n cosPhi = cos(phi),\n sinPhi = sin(phi),\n k = sinPhi0 * sinPhi,\n u = cosPhi0 * cosPhi + k * cos(adLambda),\n v = k * sdLambda * sin(adLambda);\n areaRingSum.add(atan2(v, u));\n\n // Advance the previous points.\n lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi;\n}\n\nexport default function(object) {\n areaSum.reset();\n stream(object, areaStream);\n return areaSum * 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "name": "./node_modules/d3-geo/src/bounds.js", - "index": 246, - "index2": 243, - "size": 5550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounds.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bounds.js", - "loc": "2:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {areaStream, areaRingSum} from \"./area.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport {abs, degrees, epsilon, radians} from \"./math.js\";\nimport stream from \"./stream.js\";\n\nvar lambda0, phi0, lambda1, phi1, // bounds\n lambda2, // previous lambda-coordinate\n lambda00, phi00, // first point\n p0, // previous 3D point\n deltaSum = adder(),\n ranges,\n range;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: boundsLineStart,\n lineEnd: boundsLineEnd,\n polygonStart: function() {\n boundsStream.point = boundsRingPoint;\n boundsStream.lineStart = boundsRingStart;\n boundsStream.lineEnd = boundsRingEnd;\n deltaSum.reset();\n areaStream.polygonStart();\n },\n polygonEnd: function() {\n areaStream.polygonEnd();\n boundsStream.point = boundsPoint;\n boundsStream.lineStart = boundsLineStart;\n boundsStream.lineEnd = boundsLineEnd;\n if (areaRingSum < 0) lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n else if (deltaSum > epsilon) phi1 = 90;\n else if (deltaSum < -epsilon) phi0 = -90;\n range[0] = lambda0, range[1] = lambda1;\n },\n sphere: function() {\n lambda0 = -(lambda1 = 180), phi0 = -(phi1 = 90);\n }\n};\n\nfunction boundsPoint(lambda, phi) {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n}\n\nfunction linePoint(lambda, phi) {\n var p = cartesian([lambda * radians, phi * radians]);\n if (p0) {\n var normal = cartesianCross(p0, p),\n equatorial = [normal[1], -normal[0], 0],\n inflection = cartesianCross(equatorial, normal);\n cartesianNormalizeInPlace(inflection);\n inflection = spherical(inflection);\n var delta = lambda - lambda2,\n sign = delta > 0 ? 1 : -1,\n lambdai = inflection[0] * degrees * sign,\n phii,\n antimeridian = abs(delta) > 180;\n if (antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = inflection[1] * degrees;\n if (phii > phi1) phi1 = phii;\n } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign * lambda2 < lambdai && lambdai < sign * lambda)) {\n phii = -inflection[1] * degrees;\n if (phii < phi0) phi0 = phii;\n } else {\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n }\n if (antimeridian) {\n if (lambda < lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n } else {\n if (lambda1 >= lambda0) {\n if (lambda < lambda0) lambda0 = lambda;\n if (lambda > lambda1) lambda1 = lambda;\n } else {\n if (lambda > lambda2) {\n if (angle(lambda0, lambda) > angle(lambda0, lambda1)) lambda1 = lambda;\n } else {\n if (angle(lambda, lambda1) > angle(lambda0, lambda1)) lambda0 = lambda;\n }\n }\n }\n } else {\n ranges.push(range = [lambda0 = lambda, lambda1 = lambda]);\n }\n if (phi < phi0) phi0 = phi;\n if (phi > phi1) phi1 = phi;\n p0 = p, lambda2 = lambda;\n}\n\nfunction boundsLineStart() {\n boundsStream.point = linePoint;\n}\n\nfunction boundsLineEnd() {\n range[0] = lambda0, range[1] = lambda1;\n boundsStream.point = boundsPoint;\n p0 = null;\n}\n\nfunction boundsRingPoint(lambda, phi) {\n if (p0) {\n var delta = lambda - lambda2;\n deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta);\n } else {\n lambda00 = lambda, phi00 = phi;\n }\n areaStream.point(lambda, phi);\n linePoint(lambda, phi);\n}\n\nfunction boundsRingStart() {\n areaStream.lineStart();\n}\n\nfunction boundsRingEnd() {\n boundsRingPoint(lambda00, phi00);\n areaStream.lineEnd();\n if (abs(deltaSum) > epsilon) lambda0 = -(lambda1 = 180);\n range[0] = lambda0, range[1] = lambda1;\n p0 = null;\n}\n\n// Finds the left-right distance between two longitudes.\n// This is almost the same as (lambda1 - lambda0 + 360°) % 360°, except that we want\n// the distance between ±180° to be 360°.\nfunction angle(lambda0, lambda1) {\n return (lambda1 -= lambda0) < 0 ? lambda1 + 360 : lambda1;\n}\n\nfunction rangeCompare(a, b) {\n return a[0] - b[0];\n}\n\nfunction rangeContains(range, x) {\n return range[0] <= range[1] ? range[0] <= x && x <= range[1] : x < range[0] || range[1] < x;\n}\n\nexport default function(feature) {\n var i, n, a, b, merged, deltaMax, delta;\n\n phi1 = lambda1 = -(lambda0 = phi0 = Infinity);\n ranges = [];\n stream(feature, boundsStream);\n\n // First, sort ranges by their minimum longitudes.\n if (n = ranges.length) {\n ranges.sort(rangeCompare);\n\n // Then, merge any ranges that overlap.\n for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) {\n b = ranges[i];\n if (rangeContains(a, b[0]) || rangeContains(a, b[1])) {\n if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1];\n if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0];\n } else {\n merged.push(a = b);\n }\n }\n\n // Finally, find the largest gap between the merged ranges.\n // The final bounding box will be the inverse of this gap.\n for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) {\n b = merged[i];\n if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda0 = b[0], lambda1 = a[1];\n }\n }\n\n ranges = range = null;\n\n return lambda0 === Infinity || phi0 === Infinity\n ? [[NaN, NaN], [NaN, NaN]]\n : [[lambda0, phi0], [lambda1, phi1]];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "name": "./node_modules/d3-geo/src/centroid.js", - "index": 248, - "index2": 244, - "size": 3792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "3:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./centroid.js", - "loc": "3:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, atan2, cos, degrees, epsilon, epsilon2, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar W0, W1,\n X0, Y0, Z0,\n X1, Y1, Z1,\n X2, Y2, Z2,\n lambda00, phi00, // first point\n x0, y0, z0; // previous point\n\nvar centroidStream = {\n sphere: noop,\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n }\n};\n\n// Arithmetic mean of Cartesian vectors.\nfunction centroidPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n centroidPointCartesian(cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi));\n}\n\nfunction centroidPointCartesian(x, y, z) {\n ++W0;\n X0 += (x - X0) / W0;\n Y0 += (y - Y0) / W0;\n Z0 += (z - Z0) / W0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidLinePointFirst;\n}\n\nfunction centroidLinePointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidStream.point = centroidLinePoint;\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLinePoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z);\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\n// See J. E. Brock, The Inertia Tensor for a Spherical Triangle,\n// J. Applied Mechanics 42, 239 (1975).\nfunction centroidRingStart() {\n centroidStream.point = centroidRingPointFirst;\n}\n\nfunction centroidRingEnd() {\n centroidRingPoint(lambda00, phi00);\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingPointFirst(lambda, phi) {\n lambda00 = lambda, phi00 = phi;\n lambda *= radians, phi *= radians;\n centroidStream.point = centroidRingPoint;\n var cosPhi = cos(phi);\n x0 = cosPhi * cos(lambda);\n y0 = cosPhi * sin(lambda);\n z0 = sin(phi);\n centroidPointCartesian(x0, y0, z0);\n}\n\nfunction centroidRingPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var cosPhi = cos(phi),\n x = cosPhi * cos(lambda),\n y = cosPhi * sin(lambda),\n z = sin(phi),\n cx = y0 * z - z0 * y,\n cy = z0 * x - x0 * z,\n cz = x0 * y - y0 * x,\n m = sqrt(cx * cx + cy * cy + cz * cz),\n w = asin(m), // line weight = angle\n v = m && -w / m; // area weight multiplier\n X2 += v * cx;\n Y2 += v * cy;\n Z2 += v * cz;\n W1 += w;\n X1 += w * (x0 + (x0 = x));\n Y1 += w * (y0 + (y0 = y));\n Z1 += w * (z0 + (z0 = z));\n centroidPointCartesian(x0, y0, z0);\n}\n\nexport default function(object) {\n W0 = W1 =\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n stream(object, centroidStream);\n\n var x = X2,\n y = Y2,\n z = Z2,\n m = x * x + y * y + z * z;\n\n // If the area-weighted ccentroid is undefined, fall back to length-weighted ccentroid.\n if (m < epsilon2) {\n x = X1, y = Y1, z = Z1;\n // If the feature has zero length, fall back to arithmetic mean of point vectors.\n if (W1 < epsilon) x = X0, y = Y0, z = Z0;\n m = x * x + y * y + z * z;\n // If the feature still has an undefined ccentroid, then return.\n if (m < epsilon2) return [NaN, NaN];\n }\n\n return [atan2(y, x) * degrees, asin(z / sqrt(m)) * degrees];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "name": "./node_modules/d3-geo/src/rotation.js", - "index": 251, - "index2": 247, - "size": 2523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../rotation.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./rotation.js", - "loc": "4:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../rotation.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rotation.js", - "loc": "32:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./rotation.js", - "loc": "32:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../rotation.js", - "loc": "44:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./rotation.js", - "loc": "52:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../rotation.js", - "loc": "147:13-26" - } - ], - "usedExports": [ - "default", - "rotateRadians" - ], - "providedExports": [ - "rotateRadians", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import compose from \"./compose.js\";\nimport {abs, asin, atan2, cos, degrees, pi, radians, sin, tau} from \"./math.js\";\n\nfunction rotationIdentity(lambda, phi) {\n return [abs(lambda) > pi ? lambda + Math.round(-lambda / tau) * tau : lambda, phi];\n}\n\nrotationIdentity.invert = rotationIdentity;\n\nexport function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {\n return (deltaLambda %= tau) ? (deltaPhi || deltaGamma ? compose(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma))\n : rotationLambda(deltaLambda))\n : (deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma)\n : rotationIdentity);\n}\n\nfunction forwardRotationLambda(deltaLambda) {\n return function(lambda, phi) {\n return lambda += deltaLambda, [lambda > pi ? lambda - tau : lambda < -pi ? lambda + tau : lambda, phi];\n };\n}\n\nfunction rotationLambda(deltaLambda) {\n var rotation = forwardRotationLambda(deltaLambda);\n rotation.invert = forwardRotationLambda(-deltaLambda);\n return rotation;\n}\n\nfunction rotationPhiGamma(deltaPhi, deltaGamma) {\n var cosDeltaPhi = cos(deltaPhi),\n sinDeltaPhi = sin(deltaPhi),\n cosDeltaGamma = cos(deltaGamma),\n sinDeltaGamma = sin(deltaGamma);\n\n function rotation(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaPhi + x * sinDeltaPhi;\n return [\n atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi),\n asin(k * cosDeltaGamma + y * sinDeltaGamma)\n ];\n }\n\n rotation.invert = function(lambda, phi) {\n var cosPhi = cos(phi),\n x = cos(lambda) * cosPhi,\n y = sin(lambda) * cosPhi,\n z = sin(phi),\n k = z * cosDeltaGamma - y * sinDeltaGamma;\n return [\n atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi),\n asin(k * cosDeltaPhi - x * sinDeltaPhi)\n ];\n };\n\n return rotation;\n}\n\nexport default function(rotate) {\n rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0);\n\n function forward(coordinates) {\n coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n }\n\n forward.invert = function(coordinates) {\n coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians);\n return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates;\n };\n\n return forward;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "name": "./node_modules/d3-geo/src/circle.js", - "index": 249, - "index2": 248, - "size": 2385, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../circle.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./circle.js", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./circle.js", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../circle.js", - "loc": "14:4-16" - } - ], - "usedExports": [ - "default", - "circleStream" - ], - "providedExports": [ - "circleStream", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cartesian, cartesianNormalizeInPlace, spherical} from \"./cartesian.js\";\nimport constant from \"./constant.js\";\nimport {acos, cos, degrees, epsilon, radians, sin, tau} from \"./math.js\";\nimport {rotateRadians} from \"./rotation.js\";\n\n// Generates a circle centered at [0°, 0°], with a given radius and precision.\nexport function circleStream(stream, radius, delta, direction, t0, t1) {\n if (!delta) return;\n var cosRadius = cos(radius),\n sinRadius = sin(radius),\n step = direction * delta;\n if (t0 == null) {\n t0 = radius + direction * tau;\n t1 = radius - step / 2;\n } else {\n t0 = circleRadius(cosRadius, t0);\n t1 = circleRadius(cosRadius, t1);\n if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;\n }\n for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {\n point = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);\n stream.point(point[0], point[1]);\n }\n}\n\n// Returns the signed angle of a cartesian point relative to [cosRadius, 0, 0].\nfunction circleRadius(cosRadius, point) {\n point = cartesian(point), point[0] -= cosRadius;\n cartesianNormalizeInPlace(point);\n var radius = acos(-point[1]);\n return ((-point[2] < 0 ? -radius : radius) + tau - epsilon) % tau;\n}\n\nexport default function() {\n var center = constant([0, 0]),\n radius = constant(90),\n precision = constant(6),\n ring,\n rotate,\n stream = {point: point};\n\n function point(x, y) {\n ring.push(x = rotate(x, y));\n x[0] *= degrees, x[1] *= degrees;\n }\n\n function circle() {\n var c = center.apply(this, arguments),\n r = radius.apply(this, arguments) * radians,\n p = precision.apply(this, arguments) * radians;\n ring = [];\n rotate = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;\n circleStream(stream, r, p, 1);\n c = {type: \"Polygon\", coordinates: [ring]};\n ring = rotate = null;\n return c;\n }\n\n circle.center = function(_) {\n return arguments.length ? (center = typeof _ === \"function\" ? _ : constant([+_[0], +_[1]]), circle) : center;\n };\n\n circle.radius = function(_) {\n return arguments.length ? (radius = typeof _ === \"function\" ? _ : constant(+_), circle) : radius;\n };\n\n circle.precision = function(_) {\n return arguments.length ? (precision = typeof _ === \"function\" ? _ : constant(+_), circle) : precision;\n };\n\n return circle;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "name": "./node_modules/d3-geo/src/clip/antimeridian.js", - "index": 253, - "index2": 254, - "size": 2903, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/antimeridian.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/antimeridian.js", - "loc": "5:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/antimeridian.js", - "loc": "5:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/antimeridian.js", - "loc": "66:30-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/antimeridian.js", - "loc": "97:95-111" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clip from \"./index.js\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math.js\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "index": 259, - "index2": 255, - "size": 6011, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/circle.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/circle.js", - "loc": "6:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/circle.js", - "loc": "6:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/circle.js", - "loc": "97:46-56" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian.js\";\nimport {circleStream} from \"../circle.js\";\nimport {abs, cos, epsilon, pi, radians, sqrt} from \"../math.js\";\nimport pointEqual from \"../pointEqual.js\";\nimport clip from \"./index.js\";\n\nexport default function(radius) {\n var cr = cos(radius),\n delta = 6 * radians,\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "index": 261, - "index2": 257, - "size": 5054, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/rectangle.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "module": "./node_modules/d3-geo/src/clip/extent.js", - "moduleName": "./node_modules/d3-geo/src/clip/extent.js", - "type": "harmony side effect evaluation", - "userRequest": "./rectangle.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../clip/rectangle.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/rectangle.js", - "loc": "8:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/rectangle.js", - "loc": "8:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "module": "./node_modules/d3-geo/src/clip/extent.js", - "moduleName": "./node_modules/d3-geo/src/clip/extent.js", - "type": "harmony import specifier", - "userRequest": "./rectangle.js", - "loc": "14:63-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../clip/rectangle.js", - "loc": "35:95-108" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../clip/rectangle.js", - "loc": "101:93-106" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, epsilon} from \"../math.js\";\nimport clipBuffer from \"./buffer.js\";\nimport clipLine from \"./line.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {merge} from \"d3-array\";\n\nvar clipMax = 1e9, clipMin = -clipMax;\n\n// TODO Use d3-polygon’s polygonContains here for the ring check?\n// TODO Eliminate duplicate buffering in clipBuffer and polygon.push?\n\nexport default function clipRectangle(x0, y0, x1, y1) {\n\n function visible(x, y) {\n return x0 <= x && x <= x1 && y0 <= y && y <= y1;\n }\n\n function interpolate(from, to, direction, stream) {\n var a = 0, a1 = 0;\n if (from == null\n || (a = corner(from, direction)) !== (a1 = corner(to, direction))\n || comparePoint(from, to) < 0 ^ direction > 0) {\n do stream.point(a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0);\n while ((a = (a + direction + 4) % 4) !== a1);\n } else {\n stream.point(to[0], to[1]);\n }\n }\n\n function corner(p, direction) {\n return abs(p[0] - x0) < epsilon ? direction > 0 ? 0 : 3\n : abs(p[0] - x1) < epsilon ? direction > 0 ? 2 : 1\n : abs(p[1] - y0) < epsilon ? direction > 0 ? 1 : 0\n : direction > 0 ? 3 : 2; // abs(p[1] - y1) < epsilon\n }\n\n function compareIntersection(a, b) {\n return comparePoint(a.x, b.x);\n }\n\n function comparePoint(a, b) {\n var ca = corner(a, 1),\n cb = corner(b, 1);\n return ca !== cb ? ca - cb\n : ca === 0 ? b[1] - a[1]\n : ca === 1 ? a[0] - b[0]\n : ca === 2 ? a[1] - b[1]\n : b[0] - a[0];\n }\n\n return function(stream) {\n var activeStream = stream,\n bufferStream = clipBuffer(),\n segments,\n polygon,\n ring,\n x__, y__, v__, // first point\n x_, y_, v_, // previous point\n first,\n clean;\n\n var clipStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: polygonStart,\n polygonEnd: polygonEnd\n };\n\n function point(x, y) {\n if (visible(x, y)) activeStream.point(x, y);\n }\n\n function polygonInside() {\n var winding = 0;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n for (var ring = polygon[i], j = 1, m = ring.length, point = ring[0], a0, a1, b0 = point[0], b1 = point[1]; j < m; ++j) {\n a0 = b0, a1 = b1, point = ring[j], b0 = point[0], b1 = point[1];\n if (a1 <= y1) { if (b1 > y1 && (b0 - a0) * (y1 - a1) > (b1 - a1) * (x0 - a0)) ++winding; }\n else { if (b1 <= y1 && (b0 - a0) * (y1 - a1) < (b1 - a1) * (x0 - a0)) --winding; }\n }\n }\n\n return winding;\n }\n\n // Buffer geometry within a polygon and then clip it en masse.\n function polygonStart() {\n activeStream = bufferStream, segments = [], polygon = [], clean = true;\n }\n\n function polygonEnd() {\n var startInside = polygonInside(),\n cleanInside = clean && startInside,\n visible = (segments = merge(segments)).length;\n if (cleanInside || visible) {\n stream.polygonStart();\n if (cleanInside) {\n stream.lineStart();\n interpolate(null, null, 1, stream);\n stream.lineEnd();\n }\n if (visible) {\n clipRejoin(segments, compareIntersection, startInside, interpolate, stream);\n }\n stream.polygonEnd();\n }\n activeStream = stream, segments = polygon = ring = null;\n }\n\n function lineStart() {\n clipStream.point = linePoint;\n if (polygon) polygon.push(ring = []);\n first = true;\n v_ = false;\n x_ = y_ = NaN;\n }\n\n // TODO rather than special-case polygons, simply handle them separately.\n // Ideally, coincident intersection points should be jittered to avoid\n // clipping issues.\n function lineEnd() {\n if (segments) {\n linePoint(x__, y__);\n if (v__ && v_) bufferStream.rejoin();\n segments.push(bufferStream.result());\n }\n clipStream.point = point;\n if (v_) activeStream.lineEnd();\n }\n\n function linePoint(x, y) {\n var v = visible(x, y);\n if (polygon) ring.push([x, y]);\n if (first) {\n x__ = x, y__ = y, v__ = v;\n first = false;\n if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n }\n } else {\n if (v && v_) activeStream.point(x, y);\n else {\n var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))],\n b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))];\n if (clipLine(a, b, x0, y0, x1, y1)) {\n if (!v_) {\n activeStream.lineStart();\n activeStream.point(a[0], a[1]);\n }\n activeStream.point(b[0], b[1]);\n if (!v) activeStream.lineEnd();\n clean = false;\n } else if (v) {\n activeStream.lineStart();\n activeStream.point(x, y);\n clean = false;\n }\n }\n }\n x_ = x, y_ = y, v_ = v;\n }\n\n return clipStream;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/extent.js", - "name": "./node_modules/d3-geo/src/clip/extent.js", - "index": 260, - "index2": 258, - "size": 540, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clip/extent.js", - "loc": "7:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./clip/extent.js", - "loc": "7:0-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipRectangle from \"./rectangle.js\";\n\nexport default function() {\n var x0 = 0,\n y0 = 0,\n x1 = 960,\n y1 = 500,\n cache,\n cacheStream,\n clip;\n\n return clip = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = clipRectangle(x0, y0, x1, y1)(cacheStream = stream);\n },\n extent: function(_) {\n return arguments.length ? (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1], cache = cacheStream = null, clip) : [[x0, y0], [x1, y1]];\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "name": "./node_modules/d3-geo/src/length.js", - "index": 265, - "index2": 259, - "size": 1321, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "module": "./node_modules/d3-geo/src/distance.js", - "moduleName": "./node_modules/d3-geo/src/distance.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "module": "./node_modules/d3-geo/src/distance.js", - "moduleName": "./node_modules/d3-geo/src/distance.js", - "type": "harmony import specifier", - "userRequest": "./length.js", - "loc": "9:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "13:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./length.js", - "loc": "13:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import adder from \"./adder.js\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math.js\";\nimport noop from \"./noop.js\";\nimport stream from \"./stream.js\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/distance.js", - "name": "./node_modules/d3-geo/src/distance.js", - "index": 264, - "index2": 260, - "size": 232, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./distance.js", - "loc": "2:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./distance.js", - "loc": "10:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./distance.js", - "loc": "10:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "58:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "64:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./distance.js", - "loc": "67:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import length from \"./length.js\";\n\nvar coordinates = [null, null],\n object = {type: \"LineString\", coordinates: coordinates};\n\nexport default function(a, b) {\n coordinates[0] = a;\n coordinates[1] = b;\n return length(object);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "name": "./node_modules/d3-geo/src/contains.js", - "index": 263, - "index2": 261, - "size": 2998, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains.js", - "loc": "9:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contains.js", - "loc": "9:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {default as polygonContains} from \"./polygonContains.js\";\nimport {default as distance} from \"./distance.js\";\nimport {epsilon2, radians} from \"./math.js\";\n\nvar containsObjectType = {\n Feature: function(object, point) {\n return containsGeometry(object.geometry, point);\n },\n FeatureCollection: function(object, point) {\n var features = object.features, i = -1, n = features.length;\n while (++i < n) if (containsGeometry(features[i].geometry, point)) return true;\n return false;\n }\n};\n\nvar containsGeometryType = {\n Sphere: function() {\n return true;\n },\n Point: function(object, point) {\n return containsPoint(object.coordinates, point);\n },\n MultiPoint: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPoint(coordinates[i], point)) return true;\n return false;\n },\n LineString: function(object, point) {\n return containsLine(object.coordinates, point);\n },\n MultiLineString: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsLine(coordinates[i], point)) return true;\n return false;\n },\n Polygon: function(object, point) {\n return containsPolygon(object.coordinates, point);\n },\n MultiPolygon: function(object, point) {\n var coordinates = object.coordinates, i = -1, n = coordinates.length;\n while (++i < n) if (containsPolygon(coordinates[i], point)) return true;\n return false;\n },\n GeometryCollection: function(object, point) {\n var geometries = object.geometries, i = -1, n = geometries.length;\n while (++i < n) if (containsGeometry(geometries[i], point)) return true;\n return false;\n }\n};\n\nfunction containsGeometry(geometry, point) {\n return geometry && containsGeometryType.hasOwnProperty(geometry.type)\n ? containsGeometryType[geometry.type](geometry, point)\n : false;\n}\n\nfunction containsPoint(coordinates, point) {\n return distance(coordinates, point) === 0;\n}\n\nfunction containsLine(coordinates, point) {\n var ao, bo, ab;\n for (var i = 0, n = coordinates.length; i < n; i++) {\n bo = distance(coordinates[i], point);\n if (bo === 0) return true;\n if (i > 0) {\n ab = distance(coordinates[i], coordinates[i - 1]);\n if (\n ab > 0 &&\n ao <= ab &&\n bo <= ab &&\n (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab\n )\n return true;\n }\n ao = bo;\n }\n return false;\n}\n\nfunction containsPolygon(coordinates, point) {\n return !!polygonContains(coordinates.map(ringRadians), pointRadians(point));\n}\n\nfunction ringRadians(ring) {\n return ring = ring.map(pointRadians), ring.pop(), ring;\n}\n\nfunction pointRadians(point) {\n return [point[0] * radians, point[1] * radians];\n}\n\nexport default function(object, point) {\n return (object && containsObjectType.hasOwnProperty(object.type)\n ? containsObjectType[object.type]\n : containsGeometry)(object, point);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "name": "./node_modules/d3-geo/src/graticule.js", - "index": 266, - "index2": 262, - "size": 3037, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./graticule.js", - "loc": "11:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./graticule.js", - "loc": "11:0-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./graticule.js", - "loc": "11:0-86" - } - ], - "usedExports": [ - "default", - "graticule10" - ], - "providedExports": [ - "default", - "graticule10" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range} from \"d3-array\";\nimport {abs, ceil, epsilon} from \"./math.js\";\n\nfunction graticuleX(y0, y1, dy) {\n var y = range(y0, y1 - epsilon, dy).concat(y1);\n return function(x) { return y.map(function(y) { return [x, y]; }); };\n}\n\nfunction graticuleY(x0, x1, dx) {\n var x = range(x0, x1 - epsilon, dx).concat(x1);\n return function(y) { return x.map(function(x) { return [x, y]; }); };\n}\n\nexport default function graticule() {\n var x1, x0, X1, X0,\n y1, y0, Y1, Y0,\n dx = 10, dy = dx, DX = 90, DY = 360,\n x, y, X, Y,\n precision = 2.5;\n\n function graticule() {\n return {type: \"MultiLineString\", coordinates: lines()};\n }\n\n function lines() {\n return range(ceil(X0 / DX) * DX, X1, DX).map(X)\n .concat(range(ceil(Y0 / DY) * DY, Y1, DY).map(Y))\n .concat(range(ceil(x0 / dx) * dx, x1, dx).filter(function(x) { return abs(x % DX) > epsilon; }).map(x))\n .concat(range(ceil(y0 / dy) * dy, y1, dy).filter(function(y) { return abs(y % DY) > epsilon; }).map(y));\n }\n\n graticule.lines = function() {\n return lines().map(function(coordinates) { return {type: \"LineString\", coordinates: coordinates}; });\n };\n\n graticule.outline = function() {\n return {\n type: \"Polygon\",\n coordinates: [\n X(X0).concat(\n Y(Y1).slice(1),\n X(X1).reverse().slice(1),\n Y(Y0).reverse().slice(1))\n ]\n };\n };\n\n graticule.extent = function(_) {\n if (!arguments.length) return graticule.extentMinor();\n return graticule.extentMajor(_).extentMinor(_);\n };\n\n graticule.extentMajor = function(_) {\n if (!arguments.length) return [[X0, Y0], [X1, Y1]];\n X0 = +_[0][0], X1 = +_[1][0];\n Y0 = +_[0][1], Y1 = +_[1][1];\n if (X0 > X1) _ = X0, X0 = X1, X1 = _;\n if (Y0 > Y1) _ = Y0, Y0 = Y1, Y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.extentMinor = function(_) {\n if (!arguments.length) return [[x0, y0], [x1, y1]];\n x0 = +_[0][0], x1 = +_[1][0];\n y0 = +_[0][1], y1 = +_[1][1];\n if (x0 > x1) _ = x0, x0 = x1, x1 = _;\n if (y0 > y1) _ = y0, y0 = y1, y1 = _;\n return graticule.precision(precision);\n };\n\n graticule.step = function(_) {\n if (!arguments.length) return graticule.stepMinor();\n return graticule.stepMajor(_).stepMinor(_);\n };\n\n graticule.stepMajor = function(_) {\n if (!arguments.length) return [DX, DY];\n DX = +_[0], DY = +_[1];\n return graticule;\n };\n\n graticule.stepMinor = function(_) {\n if (!arguments.length) return [dx, dy];\n dx = +_[0], dy = +_[1];\n return graticule;\n };\n\n graticule.precision = function(_) {\n if (!arguments.length) return precision;\n precision = +_;\n x = graticuleX(y0, y1, 90);\n y = graticuleY(x0, x1, precision);\n X = graticuleX(Y0, Y1, 90);\n Y = graticuleY(X0, X1, precision);\n return graticule;\n };\n\n return graticule\n .extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]])\n .extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);\n}\n\nexport function graticule10() {\n return graticule()();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "name": "./node_modules/d3-geo/src/interpolate.js", - "index": 267, - "index2": 263, - "size": 914, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interpolate.js", - "loc": "12:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, atan2, cos, degrees, haversin, radians, sin, sqrt} from \"./math.js\";\n\nexport default function(a, b) {\n var x0 = a[0] * radians,\n y0 = a[1] * radians,\n x1 = b[0] * radians,\n y1 = b[1] * radians,\n cy0 = cos(y0),\n sy0 = sin(y0),\n cy1 = cos(y1),\n sy1 = sin(y1),\n kx0 = cy0 * cos(x0),\n ky0 = cy0 * sin(x0),\n kx1 = cy1 * cos(x1),\n ky1 = cy1 * sin(x1),\n d = 2 * asin(sqrt(haversin(y1 - y0) + cy0 * cy1 * haversin(x1 - x0))),\n k = sin(d);\n\n var interpolate = d ? function(t) {\n var B = sin(t *= d) / k,\n A = sin(d - t) / k,\n x = A * kx0 + B * kx1,\n y = A * ky0 + B * ky1,\n z = A * sy0 + B * sy1;\n return [\n atan2(y, x) * degrees,\n atan2(z, sqrt(x * x + y * y)) * degrees\n ];\n } : function() {\n return [x0 * degrees, y0 * degrees];\n };\n\n interpolate.distance = d;\n\n return interpolate;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "index": 268, - "index2": 271, - "size": 1877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path/index.js", - "loc": "14:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./path/index.js", - "loc": "14:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import identity from \"../identity.js\";\nimport stream from \"../stream.js\";\nimport pathArea from \"./area.js\";\nimport pathBounds from \"./bounds.js\";\nimport pathCentroid from \"./centroid.js\";\nimport PathContext from \"./context.js\";\nimport pathMeasure from \"./measure.js\";\nimport PathString from \"./string.js\";\n\nexport default function(projection, context) {\n var pointRadius = 4.5,\n projectionStream,\n contextStream;\n\n function path(object) {\n if (object) {\n if (typeof pointRadius === \"function\") contextStream.pointRadius(+pointRadius.apply(this, arguments));\n stream(object, projectionStream(contextStream));\n }\n return contextStream.result();\n }\n\n path.area = function(object) {\n stream(object, projectionStream(pathArea));\n return pathArea.result();\n };\n\n path.measure = function(object) {\n stream(object, projectionStream(pathMeasure));\n return pathMeasure.result();\n };\n\n path.bounds = function(object) {\n stream(object, projectionStream(pathBounds));\n return pathBounds.result();\n };\n\n path.centroid = function(object) {\n stream(object, projectionStream(pathCentroid));\n return pathCentroid.result();\n };\n\n path.projection = function(_) {\n return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;\n };\n\n path.context = function(_) {\n if (!arguments.length) return context;\n contextStream = _ == null ? (context = null, new PathString) : new PathContext(context = _);\n if (typeof pointRadius !== \"function\") contextStream.pointRadius(pointRadius);\n return path;\n };\n\n path.pointRadius = function(_) {\n if (!arguments.length) return pointRadius;\n pointRadius = typeof _ === \"function\" ? _ : (contextStream.pointRadius(+_), +_);\n return path;\n };\n\n return path.projection(projection).context(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/transform.js", - "name": "./node_modules/d3-geo/src/transform.js", - "index": 281, - "index2": 273, - "size": 701, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "7:67-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../transform.js", - "loc": "8:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "12:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "13:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../transform.js", - "loc": "19:9-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "34:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "34:0-55" - } - ], - "usedExports": [ - "default", - "transformer" - ], - "providedExports": [ - "default", - "transformer" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "name": "./node_modules/d3-geo/src/projection/index.js", - "index": 280, - "index2": 276, - "size": 5455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "module": "./node_modules/d3-geo/src/projection/equirectangular.js", - "moduleName": "./node_modules/d3-geo/src/projection/equirectangular.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "7:10-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "module": "./node_modules/d3-geo/src/projection/equirectangular.js", - "moduleName": "./node_modules/d3-geo/src/projection/equirectangular.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "10:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "12:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "13:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "14:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "14:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "15:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "19:10-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/index.js", - "loc": "26:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "26:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "34:9-19" - } - ], - "usedExports": [ - "default", - "projectionMutator" - ], - "providedExports": [ - "default", - "projectionMutator" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipAntimeridian from \"../clip/antimeridian.js\";\nimport clipCircle from \"../clip/circle.js\";\nimport clipRectangle from \"../clip/rectangle.js\";\nimport compose from \"../compose.js\";\nimport identity from \"../identity.js\";\nimport {cos, degrees, radians, sin, sqrt} from \"../math.js\";\nimport {rotateRadians} from \"../rotation.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\nimport resample from \"./resample.js\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nfunction transformRotate(rotate) {\n return transformer({\n point: function(x, y) {\n var r = rotate(x, y);\n return this.stream.point(r[0], r[1]);\n }\n });\n}\n\nfunction scaleTranslate(k, dx, dy) {\n function transform(x, y) {\n return [dx + k * x, dy - k * y];\n }\n transform.invert = function(x, y) {\n return [(x - dx) / k, (dy - y) / k];\n };\n return transform;\n}\n\nfunction scaleTranslateRotate(k, dx, dy, alpha) {\n var cosAlpha = cos(alpha),\n sinAlpha = sin(alpha),\n a = cosAlpha * k,\n b = sinAlpha * k,\n ai = cosAlpha / k,\n bi = sinAlpha / k,\n ci = (sinAlpha * dy - cosAlpha * dx) / k,\n fi = (sinAlpha * dx + cosAlpha * dy) / k;\n function transform(x, y) {\n return [a * x - b * y + dx, dy - b * x - a * y];\n }\n transform.invert = function(x, y) {\n return [ai * x - bi * y + ci, fi - bi * x - ai * y];\n };\n return transform;\n}\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, // pre-rotate\n alpha = 0, // post-rotate\n theta = null, preclip = clipAntimeridian, // pre-clip angle\n x0 = null, y0, x1, y1, postclip = identity, // post-clip extent\n delta2 = 0.5, // precision\n projectResample,\n projectTransform,\n projectRotateTransform,\n cache,\n cacheStream;\n\n function projection(point) {\n return projectRotateTransform(point[0] * radians, point[1] * radians);\n }\n\n function invert(point) {\n point = projectRotateTransform.invert(point[0], point[1]);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));\n };\n\n projection.preclip = function(_) {\n return arguments.length ? (preclip = _, theta = undefined, reset()) : preclip;\n };\n\n projection.postclip = function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.angle = function(_) {\n return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n projection.fitWidth = function(width, object) {\n return fitWidth(projection, width, object);\n };\n\n projection.fitHeight = function(height, object) {\n return fitHeight(projection, height, object);\n };\n\n function recenter() {\n var center = scaleTranslateRotate(k, 0, 0, alpha).apply(null, project(lambda, phi)),\n transform = (alpha ? scaleTranslateRotate : scaleTranslate)(k, x - center[0], y - center[1], alpha);\n rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);\n projectTransform = compose(project, transform);\n projectRotateTransform = compose(rotate, projectTransform);\n projectResample = resample(projectTransform, delta2);\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "index": 277, - "index2": 278, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "module": "./node_modules/d3-geo/src/projection/albers.js", - "moduleName": "./node_modules/d3-geo/src/projection/albers.js", - "type": "harmony side effect evaluation", - "userRequest": "./conicEqualArea.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./conicEqualArea.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "module": "./node_modules/d3-geo/src/projection/albers.js", - "moduleName": "./node_modules/d3-geo/src/projection/albers.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "4:9-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEqualArea.js", - "loc": "20:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "29:15-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./conicEqualArea.js", - "loc": "30:15-29" - } - ], - "usedExports": [ - "default", - "conicEqualAreaRaw" - ], - "providedExports": [ - "conicEqualAreaRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, asin, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {cylindricalEqualAreaRaw} from \"./cylindricalEqualArea.js\";\n\nexport function conicEqualAreaRaw(y0, y1) {\n var sy0 = sin(y0), n = (sy0 + sin(y1)) / 2;\n\n // Are the parallels symmetrical around the Equator?\n if (abs(n) < epsilon) return cylindricalEqualAreaRaw(y0);\n\n var c = 1 + sy0 * (2 * n - sy0), r0 = sqrt(c) / n;\n\n function project(x, y) {\n var r = sqrt(c - 2 * n * sin(y)) / n;\n return [r * sin(x *= n), r0 - r * cos(x)];\n }\n\n project.invert = function(x, y) {\n var r0y = r0 - y;\n return [atan2(x, abs(r0y)) / n * sign(r0y), asin((c - (x * x + r0y * r0y) * n * n) / (2 * n))];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEqualAreaRaw)\n .scale(155.424)\n .center([0, 33.6442]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albers.js", - "name": "./node_modules/d3-geo/src/projection/albers.js", - "index": 276, - "index2": 279, - "size": 238, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./albers.js", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/albers.js", - "loc": "15:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/albers.js", - "loc": "15:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./albers.js", - "loc": "28:16-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import conicEqualArea from \"./conicEqualArea.js\";\n\nexport default function() {\n return conicEqualArea()\n .parallels([29.5, 45.5])\n .scale(1070)\n .translate([480, 250])\n .rotate([96, 0])\n .center([-0.6, 38.7]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "name": "./node_modules/d3-geo/src/projection/albersUsa.js", - "index": 284, - "index2": 280, - "size": 4227, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/albersUsa.js", - "loc": "16:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/albersUsa.js", - "loc": "16:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {epsilon} from \"../math.js\";\nimport albers from \"./albers.js\";\nimport conicEqualArea from \"./conicEqualArea.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\n// The projections must have mutually exclusive clip regions on the sphere,\n// as this will avoid emitting interleaving lines and polygons.\nfunction multiplex(streams) {\n var n = streams.length;\n return {\n point: function(x, y) { var i = -1; while (++i < n) streams[i].point(x, y); },\n sphere: function() { var i = -1; while (++i < n) streams[i].sphere(); },\n lineStart: function() { var i = -1; while (++i < n) streams[i].lineStart(); },\n lineEnd: function() { var i = -1; while (++i < n) streams[i].lineEnd(); },\n polygonStart: function() { var i = -1; while (++i < n) streams[i].polygonStart(); },\n polygonEnd: function() { var i = -1; while (++i < n) streams[i].polygonEnd(); }\n };\n}\n\n// A composite projection for the United States, configured by default for\n// 960×500. The projection also works quite well at 960×600 if you change the\n// scale to 1285 and adjust the translate accordingly. The set of standard\n// parallels for each region comes from USGS, which is published here:\n// http://egsc.usgs.gov/isb/pubs/MapProjections/projections.html#albers\nexport default function() {\n var cache,\n cacheStream,\n lower48 = albers(), lower48Point,\n alaska = conicEqualArea().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), alaskaPoint, // EPSG:3338\n hawaii = conicEqualArea().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), hawaiiPoint, // ESRI:102007\n point, pointStream = {point: function(x, y) { point = [x, y]; }};\n\n function albersUsa(coordinates) {\n var x = coordinates[0], y = coordinates[1];\n return point = null,\n (lower48Point.point(x, y), point)\n || (alaskaPoint.point(x, y), point)\n || (hawaiiPoint.point(x, y), point);\n }\n\n albersUsa.invert = function(coordinates) {\n var k = lower48.scale(),\n t = lower48.translate(),\n x = (coordinates[0] - t[0]) / k,\n y = (coordinates[1] - t[1]) / k;\n return (y >= 0.120 && y < 0.234 && x >= -0.425 && x < -0.214 ? alaska\n : y >= 0.166 && y < 0.234 && x >= -0.214 && x < -0.115 ? hawaii\n : lower48).invert(coordinates);\n };\n\n albersUsa.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = multiplex([lower48.stream(cacheStream = stream), alaska.stream(stream), hawaii.stream(stream)]);\n };\n\n albersUsa.precision = function(_) {\n if (!arguments.length) return lower48.precision();\n lower48.precision(_), alaska.precision(_), hawaii.precision(_);\n return reset();\n };\n\n albersUsa.scale = function(_) {\n if (!arguments.length) return lower48.scale();\n lower48.scale(_), alaska.scale(_ * 0.35), hawaii.scale(_);\n return albersUsa.translate(lower48.translate());\n };\n\n albersUsa.translate = function(_) {\n if (!arguments.length) return lower48.translate();\n var k = lower48.scale(), x = +_[0], y = +_[1];\n\n lower48Point = lower48\n .translate(_)\n .clipExtent([[x - 0.455 * k, y - 0.238 * k], [x + 0.455 * k, y + 0.238 * k]])\n .stream(pointStream);\n\n alaskaPoint = alaska\n .translate([x - 0.307 * k, y + 0.201 * k])\n .clipExtent([[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon], [x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n hawaiiPoint = hawaii\n .translate([x - 0.205 * k, y + 0.212 * k])\n .clipExtent([[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon], [x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]])\n .stream(pointStream);\n\n return reset();\n };\n\n albersUsa.fitExtent = function(extent, object) {\n return fitExtent(albersUsa, extent, object);\n };\n\n albersUsa.fitSize = function(size, object) {\n return fitSize(albersUsa, size, object);\n };\n\n albersUsa.fitWidth = function(width, object) {\n return fitWidth(albersUsa, width, object);\n };\n\n albersUsa.fitHeight = function(height, object) {\n return fitHeight(albersUsa, height, object);\n };\n\n function reset() {\n cache = cacheStream = null;\n return albersUsa;\n }\n\n return albersUsa.scale(1070);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "index": 285, - "index2": 282, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEqualArea.js", - "loc": "17:0-135" - } - ], - "usedExports": [ - "default", - "azimuthalEqualAreaRaw" - ], - "providedExports": [ - "azimuthalEqualAreaRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, sqrt} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "index": 287, - "index2": 283, - "size": 452, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/azimuthalEquidistant.js", - "loc": "18:0-143" - } - ], - "usedExports": [ - "default", - "azimuthalEquidistantRaw" - ], - "providedExports": [ - "azimuthalEquidistantRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {acos, sin} from \"../math.js\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "name": "./node_modules/d3-geo/src/projection/mercator.js", - "index": 289, - "index2": 284, - "size": 1557, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony side effect evaluation", - "userRequest": "./mercator.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "./mercator.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "./mercator.js", - "loc": "13:10-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "./mercator.js", - "loc": "14:17-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/mercator.js", - "loc": "27:0-95" - } - ], - "usedExports": [ - "default", - "mercatorRaw", - "mercatorProjection" - ], - "providedExports": [ - "mercatorRaw", - "default", - "mercatorProjection" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, exp, halfPi, log, pi, tan, tau} from \"../math.js\";\nimport rotation from \"../rotation.js\";\nimport projection from \"./index.js\";\n\nexport function mercatorRaw(lambda, phi) {\n return [lambda, log(tan((halfPi + phi) / 2))];\n}\n\nmercatorRaw.invert = function(x, y) {\n return [x, 2 * atan(exp(y)) - halfPi];\n};\n\nexport default function() {\n return mercatorProjection(mercatorRaw)\n .scale(961 / tau);\n}\n\nexport function mercatorProjection(project) {\n var m = projection(project),\n center = m.center,\n scale = m.scale,\n translate = m.translate,\n clipExtent = m.clipExtent,\n x0 = null, y0, x1, y1; // clip extent\n\n m.scale = function(_) {\n return arguments.length ? (scale(_), reclip()) : scale();\n };\n\n m.translate = function(_) {\n return arguments.length ? (translate(_), reclip()) : translate();\n };\n\n m.center = function(_) {\n return arguments.length ? (center(_), reclip()) : center();\n };\n\n m.clipExtent = function(_) {\n return arguments.length ? ((_ == null ? x0 = y0 = x1 = y1 = null : (x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1])), reclip()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n function reclip() {\n var k = pi * scale(),\n t = m(rotation(m.rotate()).invert([0, 0]));\n return clipExtent(x0 == null\n ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw\n ? [[Math.max(t[0] - k, x0), y0], [Math.min(t[0] + k, x1), y1]]\n : [[x0, Math.max(t[1] - k, y0)], [x1, Math.min(t[1] + k, y1)]]);\n }\n\n return reclip();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "name": "./node_modules/d3-geo/src/projection/conicConformal.js", - "index": 288, - "index2": 285, - "size": 1026, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicConformal.js", - "loc": "19:0-119" - } - ], - "usedExports": [ - "default", - "conicConformalRaw" - ], - "providedExports": [ - "conicConformalRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, atan, atan2, cos, epsilon, halfPi, log, pow, sign, sin, sqrt, tan} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {mercatorRaw} from \"./mercator.js\";\n\nfunction tany(y) {\n return tan((halfPi + y) / 2);\n}\n\nexport function conicConformalRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : log(cy0 / cos(y1)) / log(tany(y1) / tany(y0)),\n f = cy0 * pow(tany(y0), n) / n;\n\n if (!n) return mercatorRaw;\n\n function project(x, y) {\n if (f > 0) { if (y < -halfPi + epsilon) y = -halfPi + epsilon; }\n else { if (y > halfPi - epsilon) y = halfPi - epsilon; }\n var r = f / pow(tany(y), n);\n return [r * sin(n * x), f - r * cos(n * x)];\n }\n\n project.invert = function(x, y) {\n var fy = f - y, r = sign(n) * sqrt(x * x + fy * fy);\n return [atan2(x, abs(fy)) / n * sign(fy), 2 * atan(pow(f / r, 1 / n)) - halfPi];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicConformalRaw)\n .scale(109.5)\n .parallels([30, 30]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equirectangular.js", - "name": "./node_modules/d3-geo/src/projection/equirectangular.js", - "index": 291, - "index2": 286, - "size": 256, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./equirectangular.js", - "loc": "3:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./equirectangular.js", - "loc": "10:31-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equirectangular.js", - "loc": "23:0-123" - } - ], - "usedExports": [ - "default", - "equirectangularRaw" - ], - "providedExports": [ - "equirectangularRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "index": 290, - "index2": 287, - "size": 780, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/conicEquidistant.js", - "loc": "21:0-127" - } - ], - "usedExports": [ - "default", - "conicEquidistantRaw" - ], - "providedExports": [ - "conicEquidistantRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {abs, atan2, cos, epsilon, sign, sin, sqrt} from \"../math.js\";\nimport {conicProjection} from \"./conic.js\";\nimport {equirectangularRaw} from \"./equirectangular.js\";\n\nexport function conicEquidistantRaw(y0, y1) {\n var cy0 = cos(y0),\n n = y0 === y1 ? sin(y0) : (cy0 - cos(y1)) / (y1 - y0),\n g = cy0 / n + y0;\n\n if (abs(n) < epsilon) return equirectangularRaw;\n\n function project(x, y) {\n var gy = g - y, nx = n * x;\n return [gy * sin(nx), g - gy * cos(nx)];\n }\n\n project.invert = function(x, y) {\n var gy = g - y;\n return [atan2(x, abs(gy)) / n * sign(gy), g - sign(n) * sqrt(x * x + gy * gy)];\n };\n\n return project;\n}\n\nexport default function() {\n return conicProjection(conicEquidistantRaw)\n .scale(131.154)\n .center([0, 13.9389]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "name": "./node_modules/d3-geo/src/projection/equalEarth.js", - "index": 292, - "index2": 288, - "size": 1024, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/equalEarth.js", - "loc": "22:0-103" - } - ], - "usedExports": [ - "default", - "equalEarthRaw" - ], - "providedExports": [ - "equalEarthRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\nimport {abs, asin, cos, epsilon2, sin, sqrt} from \"../math.js\";\n\nvar A1 = 1.340264,\n A2 = -0.081106,\n A3 = 0.000893,\n A4 = 0.003796,\n M = sqrt(3) / 2,\n iterations = 12;\n\nexport function equalEarthRaw(lambda, phi) {\n var l = asin(M * sin(phi)), l2 = l * l, l6 = l2 * l2 * l2;\n return [\n lambda * cos(l) / (M * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2))),\n l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2))\n ];\n}\n\nequalEarthRaw.invert = function(x, y) {\n var l = y, l2 = l * l, l6 = l2 * l2 * l2;\n for (var i = 0, delta, fy, fpy; i < iterations; ++i) {\n fy = l * (A1 + A2 * l2 + l6 * (A3 + A4 * l2)) - y;\n fpy = A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2);\n l -= delta = fy / fpy, l2 = l * l, l6 = l2 * l2 * l2;\n if (abs(delta) < epsilon2) break;\n }\n return [\n M * x * (A1 + 3 * A2 * l2 + l6 * (7 * A3 + 9 * A4 * l2)) / cos(l),\n asin(sin(l) / M)\n ];\n};\n\nexport default function() {\n return projection(equalEarthRaw)\n .scale(177.158);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "name": "./node_modules/d3-geo/src/projection/gnomonic.js", - "index": 293, - "index2": 289, - "size": 396, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/gnomonic.js", - "loc": "24:0-95" - } - ], - "usedExports": [ - "default", - "gnomonicRaw" - ], - "providedExports": [ - "gnomonicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function gnomonicRaw(x, y) {\n var cy = cos(y), k = cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\ngnomonicRaw.invert = azimuthalInvert(atan);\n\nexport default function() {\n return projection(gnomonicRaw)\n .scale(144.049)\n .clipAngle(60);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "index": 294, - "index2": 290, - "size": 2307, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/identity.js", - "loc": "25:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/identity.js", - "loc": "25:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import clipRectangle from \"../clip/rectangle.js\";\nimport identity from \"../identity.js\";\nimport {transformer} from \"../transform.js\";\nimport {fitExtent, fitSize, fitWidth, fitHeight} from \"./fit.js\";\n\nfunction scaleTranslate(kx, ky, tx, ty) {\n return kx === 1 && ky === 1 && tx === 0 && ty === 0 ? identity : transformer({\n point: function(x, y) {\n this.stream.point(x * kx + tx, y * ky + ty);\n }\n });\n}\n\nexport default function() {\n var k = 1, tx = 0, ty = 0, sx = 1, sy = 1, transform = identity, // scale, translate and reflect\n x0 = null, y0, x1, y1, // clip extent\n postclip = identity,\n cache,\n cacheStream,\n projection;\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return projection = {\n stream: function(stream) {\n return cache && cacheStream === stream ? cache : cache = transform(postclip(cacheStream = stream));\n },\n postclip: function(_) {\n return arguments.length ? (postclip = _, x0 = y0 = x1 = y1 = null, reset()) : postclip;\n },\n clipExtent: function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipRectangle(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n },\n scale: function(_) {\n return arguments.length ? (transform = scaleTranslate((k = +_) * sx, k * sy, tx, ty), reset()) : k;\n },\n translate: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * sy, tx = +_[0], ty = +_[1]), reset()) : [tx, ty];\n },\n reflectX: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * (sx = _ ? -1 : 1), k * sy, tx, ty), reset()) : sx < 0;\n },\n reflectY: function(_) {\n return arguments.length ? (transform = scaleTranslate(k * sx, k * (sy = _ ? -1 : 1), tx, ty), reset()) : sy < 0;\n },\n fitExtent: function(extent, object) {\n return fitExtent(projection, extent, object);\n },\n fitSize: function(size, object) {\n return fitSize(projection, size, object);\n },\n fitWidth: function(width, object) {\n return fitWidth(projection, width, object);\n },\n fitHeight: function(height, object) {\n return fitHeight(projection, height, object);\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "name": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "index": 295, - "index2": 291, - "size": 1046, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/naturalEarth1.js", - "loc": "28:0-115" - } - ], - "usedExports": [ - "default", - "naturalEarth1Raw" - ], - "providedExports": [ - "naturalEarth1Raw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import projection from \"./index.js\";\nimport {abs, epsilon} from \"../math.js\";\n\nexport function naturalEarth1Raw(lambda, phi) {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n return [\n lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (0.003971 * phi2 - 0.001529 * phi4))),\n phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4)))\n ];\n}\n\nnaturalEarth1Raw.invert = function(x, y) {\n var phi = y, i = 25, delta;\n do {\n var phi2 = phi * phi, phi4 = phi2 * phi2;\n phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 0.005916 * phi4))) - y) /\n (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 0.005916 * 11 * phi4)));\n } while (abs(delta) > epsilon && --i > 0);\n return [\n x / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (0.003971 - 0.001529 * phi2)))),\n phi\n ];\n};\n\nexport default function() {\n return projection(naturalEarth1Raw)\n .scale(175.295);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "name": "./node_modules/d3-geo/src/projection/orthographic.js", - "index": 296, - "index2": 292, - "size": 385, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/orthographic.js", - "loc": "29:0-111" - } - ], - "usedExports": [ - "default", - "orthographicRaw" - ], - "providedExports": [ - "orthographicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {asin, cos, epsilon, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function orthographicRaw(x, y) {\n return [cos(y) * sin(x), sin(y)];\n}\n\northographicRaw.invert = azimuthalInvert(asin);\n\nexport default function() {\n return projection(orthographicRaw)\n .scale(249.5)\n .clipAngle(90 + epsilon);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "name": "./node_modules/d3-geo/src/projection/stereographic.js", - "index": 297, - "index2": 293, - "size": 445, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/stereographic.js", - "loc": "30:0-115" - } - ], - "usedExports": [ - "default", - "stereographicRaw" - ], - "providedExports": [ - "stereographicRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, cos, sin} from \"../math.js\";\nimport {azimuthalInvert} from \"./azimuthal.js\";\nimport projection from \"./index.js\";\n\nexport function stereographicRaw(x, y) {\n var cy = cos(y), k = 1 + cos(x) * cy;\n return [cy * sin(x) / k, sin(y) / k];\n}\n\nstereographicRaw.invert = azimuthalInvert(function(z) {\n return 2 * atan(z);\n});\n\nexport default function() {\n return projection(stereographicRaw)\n .scale(250)\n .clipAngle(142);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "name": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "index": 298, - "index2": 294, - "size": 768, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "module": "./node_modules/d3-geo/src/index.js", - "moduleName": "./node_modules/d3-geo/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./projection/transverseMercator.js", - "loc": "31:0-135" - } - ], - "usedExports": [ - "default", - "transverseMercatorRaw" - ], - "providedExports": [ - "transverseMercatorRaw", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {atan, exp, halfPi, log, tan} from \"../math.js\";\nimport {mercatorProjection} from \"./mercator.js\";\n\nexport function transverseMercatorRaw(lambda, phi) {\n return [log(tan((halfPi + phi) / 2)), -lambda];\n}\n\ntransverseMercatorRaw.invert = function(x, y) {\n return [-y, 2 * atan(exp(x)) - halfPi];\n};\n\nexport default function() {\n var m = mercatorProjection(transverseMercatorRaw),\n center = m.center,\n rotate = m.rotate;\n\n m.center = function(_) {\n return arguments.length ? center([-_[1], _[0]]) : (_ = center(), [_[1], -_[0]]);\n };\n\n m.rotate = function(_) {\n return arguments.length ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : (_ = rotate(), [_[0], _[1], _[2] - 90]);\n };\n\n return rotate([0, 0, 90])\n .scale(159.155);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/cluster.js", - "name": "./node_modules/d3-hierarchy/src/cluster.js", - "index": 300, - "index2": 296, - "size": 2093, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cluster.js", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cluster.js", - "loc": "1:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\nfunction meanX(children) {\n return children.reduce(meanXReduce, 0) / children.length;\n}\n\nfunction meanXReduce(x, c) {\n return x + c.x;\n}\n\nfunction maxY(children) {\n return 1 + children.reduce(maxYReduce, 0);\n}\n\nfunction maxYReduce(y, c) {\n return Math.max(y, c.y);\n}\n\nfunction leafLeft(node) {\n var children;\n while (children = node.children) node = children[0];\n return node;\n}\n\nfunction leafRight(node) {\n var children;\n while (children = node.children) node = children[children.length - 1];\n return node;\n}\n\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = false;\n\n function cluster(root) {\n var previousNode,\n x = 0;\n\n // First walk, computing the initial x & y values.\n root.eachAfter(function(node) {\n var children = node.children;\n if (children) {\n node.x = meanX(children);\n node.y = maxY(children);\n } else {\n node.x = previousNode ? x += separation(node, previousNode) : 0;\n node.y = 0;\n previousNode = node;\n }\n });\n\n var left = leafLeft(root),\n right = leafRight(root),\n x0 = left.x - separation(left, right) / 2,\n x1 = right.x + separation(right, left) / 2;\n\n // Second walk, normalizing x & y to the desired size.\n return root.eachAfter(nodeSize ? function(node) {\n node.x = (node.x - root.x) * dx;\n node.y = (root.y - node.y) * dy;\n } : function(node) {\n node.x = (node.x - x0) / (x1 - x0) * dx;\n node.y = (1 - (root.y ? node.y / root.y : 1)) * dy;\n });\n }\n\n cluster.separation = function(x) {\n return arguments.length ? (separation = x, cluster) : separation;\n };\n\n cluster.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? null : [dx, dy]);\n };\n\n cluster.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], cluster) : (nodeSize ? [dx, dy] : null);\n };\n\n return cluster;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "index": 301, - "index2": 308, - "size": 1907, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "module": "./node_modules/d3-hierarchy/src/tree.js", - "moduleName": "./node_modules/d3-hierarchy/src/tree.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony side effect evaluation", - "userRequest": "./hierarchy/index.js", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "33:41-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "57:92-105" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "module": "./node_modules/d3-hierarchy/src/tree.js", - "moduleName": "./node_modules/d3-hierarchy/src/tree.js", - "type": "harmony import specifier", - "userRequest": "./hierarchy/index.js", - "loc": "74:35-39" - } - ], - "usedExports": [ - "default", - "Node", - "computeHeight" - ], - "providedExports": [ - "default", - "computeHeight", - "Node" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import node_count from \"./count.js\";\nimport node_each from \"./each.js\";\nimport node_eachBefore from \"./eachBefore.js\";\nimport node_eachAfter from \"./eachAfter.js\";\nimport node_sum from \"./sum.js\";\nimport node_sort from \"./sort.js\";\nimport node_path from \"./path.js\";\nimport node_ancestors from \"./ancestors.js\";\nimport node_descendants from \"./descendants.js\";\nimport node_leaves from \"./leaves.js\";\nimport node_links from \"./links.js\";\n\nexport default function hierarchy(data, children) {\n var root = new Node(data),\n valued = +data.value && (root.value = data.value),\n node,\n nodes = [root],\n child,\n childs,\n i,\n n;\n\n if (children == null) children = defaultChildren;\n\n while (node = nodes.pop()) {\n if (valued) node.value = +node.data.value;\n if ((childs = children(node.data)) && (n = childs.length)) {\n node.children = new Array(n);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new Node(childs[i]));\n child.parent = node;\n child.depth = node.depth + 1;\n }\n }\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction node_copy() {\n return hierarchy(this).eachBefore(copyData);\n}\n\nfunction defaultChildren(d) {\n return d.children;\n}\n\nfunction copyData(node) {\n node.data = node.data.data;\n}\n\nexport function computeHeight(node) {\n var height = 0;\n do node.height = height;\n while ((node = node.parent) && (node.height < ++height));\n}\n\nexport function Node(data) {\n this.data = data;\n this.depth =\n this.height = 0;\n this.parent = null;\n}\n\nNode.prototype = hierarchy.prototype = {\n constructor: Node,\n count: node_count,\n each: node_each,\n eachAfter: node_eachAfter,\n eachBefore: node_eachBefore,\n sum: node_sum,\n sort: node_sort,\n path: node_path,\n ancestors: node_ancestors,\n descendants: node_descendants,\n leaves: node_leaves,\n links: node_links,\n copy: node_copy\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "name": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "index": 317, - "index2": 312, - "size": 2979, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "module": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "type": "harmony side effect evaluation", - "userRequest": "./enclose.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/enclose.js", - "loc": "5:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/enclose.js", - "loc": "5:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "module": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "type": "harmony import specifier", - "userRequest": "./enclose.js", - "loc": "107:64-71" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {shuffle, slice} from \"../array.js\";\n\nexport default function(circles) {\n var i = 0, n = (circles = shuffle(slice.call(circles))).length, B = [], p, e;\n\n while (i < n) {\n p = circles[i];\n if (e && enclosesWeak(e, p)) ++i;\n else e = encloseBasis(B = extendBasis(B, p)), i = 0;\n }\n\n return e;\n}\n\nfunction extendBasis(B, p) {\n var i, j;\n\n if (enclosesWeakAll(p, B)) return [p];\n\n // If we get here then B must have at least one element.\n for (i = 0; i < B.length; ++i) {\n if (enclosesNot(p, B[i])\n && enclosesWeakAll(encloseBasis2(B[i], p), B)) {\n return [B[i], p];\n }\n }\n\n // If we get here then B must have at least two elements.\n for (i = 0; i < B.length - 1; ++i) {\n for (j = i + 1; j < B.length; ++j) {\n if (enclosesNot(encloseBasis2(B[i], B[j]), p)\n && enclosesNot(encloseBasis2(B[i], p), B[j])\n && enclosesNot(encloseBasis2(B[j], p), B[i])\n && enclosesWeakAll(encloseBasis3(B[i], B[j], p), B)) {\n return [B[i], B[j], p];\n }\n }\n }\n\n // If we get here then something is very wrong.\n throw new Error;\n}\n\nfunction enclosesNot(a, b) {\n var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;\n return dr < 0 || dr * dr < dx * dx + dy * dy;\n}\n\nfunction enclosesWeak(a, b) {\n var dr = a.r - b.r + 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction enclosesWeakAll(a, B) {\n for (var i = 0; i < B.length; ++i) {\n if (!enclosesWeak(a, B[i])) {\n return false;\n }\n }\n return true;\n}\n\nfunction encloseBasis(B) {\n switch (B.length) {\n case 1: return encloseBasis1(B[0]);\n case 2: return encloseBasis2(B[0], B[1]);\n case 3: return encloseBasis3(B[0], B[1], B[2]);\n }\n}\n\nfunction encloseBasis1(a) {\n return {\n x: a.x,\n y: a.y,\n r: a.r\n };\n}\n\nfunction encloseBasis2(a, b) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x21 = x2 - x1, y21 = y2 - y1, r21 = r2 - r1,\n l = Math.sqrt(x21 * x21 + y21 * y21);\n return {\n x: (x1 + x2 + x21 / l * r21) / 2,\n y: (y1 + y2 + y21 / l * r21) / 2,\n r: (l + r1 + r2) / 2\n };\n}\n\nfunction encloseBasis3(a, b, c) {\n var x1 = a.x, y1 = a.y, r1 = a.r,\n x2 = b.x, y2 = b.y, r2 = b.r,\n x3 = c.x, y3 = c.y, r3 = c.r,\n a2 = x1 - x2,\n a3 = x1 - x3,\n b2 = y1 - y2,\n b3 = y1 - y3,\n c2 = r2 - r1,\n c3 = r3 - r1,\n d1 = x1 * x1 + y1 * y1 - r1 * r1,\n d2 = d1 - x2 * x2 - y2 * y2 + r2 * r2,\n d3 = d1 - x3 * x3 - y3 * y3 + r3 * r3,\n ab = a3 * b2 - a2 * b3,\n xa = (b2 * d3 - b3 * d2) / (ab * 2) - x1,\n xb = (b3 * c2 - b2 * c3) / ab,\n ya = (a3 * d2 - a2 * d3) / (ab * 2) - y1,\n yb = (a2 * c3 - a3 * c2) / ab,\n A = xb * xb + yb * yb - 1,\n B = 2 * (r1 + xa * xb + ya * yb),\n C = xa * xa + ya * ya - r1 * r1,\n r = -(A ? (B + Math.sqrt(B * B - 4 * A * C)) / (2 * A) : C / B);\n return {\n x: x1 + xa + xb * r,\n y: y1 + ya + yb * r,\n r: r\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/siblings.js", - "name": "./node_modules/d3-hierarchy/src/pack/siblings.js", - "index": 316, - "index2": 313, - "size": 3170, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./siblings.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/siblings.js", - "loc": "4:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/siblings.js", - "loc": "4:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "./siblings.js", - "loc": "63:10-21" - } - ], - "usedExports": [ - "default", - "packEnclose" - ], - "providedExports": [ - "packEnclose", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import enclose from \"./enclose.js\";\n\nfunction place(b, a, c) {\n var dx = b.x - a.x, x, a2,\n dy = b.y - a.y, y, b2,\n d2 = dx * dx + dy * dy;\n if (d2) {\n a2 = a.r + c.r, a2 *= a2;\n b2 = b.r + c.r, b2 *= b2;\n if (a2 > b2) {\n x = (d2 + b2 - a2) / (2 * d2);\n y = Math.sqrt(Math.max(0, b2 / d2 - x * x));\n c.x = b.x - x * dx - y * dy;\n c.y = b.y - x * dy + y * dx;\n } else {\n x = (d2 + a2 - b2) / (2 * d2);\n y = Math.sqrt(Math.max(0, a2 / d2 - x * x));\n c.x = a.x + x * dx - y * dy;\n c.y = a.y + x * dy + y * dx;\n }\n } else {\n c.x = a.x + c.r;\n c.y = a.y;\n }\n}\n\nfunction intersects(a, b) {\n var dr = a.r + b.r - 1e-6, dx = b.x - a.x, dy = b.y - a.y;\n return dr > 0 && dr * dr > dx * dx + dy * dy;\n}\n\nfunction score(node) {\n var a = node._,\n b = node.next._,\n ab = a.r + b.r,\n dx = (a.x * b.r + b.x * a.r) / ab,\n dy = (a.y * b.r + b.y * a.r) / ab;\n return dx * dx + dy * dy;\n}\n\nfunction Node(circle) {\n this._ = circle;\n this.next = null;\n this.previous = null;\n}\n\nexport function packEnclose(circles) {\n if (!(n = circles.length)) return 0;\n\n var a, b, c, n, aa, ca, i, j, k, sj, sk;\n\n // Place the first circle.\n a = circles[0], a.x = 0, a.y = 0;\n if (!(n > 1)) return a.r;\n\n // Place the second circle.\n b = circles[1], a.x = -b.r, b.x = a.r, b.y = 0;\n if (!(n > 2)) return a.r + b.r;\n\n // Place the third circle.\n place(b, a, c = circles[2]);\n\n // Initialize the front-chain using the first three circles a, b and c.\n a = new Node(a), b = new Node(b), c = new Node(c);\n a.next = c.previous = b;\n b.next = a.previous = c;\n c.next = b.previous = a;\n\n // Attempt to place each remaining circle…\n pack: for (i = 3; i < n; ++i) {\n place(a._, b._, c = circles[i]), c = new Node(c);\n\n // Find the closest intersecting circle on the front-chain, if any.\n // “Closeness” is determined by linear distance along the front-chain.\n // “Ahead” or “behind” is likewise determined by linear distance.\n j = b.next, k = a.previous, sj = b._.r, sk = a._.r;\n do {\n if (sj <= sk) {\n if (intersects(j._, c._)) {\n b = j, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sj += j._.r, j = j.next;\n } else {\n if (intersects(k._, c._)) {\n a = k, a.next = b, b.previous = a, --i;\n continue pack;\n }\n sk += k._.r, k = k.previous;\n }\n } while (j !== k.next);\n\n // Success! Insert the new circle c between a and b.\n c.previous = a, c.next = b, a.next = b.previous = b = c;\n\n // Compute the new closest circle pair to the centroid.\n aa = score(a);\n while ((c = c.next) !== b) {\n if ((ca = score(c)) < aa) {\n a = c, aa = ca;\n }\n }\n b = a.next;\n }\n\n // Compute the enclosing circle of the front chain.\n a = [b._], c = b; while ((c = c.next) !== b) a.push(c._); c = enclose(a);\n\n // Translate the circles to put the enclosing circle around the origin.\n for (i = 0; i < n; ++i) a = circles[i], a.x -= c.x, a.y -= c.y;\n\n return c.r;\n}\n\nexport default function(circles) {\n packEnclose(circles);\n return circles;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "name": "./node_modules/d3-hierarchy/src/pack/index.js", - "index": 313, - "index2": 314, - "size": 1926, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pack/index.js", - "loc": "3:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pack/index.js", - "loc": "3:0-48" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {packEnclose} from \"./siblings.js\";\nimport {optional} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nfunction defaultRadius(d) {\n return Math.sqrt(d.value);\n}\n\nexport default function() {\n var radius = null,\n dx = 1,\n dy = 1,\n padding = constantZero;\n\n function pack(root) {\n root.x = dx / 2, root.y = dy / 2;\n if (radius) {\n root.eachBefore(radiusLeaf(radius))\n .eachAfter(packChildren(padding, 0.5))\n .eachBefore(translateChild(1));\n } else {\n root.eachBefore(radiusLeaf(defaultRadius))\n .eachAfter(packChildren(constantZero, 1))\n .eachAfter(packChildren(padding, root.r / Math.min(dx, dy)))\n .eachBefore(translateChild(Math.min(dx, dy) / (2 * root.r)));\n }\n return root;\n }\n\n pack.radius = function(x) {\n return arguments.length ? (radius = optional(x), pack) : radius;\n };\n\n pack.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], pack) : [dx, dy];\n };\n\n pack.padding = function(x) {\n return arguments.length ? (padding = typeof x === \"function\" ? x : constant(+x), pack) : padding;\n };\n\n return pack;\n}\n\nfunction radiusLeaf(radius) {\n return function(node) {\n if (!node.children) {\n node.r = Math.max(0, +radius(node) || 0);\n }\n };\n}\n\nfunction packChildren(padding, k) {\n return function(node) {\n if (children = node.children) {\n var children,\n i,\n n = children.length,\n r = padding(node) * k || 0,\n e;\n\n if (r) for (i = 0; i < n; ++i) children[i].r += r;\n e = packEnclose(children);\n if (r) for (i = 0; i < n; ++i) children[i].r -= r;\n node.r = e + r;\n }\n };\n}\n\nfunction translateChild(k) {\n return function(node) {\n var parent = node.parent;\n node.r *= k;\n if (parent) {\n node.x = parent.x + k * node.x;\n node.y = parent.y + k * node.y;\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/dice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/dice.js", - "index": 321, - "index2": 316, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony side effect evaluation", - "userRequest": "./dice.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/dice.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "5:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/dice.js", - "loc": "11:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/dice.js", - "loc": "11:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "21:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony import specifier", - "userRequest": "./treemap/dice.js", - "loc": "24:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony import specifier", - "userRequest": "./dice.js", - "loc": "47:18-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (x1 - x0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.y0 = y0, node.y1 = y1;\n node.x0 = x0, node.x1 = x0 += node.value * k;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "name": "./node_modules/d3-hierarchy/src/partition.js", - "index": 319, - "index2": 317, - "size": 1272, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./partition.js", - "loc": "6:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./partition.js", - "loc": "6:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import roundNode from \"./treemap/round.js\";\nimport treemapDice from \"./treemap/dice.js\";\n\nexport default function() {\n var dx = 1,\n dy = 1,\n padding = 0,\n round = false;\n\n function partition(root) {\n var n = root.height + 1;\n root.x0 =\n root.y0 = padding;\n root.x1 = dx;\n root.y1 = dy / n;\n root.eachBefore(positionNode(dy, n));\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(dy, n) {\n return function(node) {\n if (node.children) {\n treemapDice(node, node.x0, dy * (node.depth + 1) / n, node.x1, dy * (node.depth + 2) / n);\n }\n var x0 = node.x0,\n y0 = node.y0,\n x1 = node.x1 - padding,\n y1 = node.y1 - padding;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n };\n }\n\n partition.round = function(x) {\n return arguments.length ? (round = !!x, partition) : round;\n };\n\n partition.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], partition) : [dx, dy];\n };\n\n partition.padding = function(x) {\n return arguments.length ? (padding = +x, partition) : padding;\n };\n\n return partition;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "name": "./node_modules/d3-hierarchy/src/stratify.js", - "index": 322, - "index2": 318, - "size": 1940, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stratify.js", - "loc": "7:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stratify.js", - "loc": "7:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {required} from \"./accessors.js\";\nimport {Node, computeHeight} from \"./hierarchy/index.js\";\n\nvar keyPrefix = \"$\", // Protect against keys like “__proto__”.\n preroot = {depth: -1},\n ambiguous = {};\n\nfunction defaultId(d) {\n return d.id;\n}\n\nfunction defaultParentId(d) {\n return d.parentId;\n}\n\nexport default function() {\n var id = defaultId,\n parentId = defaultParentId;\n\n function stratify(data) {\n var d,\n i,\n n = data.length,\n root,\n parent,\n node,\n nodes = new Array(n),\n nodeId,\n nodeKey,\n nodeByKey = {};\n\n for (i = 0; i < n; ++i) {\n d = data[i], node = nodes[i] = new Node(d);\n if ((nodeId = id(d, i, data)) != null && (nodeId += \"\")) {\n nodeKey = keyPrefix + (node.id = nodeId);\n nodeByKey[nodeKey] = nodeKey in nodeByKey ? ambiguous : node;\n }\n }\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], nodeId = parentId(data[i], i, data);\n if (nodeId == null || !(nodeId += \"\")) {\n if (root) throw new Error(\"multiple roots\");\n root = node;\n } else {\n parent = nodeByKey[keyPrefix + nodeId];\n if (!parent) throw new Error(\"missing: \" + nodeId);\n if (parent === ambiguous) throw new Error(\"ambiguous: \" + nodeId);\n if (parent.children) parent.children.push(node);\n else parent.children = [node];\n node.parent = parent;\n }\n }\n\n if (!root) throw new Error(\"no root\");\n root.parent = preroot;\n root.eachBefore(function(node) { node.depth = node.parent.depth + 1; --n; }).eachBefore(computeHeight);\n root.parent = null;\n if (n > 0) throw new Error(\"cycle\");\n\n return root;\n }\n\n stratify.id = function(x) {\n return arguments.length ? (id = required(x), stratify) : id;\n };\n\n stratify.parentId = function(x) {\n return arguments.length ? (parentId = required(x), stratify) : parentId;\n };\n\n return stratify;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/tree.js", - "name": "./node_modules/d3-hierarchy/src/tree.js", - "index": 323, - "index2": 319, - "size": 7063, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tree.js", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tree.js", - "loc": "8:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Node} from \"./hierarchy/index.js\";\n\nfunction defaultSeparation(a, b) {\n return a.parent === b.parent ? 1 : 2;\n}\n\n// function radialSeparation(a, b) {\n// return (a.parent === b.parent ? 1 : 2) / a.depth;\n// }\n\n// This function is used to traverse the left contour of a subtree (or\n// subforest). It returns the successor of v on this contour. This successor is\n// either given by the leftmost child of v or by the thread of v. The function\n// returns null if and only if v is on the highest level of its subtree.\nfunction nextLeft(v) {\n var children = v.children;\n return children ? children[0] : v.t;\n}\n\n// This function works analogously to nextLeft.\nfunction nextRight(v) {\n var children = v.children;\n return children ? children[children.length - 1] : v.t;\n}\n\n// Shifts the current subtree rooted at w+. This is done by increasing\n// prelim(w+) and mod(w+) by shift.\nfunction moveSubtree(wm, wp, shift) {\n var change = shift / (wp.i - wm.i);\n wp.c -= change;\n wp.s += shift;\n wm.c += change;\n wp.z += shift;\n wp.m += shift;\n}\n\n// All other shifts, applied to the smaller subtrees between w- and w+, are\n// performed by this function. To prepare the shifts, we have to adjust\n// change(w+), shift(w+), and change(w-).\nfunction executeShifts(v) {\n var shift = 0,\n change = 0,\n children = v.children,\n i = children.length,\n w;\n while (--i >= 0) {\n w = children[i];\n w.z += shift;\n w.m += shift;\n shift += w.s + (change += w.c);\n }\n}\n\n// If vi-’s ancestor is a sibling of v, returns vi-’s ancestor. Otherwise,\n// returns the specified (default) ancestor.\nfunction nextAncestor(vim, v, ancestor) {\n return vim.a.parent === v.parent ? vim.a : ancestor;\n}\n\nfunction TreeNode(node, i) {\n this._ = node;\n this.parent = null;\n this.children = null;\n this.A = null; // default ancestor\n this.a = this; // ancestor\n this.z = 0; // prelim\n this.m = 0; // mod\n this.c = 0; // change\n this.s = 0; // shift\n this.t = null; // thread\n this.i = i; // number\n}\n\nTreeNode.prototype = Object.create(Node.prototype);\n\nfunction treeRoot(root) {\n var tree = new TreeNode(root, 0),\n node,\n nodes = [tree],\n child,\n children,\n i,\n n;\n\n while (node = nodes.pop()) {\n if (children = node._.children) {\n node.children = new Array(n = children.length);\n for (i = n - 1; i >= 0; --i) {\n nodes.push(child = node.children[i] = new TreeNode(children[i], i));\n child.parent = node;\n }\n }\n }\n\n (tree.parent = new TreeNode(null, 0)).children = [tree];\n return tree;\n}\n\n// Node-link tree diagram using the Reingold-Tilford \"tidy\" algorithm\nexport default function() {\n var separation = defaultSeparation,\n dx = 1,\n dy = 1,\n nodeSize = null;\n\n function tree(root) {\n var t = treeRoot(root);\n\n // Compute the layout using Buchheim et al.’s algorithm.\n t.eachAfter(firstWalk), t.parent.m = -t.z;\n t.eachBefore(secondWalk);\n\n // If a fixed node size is specified, scale x and y.\n if (nodeSize) root.eachBefore(sizeNode);\n\n // If a fixed tree size is specified, scale x and y based on the extent.\n // Compute the left-most, right-most, and depth-most nodes for extents.\n else {\n var left = root,\n right = root,\n bottom = root;\n root.eachBefore(function(node) {\n if (node.x < left.x) left = node;\n if (node.x > right.x) right = node;\n if (node.depth > bottom.depth) bottom = node;\n });\n var s = left === right ? 1 : separation(left, right) / 2,\n tx = s - left.x,\n kx = dx / (right.x + s + tx),\n ky = dy / (bottom.depth || 1);\n root.eachBefore(function(node) {\n node.x = (node.x + tx) * kx;\n node.y = node.depth * ky;\n });\n }\n\n return root;\n }\n\n // Computes a preliminary x-coordinate for v. Before that, FIRST WALK is\n // applied recursively to the children of v, as well as the function\n // APPORTION. After spacing out the children by calling EXECUTE SHIFTS, the\n // node v is placed to the midpoint of its outermost children.\n function firstWalk(v) {\n var children = v.children,\n siblings = v.parent.children,\n w = v.i ? siblings[v.i - 1] : null;\n if (children) {\n executeShifts(v);\n var midpoint = (children[0].z + children[children.length - 1].z) / 2;\n if (w) {\n v.z = w.z + separation(v._, w._);\n v.m = v.z - midpoint;\n } else {\n v.z = midpoint;\n }\n } else if (w) {\n v.z = w.z + separation(v._, w._);\n }\n v.parent.A = apportion(v, w, v.parent.A || siblings[0]);\n }\n\n // Computes all real x-coordinates by summing up the modifiers recursively.\n function secondWalk(v) {\n v._.x = v.z + v.parent.m;\n v.m += v.parent.m;\n }\n\n // The core of the algorithm. Here, a new subtree is combined with the\n // previous subtrees. Threads are used to traverse the inside and outside\n // contours of the left and right subtree up to the highest common level. The\n // vertices used for the traversals are vi+, vi-, vo-, and vo+, where the\n // superscript o means outside and i means inside, the subscript - means left\n // subtree and + means right subtree. For summing up the modifiers along the\n // contour, we use respective variables si+, si-, so-, and so+. Whenever two\n // nodes of the inside contours conflict, we compute the left one of the\n // greatest uncommon ancestors using the function ANCESTOR and call MOVE\n // SUBTREE to shift the subtree and prepare the shifts of smaller subtrees.\n // Finally, we add a new thread (if necessary).\n function apportion(v, w, ancestor) {\n if (w) {\n var vip = v,\n vop = v,\n vim = w,\n vom = vip.parent.children[0],\n sip = vip.m,\n sop = vop.m,\n sim = vim.m,\n som = vom.m,\n shift;\n while (vim = nextRight(vim), vip = nextLeft(vip), vim && vip) {\n vom = nextLeft(vom);\n vop = nextRight(vop);\n vop.a = v;\n shift = vim.z + sim - vip.z - sip + separation(vim._, vip._);\n if (shift > 0) {\n moveSubtree(nextAncestor(vim, v, ancestor), v, shift);\n sip += shift;\n sop += shift;\n }\n sim += vim.m;\n sip += vip.m;\n som += vom.m;\n sop += vop.m;\n }\n if (vim && !nextRight(vop)) {\n vop.t = vim;\n vop.m += sim - sop;\n }\n if (vip && !nextLeft(vom)) {\n vom.t = vip;\n vom.m += sip - som;\n ancestor = v;\n }\n }\n return ancestor;\n }\n\n function sizeNode(node) {\n node.x *= dx;\n node.y = node.depth * dy;\n }\n\n tree.separation = function(x) {\n return arguments.length ? (separation = x, tree) : separation;\n };\n\n tree.size = function(x) {\n return arguments.length ? (nodeSize = false, dx = +x[0], dy = +x[1], tree) : (nodeSize ? null : [dx, dy]);\n };\n\n tree.nodeSize = function(x) {\n return arguments.length ? (nodeSize = true, dx = +x[0], dy = +x[1], tree) : (nodeSize ? [dx, dy] : null);\n };\n\n return tree;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/slice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/slice.js", - "index": 326, - "index2": 320, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony side effect evaluation", - "userRequest": "./slice.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "module": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "5:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/slice.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/slice.js", - "loc": "12:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "22:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "type": "harmony import specifier", - "userRequest": "./slice.js", - "loc": "48:9-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n node,\n i = -1,\n n = nodes.length,\n k = parent.value && (y1 - y0) / parent.value;\n\n while (++i < n) {\n node = nodes[i], node.x0 = x0, node.x1 = x1;\n node.y0 = y0, node.y1 = y0 += node.value * k;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/squarify.js", - "name": "./node_modules/d3-hierarchy/src/treemap/squarify.js", - "index": 325, - "index2": 321, - "size": 1874, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./squarify.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony side effect evaluation", - "userRequest": "./squarify.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "7:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/squarify.js", - "loc": "14:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/squarify.js", - "loc": "14:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "26:32-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "module": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "type": "harmony import specifier", - "userRequest": "./squarify.js", - "loc": "36:3-6" - } - ], - "usedExports": [ - "default", - "squarifyRatio", - "phi" - ], - "providedExports": [ - "phi", - "squarifyRatio", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\n\nexport var phi = (1 + Math.sqrt(5)) / 2;\n\nexport function squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [],\n nodes = parent.children,\n row,\n nodeValue,\n i0 = 0,\n i1 = 0,\n n = nodes.length,\n dx, dy,\n value = parent.value,\n sumValue,\n minValue,\n maxValue,\n newRatio,\n minRatio,\n alpha,\n beta;\n\n while (i0 < n) {\n dx = x1 - x0, dy = y1 - y0;\n\n // Find the next non-empty node.\n do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue);\n\n // Keep adding nodes while the aspect ratio maintains or improves.\n for (; i1 < n; ++i1) {\n sumValue += nodeValue = nodes[i1].value;\n if (nodeValue < minValue) minValue = nodeValue;\n if (nodeValue > maxValue) maxValue = nodeValue;\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n if (newRatio > minRatio) { sumValue -= nodeValue; break; }\n minRatio = newRatio;\n }\n\n // Position and record the row orientation.\n rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});\n if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);\n else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);\n value -= sumValue, i0 = i1;\n }\n\n return rows;\n}\n\nexport default (function custom(ratio) {\n\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n})(phi);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "index": 324, - "index2": 322, - "size": 2822, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/index.js", - "loc": "9:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/index.js", - "loc": "9:0-54" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import roundNode from \"./round.js\";\nimport squarify from \"./squarify.js\";\nimport {required} from \"../accessors.js\";\nimport constant, {constantZero} from \"../constant.js\";\n\nexport default function() {\n var tile = squarify,\n round = false,\n dx = 1,\n dy = 1,\n paddingStack = [0],\n paddingInner = constantZero,\n paddingTop = constantZero,\n paddingRight = constantZero,\n paddingBottom = constantZero,\n paddingLeft = constantZero;\n\n function treemap(root) {\n root.x0 =\n root.y0 = 0;\n root.x1 = dx;\n root.y1 = dy;\n root.eachBefore(positionNode);\n paddingStack = [0];\n if (round) root.eachBefore(roundNode);\n return root;\n }\n\n function positionNode(node) {\n var p = paddingStack[node.depth],\n x0 = node.x0 + p,\n y0 = node.y0 + p,\n x1 = node.x1 - p,\n y1 = node.y1 - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n if (node.children) {\n p = paddingStack[node.depth + 1] = paddingInner(node) / 2;\n x0 += paddingLeft(node) - p;\n y0 += paddingTop(node) - p;\n x1 -= paddingRight(node) - p;\n y1 -= paddingBottom(node) - p;\n if (x1 < x0) x0 = x1 = (x0 + x1) / 2;\n if (y1 < y0) y0 = y1 = (y0 + y1) / 2;\n tile(node, x0, y0, x1, y1);\n }\n }\n\n treemap.round = function(x) {\n return arguments.length ? (round = !!x, treemap) : round;\n };\n\n treemap.size = function(x) {\n return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];\n };\n\n treemap.tile = function(x) {\n return arguments.length ? (tile = required(x), treemap) : tile;\n };\n\n treemap.padding = function(x) {\n return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();\n };\n\n treemap.paddingInner = function(x) {\n return arguments.length ? (paddingInner = typeof x === \"function\" ? x : constant(+x), treemap) : paddingInner;\n };\n\n treemap.paddingOuter = function(x) {\n return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();\n };\n\n treemap.paddingTop = function(x) {\n return arguments.length ? (paddingTop = typeof x === \"function\" ? x : constant(+x), treemap) : paddingTop;\n };\n\n treemap.paddingRight = function(x) {\n return arguments.length ? (paddingRight = typeof x === \"function\" ? x : constant(+x), treemap) : paddingRight;\n };\n\n treemap.paddingBottom = function(x) {\n return arguments.length ? (paddingBottom = typeof x === \"function\" ? x : constant(+x), treemap) : paddingBottom;\n };\n\n treemap.paddingLeft = function(x) {\n return arguments.length ? (paddingLeft = typeof x === \"function\" ? x : constant(+x), treemap) : paddingLeft;\n };\n\n return treemap;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/binary.js", - "name": "./node_modules/d3-hierarchy/src/treemap/binary.js", - "index": 327, - "index2": 323, - "size": 1266, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/binary.js", - "loc": "10:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/binary.js", - "loc": "10:0-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(parent, x0, y0, x1, y1) {\n var nodes = parent.children,\n i, n = nodes.length,\n sum, sums = new Array(n + 1);\n\n for (sums[0] = sum = i = 0; i < n; ++i) {\n sums[i + 1] = sum += nodes[i].value;\n }\n\n partition(0, n, parent.value, x0, y0, x1, y1);\n\n function partition(i, j, value, x0, y0, x1, y1) {\n if (i >= j - 1) {\n var node = nodes[i];\n node.x0 = x0, node.y0 = y0;\n node.x1 = x1, node.y1 = y1;\n return;\n }\n\n var valueOffset = sums[i],\n valueTarget = (value / 2) + valueOffset,\n k = i + 1,\n hi = j - 1;\n\n while (k < hi) {\n var mid = k + hi >>> 1;\n if (sums[mid] < valueTarget) k = mid + 1;\n else hi = mid;\n }\n\n if ((valueTarget - sums[k - 1]) < (sums[k] - valueTarget) && i + 1 < k) --k;\n\n var valueLeft = sums[k] - valueOffset,\n valueRight = value - valueLeft;\n\n if ((x1 - x0) > (y1 - y0)) {\n var xk = (x0 * valueRight + x1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, xk, y1);\n partition(k, j, valueRight, xk, y0, x1, y1);\n } else {\n var yk = (y0 * valueRight + y1 * valueLeft) / value;\n partition(i, k, valueLeft, x0, y0, x1, yk);\n partition(k, j, valueRight, x0, yk, x1, y1);\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "name": "./node_modules/d3-hierarchy/src/treemap/sliceDice.js", - "index": 328, - "index2": 324, - "size": 176, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/sliceDice.js", - "loc": "13:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/sliceDice.js", - "loc": "13:0-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import dice from \"./dice.js\";\nimport slice from \"./slice.js\";\n\nexport default function(parent, x0, y0, x1, y1) {\n (parent.depth & 1 ? slice : dice)(parent, x0, y0, x1, y1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/resquarify.js", - "name": "./node_modules/d3-hierarchy/src/treemap/resquarify.js", - "index": 329, - "index2": 325, - "size": 1038, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/resquarify.js", - "loc": "15:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "module": "./node_modules/d3-hierarchy/src/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./treemap/resquarify.js", - "loc": "15:0-69" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import treemapDice from \"./dice.js\";\nimport treemapSlice from \"./slice.js\";\nimport {phi, squarifyRatio} from \"./squarify.js\";\n\nexport default (function custom(ratio) {\n\n function resquarify(parent, x0, y0, x1, y1) {\n if ((rows = parent._squarify) && (rows.ratio === ratio)) {\n var rows,\n row,\n nodes,\n i,\n j = -1,\n n,\n m = rows.length,\n value = parent.value;\n\n while (++j < m) {\n row = rows[j], nodes = row.children;\n for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;\n if (row.dice) treemapDice(row, x0, y0, x1, y0 += (y1 - y0) * row.value / value);\n else treemapSlice(row, x0, y0, x0 += (x1 - x0) * row.value / value, y1);\n value -= row.value;\n }\n } else {\n parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);\n rows.ratio = ratio;\n }\n }\n\n resquarify.ratio = function(x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return resquarify;\n})(phi);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/discrete.js", - "name": "./node_modules/d3-interpolate/src/discrete.js", - "index": 331, - "index2": 327, - "size": 154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./discrete.js", - "loc": "6:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./discrete.js", - "loc": "6:0-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "name": "./node_modules/d3-interpolate/src/hue.js", - "index": 332, - "index2": 328, - "size": 178, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hue.js", - "loc": "7:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hue.js", - "loc": "7:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hue} from \"./color.js\";\n\nexport default function(a, b) {\n var i = hue(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/round.js", - "name": "./node_modules/d3-interpolate/src/round.js", - "index": 333, - "index2": 329, - "size": 122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./round.js", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./round.js", - "loc": "11:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "101:48-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/zoom.js", - "name": "./node_modules/d3-interpolate/src/zoom.js", - "index": 334, - "index2": 330, - "size": 1387, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zoom.js", - "loc": "14:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zoom.js", - "loc": "14:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "61:20-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var rho = Math.SQRT2,\n rho2 = 2,\n rho4 = 4,\n epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\n// p0 = [ux0, uy0, w0]\n// p1 = [ux1, uy1, w1]\nexport default function(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "name": "./node_modules/d3-interpolate/src/hsl.js", - "index": 335, - "index2": 331, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hsl.js", - "loc": "16:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hsl.js", - "loc": "16:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hsl.js", - "loc": "16:0-82" - } - ], - "usedExports": [ - "default", - "hslLong" - ], - "providedExports": [ - "default", - "hslLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hsl as colorHsl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hsl(hue);\nexport var hslLong = hsl(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "name": "./node_modules/d3-interpolate/src/lab.js", - "index": 336, - "index2": 332, - "size": 450, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lab.js", - "loc": "17:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lab.js", - "loc": "17:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {lab as colorLab} from \"d3-color\";\nimport color from \"./color.js\";\n\nexport default function lab(start, end) {\n var l = color((start = colorLab(start)).l, (end = colorLab(end)).l),\n a = color(start.a, end.a),\n b = color(start.b, end.b),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "name": "./node_modules/d3-interpolate/src/hcl.js", - "index": 337, - "index2": 333, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hcl.js", - "loc": "18:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hcl.js", - "loc": "18:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hcl.js", - "loc": "18:0-82" - } - ], - "usedExports": [ - "default", - "hclLong" - ], - "providedExports": [ - "default", - "hclLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {hcl as colorHcl} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h),\n c = color(start.c, end.c),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nexport default hcl(hue);\nexport var hclLong = hcl(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "name": "./node_modules/d3-interpolate/src/cubehelix.js", - "index": 338, - "index2": 334, - "size": 763, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:15-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "4:18-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-interpolate", - "loc": "6:18-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./cubehelix.js", - "loc": "19:0-106" - } - ], - "usedExports": [ - "cubehelixLong", - "default" - ], - "providedExports": [ - "default", - "cubehelixLong" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix as colorCubehelix} from \"d3-color\";\nimport color, {hue} from \"./color.js\";\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h),\n s = color(start.s, end.s),\n l = color(start.l, end.l),\n opacity = color(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nexport default cubehelix(hue);\nexport var cubehelixLong = cubehelix(color);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/piecewise.js", - "name": "./node_modules/d3-interpolate/src/piecewise.js", - "index": 339, - "index2": 335, - "size": 310, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./piecewise.js", - "loc": "20:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./piecewise.js", - "loc": "20:0-52" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function piecewise(interpolate, values) {\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/quantize.js", - "name": "./node_modules/d3-interpolate/src/quantize.js", - "index": 340, - "index2": 336, - "size": 163, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantize.js", - "loc": "21:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "module": "./node_modules/d3-interpolate/src/index.js", - "moduleName": "./node_modules/d3-interpolate/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantize.js", - "loc": "21:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/area.js", - "name": "./node_modules/d3-polygon/src/area.js", - "index": 343, - "index2": 339, - "size": 243, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "1:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "1:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n a,\n b = polygon[n - 1],\n area = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n area += a[1] * b[0] - a[0] * b[1];\n }\n\n return area / 2;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/centroid.js", - "name": "./node_modules/d3-polygon/src/centroid.js", - "index": 344, - "index2": 340, - "size": 346, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./centroid.js", - "loc": "2:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n x = 0,\n y = 0,\n a,\n b = polygon[n - 1],\n c,\n k = 0;\n\n while (++i < n) {\n a = b;\n b = polygon[i];\n k += c = a[0] * b[1] - b[0] * a[1];\n x += (a[0] + b[0]) * c;\n y += (a[1] + b[1]) * c;\n }\n\n return k *= 3, [x / k, y / k];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "name": "./node_modules/d3-polygon/src/hull.js", - "index": 345, - "index2": 342, - "size": 1713, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hull.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hull.js", - "loc": "3:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import cross from \"./cross.js\";\n\nfunction lexicographicOrder(a, b) {\n return a[0] - b[0] || a[1] - b[1];\n}\n\n// Computes the upper convex hull per the monotone chain algorithm.\n// Assumes points.length >= 3, is sorted by x, unique in y.\n// Returns an array of indices into points in left-to-right order.\nfunction computeUpperHullIndexes(points) {\n var n = points.length,\n indexes = [0, 1],\n size = 2;\n\n for (var i = 2; i < n; ++i) {\n while (size > 1 && cross(points[indexes[size - 2]], points[indexes[size - 1]], points[i]) <= 0) --size;\n indexes[size++] = i;\n }\n\n return indexes.slice(0, size); // remove popped points\n}\n\nexport default function(points) {\n if ((n = points.length) < 3) return null;\n\n var i,\n n,\n sortedPoints = new Array(n),\n flippedPoints = new Array(n);\n\n for (i = 0; i < n; ++i) sortedPoints[i] = [+points[i][0], +points[i][1], i];\n sortedPoints.sort(lexicographicOrder);\n for (i = 0; i < n; ++i) flippedPoints[i] = [sortedPoints[i][0], -sortedPoints[i][1]];\n\n var upperIndexes = computeUpperHullIndexes(sortedPoints),\n lowerIndexes = computeUpperHullIndexes(flippedPoints);\n\n // Construct the hull polygon, removing possible duplicate endpoints.\n var skipLeft = lowerIndexes[0] === upperIndexes[0],\n skipRight = lowerIndexes[lowerIndexes.length - 1] === upperIndexes[upperIndexes.length - 1],\n hull = [];\n\n // Add upper hull in right-to-l order.\n // Then add lower hull in left-to-right order.\n for (i = upperIndexes.length - 1; i >= 0; --i) hull.push(points[sortedPoints[upperIndexes[i]][2]]);\n for (i = +skipLeft; i < lowerIndexes.length - skipRight; ++i) hull.push(points[sortedPoints[lowerIndexes[i]][2]]);\n\n return hull;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/contains.js", - "name": "./node_modules/d3-polygon/src/contains.js", - "index": 347, - "index2": 343, - "size": 411, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains.js", - "loc": "4:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./contains.js", - "loc": "4:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon, point) {\n var n = polygon.length,\n p = polygon[n - 1],\n x = point[0], y = point[1],\n x0 = p[0], y0 = p[1],\n x1, y1,\n inside = false;\n\n for (var i = 0; i < n; ++i) {\n p = polygon[i], x1 = p[0], y1 = p[1];\n if (((y1 > y) !== (y0 > y)) && (x < (x0 - x1) * (y - y1) / (y0 - y1) + x1)) inside = !inside;\n x0 = x1, y0 = y1;\n }\n\n return inside;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/length.js", - "name": "./node_modules/d3-polygon/src/length.js", - "index": 348, - "index2": 344, - "size": 375, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 765, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./length.js", - "loc": "5:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "module": "./node_modules/d3-polygon/src/index.js", - "moduleName": "./node_modules/d3-polygon/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./length.js", - "loc": "5:0-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(polygon) {\n var i = -1,\n n = polygon.length,\n b = polygon[n - 1],\n xa,\n ya,\n xb = b[0],\n yb = b[1],\n perimeter = 0;\n\n while (++i < n) {\n xa = xb;\n ya = yb;\n b = polygon[i];\n xb = b[0];\n yb = b[1];\n xa -= xb;\n ya -= yb;\n perimeter += Math.sqrt(xa * xa + ya * ya);\n }\n\n return perimeter;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "name": "./node_modules/d3-random/src/uniform.js", - "index": 351, - "index2": 348, - "size": 440, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./uniform", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./uniform", - "loc": "1:0-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomUniform(source) {\n function randomUniform(min, max) {\n min = min == null ? 0 : +min;\n max = max == null ? 1 : +max;\n if (arguments.length === 1) max = min, min = 0;\n else max -= min;\n return function() {\n return source() * max + min;\n };\n }\n\n randomUniform.source = sourceRandomUniform;\n\n return randomUniform;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "name": "./node_modules/d3-random/src/normal.js", - "index": 353, - "index2": 349, - "size": 713, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./normal", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./normal", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony side effect evaluation", - "userRequest": "./normal", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony import specifier", - "userRequest": "./normal", - "loc": "6:23-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomNormal(source) {\n function randomNormal(mu, sigma) {\n var x, r;\n mu = mu == null ? 0 : +mu;\n sigma = sigma == null ? 1 : +sigma;\n return function() {\n var y;\n\n // If available, use the second previously-generated uniform random.\n if (x != null) y = x, x = null;\n\n // Otherwise, generate a new x and y.\n else do {\n x = source() * 2 - 1;\n y = source() * 2 - 1;\n r = x * x + y * y;\n } while (!r || r > 1);\n\n return mu + sigma * y * Math.sqrt(-2 * Math.log(r) / r);\n };\n }\n\n randomNormal.source = sourceRandomNormal;\n\n return randomNormal;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "name": "./node_modules/d3-random/src/logNormal.js", - "index": 354, - "index2": 350, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./logNormal", - "loc": "3:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./logNormal", - "loc": "3:0-55" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\nimport normal from \"./normal\";\n\nexport default (function sourceRandomLogNormal(source) {\n function randomLogNormal() {\n var randomNormal = normal.source(source).apply(this, arguments);\n return function() {\n return Math.exp(randomNormal());\n };\n }\n\n randomLogNormal.source = sourceRandomLogNormal;\n\n return randomLogNormal;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "name": "./node_modules/d3-random/src/irwinHall.js", - "index": 356, - "index2": 351, - "size": 345, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony side effect evaluation", - "userRequest": "./irwinHall", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./irwinHall", - "loc": "5:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./irwinHall", - "loc": "5:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony import specifier", - "userRequest": "./irwinHall", - "loc": "6:26-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomIrwinHall(source) {\n function randomIrwinHall(n) {\n return function() {\n for (var sum = 0, i = 0; i < n; ++i) sum += source();\n return sum;\n };\n }\n\n randomIrwinHall.source = sourceRandomIrwinHall;\n\n return randomIrwinHall;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "name": "./node_modules/d3-random/src/bates.js", - "index": 355, - "index2": 352, - "size": 375, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bates", - "loc": "4:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./bates", - "loc": "4:0-47" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\nimport irwinHall from \"./irwinHall\";\n\nexport default (function sourceRandomBates(source) {\n function randomBates(n) {\n var randomIrwinHall = irwinHall.source(source)(n);\n return function() {\n return randomIrwinHall() / n;\n };\n }\n\n randomBates.source = sourceRandomBates;\n\n return randomBates;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "name": "./node_modules/d3-random/src/exponential.js", - "index": 357, - "index2": 353, - "size": 329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponential", - "loc": "6:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "module": "./node_modules/d3-random/src/index.js", - "moduleName": "./node_modules/d3-random/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./exponential", - "loc": "6:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import defaultSource from \"./defaultSource\";\n\nexport default (function sourceRandomExponential(source) {\n function randomExponential(lambda) {\n return function() {\n return -Math.log(1 - source()) / lambda;\n };\n }\n\n randomExponential.source = sourceRandomExponential;\n\n return randomExponential;\n})(defaultSource);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "name": "./node_modules/d3-scale/src/ordinal.js", - "index": 361, - "index2": 357, - "size": 1108, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/band.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "./ordinal", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "./ordinal", - "loc": "6:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./ordinal", - "loc": "22:0-25:19" - } - ], - "usedExports": [ - "default", - "implicit" - ], - "providedExports": [ - "implicit", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"d3-collection\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport var implicit = {name: \"implicit\"};\n\nexport default function ordinal() {\n var index = map(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n var key = d + \"\", i = index.get(key);\n if (!i) {\n if (unknown !== implicit) return unknown;\n index.set(key, i = domain.push(d));\n }\n return range[(i - 1) % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = map();\n var i = -1, n = _.length, d, key;\n while (++i < n) if (!index.has(key = (d = _[i]) + \"\")) index.set(key, domain.push(d));\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "index": 359, - "index2": 358, - "size": 2637, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./band", - "loc": "1:0-4:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./band", - "loc": "1:0-4:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./band", - "loc": "1:0-4:16" - } - ], - "usedExports": [ - "default", - "point" - ], - "providedExports": [ - "default", - "point" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {range as sequence} from \"d3-array\";\nimport {initRange} from \"./init\";\nimport ordinal from \"./ordinal\";\n\nexport default function band() {\n var scale = ordinal().unknown(undefined),\n domain = scale.domain,\n ordinalRange = scale.range,\n range = [0, 1],\n step,\n bandwidth,\n round = false,\n paddingInner = 0,\n paddingOuter = 0,\n align = 0.5;\n\n delete scale.unknown;\n\n function rescale() {\n var n = domain().length,\n reverse = range[1] < range[0],\n start = range[reverse - 0],\n stop = range[1 - reverse];\n step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);\n if (round) step = Math.floor(step);\n start += (stop - start - step * (n - paddingInner)) * align;\n bandwidth = step * (1 - paddingInner);\n if (round) start = Math.round(start), bandwidth = Math.round(bandwidth);\n var values = sequence(n).map(function(i) { return start + step * i; });\n return ordinalRange(reverse ? values.reverse() : values);\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = [+_[0], +_[1]], round = true, rescale();\n };\n\n scale.bandwidth = function() {\n return bandwidth;\n };\n\n scale.step = function() {\n return step;\n };\n\n scale.round = function(_) {\n return arguments.length ? (round = !!_, rescale()) : round;\n };\n\n scale.padding = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;\n };\n\n scale.paddingInner = function(_) {\n return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner;\n };\n\n scale.paddingOuter = function(_) {\n return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter;\n };\n\n scale.align = function(_) {\n return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;\n };\n\n scale.copy = function() {\n return band(domain(), range)\n .round(round)\n .paddingInner(paddingInner)\n .paddingOuter(paddingOuter)\n .align(align);\n };\n\n return initRange.apply(rescale(), arguments);\n}\n\nfunction pointish(scale) {\n var copy = scale.copy;\n\n scale.padding = scale.paddingOuter;\n delete scale.paddingInner;\n delete scale.paddingOuter;\n\n scale.copy = function() {\n return pointish(copy());\n };\n\n return scale;\n}\n\nexport function point() {\n return pointish(band.apply(null, arguments).paddingInner(1));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/tickFormat.js", - "name": "./node_modules/d3-scale/src/tickFormat.js", - "index": 368, - "index2": 362, - "size": 1122, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./tickFormat", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./tickFormat", - "loc": "16:11-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tickFormat", - "loc": "72:0-74:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./tickFormat", - "loc": "72:0-74:22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {tickStep} from \"d3-array\";\nimport {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from \"d3-format\";\n\nexport default function(start, stop, count, specifier) {\n var step = tickStep(start, stop, count),\n precision;\n specifier = formatSpecifier(specifier == null ? \",f\" : specifier);\n switch (specifier.type) {\n case \"s\": {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;\n return formatPrefix(specifier, value);\n }\n case \"\":\n case \"e\":\n case \"g\":\n case \"p\":\n case \"r\": {\n if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === \"e\");\n break;\n }\n case \"f\":\n case \"%\": {\n if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === \"%\") * 2;\n break;\n }\n }\n return format(specifier);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "name": "./node_modules/d3-scale/src/linear.js", - "index": 364, - "index2": 363, - "size": 1757, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear", - "loc": "10:0-12:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./linear", - "loc": "10:0-12:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "24:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "28:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "33:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "50:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "54:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./linear", - "loc": "56:25-34" - } - ], - "usedExports": [ - "linearish", - "default" - ], - "providedExports": [ - "linearish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ticks, tickIncrement} from \"d3-array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport tickFormat from \"./tickFormat\";\n\nexport function linearish(scale) {\n var domain = scale.domain;\n\n scale.ticks = function(count) {\n var d = domain();\n return ticks(d[0], d[d.length - 1], count == null ? 10 : count);\n };\n\n scale.tickFormat = function(count, specifier) {\n var d = domain();\n return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);\n };\n\n scale.nice = function(count) {\n if (count == null) count = 10;\n\n var d = domain(),\n i0 = 0,\n i1 = d.length - 1,\n start = d[i0],\n stop = d[i1],\n step;\n\n if (stop < start) {\n step = start, start = stop, stop = step;\n step = i0, i0 = i1, i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n domain(d);\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n domain(d);\n }\n\n return scale;\n };\n\n return scale;\n}\n\nexport default function linear() {\n var scale = continuous(identity, identity);\n\n scale.copy = function() {\n return copy(scale, linear());\n };\n\n initRange.apply(scale, arguments);\n\n return linearish(scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "name": "./node_modules/d3-scale/src/identity.js", - "index": 363, - "index2": 364, - "size": 660, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "6:0-8:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./identity", - "loc": "6:0-8:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {map} from \"./array\";\nimport {linearish} from \"./linear\";\nimport number from \"./number\";\n\nexport default function identity(domain) {\n var unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : x;\n }\n\n scale.invert = scale;\n\n scale.domain = scale.range = function(_) {\n return arguments.length ? (domain = map.call(_, number), scale) : domain.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return identity(domain).unknown(unknown);\n };\n\n domain = arguments.length ? map.call(domain, number) : [0, 1];\n\n return linearish(scale);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "name": "./node_modules/d3-scale/src/log.js", - "index": 369, - "index2": 366, - "size": 3384, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./log", - "loc": "14:0-16:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./log", - "loc": "14:0-16:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./log", - "loc": "60:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./log", - "loc": "64:14-21" - } - ], - "usedExports": [ - "loggish", - "default" - ], - "providedExports": [ - "loggish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ticks} from \"d3-array\";\nimport {format} from \"d3-format\";\nimport nice from \"./nice\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformLog(x) {\n return Math.log(x);\n}\n\nfunction transformExp(x) {\n return Math.exp(x);\n}\n\nfunction transformLogn(x) {\n return -Math.log(-x);\n}\n\nfunction transformExpn(x) {\n return -Math.exp(-x);\n}\n\nfunction pow10(x) {\n return isFinite(x) ? +(\"1e\" + x) : x < 0 ? 0 : x;\n}\n\nfunction powp(base) {\n return base === 10 ? pow10\n : base === Math.E ? Math.exp\n : function(x) { return Math.pow(base, x); };\n}\n\nfunction logp(base) {\n return base === Math.E ? Math.log\n : base === 10 && Math.log10\n || base === 2 && Math.log2\n || (base = Math.log(base), function(x) { return Math.log(x) / base; });\n}\n\nfunction reflect(f) {\n return function(x) {\n return -f(-x);\n };\n}\n\nexport function loggish(transform) {\n var scale = transform(transformLog, transformExp),\n domain = scale.domain,\n base = 10,\n logs,\n pows;\n\n function rescale() {\n logs = logp(base), pows = powp(base);\n if (domain()[0] < 0) {\n logs = reflect(logs), pows = reflect(pows);\n transform(transformLogn, transformExpn);\n } else {\n transform(transformLog, transformExp);\n }\n return scale;\n }\n\n scale.base = function(_) {\n return arguments.length ? (base = +_, rescale()) : base;\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain(_), rescale()) : domain();\n };\n\n scale.ticks = function(count) {\n var d = domain(),\n u = d[0],\n v = d[d.length - 1],\n r;\n\n if (r = v < u) i = u, u = v, v = i;\n\n var i = logs(u),\n j = logs(v),\n p,\n k,\n t,\n n = count == null ? 10 : +count,\n z = [];\n\n if (!(base % 1) && j - i < n) {\n i = Math.round(i) - 1, j = Math.round(j) + 1;\n if (u > 0) for (; i < j; ++i) {\n for (k = 1, p = pows(i); k < base; ++k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n } else for (; i < j; ++i) {\n for (k = base - 1, p = pows(i); k >= 1; --k) {\n t = p * k;\n if (t < u) continue;\n if (t > v) break;\n z.push(t);\n }\n }\n } else {\n z = ticks(i, j, Math.min(j - i, n)).map(pows);\n }\n\n return r ? z.reverse() : z;\n };\n\n scale.tickFormat = function(count, specifier) {\n if (specifier == null) specifier = base === 10 ? \".0e\" : \",\";\n if (typeof specifier !== \"function\") specifier = format(specifier);\n if (count === Infinity) return specifier;\n if (count == null) count = 10;\n var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate?\n return function(d) {\n var i = d / pows(Math.round(logs(d)));\n if (i * base < base - 0.5) i *= base;\n return i <= k ? specifier(d) : \"\";\n };\n };\n\n scale.nice = function() {\n return domain(nice(domain(), {\n floor: function(x) { return pows(Math.floor(logs(x))); },\n ceil: function(x) { return pows(Math.ceil(logs(x))); }\n }));\n };\n\n return scale;\n}\n\nexport default function log() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, log()).base(scale.base());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "name": "./node_modules/d3-scale/src/symlog.js", - "index": 371, - "index2": 367, - "size": 839, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "5:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "6:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symlog", - "loc": "18:0-20:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symlog", - "loc": "18:0-20:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./symlog", - "loc": "70:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./symlog", - "loc": "74:14-23" - } - ], - "usedExports": [ - "symlogish", - "default" - ], - "providedExports": [ - "symlogish", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {linearish} from \"./linear\";\nimport {copy, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformSymlog(c) {\n return function(x) {\n return Math.sign(x) * Math.log1p(Math.abs(x / c));\n };\n}\n\nfunction transformSymexp(c) {\n return function(x) {\n return Math.sign(x) * Math.expm1(Math.abs(x)) * c;\n };\n}\n\nexport function symlogish(transform) {\n var c = 1, scale = transform(transformSymlog(c), transformSymexp(c));\n\n scale.constant = function(_) {\n return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c;\n };\n\n return linearish(scale);\n}\n\nexport default function symlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, symlog()).constant(scale.constant());\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "name": "./node_modules/d3-scale/src/pow.js", - "index": 372, - "index2": 368, - "size": 1174, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "7:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pow", - "loc": "27:0-30:15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./pow", - "loc": "80:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./pow", - "loc": "84:14-20" - } - ], - "usedExports": [ - "powish", - "default", - "sqrt" - ], - "providedExports": [ - "powish", - "default", - "sqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {linearish} from \"./linear\";\nimport {copy, identity, transformer} from \"./continuous\";\nimport {initRange} from \"./init\";\n\nfunction transformPow(exponent) {\n return function(x) {\n return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent);\n };\n}\n\nfunction transformSqrt(x) {\n return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x);\n}\n\nfunction transformSquare(x) {\n return x < 0 ? -x * x : x * x;\n}\n\nexport function powish(transform) {\n var scale = transform(identity, identity),\n exponent = 1;\n\n function rescale() {\n return exponent === 1 ? transform(identity, identity)\n : exponent === 0.5 ? transform(transformSqrt, transformSquare)\n : transform(transformPow(exponent), transformPow(1 / exponent));\n }\n\n scale.exponent = function(_) {\n return arguments.length ? (exponent = +_, rescale()) : exponent;\n };\n\n return linearish(scale);\n}\n\nexport default function pow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, pow()).exponent(scale.exponent());\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n\nexport function sqrt() {\n return pow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "name": "./node_modules/d3-scale/src/quantile.js", - "index": 373, - "index2": 369, - "size": 1489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantile", - "loc": "32:0-34:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantile", - "loc": "32:0-34:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ascending, bisect, quantile as threshold} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function quantile() {\n var domain = [],\n range = [],\n thresholds = [],\n unknown;\n\n function rescale() {\n var i = 0, n = Math.max(1, range.length);\n thresholds = new Array(n - 1);\n while (++i < n) thresholds[i - 1] = threshold(domain, i / n);\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : range[bisect(thresholds, x)];\n }\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN] : [\n i > 0 ? thresholds[i - 1] : domain[0],\n i < thresholds.length ? thresholds[i] : domain[domain.length - 1]\n ];\n };\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return rescale();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.quantiles = function() {\n return thresholds.slice();\n };\n\n scale.copy = function() {\n return quantile()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "name": "./node_modules/d3-scale/src/quantize.js", - "index": 374, - "index2": 370, - "size": 1341, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./quantize", - "loc": "36:0-38:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./quantize", - "loc": "36:0-38:20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {linearish} from \"./linear\";\nimport {initRange} from \"./init\";\n\nexport default function quantize() {\n var x0 = 0,\n x1 = 1,\n n = 1,\n domain = [0.5],\n range = [0, 1],\n unknown;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n function rescale() {\n var i = -1;\n domain = new Array(n);\n while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1);\n return scale;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1];\n };\n\n scale.range = function(_) {\n return arguments.length ? (n = (range = slice.call(_)).length - 1, rescale()) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return i < 0 ? [NaN, NaN]\n : i < 1 ? [x0, domain[0]]\n : i >= n ? [domain[n - 1], x1]\n : [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : scale;\n };\n\n scale.thresholds = function() {\n return domain.slice();\n };\n\n scale.copy = function() {\n return quantize()\n .domain([x0, x1])\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(linearish(scale), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "name": "./node_modules/d3-scale/src/threshold.js", - "index": 375, - "index2": 371, - "size": 1012, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./threshold", - "loc": "40:0-42:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./threshold", - "loc": "40:0-42:21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisect} from \"d3-array\";\nimport {slice} from \"./array\";\nimport {initRange} from \"./init\";\n\nexport default function threshold() {\n var domain = [0.5],\n range = [0, 1],\n unknown,\n n = 1;\n\n function scale(x) {\n return x <= x ? range[bisect(domain, x, 0, n)] : unknown;\n }\n\n scale.domain = function(_) {\n return arguments.length ? (domain = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice();\n };\n\n scale.invertExtent = function(y) {\n var i = range.indexOf(y);\n return [domain[i - 1], domain[i]];\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return threshold()\n .domain(domain)\n .range(range)\n .unknown(unknown);\n };\n\n return initRange.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/interval.js", - "name": "./node_modules/d3-time/src/interval.js", - "index": 378, - "index2": 372, - "size": 2164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-3:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interval.js", - "loc": "1:0-3:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "module": "./node_modules/d3-time/src/utcMonth.js", - "moduleName": "./node_modules/d3-time/src/utcMonth.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "module": "./node_modules/d3-time/src/month.js", - "moduleName": "./node_modules/d3-time/src/month.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "module": "./node_modules/d3-time/src/month.js", - "moduleName": "./node_modules/d3-time/src/month.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "module": "./node_modules/d3-time/src/utcMonth.js", - "moduleName": "./node_modules/d3-time/src/utcMonth.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "3:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:14-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "4:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "5:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "5:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "module": "./node_modules/d3-time/src/millisecond.js", - "moduleName": "./node_modules/d3-time/src/millisecond.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:9-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "module": "./node_modules/d3-time/src/utcYear.js", - "moduleName": "./node_modules/d3-time/src/utcYear.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:59-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "module": "./node_modules/d3-time/src/year.js", - "moduleName": "./node_modules/d3-time/src/year.js", - "type": "harmony import specifier", - "userRequest": "./interval.js", - "loc": "16:59-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var t0 = new Date,\n t1 = new Date;\n\nexport default function newInterval(floori, offseti, count, field) {\n\n function interval(date) {\n return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;\n }\n\n interval.floor = function(date) {\n return floori(date = new Date(+date)), date;\n };\n\n interval.ceil = function(date) {\n return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;\n };\n\n interval.round = function(date) {\n var d0 = interval(date),\n d1 = interval.ceil(date);\n return date - d0 < d1 - date ? d0 : d1;\n };\n\n interval.offset = function(date, step) {\n return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;\n };\n\n interval.range = function(start, stop, step) {\n var range = [], previous;\n start = interval.ceil(start);\n step = step == null ? 1 : Math.floor(step);\n if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date\n do range.push(previous = new Date(+start)), offseti(start, step), floori(start);\n while (previous < start && start < stop);\n return range;\n };\n\n interval.filter = function(test) {\n return newInterval(function(date) {\n if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);\n }, function(date, step) {\n if (date >= date) {\n if (step < 0) while (++step <= 0) {\n while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty\n } else while (--step >= 0) {\n while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty\n }\n }\n });\n };\n\n if (count) {\n interval.count = function(start, end) {\n t0.setTime(+start), t1.setTime(+end);\n floori(t0), floori(t1);\n return Math.floor(count(t0, t1));\n };\n\n interval.every = function(step) {\n step = Math.floor(step);\n return !isFinite(step) || !(step > 0) ? null\n : !(step > 1) ? interval\n : interval.filter(field\n ? function(d) { return field(d) % step === 0; }\n : function(d) { return interval.count(0, d) % step === 0; });\n };\n }\n\n return interval;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/year.js", - "name": "./node_modules/d3-time/src/year.js", - "index": 377, - "index2": 373, - "size": 757, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./year.js", - "loc": "58:0-61:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:34-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "521:31-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "550:30-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:32-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:51-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "564:30-38" - } - ], - "usedExports": [ - "default", - "years" - ], - "providedExports": [ - "default", - "years" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar year = interval(function(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setFullYear(date.getFullYear() + step);\n}, function(start, end) {\n return end.getFullYear() - start.getFullYear();\n}, function(date) {\n return date.getFullYear();\n});\n\n// An optimized implementation for this simple case.\nyear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setFullYear(Math.floor(date.getFullYear() / k) * k);\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setFullYear(date.getFullYear() + step * k);\n });\n};\n\nexport default year;\nexport var years = year.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/month.js", - "name": "./node_modules/d3-time/src/month.js", - "index": 379, - "index2": 374, - "size": 417, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./month.js", - "loc": "53:0-56:20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:44-53" - } - ], - "usedExports": [ - "default", - "months" - ], - "providedExports": [ - "default", - "months" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar month = interval(function(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setMonth(date.getMonth() + step);\n}, function(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}, function(date) {\n return date.getMonth();\n});\n\nexport default month;\nexport var months = month.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "name": "./node_modules/d3-time/src/week.js", - "index": 380, - "index2": 376, - "size": 969, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./week.js", - "loc": "34:0-51:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:55-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "225:40-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "225:64-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "550:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "555:32-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "555:50-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "556:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "564:13-23" - } - ], - "usedExports": [ - "monday", - "sunday", - "thursday", - "sundays", - "mondays", - "tuesday", - "tuesdays", - "wednesday", - "wednesdays", - "thursdays", - "friday", - "fridays", - "saturday", - "saturdays" - ], - "providedExports": [ - "sunday", - "monday", - "tuesday", - "wednesday", - "thursday", - "friday", - "saturday", - "sundays", - "mondays", - "tuesdays", - "wednesdays", - "thursdays", - "fridays", - "saturdays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute, durationWeek} from \"./duration.js\";\n\nfunction weekday(i) {\n return interval(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;\n });\n}\n\nexport var sunday = weekday(0);\nexport var monday = weekday(1);\nexport var tuesday = weekday(2);\nexport var wednesday = weekday(3);\nexport var thursday = weekday(4);\nexport var friday = weekday(5);\nexport var saturday = weekday(6);\n\nexport var sundays = sunday.range;\nexport var mondays = monday.range;\nexport var tuesdays = tuesday.range;\nexport var wednesdays = wednesday.range;\nexport var thursdays = thursday.range;\nexport var fridays = friday.range;\nexport var saturdays = saturday.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "name": "./node_modules/d3-time/src/day.js", - "index": 382, - "index2": 377, - "size": 468, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./day.js", - "loc": "29:0-32:18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:65-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "226:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "521:17-24" - } - ], - "usedExports": [ - "default", - "days" - ], - "providedExports": [ - "default", - "days" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationDay, durationMinute} from \"./duration.js\";\n\nvar day = interval(function(date) {\n date.setHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setDate(date.getDate() + step);\n}, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay;\n}, function(date) {\n return date.getDate() - 1;\n});\n\nexport default day;\nexport var days = day.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "name": "./node_modules/d3-time/src/hour.js", - "index": 383, - "index2": 378, - "size": 512, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./hour.js", - "loc": "24:0-27:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:74-82" - } - ], - "usedExports": [ - "default", - "hours" - ], - "providedExports": [ - "default", - "hours" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationHour, durationMinute, durationSecond} from \"./duration.js\";\n\nvar hour = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getHours();\n});\n\nexport default hour;\nexport var hours = hour.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "name": "./node_modules/d3-time/src/minute.js", - "index": 384, - "index2": 379, - "size": 475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./minute.js", - "loc": "19:0-22:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:84-94" - } - ], - "usedExports": [ - "default", - "minutes" - ], - "providedExports": [ - "default", - "minutes" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute, durationSecond} from \"./duration.js\";\n\nvar minute = interval(function(date) {\n date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getMinutes();\n});\n\nexport default minute;\nexport var minutes = minute.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "name": "./node_modules/d3-time/src/second.js", - "index": 385, - "index2": 380, - "size": 425, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:90-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./second.js", - "loc": "12:0-17:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:96-106" - } - ], - "usedExports": [ - "default", - "seconds" - ], - "providedExports": [ - "default", - "seconds" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationSecond} from \"./duration.js\";\n\nvar second = interval(function(date) {\n date.setTime(date - date.getMilliseconds());\n}, function(date, step) {\n date.setTime(+date + step * durationSecond);\n}, function(start, end) {\n return (end - start) / durationSecond;\n}, function(date) {\n return date.getUTCSeconds();\n});\n\nexport default second;\nexport var seconds = second.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/millisecond.js", - "name": "./node_modules/d3-time/src/millisecond.js", - "index": 386, - "index2": 381, - "size": 671, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./millisecond.js", - "loc": "5:0-10:26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:101-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "134:108-123" - } - ], - "usedExports": [ - "default", - "milliseconds" - ], - "providedExports": [ - "default", - "milliseconds" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar millisecond = interval(function() {\n // noop\n}, function(date, step) {\n date.setTime(+date + step);\n}, function(start, end) {\n return end - start;\n});\n\n// An optimized implementation for this simple case.\nmillisecond.every = function(k) {\n k = Math.floor(k);\n if (!isFinite(k) || !(k > 0)) return null;\n if (!(k > 1)) return millisecond;\n return interval(function(date) {\n date.setTime(Math.floor(date / k) * k);\n }, function(date, step) {\n date.setTime(+date + step * k);\n }, function(start, end) {\n return (end - start) / k;\n });\n};\n\nexport default millisecond;\nexport var milliseconds = millisecond.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "name": "./node_modules/d3-time/src/utcWeek.js", - "index": 389, - "index2": 382, - "size": 985, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcWeek.js", - "loc": "78:0-95:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "218:40-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "218:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "624:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "629:32-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "629:49-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:13-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "638:13-22" - } - ], - "usedExports": [ - "utcSunday", - "utcMonday", - "utcThursday", - "utcSundays", - "utcMondays", - "utcTuesday", - "utcTuesdays", - "utcWednesday", - "utcWednesdays", - "utcThursdays", - "utcFriday", - "utcFridays", - "utcSaturday", - "utcSaturdays" - ], - "providedExports": [ - "utcSunday", - "utcMonday", - "utcTuesday", - "utcWednesday", - "utcThursday", - "utcFriday", - "utcSaturday", - "utcSundays", - "utcMondays", - "utcTuesdays", - "utcWednesdays", - "utcThursdays", - "utcFridays", - "utcSaturdays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationWeek} from \"./duration.js\";\n\nfunction utcWeekday(i) {\n return interval(function(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step * 7);\n }, function(start, end) {\n return (end - start) / durationWeek;\n });\n}\n\nexport var utcSunday = utcWeekday(0);\nexport var utcMonday = utcWeekday(1);\nexport var utcTuesday = utcWeekday(2);\nexport var utcWednesday = utcWeekday(3);\nexport var utcThursday = utcWeekday(4);\nexport var utcFriday = utcWeekday(5);\nexport var utcSaturday = utcWeekday(6);\n\nexport var utcSundays = utcSunday.range;\nexport var utcMondays = utcMonday.range;\nexport var utcTuesdays = utcTuesday.range;\nexport var utcWednesdays = utcWednesday.range;\nexport var utcThursdays = utcThursday.range;\nexport var utcFridays = utcFriday.range;\nexport var utcSaturdays = utcSaturday.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "name": "./node_modules/d3-time/src/utcDay.js", - "index": 390, - "index2": 383, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:62-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcDay.js", - "loc": "73:0-76:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "219:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "595:17-23" - } - ], - "usedExports": [ - "default", - "utcDays" - ], - "providedExports": [ - "default", - "utcDays" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationDay} from \"./duration.js\";\n\nvar utcDay = interval(function(date) {\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCDate(date.getUTCDate() + step);\n}, function(start, end) {\n return (end - start) / durationDay;\n}, function(date) {\n return date.getUTCDate() - 1;\n});\n\nexport default utcDay;\nexport var utcDays = utcDay.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcYear.js", - "name": "./node_modules/d3-time/src/utcYear.js", - "index": 391, - "index2": 384, - "size": 811, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcYear.js", - "loc": "102:0-105:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "595:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "624:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "630:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "module": "./node_modules/d3-time-format/src/locale.js", - "moduleName": "./node_modules/d3-time-format/src/locale.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "638:29-36" - } - ], - "usedExports": [ - "default", - "utcYears" - ], - "providedExports": [ - "default", - "utcYears" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar utcYear = interval(function(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step);\n}, function(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}, function(date) {\n return date.getUTCFullYear();\n});\n\n// An optimized implementation for this simple case.\nutcYear.every = function(k) {\n return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : interval(function(date) {\n date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setUTCFullYear(date.getUTCFullYear() + step * k);\n });\n};\n\nexport default utcYear;\nexport var utcYears = utcYear.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/locale.js", - "name": "./node_modules/d3-time-format/src/locale.js", - "index": 388, - "index2": 385, - "size": 17799, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/defaultLocale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "name": "./node_modules/d3-time-format/src/defaultLocale.js", - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 31, - "building": 51, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "module": "./node_modules/d3-time-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-time-format/src/defaultLocale.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./locale.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./locale.js", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "module": "./node_modules/d3-time-format/src/defaultLocale.js", - "moduleName": "./node_modules/d3-time-format/src/defaultLocale.js", - "type": "harmony import specifier", - "userRequest": "./locale.js", - "loc": "21:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {\n timeDay,\n timeSunday,\n timeMonday,\n timeThursday,\n timeYear,\n utcDay,\n utcSunday,\n utcMonday,\n utcThursday,\n utcYear\n} from \"d3-time\";\n\nfunction localDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (0 <= d.y && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n\nfunction newDate(y, m, d) {\n return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};\n}\n\nexport default function formatLocale(locale) {\n var locale_dateTime = locale.dateTime,\n locale_date = locale.date,\n locale_time = locale.time,\n locale_periods = locale.periods,\n locale_weekdays = locale.days,\n locale_shortWeekdays = locale.shortDays,\n locale_months = locale.months,\n locale_shortMonths = locale.shortMonths;\n\n var periodRe = formatRe(locale_periods),\n periodLookup = formatLookup(locale_periods),\n weekdayRe = formatRe(locale_weekdays),\n weekdayLookup = formatLookup(locale_weekdays),\n shortWeekdayRe = formatRe(locale_shortWeekdays),\n shortWeekdayLookup = formatLookup(locale_shortWeekdays),\n monthRe = formatRe(locale_months),\n monthLookup = formatLookup(locale_months),\n shortMonthRe = formatRe(locale_shortMonths),\n shortMonthLookup = formatLookup(locale_shortMonths);\n\n var formats = {\n \"a\": formatShortWeekday,\n \"A\": formatWeekday,\n \"b\": formatShortMonth,\n \"B\": formatMonth,\n \"c\": null,\n \"d\": formatDayOfMonth,\n \"e\": formatDayOfMonth,\n \"f\": formatMicroseconds,\n \"H\": formatHour24,\n \"I\": formatHour12,\n \"j\": formatDayOfYear,\n \"L\": formatMilliseconds,\n \"m\": formatMonthNumber,\n \"M\": formatMinutes,\n \"p\": formatPeriod,\n \"q\": formatQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatSeconds,\n \"u\": formatWeekdayNumberMonday,\n \"U\": formatWeekNumberSunday,\n \"V\": formatWeekNumberISO,\n \"w\": formatWeekdayNumberSunday,\n \"W\": formatWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatYear,\n \"Y\": formatFullYear,\n \"Z\": formatZone,\n \"%\": formatLiteralPercent\n };\n\n var utcFormats = {\n \"a\": formatUTCShortWeekday,\n \"A\": formatUTCWeekday,\n \"b\": formatUTCShortMonth,\n \"B\": formatUTCMonth,\n \"c\": null,\n \"d\": formatUTCDayOfMonth,\n \"e\": formatUTCDayOfMonth,\n \"f\": formatUTCMicroseconds,\n \"H\": formatUTCHour24,\n \"I\": formatUTCHour12,\n \"j\": formatUTCDayOfYear,\n \"L\": formatUTCMilliseconds,\n \"m\": formatUTCMonthNumber,\n \"M\": formatUTCMinutes,\n \"p\": formatUTCPeriod,\n \"q\": formatUTCQuarter,\n \"Q\": formatUnixTimestamp,\n \"s\": formatUnixTimestampSeconds,\n \"S\": formatUTCSeconds,\n \"u\": formatUTCWeekdayNumberMonday,\n \"U\": formatUTCWeekNumberSunday,\n \"V\": formatUTCWeekNumberISO,\n \"w\": formatUTCWeekdayNumberSunday,\n \"W\": formatUTCWeekNumberMonday,\n \"x\": null,\n \"X\": null,\n \"y\": formatUTCYear,\n \"Y\": formatUTCFullYear,\n \"Z\": formatUTCZone,\n \"%\": formatLiteralPercent\n };\n\n var parses = {\n \"a\": parseShortWeekday,\n \"A\": parseWeekday,\n \"b\": parseShortMonth,\n \"B\": parseMonth,\n \"c\": parseLocaleDateTime,\n \"d\": parseDayOfMonth,\n \"e\": parseDayOfMonth,\n \"f\": parseMicroseconds,\n \"H\": parseHour24,\n \"I\": parseHour24,\n \"j\": parseDayOfYear,\n \"L\": parseMilliseconds,\n \"m\": parseMonthNumber,\n \"M\": parseMinutes,\n \"p\": parsePeriod,\n \"q\": parseQuarter,\n \"Q\": parseUnixTimestamp,\n \"s\": parseUnixTimestampSeconds,\n \"S\": parseSeconds,\n \"u\": parseWeekdayNumberMonday,\n \"U\": parseWeekNumberSunday,\n \"V\": parseWeekNumberISO,\n \"w\": parseWeekdayNumberSunday,\n \"W\": parseWeekNumberMonday,\n \"x\": parseLocaleDate,\n \"X\": parseLocaleTime,\n \"y\": parseYear,\n \"Y\": parseFullYear,\n \"Z\": parseZone,\n \"%\": parseLiteralPercent\n };\n\n // These recursive directive definitions must be deferred.\n formats.x = newFormat(locale_date, formats);\n formats.X = newFormat(locale_time, formats);\n formats.c = newFormat(locale_dateTime, formats);\n utcFormats.x = newFormat(locale_date, utcFormats);\n utcFormats.X = newFormat(locale_time, utcFormats);\n utcFormats.c = newFormat(locale_dateTime, utcFormats);\n\n function newFormat(specifier, formats) {\n return function(date) {\n var string = [],\n i = -1,\n j = 0,\n n = specifier.length,\n c,\n pad,\n format;\n\n if (!(date instanceof Date)) date = new Date(+date);\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === 37) {\n string.push(specifier.slice(j, i));\n if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);\n else pad = c === \"e\" ? \" \" : \"0\";\n if (format = formats[c]) c = format(date, pad);\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join(\"\");\n };\n }\n\n function newParse(specifier, Z) {\n return function(string) {\n var d = newDate(1900, undefined, 1),\n i = parseSpecifier(d, specifier, string += \"\", 0),\n week, day;\n if (i != string.length) return null;\n\n // If a UNIX timestamp is specified, return it.\n if (\"Q\" in d) return new Date(d.Q);\n if (\"s\" in d) return new Date(d.s * 1000 + (\"L\" in d ? d.L : 0));\n\n // If this is utcParse, never use the local timezone.\n if (Z && !(\"Z\" in d)) d.Z = 0;\n\n // The am-pm flag is 0 for AM, and 1 for PM.\n if (\"p\" in d) d.H = d.H % 12 + d.p * 12;\n\n // If the month was not specified, inherit from the quarter.\n if (d.m === undefined) d.m = \"q\" in d ? d.q : 0;\n\n // Convert day-of-week and week-of-year to day-of-year.\n if (\"V\" in d) {\n if (d.V < 1 || d.V > 53) return null;\n if (!(\"w\" in d)) d.w = 1;\n if (\"Z\" in d) {\n week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n week = localDate(newDate(d.y, 0, 1)), day = week.getDay();\n week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);\n week = timeDay.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if (\"W\" in d || \"U\" in d) {\n if (!(\"w\" in d)) d.w = \"u\" in d ? d.u % 7 : \"W\" in d ? 1 : 0;\n day = \"Z\" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();\n d.m = 0;\n d.d = \"W\" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n }\n\n // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n if (\"Z\" in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n }\n\n // Otherwise, all fields are in local time.\n return localDate(d);\n };\n }\n\n function parseSpecifier(d, specifier, string, j) {\n var i = 0,\n n = specifier.length,\n m = string.length,\n c,\n parse;\n\n while (i < n) {\n if (j >= m) return -1;\n c = specifier.charCodeAt(i++);\n if (c === 37) {\n c = specifier.charAt(i++);\n parse = parses[c in pads ? specifier.charAt(i++) : c];\n if (!parse || ((j = parse(d, string, j)) < 0)) return -1;\n } else if (c != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, locale_dateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, locale_date, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, locale_time, string, i);\n }\n\n function formatShortWeekday(d) {\n return locale_shortWeekdays[d.getDay()];\n }\n\n function formatWeekday(d) {\n return locale_weekdays[d.getDay()];\n }\n\n function formatShortMonth(d) {\n return locale_shortMonths[d.getMonth()];\n }\n\n function formatMonth(d) {\n return locale_months[d.getMonth()];\n }\n\n function formatPeriod(d) {\n return locale_periods[+(d.getHours() >= 12)];\n }\n\n function formatQuarter(d) {\n return 1 + ~~(d.getMonth() / 3);\n }\n\n function formatUTCShortWeekday(d) {\n return locale_shortWeekdays[d.getUTCDay()];\n }\n\n function formatUTCWeekday(d) {\n return locale_weekdays[d.getUTCDay()];\n }\n\n function formatUTCShortMonth(d) {\n return locale_shortMonths[d.getUTCMonth()];\n }\n\n function formatUTCMonth(d) {\n return locale_months[d.getUTCMonth()];\n }\n\n function formatUTCPeriod(d) {\n return locale_periods[+(d.getUTCHours() >= 12)];\n }\n\n function formatUTCQuarter(d) {\n return 1 + ~~(d.getUTCMonth() / 3);\n }\n\n return {\n format: function(specifier) {\n var f = newFormat(specifier += \"\", formats);\n f.toString = function() { return specifier; };\n return f;\n },\n parse: function(specifier) {\n var p = newParse(specifier += \"\", false);\n p.toString = function() { return specifier; };\n return p;\n },\n utcFormat: function(specifier) {\n var f = newFormat(specifier += \"\", utcFormats);\n f.toString = function() { return specifier; };\n return f;\n },\n utcParse: function(specifier) {\n var p = newParse(specifier += \"\", true);\n p.toString = function() { return specifier; };\n return p;\n }\n };\n}\n\nvar pads = {\"-\": \"\", \"_\": \" \", \"0\": \"0\"},\n numberRe = /^\\s*\\d+/, // note: ignores next directive\n percentRe = /^%/,\n requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? \"-\" : \"\",\n string = (sign ? -value : value) + \"\",\n length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n\nfunction requote(s) {\n return s.replace(requoteRe, \"\\\\$&\");\n}\n\nfunction formatRe(names) {\n return new RegExp(\"^(?:\" + names.map(requote).join(\"|\") + \")\", \"i\");\n}\n\nfunction formatLookup(names) {\n var map = {}, i = -1, n = names.length;\n while (++i < n) map[names[i].toLowerCase()] = i;\n return map;\n}\n\nfunction parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n}\n\nfunction parseZone(d, string, i) {\n var n = /^(Z)|([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || \"00\")), i + n[0].length) : -1;\n}\n\nfunction parseQuarter(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;\n}\n\nfunction parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = n[0] - 1, i + n[0].length) : -1;\n}\n\nfunction parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1;\n}\n\nfunction parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n}\n\nfunction parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n}\n\nfunction parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.s = +n[0], i + n[0].length) : -1;\n}\n\nfunction formatDayOfMonth(d, p) {\n return pad(d.getDate(), p, 2);\n}\n\nfunction formatHour24(d, p) {\n return pad(d.getHours(), p, 2);\n}\n\nfunction formatHour12(d, p) {\n return pad(d.getHours() % 12 || 12, p, 2);\n}\n\nfunction formatDayOfYear(d, p) {\n return pad(1 + timeDay.count(timeYear(d), d), p, 3);\n}\n\nfunction formatMilliseconds(d, p) {\n return pad(d.getMilliseconds(), p, 3);\n}\n\nfunction formatMicroseconds(d, p) {\n return formatMilliseconds(d, p) + \"000\";\n}\n\nfunction formatMonthNumber(d, p) {\n return pad(d.getMonth() + 1, p, 2);\n}\n\nfunction formatMinutes(d, p) {\n return pad(d.getMinutes(), p, 2);\n}\n\nfunction formatSeconds(d, p) {\n return pad(d.getSeconds(), p, 2);\n}\n\nfunction formatWeekdayNumberMonday(d) {\n var day = d.getDay();\n return day === 0 ? 7 : day;\n}\n\nfunction formatWeekNumberSunday(d, p) {\n return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatWeekNumberISO(d, p) {\n var day = d.getDay();\n d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d);\n return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);\n}\n\nfunction formatWeekdayNumberSunday(d) {\n return d.getDay();\n}\n\nfunction formatWeekNumberMonday(d, p) {\n return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);\n}\n\nfunction formatYear(d, p) {\n return pad(d.getFullYear() % 100, p, 2);\n}\n\nfunction formatFullYear(d, p) {\n return pad(d.getFullYear() % 10000, p, 4);\n}\n\nfunction formatZone(d) {\n var z = d.getTimezoneOffset();\n return (z > 0 ? \"-\" : (z *= -1, \"+\"))\n + pad(z / 60 | 0, \"0\", 2)\n + pad(z % 60, \"0\", 2);\n}\n\nfunction formatUTCDayOfMonth(d, p) {\n return pad(d.getUTCDate(), p, 2);\n}\n\nfunction formatUTCHour24(d, p) {\n return pad(d.getUTCHours(), p, 2);\n}\n\nfunction formatUTCHour12(d, p) {\n return pad(d.getUTCHours() % 12 || 12, p, 2);\n}\n\nfunction formatUTCDayOfYear(d, p) {\n return pad(1 + utcDay.count(utcYear(d), d), p, 3);\n}\n\nfunction formatUTCMilliseconds(d, p) {\n return pad(d.getUTCMilliseconds(), p, 3);\n}\n\nfunction formatUTCMicroseconds(d, p) {\n return formatUTCMilliseconds(d, p) + \"000\";\n}\n\nfunction formatUTCMonthNumber(d, p) {\n return pad(d.getUTCMonth() + 1, p, 2);\n}\n\nfunction formatUTCMinutes(d, p) {\n return pad(d.getUTCMinutes(), p, 2);\n}\n\nfunction formatUTCSeconds(d, p) {\n return pad(d.getUTCSeconds(), p, 2);\n}\n\nfunction formatUTCWeekdayNumberMonday(d) {\n var dow = d.getUTCDay();\n return dow === 0 ? 7 : dow;\n}\n\nfunction formatUTCWeekNumberSunday(d, p) {\n return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCWeekNumberISO(d, p) {\n var day = d.getUTCDay();\n d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d);\n return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);\n}\n\nfunction formatUTCWeekdayNumberSunday(d) {\n return d.getUTCDay();\n}\n\nfunction formatUTCWeekNumberMonday(d, p) {\n return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);\n}\n\nfunction formatUTCYear(d, p) {\n return pad(d.getUTCFullYear() % 100, p, 2);\n}\n\nfunction formatUTCFullYear(d, p) {\n return pad(d.getUTCFullYear() % 10000, p, 4);\n}\n\nfunction formatUTCZone() {\n return \"+0000\";\n}\n\nfunction formatLiteralPercent() {\n return \"%\";\n}\n\nfunction formatUnixTimestamp(d) {\n return +d;\n}\n\nfunction formatUnixTimestampSeconds(d) {\n return Math.floor(+d / 1000);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/defaultLocale.js", - "name": "./node_modules/d3-time-format/src/defaultLocale.js", - "index": 387, - "index2": 386, - "size": 870, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./defaultLocale.js", - "loc": "1:0-114" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "module": "./node_modules/d3-time-format/src/isoFormat.js", - "moduleName": "./node_modules/d3-time-format/src/isoFormat.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultLocale.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time-format", - "loc": "7:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony import specifier", - "userRequest": "./defaultLocale.js", - "loc": "11:6-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "module": "./node_modules/d3-time-format/src/isoFormat.js", - "moduleName": "./node_modules/d3-time-format/src/isoFormat.js", - "type": "harmony import specifier", - "userRequest": "./defaultLocale.js", - "loc": "11:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time-format", - "loc": "134:125-135" - } - ], - "usedExports": [ - "utcFormat", - "timeFormat", - "default", - "timeParse", - "utcParse" - ], - "providedExports": [ - "timeFormat", - "timeParse", - "utcFormat", - "utcParse", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import formatLocale from \"./locale.js\";\n\nvar locale;\nexport var timeFormat;\nexport var timeParse;\nexport var utcFormat;\nexport var utcParse;\n\ndefaultLocale({\n dateTime: \"%x, %X\",\n date: \"%-m/%-d/%Y\",\n time: \"%-I:%M:%S %p\",\n periods: [\"AM\", \"PM\"],\n days: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n shortDays: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n months: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"],\n shortMonths: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\n});\n\nexport default function defaultLocale(definition) {\n locale = formatLocale(definition);\n timeFormat = locale.format;\n timeParse = locale.parse;\n utcFormat = locale.utcFormat;\n utcParse = locale.utcParse;\n return locale;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "name": "./node_modules/d3-scale/src/time.js", - "index": 376, - "index2": 387, - "size": 4524, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "./time", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "userRequest": "./time", - "loc": "7:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./time", - "loc": "44:0-46:16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./time", - "loc": "44:0-46:16" - } - ], - "usedExports": [ - "calendar", - "default" - ], - "providedExports": [ - "calendar", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {bisector, tickStep} from \"d3-array\";\nimport {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond} from \"d3-time\";\nimport {timeFormat} from \"d3-time-format\";\nimport {map} from \"./array\";\nimport continuous, {copy, identity} from \"./continuous\";\nimport {initRange} from \"./init\";\nimport nice from \"./nice\";\n\nvar durationSecond = 1000,\n durationMinute = durationSecond * 60,\n durationHour = durationMinute * 60,\n durationDay = durationHour * 24,\n durationWeek = durationDay * 7,\n durationMonth = durationDay * 30,\n durationYear = durationDay * 365;\n\nfunction date(t) {\n return new Date(t);\n}\n\nfunction number(t) {\n return t instanceof Date ? +t : +new Date(+t);\n}\n\nexport function calendar(year, month, week, day, hour, minute, second, millisecond, format) {\n var scale = continuous(identity, identity),\n invert = scale.invert,\n domain = scale.domain;\n\n var formatMillisecond = format(\".%L\"),\n formatSecond = format(\":%S\"),\n formatMinute = format(\"%I:%M\"),\n formatHour = format(\"%I %p\"),\n formatDay = format(\"%a %d\"),\n formatWeek = format(\"%b %d\"),\n formatMonth = format(\"%B\"),\n formatYear = format(\"%Y\");\n\n var tickIntervals = [\n [second, 1, durationSecond],\n [second, 5, 5 * durationSecond],\n [second, 15, 15 * durationSecond],\n [second, 30, 30 * durationSecond],\n [minute, 1, durationMinute],\n [minute, 5, 5 * durationMinute],\n [minute, 15, 15 * durationMinute],\n [minute, 30, 30 * durationMinute],\n [ hour, 1, durationHour ],\n [ hour, 3, 3 * durationHour ],\n [ hour, 6, 6 * durationHour ],\n [ hour, 12, 12 * durationHour ],\n [ day, 1, durationDay ],\n [ day, 2, 2 * durationDay ],\n [ week, 1, durationWeek ],\n [ month, 1, durationMonth ],\n [ month, 3, 3 * durationMonth ],\n [ year, 1, durationYear ]\n ];\n\n function tickFormat(date) {\n return (second(date) < date ? formatMillisecond\n : minute(date) < date ? formatSecond\n : hour(date) < date ? formatMinute\n : day(date) < date ? formatHour\n : month(date) < date ? (week(date) < date ? formatDay : formatWeek)\n : year(date) < date ? formatMonth\n : formatYear)(date);\n }\n\n function tickInterval(interval, start, stop, step) {\n if (interval == null) interval = 10;\n\n // If a desired tick count is specified, pick a reasonable tick interval\n // based on the extent of the domain and a rough estimate of tick size.\n // Otherwise, assume interval is already a time interval and use it.\n if (typeof interval === \"number\") {\n var target = Math.abs(stop - start) / interval,\n i = bisector(function(i) { return i[2]; }).right(tickIntervals, target);\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, interval);\n interval = year;\n } else if (i) {\n i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];\n step = i[1];\n interval = i[0];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = millisecond;\n }\n }\n\n return step == null ? interval : interval.every(step);\n }\n\n scale.invert = function(y) {\n return new Date(invert(y));\n };\n\n scale.domain = function(_) {\n return arguments.length ? domain(map.call(_, number)) : domain().map(date);\n };\n\n scale.ticks = function(interval, step) {\n var d = domain(),\n t0 = d[0],\n t1 = d[d.length - 1],\n r = t1 < t0,\n t;\n if (r) t = t0, t0 = t1, t1 = t;\n t = tickInterval(interval, t0, t1, step);\n t = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n return r ? t.reverse() : t;\n };\n\n scale.tickFormat = function(count, specifier) {\n return specifier == null ? tickFormat : format(specifier);\n };\n\n scale.nice = function(interval, step) {\n var d = domain();\n return (interval = tickInterval(interval, d[0], d[d.length - 1], step))\n ? domain(nice(d, interval))\n : scale;\n };\n\n scale.copy = function() {\n return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));\n };\n\n return scale;\n}\n\nexport default function() {\n return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMonth.js", - "name": "./node_modules/d3-time/src/utcMonth.js", - "index": 393, - "index2": 388, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:43-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMonth.js", - "loc": "97:0-100:23" - } - ], - "usedExports": [ - "default", - "utcMonths" - ], - "providedExports": [ - "default", - "utcMonths" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\n\nvar utcMonth = interval(function(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}, function(date, step) {\n date.setUTCMonth(date.getUTCMonth() + step);\n}, function(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}, function(date) {\n return date.getUTCMonth();\n});\n\nexport default utcMonth;\nexport var utcMonths = utcMonth.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "name": "./node_modules/d3-time/src/utcHour.js", - "index": 394, - "index2": 389, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:70-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcHour.js", - "loc": "68:0-71:22" - } - ], - "usedExports": [ - "default", - "utcHours" - ], - "providedExports": [ - "default", - "utcHours" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationHour} from \"./duration.js\";\n\nvar utcHour = interval(function(date) {\n date.setUTCMinutes(0, 0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationHour);\n}, function(start, end) {\n return (end - start) / durationHour;\n}, function(date) {\n return date.getUTCHours();\n});\n\nexport default utcHour;\nexport var utcHours = utcHour.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "name": "./node_modules/d3-time/src/utcMinute.js", - "index": 395, - "index2": 390, - "size": 418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "explanation": "(skipped side-effect-free modules)", - "userRequest": "d3-time", - "loc": "7:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "module": "./node_modules/d3-time/src/index.js", - "moduleName": "./node_modules/d3-time/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcMinute.js", - "loc": "63:0-66:24" - } - ], - "usedExports": [ - "default", - "utcMinutes" - ], - "providedExports": [ - "default", - "utcMinutes" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import interval from \"./interval.js\";\nimport {durationMinute} from \"./duration.js\";\n\nvar utcMinute = interval(function(date) {\n date.setUTCSeconds(0, 0);\n}, function(date, step) {\n date.setTime(+date + step * durationMinute);\n}, function(start, end) {\n return (end - start) / durationMinute;\n}, function(date) {\n return date.getUTCMinutes();\n});\n\nexport default utcMinute;\nexport var utcMinutes = utcMinute.range;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "name": "./node_modules/d3-scale/src/utcTime.js", - "index": 392, - "index2": 391, - "size": 441, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./utcTime", - "loc": "48:0-50:19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./utcTime", - "loc": "48:0-50:19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {calendar} from \"./time\";\nimport {utcFormat} from \"d3-time-format\";\nimport {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from \"d3-time\";\nimport {initRange} from \"./init\";\n\nexport default function() {\n return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "name": "./node_modules/d3-scale/src/sequential.js", - "index": 396, - "index2": 392, - "size": 2384, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential", - "loc": "52:0-58:22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "53:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "63:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "73:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./sequential", - "loc": "83:11-15" - } - ], - "usedExports": [ - "copy", - "default", - "sequentialLog", - "sequentialPow", - "sequentialSqrt", - "sequentialSymlog" - ], - "providedExports": [ - "copy", - "default", - "sequentialLog", - "sequentialSymlog", - "sequentialPow", - "sequentialSqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 1,\n t0,\n t1,\n k10,\n transform,\n interpolator = identity,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);\n return scale;\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .interpolator(source.interpolator())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport default function sequential() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, sequential());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialLog() {\n var scale = loggish(transformer()).domain([1, 10]);\n\n scale.copy = function() {\n return copy(scale, sequentialLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, sequentialPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function sequentialSqrt() {\n return sequentialPow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "name": "./node_modules/d3-scale/src/sequentialQuantile.js", - "index": 397, - "index2": 393, - "size": 862, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequentialQuantile", - "loc": "60:0-62:30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequentialQuantile", - "loc": "60:0-62:30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {ascending, bisect} from \"d3-array\";\nimport {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\n\nexport default function sequentialQuantile() {\n var domain = [],\n interpolator = identity;\n\n function scale(x) {\n if (!isNaN(x = +x)) return interpolator((bisect(domain, x) - 1) / (domain.length - 1));\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [];\n for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d);\n domain.sort(ascending);\n return scale;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.copy = function() {\n return sequentialQuantile(interpolator).domain(domain);\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "index": 398, - "index2": 394, - "size": 2394, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "module": "./node_modules/d3-scale/src/index.js", - "moduleName": "./node_modules/d3-scale/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging", - "loc": "64:0-70:21" - } - ], - "usedExports": [ - "default", - "divergingLog", - "divergingPow", - "divergingSqrt", - "divergingSymlog" - ], - "providedExports": [ - "default", - "divergingLog", - "divergingSymlog", - "divergingPow", - "divergingSqrt" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {identity} from \"./continuous\";\nimport {initInterpolator} from \"./init\";\nimport {linearish} from \"./linear\";\nimport {loggish} from \"./log\";\nimport {copy} from \"./sequential\";\nimport {symlogish} from \"./symlog\";\nimport {powish} from \"./pow\";\n\nfunction transformer() {\n var x0 = 0,\n x1 = 0.5,\n x2 = 1,\n t0,\n t1,\n t2,\n k10,\n k21,\n interpolator = identity,\n transform,\n clamp = false,\n unknown;\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (x < t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x));\n }\n\n scale.domain = function(_) {\n return arguments.length ? (t0 = transform(x0 = +_[0]), t1 = transform(x1 = +_[1]), t2 = transform(x2 = +_[2]), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), scale) : [x0, x1, x2];\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = !!_, scale) : clamp;\n };\n\n scale.interpolator = function(_) {\n return arguments.length ? (interpolator = _, scale) : interpolator;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t) {\n transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1);\n return scale;\n };\n}\n\nexport default function diverging() {\n var scale = linearish(transformer()(identity));\n\n scale.copy = function() {\n return copy(scale, diverging());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingLog() {\n var scale = loggish(transformer()).domain([0.1, 1, 10]);\n\n scale.copy = function() {\n return copy(scale, divergingLog()).base(scale.base());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSymlog() {\n var scale = symlogish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingSymlog()).constant(scale.constant());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingPow() {\n var scale = powish(transformer());\n\n scale.copy = function() {\n return copy(scale, divergingPow()).exponent(scale.exponent());\n };\n\n return initInterpolator.apply(scale, arguments);\n}\n\nexport function divergingSqrt() {\n return divergingPow.apply(null, arguments).exponent(0.5);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "index": 400, - "index2": 397, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/category10.js", - "loc": "1:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/category10.js", - "loc": "1:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "index": 402, - "index2": 398, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Accent.js", - "loc": "2:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Accent.js", - "loc": "2:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "index": 403, - "index2": 399, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Dark2.js", - "loc": "3:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Dark2.js", - "loc": "3:0-62" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "index": 404, - "index2": 400, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Paired.js", - "loc": "4:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Paired.js", - "loc": "4:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "index": 405, - "index2": 401, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Pastel1.js", - "loc": "5:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Pastel1.js", - "loc": "5:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "index": 406, - "index2": 402, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Pastel2.js", - "loc": "6:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Pastel2.js", - "loc": "6:0-66" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "index": 407, - "index2": 403, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set1.js", - "loc": "7:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set1.js", - "loc": "7:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "index": 408, - "index2": 404, - "size": 111, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set2.js", - "loc": "8:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set2.js", - "loc": "8:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "index": 409, - "index2": 405, - "size": 135, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Set3.js", - "loc": "9:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Set3.js", - "loc": "9:0-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "index": 410, - "index2": 406, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./categorical/Tableau10.js", - "loc": "10:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./categorical/Tableau10.js", - "loc": "10:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nexport default colors(\"4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab\");\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "index": 411, - "index2": 408, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/BrBG.js", - "loc": "11:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"d8b365f5f5f55ab4ac\",\n \"a6611adfc27d80cdc1018571\",\n \"a6611adfc27df5f5f580cdc1018571\",\n \"8c510ad8b365f6e8c3c7eae55ab4ac01665e\",\n \"8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e\",\n \"8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e\",\n \"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e\",\n \"5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30\",\n \"5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "index": 413, - "index2": 409, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PRGn.js", - "loc": "12:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"af8dc3f7f7f77fbf7b\",\n \"7b3294c2a5cfa6dba0008837\",\n \"7b3294c2a5cff7f7f7a6dba0008837\",\n \"762a83af8dc3e7d4e8d9f0d37fbf7b1b7837\",\n \"762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837\",\n \"762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837\",\n \"762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837\",\n \"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b\",\n \"40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "index": 414, - "index2": 410, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PiYG.js", - "loc": "13:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e9a3c9f7f7f7a1d76a\",\n \"d01c8bf1b6dab8e1864dac26\",\n \"d01c8bf1b6daf7f7f7b8e1864dac26\",\n \"c51b7de9a3c9fde0efe6f5d0a1d76a4d9221\",\n \"c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221\",\n \"c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221\",\n \"c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221\",\n \"8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419\",\n \"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "index": 415, - "index2": 411, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/PuOr.js", - "loc": "14:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"998ec3f7f7f7f1a340\",\n \"5e3c99b2abd2fdb863e66101\",\n \"5e3c99b2abd2f7f7f7fdb863e66101\",\n \"542788998ec3d8daebfee0b6f1a340b35806\",\n \"542788998ec3d8daebf7f7f7fee0b6f1a340b35806\",\n \"5427888073acb2abd2d8daebfee0b6fdb863e08214b35806\",\n \"5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806\",\n \"2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08\",\n \"2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "index": 416, - "index2": 412, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdBu.js", - "loc": "15:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62f7f7f767a9cf\",\n \"ca0020f4a58292c5de0571b0\",\n \"ca0020f4a582f7f7f792c5de0571b0\",\n \"b2182bef8a62fddbc7d1e5f067a9cf2166ac\",\n \"b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac\",\n \"b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac\",\n \"b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac\",\n \"67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061\",\n \"67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "index": 417, - "index2": 413, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdGy.js", - "loc": "16:0-85" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ef8a62ffffff999999\",\n \"ca0020f4a582bababa404040\",\n \"ca0020f4a582ffffffbababa404040\",\n \"b2182bef8a62fddbc7e0e0e09999994d4d4d\",\n \"b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d\",\n \"b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d\",\n \"b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d\",\n \"67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a\",\n \"67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "index": 418, - "index2": 414, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlBu.js", - "loc": "17:0-91" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91bfdb\",\n \"d7191cfdae61abd9e92c7bb6\",\n \"d7191cfdae61ffffbfabd9e92c7bb6\",\n \"d73027fc8d59fee090e0f3f891bfdb4575b4\",\n \"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4\",\n \"d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4\",\n \"d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4\",\n \"a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695\",\n \"a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "index": 419, - "index2": 415, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/RdYlGn.js", - "loc": "18:0-91" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf91cf60\",\n \"d7191cfdae61a6d96a1a9641\",\n \"d7191cfdae61ffffbfa6d96a1a9641\",\n \"d73027fc8d59fee08bd9ef8b91cf601a9850\",\n \"d73027fc8d59fee08bffffbfd9ef8b91cf601a9850\",\n \"d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850\",\n \"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850\",\n \"a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837\",\n \"a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "name": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "index": 420, - "index2": 416, - "size": 584, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./diverging/Spectral.js", - "loc": "19:0-97" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fc8d59ffffbf99d594\",\n \"d7191cfdae61abdda42b83ba\",\n \"d7191cfdae61ffffbfabdda42b83ba\",\n \"d53e4ffc8d59fee08be6f59899d5943288bd\",\n \"d53e4ffc8d59fee08bffffbfe6f59899d5943288bd\",\n \"d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd\",\n \"d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd\",\n \"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2\",\n \"9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "index": 421, - "index2": 417, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuGn.js", - "loc": "20:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5f999d8c92ca25f\",\n \"edf8fbb2e2e266c2a4238b45\",\n \"edf8fbb2e2e266c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a42ca25f006d2c\",\n \"edf8fbccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824\",\n \"f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "index": 422, - "index2": 418, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/BuPu.js", - "loc": "21:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0ecf49ebcda8856a7\",\n \"edf8fbb3cde38c96c688419d\",\n \"edf8fbb3cde38c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68856a7810f7c\",\n \"edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b\",\n \"f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "index": 423, - "index2": 419, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/GnBu.js", - "loc": "22:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e0f3dba8ddb543a2ca\",\n \"f0f9e8bae4bc7bccc42b8cbe\",\n \"f0f9e8bae4bc7bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc443a2ca0868ac\",\n \"f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e\",\n \"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "index": 424, - "index2": 420, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/OrRd.js", - "loc": "23:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee8c8fdbb84e34a33\",\n \"fef0d9fdcc8afc8d59d7301f\",\n \"fef0d9fdcc8afc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59e34a33b30000\",\n \"fef0d9fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000\",\n \"fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "index": 425, - "index2": 421, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBuGn.js", - "loc": "24:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece2f0a6bddb1c9099\",\n \"f6eff7bdc9e167a9cf02818a\",\n \"f6eff7bdc9e167a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf1c9099016c59\",\n \"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450\",\n \"fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "index": 426, - "index2": 422, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuBu.js", - "loc": "25:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ece7f2a6bddb2b8cbe\",\n \"f1eef6bdc9e174a9cf0570b0\",\n \"f1eef6bdc9e174a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d\",\n \"f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b\",\n \"fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "index": 427, - "index2": 423, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/PuRd.js", - "loc": "26:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e7e1efc994c7dd1c77\",\n \"f1eef6d7b5d8df65b0ce1256\",\n \"f1eef6d7b5d8df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0dd1c77980043\",\n \"f1eef6d4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f\",\n \"f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "index": 428, - "index2": 424, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/RdPu.js", - "loc": "27:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fde0ddfa9fb5c51b8a\",\n \"feebe2fbb4b9f768a1ae017e\",\n \"feebe2fbb4b9f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1c51b8a7a0177\",\n \"feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177\",\n \"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "index": 429, - "index2": 425, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGnBu.js", - "loc": "28:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"edf8b17fcdbb2c7fb8\",\n \"ffffcca1dab441b6c4225ea8\",\n \"ffffcca1dab441b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c42c7fb8253494\",\n \"ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84\",\n \"ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "index": 430, - "index2": 426, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlGn.js", - "loc": "29:0-92" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f7fcb9addd8e31a354\",\n \"ffffccc2e69978c679238443\",\n \"ffffccc2e69978c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67931a354006837\",\n \"ffffccd9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32\",\n \"ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "index": 431, - "index2": 427, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrBr.js", - "loc": "30:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fff7bcfec44fd95f0e\",\n \"ffffd4fed98efe9929cc4c02\",\n \"ffffd4fed98efe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929d95f0e993404\",\n \"ffffd4fee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04\",\n \"ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "index": 432, - "index2": 428, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/YlOrRd.js", - "loc": "31:0-98" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"ffeda0feb24cf03b20\",\n \"ffffb2fecc5cfd8d3ce31a1c\",\n \"ffffb2fecc5cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cf03b20bd0026\",\n \"ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026\",\n \"ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "index": 433, - "index2": 429, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Blues.js", - "loc": "32:0-96" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"deebf79ecae13182bd\",\n \"eff3ffbdd7e76baed62171b5\",\n \"eff3ffbdd7e76baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed63182bd08519c\",\n \"eff3ffc6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594\",\n \"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "index": 434, - "index2": 430, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greens.js", - "loc": "33:0-99" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"e5f5e0a1d99b31a354\",\n \"edf8e9bae4b374c476238b45\",\n \"edf8e9bae4b374c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47631a354006d2c\",\n \"edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32\",\n \"f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "index": 435, - "index2": 431, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Greys.js", - "loc": "34:0-96" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"f0f0f0bdbdbd636363\",\n \"f7f7f7cccccc969696525252\",\n \"f7f7f7cccccc969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696636363252525\",\n \"f7f7f7d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525\",\n \"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "index": 436, - "index2": 432, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Purples.js", - "loc": "35:0-102" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"efedf5bcbddc756bb1\",\n \"f2f0f7cbc9e29e9ac86a51a3\",\n \"f2f0f7cbc9e29e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8756bb154278f\",\n \"f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486\",\n \"fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "index": 437, - "index2": 433, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Reds.js", - "loc": "36:0-93" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee0d2fc9272de2d26\",\n \"fee5d9fcae91fb6a4acb181d\",\n \"fee5d9fcae91fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4ade2d26a50f15\",\n \"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d\",\n \"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "index": 438, - "index2": 434, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-single/Oranges.js", - "loc": "37:0-102" - } - ], - "usedExports": [ - "default", - "scheme" - ], - "providedExports": [ - "scheme", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\nimport ramp from \"../ramp.js\";\n\nexport var scheme = new Array(3).concat(\n \"fee6cefdae6be6550d\",\n \"feeddefdbe85fd8d3cd94701\",\n \"feeddefdbe85fd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3ce6550da63603\",\n \"feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04\",\n \"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704\"\n).map(colors);\n\nexport default ramp(scheme);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js", - "index": 439, - "index2": 435, - "size": 494, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/cividis.js", - "loc": "38:0-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/cividis.js", - "loc": "38:0-76" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(-4.54 - t * (35.34 - t * (2381.73 - t * (6402.7 - t * (7024.72 - t * 2710.57))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(32.49 + t * (170.73 + t * (52.82 - t * (131.46 - t * (176.58 - t * 67.37))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(81.24 + t * (442.36 - t * (2482.43 - t * (6167.24 - t * (6614.94 - t * 2475.67)))))))\n + \")\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js", - "index": 440, - "index2": 436, - "size": 188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/cubehelix.js", - "loc": "39:0-87" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/cubehelix.js", - "loc": "39:0-87" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport default interpolateCubehelixLong(cubehelix(300, 0.5, 0.0), cubehelix(-240, 0.5, 1.0));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js", - "index": 441, - "index2": 437, - "size": 506, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/rainbow.js", - "loc": "40:0-126" - } - ], - "usedExports": [ - "default", - "warm", - "cool" - ], - "providedExports": [ - "warm", - "cool", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {cubehelix} from \"d3-color\";\nimport {interpolateCubehelixLong} from \"d3-interpolate\";\n\nexport var warm = interpolateCubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nexport var cool = interpolateCubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.50, 0.8));\n\nvar c = cubehelix();\n\nexport default function(t) {\n if (t < 0 || t > 1) t -= Math.floor(t);\n var ts = Math.abs(t - 0.5);\n c.h = 360 * t - 100;\n c.s = 1.5 - 1.5 * ts;\n c.l = 0.8 - 0.9 * ts;\n return c + \"\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js", - "index": 442, - "index2": 438, - "size": 316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/sinebow.js", - "loc": "41:0-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/sinebow.js", - "loc": "41:0-76" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {rgb} from \"d3-color\";\n\nvar c = rgb(),\n pi_1_3 = Math.PI / 3,\n pi_2_3 = Math.PI * 2 / 3;\n\nexport default function(t) {\n var x;\n t = (0.5 - t) * Math.PI;\n c.r = 255 * (x = Math.sin(t)) * x;\n c.g = 255 * (x = Math.sin(t + pi_1_3)) * x;\n c.b = 255 * (x = Math.sin(t + pi_2_3)) * x;\n return c + \"\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js", - "index": 443, - "index2": 439, - "size": 505, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/turbo.js", - "loc": "42:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/turbo.js", - "loc": "42:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(t) {\n t = Math.max(0, Math.min(1, t));\n return \"rgb(\"\n + Math.max(0, Math.min(255, Math.round(34.61 + t * (1172.33 - t * (10793.56 - t * (33300.12 - t * (38394.49 - t * 14825.05))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(23.31 + t * (557.33 + t * (1225.33 - t * (3574.96 - t * (1073.77 + t * 707.56))))))) + \", \"\n + Math.max(0, Math.min(255, Math.round(27.2 + t * (3211.1 - t * (15327.97 - t * (27814 - t * (22569.18 - t * 6838.66)))))))\n + \")\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "index": 444, - "index2": 440, - "size": 6475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "module": "./node_modules/d3-scale-chromatic/src/index.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./sequential-multi/viridis.js", - "loc": "43:0-163" - } - ], - "usedExports": [ - "default", - "magma", - "inferno", - "plasma" - ], - "providedExports": [ - "default", - "magma", - "inferno", - "plasma" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import colors from \"../colors.js\";\n\nfunction ramp(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nexport default ramp(colors(\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\"));\n\nexport var magma = ramp(colors(\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\"));\n\nexport var inferno = ramp(colors(\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\"));\n\nexport var plasma = ramp(colors(\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\"));\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "index": 446, - "index2": 442, - "size": 162, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./create", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./create", - "loc": "1:0-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import creator from \"./creator\";\nimport select from \"./select\";\n\nexport default function(name) {\n return select(creator(name).call(document.documentElement));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/local.js", - "name": "./node_modules/d3-selection/src/local.js", - "index": 447, - "index2": 443, - "size": 536, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./local", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./local", - "loc": "3:0-41" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var nextId = 0;\n\nexport default function local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selectAll.js", - "name": "./node_modules/d3-selection/src/selectAll.js", - "index": 448, - "index2": 444, - "size": 282, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll", - "loc": "10:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./selectAll", - "loc": "10:0-49" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([selector == null ? [] : selector], root);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "name": "./node_modules/d3-selection/src/touches.js", - "index": 449, - "index2": 445, - "size": 323, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./touches", - "loc": "16:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "module": "./node_modules/d3-selection/src/index.js", - "moduleName": "./node_modules/d3-selection/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./touches", - "loc": "16:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import sourceEvent from \"./sourceEvent\";\nimport point from \"./point\";\n\nexport default function(node, touches) {\n if (touches == null) touches = sourceEvent().touches;\n\n for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) {\n points[i] = point(node, touches[i]);\n }\n\n return points;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "index": 451, - "index2": 449, - "size": 8589, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./arc.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./arc.js", - "loc": "1:0-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null;\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle.\n if (da < pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {\n var ax = x01 - oc[0],\n ay = y01 - oc[1],\n bx = x11 - oc[0],\n by = y11 - oc[1],\n kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),\n lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);\n rc0 = min(rc, (r0 - lc) / (kc - 1));\n rc1 = min(rc, (r1 - lc) / (kc + 1));\n }\n }\n\n // Is the sector collapsed to a line?\n if (!(da1 > epsilon)) context.moveTo(x01, y01);\n\n // Does the sector’s outer ring have rounded corners?\n else if (rc1 > epsilon) {\n t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);\n t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);\n\n context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc1, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r1, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), !cw);\n context.arc(t1.cx, t1.cy, rc1, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the outer ring just a circular arc?\n else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);\n\n // Is there no inner ring, and it’s a circular sector?\n // Or perhaps it’s an annular sector collapsed due to padding?\n if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);\n\n // Does the sector’s inner ring (or point) have rounded corners?\n else if (rc0 > epsilon) {\n t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);\n t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);\n\n context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);\n\n // Have the corners merged?\n if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t1.y01, t1.x01), !cw);\n\n // Otherwise, draw the two corners and the ring.\n else {\n context.arc(t0.cx, t0.cy, rc0, atan2(t0.y01, t0.x01), atan2(t0.y11, t0.x11), !cw);\n context.arc(0, 0, r0, atan2(t0.cy + t0.y11, t0.cx + t0.x11), atan2(t1.cy + t1.y11, t1.cx + t1.x11), cw);\n context.arc(t1.cx, t1.cy, rc0, atan2(t1.y11, t1.x11), atan2(t1.y01, t1.x01), !cw);\n }\n }\n\n // Or is the inner ring just a circular arc?\n else context.arc(0, 0, r0, a10, a00, cw);\n }\n\n context.closePath();\n\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n arc.centroid = function() {\n var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,\n a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;\n return [cos(a) * r, sin(a) * r];\n };\n\n arc.innerRadius = function(_) {\n return arguments.length ? (innerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : innerRadius;\n };\n\n arc.outerRadius = function(_) {\n return arguments.length ? (outerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : outerRadius;\n };\n\n arc.cornerRadius = function(_) {\n return arguments.length ? (cornerRadius = typeof _ === \"function\" ? _ : constant(+_), arc) : cornerRadius;\n };\n\n arc.padRadius = function(_) {\n return arguments.length ? (padRadius = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), arc) : padRadius;\n };\n\n arc.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : startAngle;\n };\n\n arc.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : endAngle;\n };\n\n arc.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), arc) : padAngle;\n };\n\n arc.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), arc) : context;\n };\n\n return arc;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linear.js", - "name": "./node_modules/d3-shape/src/curve/linear.js", - "index": 456, - "index2": 451, - "size": 738, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "module": "./node_modules/d3-shape/src/curve/radial.js", - "moduleName": "./node_modules/d3-shape/src/curve/radial.js", - "type": "harmony side effect evaluation", - "userRequest": "./linear.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "module": "./node_modules/d3-shape/src/curve/radial.js", - "moduleName": "./node_modules/d3-shape/src/curve/radial.js", - "type": "harmony import specifier", - "userRequest": "./linear.js", - "loc": "3:43-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./curve/linear.js", - "loc": "11:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./curve/linear.js", - "loc": "14:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linear.js", - "loc": "30:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/linear.js", - "loc": "30:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Linear(context) {\n this._context = context;\n}\n\nLinear.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: this._context.lineTo(x, y); break;\n }\n }\n};\n\nexport default function(context) {\n return new Linear(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "name": "./node_modules/d3-shape/src/line.js", - "index": 457, - "index2": 452, - "size": 1525, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./line.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "4:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "18:20-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "56:11-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function line(data) {\n var i,\n n = data.length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "name": "./node_modules/d3-shape/src/area.js", - "index": 454, - "index2": 453, - "size": 2929, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./area.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "6:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport line from \"./line.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function() {\n var x0 = pointX,\n x1 = null,\n y0 = constant(0),\n y1 = pointY,\n defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null;\n\n function area(data) {\n var i,\n j,\n k,\n n = data.length,\n d,\n defined0 = false,\n buffer,\n x0z = new Array(n),\n y0z = new Array(n);\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) {\n j = i;\n output.areaStart();\n output.lineStart();\n } else {\n output.lineEnd();\n output.lineStart();\n for (k = i - 1; k >= j; --k) {\n output.point(x0z[k], y0z[k]);\n }\n output.lineEnd();\n output.areaEnd();\n }\n }\n if (defined0) {\n x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);\n output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);\n }\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n function arealine() {\n return line().defined(defined).curve(curve).context(context);\n }\n\n area.x = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), x1 = null, area) : x0;\n };\n\n area.x0 = function(_) {\n return arguments.length ? (x0 = typeof _ === \"function\" ? _ : constant(+_), area) : x0;\n };\n\n area.x1 = function(_) {\n return arguments.length ? (x1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : x1;\n };\n\n area.y = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), y1 = null, area) : y0;\n };\n\n area.y0 = function(_) {\n return arguments.length ? (y0 = typeof _ === \"function\" ? _ : constant(+_), area) : y0;\n };\n\n area.y1 = function(_) {\n return arguments.length ? (y1 = _ == null ? null : typeof _ === \"function\" ? _ : constant(+_), area) : y1;\n };\n\n area.lineX0 =\n area.lineY0 = function() {\n return arealine().x(x0).y(y0);\n };\n\n area.lineY1 = function() {\n return arealine().x(x0).y(y1);\n };\n\n area.lineX1 = function() {\n return arealine().x(x1).y(y0);\n };\n\n area.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), area) : defined;\n };\n\n area.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;\n };\n\n area.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;\n };\n\n return area;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "index": 458, - "index2": 456, - "size": 2348, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pie.js", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pie.js", - "loc": "4:0-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant.js\";\nimport descending from \"./descending.js\";\nimport identity from \"./identity.js\";\nimport {tau} from \"./math.js\";\n\nexport default function() {\n var value = identity,\n sortValues = descending,\n sort = null,\n startAngle = constant(0),\n endAngle = constant(tau),\n padAngle = constant(0);\n\n function pie(data) {\n var i,\n n = data.length,\n j,\n k,\n sum = 0,\n index = new Array(n),\n arcs = new Array(n),\n a0 = +startAngle.apply(this, arguments),\n da = Math.min(tau, Math.max(-tau, endAngle.apply(this, arguments) - a0)),\n a1,\n p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),\n pa = p * (da < 0 ? -1 : 1),\n v;\n\n for (i = 0; i < n; ++i) {\n if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {\n sum += v;\n }\n }\n\n // Optionally sort the arcs by previously-computed values or by data.\n if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });\n else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });\n\n // Compute the arcs! They are stored in the original data's order.\n for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {\n j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {\n data: data[j],\n index: i,\n value: v,\n startAngle: a0,\n endAngle: a1,\n padAngle: p\n };\n }\n\n return arcs;\n }\n\n pie.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), pie) : value;\n };\n\n pie.sortValues = function(_) {\n return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;\n };\n\n pie.sort = function(_) {\n return arguments.length ? (sort = _, sortValues = null, pie) : sort;\n };\n\n pie.startAngle = function(_) {\n return arguments.length ? (startAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : startAngle;\n };\n\n pie.endAngle = function(_) {\n return arguments.length ? (endAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : endAngle;\n };\n\n pie.padAngle = function(_) {\n return arguments.length ? (padAngle = typeof _ === \"function\" ? _ : constant(+_), pie) : padAngle;\n };\n\n return pie;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "name": "./node_modules/d3-shape/src/lineRadial.js", - "index": 463, - "index2": 458, - "size": 402, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./lineRadial.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./lineRadial.js", - "loc": "6:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "19:41-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "20:39-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "21:42-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./lineRadial.js", - "loc": "22:42-52" - } - ], - "usedExports": [ - "default", - "lineRadial" - ], - "providedExports": [ - "lineRadial", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "name": "./node_modules/d3-shape/src/areaRadial.js", - "index": 461, - "index2": 459, - "size": 944, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./areaRadial.js", - "loc": "5:0-77" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport area from \"./area.js\";\nimport {lineRadial} from \"./lineRadial.js\";\n\nexport default function() {\n var a = area().curve(curveRadialLinear),\n c = a.curve,\n x0 = a.lineX0,\n x1 = a.lineX1,\n y0 = a.lineY0,\n y1 = a.lineY1;\n\n a.angle = a.x, delete a.x;\n a.startAngle = a.x0, delete a.x0;\n a.endAngle = a.x1, delete a.x1;\n a.radius = a.y, delete a.y;\n a.innerRadius = a.y0, delete a.y0;\n a.outerRadius = a.y1, delete a.y1;\n a.lineStartAngle = function() { return lineRadial(x0()); }, delete a.lineX0;\n a.lineEndAngle = function() { return lineRadial(x1()); }, delete a.lineX1;\n a.lineInnerRadius = function() { return lineRadial(y0()); }, delete a.lineY0;\n a.lineOuterRadius = function() { return lineRadial(y1()); }, delete a.lineY1;\n\n a.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return a;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pointRadial.js", - "name": "./node_modules/d3-shape/src/pointRadial.js", - "index": 464, - "index2": 460, - "size": 101, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointRadial.js", - "loc": "5:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./pointRadial.js", - "loc": "7:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./pointRadial.js", - "loc": "7:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "63:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "64:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "65:11-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../pointRadial.js", - "loc": "66:11-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(x, y) {\n return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "name": "./node_modules/d3-shape/src/link/index.js", - "index": 465, - "index2": 462, - "size": 2230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./link/index.js", - "loc": "8:0-73" - } - ], - "usedExports": [ - "linkHorizontal", - "linkVertical", - "linkRadial" - ], - "providedExports": [ - "linkHorizontal", - "linkVertical", - "linkRadial" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport {slice} from \"../array.js\";\nimport constant from \"../constant.js\";\nimport {x as pointX, y as pointY} from \"../point.js\";\nimport pointRadial from \"../pointRadial.js\";\n\nfunction linkSource(d) {\n return d.source;\n}\n\nfunction linkTarget(d) {\n return d.target;\n}\n\nfunction link(curve) {\n var source = linkSource,\n target = linkTarget,\n x = pointX,\n y = pointY,\n context = null;\n\n function link() {\n var buffer, argv = slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);\n if (!context) context = buffer = path();\n curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n link.source = function(_) {\n return arguments.length ? (source = _, link) : source;\n };\n\n link.target = function(_) {\n return arguments.length ? (target = _, link) : target;\n };\n\n link.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), link) : x;\n };\n\n link.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), link) : y;\n };\n\n link.context = function(_) {\n return arguments.length ? ((context = _ == null ? null : _), link) : context;\n };\n\n return link;\n}\n\nfunction curveHorizontal(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);\n}\n\nfunction curveVertical(context, x0, y0, x1, y1) {\n context.moveTo(x0, y0);\n context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);\n}\n\nfunction curveRadial(context, x0, y0, x1, y1) {\n var p0 = pointRadial(x0, y0),\n p1 = pointRadial(x0, y0 = (y0 + y1) / 2),\n p2 = pointRadial(x1, y0),\n p3 = pointRadial(x1, y1);\n context.moveTo(p0[0], p0[1]);\n context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);\n}\n\nexport function linkHorizontal() {\n return link(curveHorizontal);\n}\n\nexport function linkVertical() {\n return link(curveVertical);\n}\n\nexport function linkRadial() {\n var l = link(curveRadial);\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n return l;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "name": "./node_modules/d3-shape/src/symbol/circle.js", - "index": 468, - "index2": 463, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/circle.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/circle.js", - "loc": "11:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/circle.js", - "loc": "11:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/circle.js", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/circle.js", - "loc": "22:22-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pi, tau} from \"../math.js\";\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / pi);\n context.moveTo(r, 0);\n context.arc(0, 0, r, 0, tau);\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/cross.js", - "name": "./node_modules/d3-shape/src/symbol/cross.js", - "index": 469, - "index2": 464, - "size": 476, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/cross.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/cross.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/cross.js", - "loc": "12:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/cross.js", - "loc": "13:2-7" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default {\n draw: function(context, size) {\n var r = Math.sqrt(size / 5) / 2;\n context.moveTo(-3 * r, -r);\n context.lineTo(-r, -r);\n context.lineTo(-r, -3 * r);\n context.lineTo(r, -3 * r);\n context.lineTo(r, -r);\n context.lineTo(3 * r, -r);\n context.lineTo(3 * r, r);\n context.lineTo(r, r);\n context.lineTo(r, 3 * r);\n context.lineTo(-r, 3 * r);\n context.lineTo(-r, r);\n context.lineTo(-3 * r, r);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/diamond.js", - "name": "./node_modules/d3-shape/src/symbol/diamond.js", - "index": 470, - "index2": 465, - "size": 307, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/diamond.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/diamond.js", - "loc": "13:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/diamond.js", - "loc": "13:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/diamond.js", - "loc": "14:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var tan30 = Math.sqrt(1 / 3),\n tan30_2 = tan30 * 2;\n\nexport default {\n draw: function(context, size) {\n var y = Math.sqrt(size / tan30_2),\n x = y * tan30;\n context.moveTo(0, -y);\n context.lineTo(x, 0);\n context.lineTo(0, y);\n context.lineTo(-x, 0);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "name": "./node_modules/d3-shape/src/symbol/star.js", - "index": 472, - "index2": 467, - "size": 612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/star.js", - "loc": "5:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/star.js", - "loc": "15:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/star.js", - "loc": "15:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/star.js", - "loc": "16:2-6" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {pi, tau} from \"../math.js\";\n\nvar ka = 0.89081309152928522810,\n kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10),\n kx = Math.sin(tau / 10) * kr,\n ky = -Math.cos(tau / 10) * kr;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size * ka),\n x = kx * r,\n y = ky * r;\n context.moveTo(0, -r);\n context.lineTo(x, y);\n for (var i = 1; i < 5; ++i) {\n var a = tau * i / 5,\n c = Math.cos(a),\n s = Math.sin(a);\n context.lineTo(s * r, -c * r);\n context.lineTo(c * x - s * y, s * x + c * y);\n }\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/square.js", - "name": "./node_modules/d3-shape/src/symbol/square.js", - "index": 471, - "index2": 466, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/square.js", - "loc": "6:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/square.js", - "loc": "14:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/square.js", - "loc": "14:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/square.js", - "loc": "15:2-8" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default {\n draw: function(context, size) {\n var w = Math.sqrt(size),\n x = -w / 2;\n context.rect(x, x, w, w);\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/triangle.js", - "name": "./node_modules/d3-shape/src/symbol/triangle.js", - "index": 473, - "index2": 468, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/triangle.js", - "loc": "7:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/triangle.js", - "loc": "16:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/triangle.js", - "loc": "16:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/triangle.js", - "loc": "17:2-10" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var sqrt3 = Math.sqrt(3);\n\nexport default {\n draw: function(context, size) {\n var y = -Math.sqrt(size / (sqrt3 * 3));\n context.moveTo(0, y * 2);\n context.lineTo(-sqrt3 * y, -y);\n context.lineTo(sqrt3 * y, -y);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/wye.js", - "name": "./node_modules/d3-shape/src/symbol/wye.js", - "index": 474, - "index2": 469, - "size": 733, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/wye.js", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol/wye.js", - "loc": "17:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol/wye.js", - "loc": "17:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./symbol/wye.js", - "loc": "18:2-5" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var c = -0.5,\n s = Math.sqrt(3) / 2,\n k = 1 / Math.sqrt(12),\n a = (k / 2 + 1) * 3;\n\nexport default {\n draw: function(context, size) {\n var r = Math.sqrt(size / a),\n x0 = r / 2,\n y0 = r * k,\n x1 = x0,\n y1 = r * k + r,\n x2 = -x1,\n y2 = y1;\n context.moveTo(x0, y0);\n context.lineTo(x1, y1);\n context.lineTo(x2, y2);\n context.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n context.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n context.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n context.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n context.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n context.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n context.closePath();\n }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "name": "./node_modules/d3-shape/src/symbol.js", - "index": 467, - "index2": 470, - "size": 1184, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./symbol.js", - "loc": "10:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol.js", - "loc": "10:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./symbol.js", - "loc": "10:0-55" - } - ], - "usedExports": [ - "default", - "symbols" - ], - "providedExports": [ - "symbols", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {path} from \"d3-path\";\nimport circle from \"./symbol/circle.js\";\nimport cross from \"./symbol/cross.js\";\nimport diamond from \"./symbol/diamond.js\";\nimport star from \"./symbol/star.js\";\nimport square from \"./symbol/square.js\";\nimport triangle from \"./symbol/triangle.js\";\nimport wye from \"./symbol/wye.js\";\nimport constant from \"./constant.js\";\n\nexport var symbols = [\n circle,\n cross,\n diamond,\n square,\n star,\n triangle,\n wye\n];\n\nexport default function() {\n var type = constant(circle),\n size = constant(64),\n context = null;\n\n function symbol() {\n var buffer;\n if (!context) context = buffer = path();\n type.apply(this, arguments).draw(context, +size.apply(this, arguments));\n if (buffer) return context = null, buffer + \"\" || null;\n }\n\n symbol.type = function(_) {\n return arguments.length ? (type = typeof _ === \"function\" ? _ : constant(_), symbol) : type;\n };\n\n symbol.size = function(_) {\n return arguments.length ? (size = typeof _ === \"function\" ? _ : constant(+_), symbol) : size;\n };\n\n symbol.context = function(_) {\n return arguments.length ? (context = _ == null ? null : _, symbol) : context;\n };\n\n return symbol;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basis.js", - "name": "./node_modules/d3-shape/src/curve/basis.js", - "index": 477, - "index2": 472, - "size": 1436, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "module": "./node_modules/d3-shape/src/curve/basisOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./basis.js", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "4:20-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basis.js", - "loc": "21:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basis.js", - "loc": "21:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "module": "./node_modules/d3-shape/src/curve/basisOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisOpen.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "30:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "43:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "module": "./node_modules/d3-shape/src/curve/bundle.js", - "moduleName": "./node_modules/d3-shape/src/curve/bundle.js", - "type": "harmony import specifier", - "userRequest": "./basis.js", - "loc": "48:28-33" - } - ], - "usedExports": [ - "default", - "point", - "Basis" - ], - "providedExports": [ - "point", - "Basis", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function point(that, x, y) {\n that._context.bezierCurveTo(\n (2 * that._x0 + that._x1) / 3,\n (2 * that._y0 + that._y1) / 3,\n (that._x0 + 2 * that._x1) / 3,\n (that._y0 + 2 * that._y1) / 3,\n (that._x0 + 4 * that._x1 + x) / 6,\n (that._y0 + 4 * that._y1 + y) / 6\n );\n}\n\nexport function Basis(context) {\n this._context = context;\n}\n\nBasis.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 3: point(this, this._x1, this._y1); // proceed\n case 2: this._context.lineTo(this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new Basis(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "name": "./node_modules/d3-shape/src/curve/basisClosed.js", - "index": 475, - "index2": 473, - "size": 1536, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basisClosed.js", - "loc": "19:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basisClosed.js", - "loc": "19:0-67" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\nimport {point} from \"./basis.js\";\n\nfunction BasisClosed(context) {\n this._context = context;\n}\n\nBasisClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x2, this._y2);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);\n this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x2, this._y2);\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x2 = x, this._y2 = y; break;\n case 1: this._point = 2; this._x3 = x, this._y3 = y; break;\n case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisClosed(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisOpen.js", - "name": "./node_modules/d3-shape/src/curve/basisOpen.js", - "index": 478, - "index2": 474, - "size": 1072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/basisOpen.js", - "loc": "20:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/basisOpen.js", - "loc": "20:0-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {point} from \"./basis.js\";\n\nfunction BasisOpen(context) {\n this._context = context;\n}\n\nBasisOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n }\n};\n\nexport default function(context) {\n return new BasisOpen(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/bundle.js", - "name": "./node_modules/d3-shape/src/curve/bundle.js", - "index": 479, - "index2": 475, - "size": 1084, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/bundle.js", - "loc": "22:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/bundle.js", - "loc": "22:0-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Basis} from \"./basis.js\";\n\nfunction Bundle(context, beta) {\n this._basis = new Basis(context);\n this._beta = beta;\n}\n\nBundle.prototype = {\n lineStart: function() {\n this._x = [];\n this._y = [];\n this._basis.lineStart();\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n j = x.length - 1;\n\n if (j > 0) {\n var x0 = x[0],\n y0 = y[0],\n dx = x[j] - x0,\n dy = y[j] - y0,\n i = -1,\n t;\n\n while (++i <= j) {\n t = i / j;\n this._basis.point(\n this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),\n this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)\n );\n }\n }\n\n this._x = this._y = null;\n this._basis.lineEnd();\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\nexport default (function custom(beta) {\n\n function bundle(context) {\n return beta === 1 ? new Basis(context) : new Bundle(context, beta);\n }\n\n bundle.beta = function(beta) {\n return custom(+beta);\n };\n\n return bundle;\n})(0.85);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinal.js", - "name": "./node_modules/d3-shape/src/curve/cardinal.js", - "index": 481, - "index2": 476, - "size": 1633, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "module": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "2:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinal.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinal.js", - "loc": "25:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinal.js", - "loc": "25:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "module": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "31:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "43:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "./cardinal.js", - "loc": "80:56-64" - } - ], - "usedExports": [ - "default", - "Cardinal", - "point" - ], - "providedExports": [ - "point", - "Cardinal", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "name": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "index": 480, - "index2": 477, - "size": 1611, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinalClosed.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinalClosed.js", - "loc": "23:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinalClosed.js", - "loc": "23:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "./cardinalClosed.js", - "loc": "66:62-76" - } - ], - "usedExports": [ - "default", - "CardinalClosed" - ], - "providedExports": [ - "CardinalClosed", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalOpen.js", - "name": "./node_modules/d3-shape/src/curve/cardinalOpen.js", - "index": 482, - "index2": 478, - "size": 1291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./cardinalOpen.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/cardinalOpen.js", - "loc": "24:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/cardinalOpen.js", - "loc": "24:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony import specifier", - "userRequest": "./cardinalOpen.js", - "loc": "54:60-72" - } - ], - "usedExports": [ - "default", - "CardinalOpen" - ], - "providedExports": [ - "CardinalOpen", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {point} from \"./cardinal.js\";\n\nexport function CardinalOpen(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalOpen(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "name": "./node_modules/d3-shape/src/curve/catmullRom.js", - "index": 484, - "index2": 479, - "size": 2643, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony side effect evaluation", - "userRequest": "./catmullRom.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "./catmullRom.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRom.js", - "loc": "28:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRom.js", - "loc": "28:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "type": "harmony import specifier", - "userRequest": "./catmullRom.js", - "loc": "41:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "./catmullRom.js", - "loc": "53:15-20" - } - ], - "usedExports": [ - "default", - "point" - ], - "providedExports": [ - "point", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {epsilon} from \"../math.js\";\nimport {Cardinal} from \"./cardinal.js\";\n\nexport function point(that, x, y) {\n var x1 = that._x1,\n y1 = that._y1,\n x2 = that._x2,\n y2 = that._y2;\n\n if (that._l01_a > epsilon) {\n var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,\n n = 3 * that._l01_a * (that._l01_a + that._l12_a);\n x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;\n y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;\n }\n\n if (that._l23_a > epsilon) {\n var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,\n m = 3 * that._l23_a * (that._l23_a + that._l12_a);\n x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;\n y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;\n }\n\n that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);\n}\n\nfunction CatmullRom(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRom.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: this.point(this._x2, this._y2); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "name": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "index": 483, - "index2": 480, - "size": 2092, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRomClosed.js", - "loc": "26:0-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRomClosed.js", - "loc": "26:0-77" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {CardinalClosed} from \"./cardinalClosed.js\";\nimport noop from \"../noop.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomClosed(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomOpen.js", - "name": "./node_modules/d3-shape/src/curve/catmullRomOpen.js", - "index": 485, - "index2": 481, - "size": 1766, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/catmullRomOpen.js", - "loc": "27:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/catmullRomOpen.js", - "loc": "27:0-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {CardinalOpen} from \"./cardinalOpen.js\";\nimport {point} from \"./catmullRom.js\";\n\nfunction CatmullRomOpen(context, alpha) {\n this._context = context;\n this._alpha = alpha;\n}\n\nCatmullRomOpen.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._l01_a = this._l12_a = this._l23_a =\n this._l01_2a = this._l12_2a = this._l23_2a =\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n\n if (this._point) {\n var x23 = this._x2 - x,\n y23 = this._y2 - y;\n this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));\n }\n\n switch (this._point) {\n case 0: this._point = 1; break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;\n case 3: this._point = 4; // proceed\n default: point(this, x, y); break;\n }\n\n this._l01_a = this._l12_a, this._l12_a = this._l23_a;\n this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(alpha) {\n\n function catmullRom(context) {\n return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0);\n }\n\n catmullRom.alpha = function(alpha) {\n return custom(+alpha);\n };\n\n return catmullRom;\n})(0.5);\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "name": "./node_modules/d3-shape/src/curve/linearClosed.js", - "index": 486, - "index2": 482, - "size": 517, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/linearClosed.js", - "loc": "29:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/linearClosed.js", - "loc": "29:0-69" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/monotone.js", - "name": "./node_modules/d3-shape/src/curve/monotone.js", - "index": 487, - "index2": 483, - "size": 3203, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/monotone.js", - "loc": "31:0-93" - } - ], - "usedExports": [ - "monotoneX", - "monotoneY" - ], - "providedExports": [ - "monotoneX", - "monotoneY" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function sign(x) {\n return x < 0 ? -1 : 1;\n}\n\n// Calculate the slopes of the tangents (Hermite-type interpolation) based on\n// the following paper: Steffen, M. 1990. A Simple Method for Monotonic\n// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.\n// NOV(II), P. 443, 1990.\nfunction slope3(that, x2, y2) {\n var h0 = that._x1 - that._x0,\n h1 = x2 - that._x1,\n s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),\n s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),\n p = (s0 * h1 + s1 * h0) / (h0 + h1);\n return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;\n}\n\n// Calculate a one-sided slope.\nfunction slope2(that, t) {\n var h = that._x1 - that._x0;\n return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;\n}\n\n// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations\n// \"you can express cubic Hermite interpolation in terms of cubic Bézier curves\n// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1\".\nfunction point(that, t0, t1) {\n var x0 = that._x0,\n y0 = that._y0,\n x1 = that._x1,\n y1 = that._y1,\n dx = (x1 - x0) / 3;\n that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);\n}\n\nfunction MonotoneX(context) {\n this._context = context;\n}\n\nMonotoneX.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 =\n this._y0 = this._y1 =\n this._t0 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x1, this._y1); break;\n case 3: point(this, this._t0, slope2(this, this._t0)); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n var t1 = NaN;\n\n x = +x, y = +y;\n if (x === this._x1 && y === this._y1) return; // Ignore coincident points.\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; break;\n case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;\n default: point(this, this._t0, t1 = slope3(this, x, y)); break;\n }\n\n this._x0 = this._x1, this._x1 = x;\n this._y0 = this._y1, this._y1 = y;\n this._t0 = t1;\n }\n}\n\nfunction MonotoneY(context) {\n this._context = new ReflectContext(context);\n}\n\n(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {\n MonotoneX.prototype.point.call(this, y, x);\n};\n\nfunction ReflectContext(context) {\n this._context = context;\n}\n\nReflectContext.prototype = {\n moveTo: function(x, y) { this._context.moveTo(y, x); },\n closePath: function() { this._context.closePath(); },\n lineTo: function(x, y) { this._context.lineTo(y, x); },\n bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }\n};\n\nexport function monotoneX(context) {\n return new MonotoneX(context);\n}\n\nexport function monotoneY(context) {\n return new MonotoneY(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/natural.js", - "name": "./node_modules/d3-shape/src/curve/natural.js", - "index": 488, - "index2": 484, - "size": 1761, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/natural.js", - "loc": "32:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/natural.js", - "loc": "32:0-59" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Natural(context) {\n this._context = context;\n}\n\nNatural.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = [];\n this._y = [];\n },\n lineEnd: function() {\n var x = this._x,\n y = this._y,\n n = x.length;\n\n if (n) {\n this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);\n if (n === 2) {\n this._context.lineTo(x[1], y[1]);\n } else {\n var px = controlPoints(x),\n py = controlPoints(y);\n for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {\n this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);\n }\n }\n }\n\n if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();\n this._line = 1 - this._line;\n this._x = this._y = null;\n },\n point: function(x, y) {\n this._x.push(+x);\n this._y.push(+y);\n }\n};\n\n// See https://www.particleincell.com/2012/bezier-splines/ for derivation.\nfunction controlPoints(x) {\n var i,\n n = x.length - 1,\n m,\n a = new Array(n),\n b = new Array(n),\n r = new Array(n);\n a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];\n for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];\n a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];\n for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];\n a[n - 1] = r[n - 1] / b[n - 1];\n for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];\n b[n - 1] = (x[n] + a[n - 1]) / 2;\n for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];\n return [a, b];\n}\n\nexport default function(context) {\n return new Natural(context);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/step.js", - "name": "./node_modules/d3-shape/src/curve/step.js", - "index": 489, - "index2": 485, - "size": 1367, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./curve/step.js", - "loc": "33:0-113" - } - ], - "usedExports": [ - "default", - "stepAfter", - "stepBefore" - ], - "providedExports": [ - "default", - "stepBefore", - "stepAfter" - ], - "optimizationBailout": [], - "depth": 4, - "source": "function Step(context, t) {\n this._context = context;\n this._t = t;\n}\n\nStep.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x = this._y = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; // proceed\n default: {\n if (this._t <= 0) {\n this._context.lineTo(this._x, y);\n this._context.lineTo(x, y);\n } else {\n var x1 = this._x * (1 - this._t) + x * this._t;\n this._context.lineTo(x1, this._y);\n this._context.lineTo(x1, y);\n }\n break;\n }\n }\n this._x = x, this._y = y;\n }\n};\n\nexport default function(context) {\n return new Step(context, 0.5);\n}\n\nexport function stepBefore(context) {\n return new Step(context, 0);\n}\n\nexport function stepAfter(context) {\n return new Step(context, 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/none.js", - "name": "./node_modules/d3-shape/src/offset/none.js", - "index": 492, - "index2": 487, - "size": 309, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "module": "./node_modules/d3-shape/src/offset/wiggle.js", - "moduleName": "./node_modules/d3-shape/src/offset/wiggle.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "module": "./node_modules/d3-shape/src/offset/silhouette.js", - "moduleName": "./node_modules/d3-shape/src/offset/silhouette.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "module": "./node_modules/d3-shape/src/offset/expand.js", - "moduleName": "./node_modules/d3-shape/src/offset/expand.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/none.js", - "loc": "3:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "module": "./node_modules/d3-shape/src/offset/silhouette.js", - "moduleName": "./node_modules/d3-shape/src/offset/silhouette.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "9:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "module": "./node_modules/d3-shape/src/offset/expand.js", - "moduleName": "./node_modules/d3-shape/src/offset/expand.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "9:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./offset/none.js", - "loc": "13:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "module": "./node_modules/d3-shape/src/offset/wiggle.js", - "moduleName": "./node_modules/d3-shape/src/offset/wiggle.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "23:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/none.js", - "loc": "38:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/none.js", - "loc": "38:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./offset/none.js", - "loc": "53:52-62" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/none.js", - "name": "./node_modules/d3-shape/src/order/none.js", - "index": 491, - "index2": 486, - "size": 120, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/order/reverse.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "name": "./node_modules/d3-shape/src/order/reverse.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 14, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "module": "./node_modules/d3-shape/src/order/reverse.js", - "moduleName": "./node_modules/d3-shape/src/order/reverse.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "module": "./node_modules/d3-shape/src/order/ascending.js", - "moduleName": "./node_modules/d3-shape/src/order/ascending.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "module": "./node_modules/d3-shape/src/order/appearance.js", - "moduleName": "./node_modules/d3-shape/src/order/appearance.js", - "type": "harmony side effect evaluation", - "userRequest": "./none.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/none.js", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "module": "./node_modules/d3-shape/src/order/reverse.js", - "moduleName": "./node_modules/d3-shape/src/order/reverse.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "4:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "module": "./node_modules/d3-shape/src/order/ascending.js", - "moduleName": "./node_modules/d3-shape/src/order/ascending.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "5:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "module": "./node_modules/d3-shape/src/order/appearance.js", - "moduleName": "./node_modules/d3-shape/src/order/appearance.js", - "type": "harmony import specifier", - "userRequest": "./none.js", - "loc": "5:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./order/none.js", - "loc": "12:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/none.js", - "loc": "45:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/none.js", - "loc": "45:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./order/none.js", - "loc": "49:51-60" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "name": "./node_modules/d3-shape/src/stack.js", - "index": 490, - "index2": 488, - "size": 1444, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./stack.js", - "loc": "35:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./stack.js", - "loc": "35:0-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {slice} from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var kz = keys.apply(this, arguments),\n i,\n m = data.length,\n n = kz.length,\n sz = new Array(n),\n oz;\n\n for (i = 0; i < n; ++i) {\n for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {\n si[j] = sij = [0, +value(data[j], ki, j, data)];\n sij.data = data[j];\n }\n si.key = ki;\n }\n\n for (i = 0, oz = order(sz); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(slice.call(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/expand.js", - "name": "./node_modules/d3-shape/src/offset/expand.js", - "index": 493, - "index2": 489, - "size": 322, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/expand.js", - "loc": "36:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/expand.js", - "loc": "36:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {\n for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;\n if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;\n }\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/diverging.js", - "name": "./node_modules/d3-shape/src/offset/diverging.js", - "index": 494, - "index2": 490, - "size": 431, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/diverging.js", - "loc": "37:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/diverging.js", - "loc": "37:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {\n for (yp = yn = 0, i = 0; i < n; ++i) {\n if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {\n d[0] = yp, d[1] = yp += dy;\n } else if (dy < 0) {\n d[1] = yn, d[0] = yn += dy;\n } else {\n d[0] = 0, d[1] = dy;\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/silhouette.js", - "name": "./node_modules/d3-shape/src/offset/silhouette.js", - "index": 495, - "index2": 491, - "size": 317, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/silhouette.js", - "loc": "39:0-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/silhouette.js", - "loc": "39:0-72" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0)) return;\n for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {\n for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;\n s0[j][1] += s0[j][0] = -y / 2;\n }\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/offset/wiggle.js", - "name": "./node_modules/d3-shape/src/offset/wiggle.js", - "index": 496, - "index2": 492, - "size": 743, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./offset/wiggle.js", - "loc": "40:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./offset/wiggle.js", - "loc": "40:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series, order) {\n if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;\n for (var y = 0, j = 1, s0, m, n; j < m; ++j) {\n for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {\n var si = series[order[i]],\n sij0 = si[j][1] || 0,\n sij1 = si[j - 1][1] || 0,\n s3 = (sij0 - sij1) / 2;\n for (var k = 0; k < i; ++k) {\n var sk = series[order[k]],\n skj0 = sk[j][1] || 0,\n skj1 = sk[j - 1][1] || 0;\n s3 += skj0 - skj1;\n }\n s1 += sij0, s2 += s3 * sij0;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n if (s1) y -= s2 / s1;\n }\n s0[j - 1][1] += s0[j - 1][0] = y;\n none(series, order);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/appearance.js", - "name": "./node_modules/d3-shape/src/order/appearance.js", - "index": 497, - "index2": 493, - "size": 339, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/order/insideOut.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "name": "./node_modules/d3-shape/src/order/insideOut.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 16, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony side effect evaluation", - "userRequest": "./appearance.js", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony import specifier", - "userRequest": "./appearance.js", - "loc": "9:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/appearance.js", - "loc": "41:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/appearance.js", - "loc": "41:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n var peaks = series.map(peak);\n return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; });\n}\n\nfunction peak(series) {\n var i = -1, j = 0, n = series.length, vi, vj = -Infinity;\n while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;\n return j;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/ascending.js", - "name": "./node_modules/d3-shape/src/order/ascending.js", - "index": 498, - "index2": 494, - "size": 308, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "module": "./node_modules/d3-shape/src/order/descending.js", - "moduleName": "./node_modules/d3-shape/src/order/descending.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending.js", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "module": "./node_modules/d3-shape/src/order/descending.js", - "moduleName": "./node_modules/d3-shape/src/order/descending.js", - "type": "harmony import specifier", - "userRequest": "./ascending.js", - "loc": "4:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "module": "./node_modules/d3-shape/src/order/insideOut.js", - "moduleName": "./node_modules/d3-shape/src/order/insideOut.js", - "type": "harmony import specifier", - "userRequest": "./ascending.js", - "loc": "8:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/ascending.js", - "loc": "42:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/ascending.js", - "loc": "42:0-68" - } - ], - "usedExports": [ - "default", - "sum" - ], - "providedExports": [ - "default", - "sum" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n var sums = series.map(sum);\n return none(series).sort(function(a, b) { return sums[a] - sums[b]; });\n}\n\nexport function sum(series) {\n var s = 0, i = -1, n = series.length, v;\n while (++i < n) if (v = +series[i][1]) s += v;\n return s;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/descending.js", - "name": "./node_modules/d3-shape/src/order/descending.js", - "index": 499, - "index2": 495, - "size": 115, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/descending.js", - "loc": "43:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/descending.js", - "loc": "43:0-70" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import ascending from \"./ascending.js\";\n\nexport default function(series) {\n return ascending(series).reverse();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/insideOut.js", - "name": "./node_modules/d3-shape/src/order/insideOut.js", - "index": 500, - "index2": 496, - "size": 518, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/insideOut.js", - "loc": "44:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/insideOut.js", - "loc": "44:0-68" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import appearance from \"./appearance.js\";\nimport {sum} from \"./ascending.js\";\n\nexport default function(series) {\n var n = series.length,\n i,\n j,\n sums = series.map(sum),\n order = appearance(series),\n top = 0,\n bottom = 0,\n tops = [],\n bottoms = [];\n\n for (i = 0; i < n; ++i) {\n j = order[i];\n if (top < bottom) {\n top += sums[j];\n tops.push(j);\n } else {\n bottom += sums[j];\n bottoms.push(j);\n }\n }\n\n return bottoms.reverse().concat(tops);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/order/reverse.js", - "name": "./node_modules/d3-shape/src/order/reverse.js", - "index": 501, - "index2": 497, - "size": 100, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order/reverse.js", - "loc": "46:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "module": "./node_modules/d3-shape/src/index.js", - "moduleName": "./node_modules/d3-shape/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./order/reverse.js", - "loc": "46:0-64" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoFormat.js", - "name": "./node_modules/d3-time-format/src/isoFormat.js", - "index": 504, - "index2": 500, - "size": 287, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoFormat.js", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoFormat.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./isoFormat.js", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "module": "./node_modules/d3-time-format/src/isoParse.js", - "moduleName": "./node_modules/d3-time-format/src/isoParse.js", - "type": "harmony import specifier", - "userRequest": "./isoFormat.js", - "loc": "11:15-27" - } - ], - "usedExports": [ - "default", - "isoSpecifier" - ], - "providedExports": [ - "isoSpecifier", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {utcFormat} from \"./defaultLocale.js\";\n\nexport var isoSpecifier = \"%Y-%m-%dT%H:%M:%S.%LZ\";\n\nfunction formatIsoNative(date) {\n return date.toISOString();\n}\n\nvar formatIso = Date.prototype.toISOString\n ? formatIsoNative\n : utcFormat(isoSpecifier);\n\nexport default formatIso;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/isoParse.js", - "name": "./node_modules/d3-time-format/src/isoParse.js", - "index": 505, - "index2": 501, - "size": 325, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time-format/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "name": "./node_modules/d3-time-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 418, - "building": 18, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./isoParse.js", - "loc": "4:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time-format/src/index.js", - "module": "./node_modules/d3-time-format/src/index.js", - "moduleName": "./node_modules/d3-time-format/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./isoParse.js", - "loc": "4:0-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {isoSpecifier} from \"./isoFormat.js\";\nimport {utcParse} from \"./defaultLocale.js\";\n\nfunction parseIsoNative(string) {\n var date = new Date(string);\n return isNaN(date) ? null : date;\n}\n\nvar parseIso = +new Date(\"2000-01-01T00:00:00.000Z\")\n ? parseIsoNative\n : utcParse(isoSpecifier);\n\nexport default parseIso;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/interval.js", - "name": "./node_modules/d3-timer/src/interval.js", - "index": 507, - "index2": 503, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-timer/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "name": "./node_modules/d3-timer/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 98, - "building": 72, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interval.js", - "loc": "11:0-13:23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-timer/src/index.js", - "module": "./node_modules/d3-timer/src/index.js", - "moduleName": "./node_modules/d3-timer/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./interval.js", - "loc": "11:0-13:23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {Timer, now} from \"./timer.js\";\n\nexport default function(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n delay = +delay, time = time == null ? now() : +time;\n t.restart(function tick(elapsed) {\n elapsed += total;\n t.restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n return t;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "index": 509, - "index2": 513, - "size": 1420, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 174, - "building": 44 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "module": "./node_modules/d3-voronoi/src/index.js", - "moduleName": "./node_modules/d3-voronoi/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./voronoi", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "module": "./node_modules/d3-voronoi/src/index.js", - "moduleName": "./node_modules/d3-voronoi/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./voronoi", - "loc": "1:0-45" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import constant from \"./constant\";\nimport {x as pointX, y as pointY} from \"./point\";\nimport Diagram, {epsilon} from \"./Diagram\";\n\nexport default function() {\n var x = pointX,\n y = pointY,\n extent = null;\n\n function voronoi(data) {\n return new Diagram(data.map(function(d, i) {\n var s = [Math.round(x(d, i, data) / epsilon) * epsilon, Math.round(y(d, i, data) / epsilon) * epsilon];\n s.index = i;\n s.data = d;\n return s;\n }), extent);\n }\n\n voronoi.polygons = function(data) {\n return voronoi(data).polygons();\n };\n\n voronoi.links = function(data) {\n return voronoi(data).links();\n };\n\n voronoi.triangles = function(data) {\n return voronoi(data).triangles();\n };\n\n voronoi.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), voronoi) : x;\n };\n\n voronoi.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), voronoi) : y;\n };\n\n voronoi.extent = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]], voronoi) : extent && [[extent[0][0], extent[0][1]], [extent[1][0], extent[1][1]]];\n };\n\n voronoi.size = function(_) {\n return arguments.length ? (extent = _ == null ? null : [[0, 0], [+_[0], +_[1]]], voronoi) : extent && [extent[1][0] - extent[0][0], extent[1][1] - extent[0][1]];\n };\n\n return voronoi;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/transform.js", - "name": "./node_modules/d3-zoom/src/transform.js", - "index": 522, - "index2": 517, - "size": 1395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./transform.js", - "loc": "2:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./transform.js", - "loc": "8:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "30:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "131:23-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "140:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "145:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./transform.js", - "loc": "168:55-64" - } - ], - "usedExports": [ - "identity", - "Transform", - "default" - ], - "providedExports": [ - "Transform", - "identity", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "export function Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nexport var identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nexport default function transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "index": 519, - "index2": 519, - "size": 14591, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - } - ], - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./zoom.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "module": "./node_modules/d3-zoom/src/index.js", - "moduleName": "./node_modules/d3-zoom/src/index.js", - "type": "harmony export imported specifier", - "userRequest": "./zoom.js", - "loc": "1:0-42" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {dragDisable, dragEnable} from \"d3-drag\";\nimport {interpolateZoom} from \"d3-interpolate\";\nimport {event, customEvent, select, mouse, touch} from \"d3-selection\";\nimport {interrupt} from \"d3-transition\";\nimport constant from \"./constant.js\";\nimport ZoomEvent from \"./event.js\";\nimport {Transform, identity} from \"./transform.js\";\nimport noevent, {nopropagation} from \"./noevent.js\";\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter() {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta() {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nexport default function() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled)\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p);\n };\n\n zoom.scaleTo = function(selection, k, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p);\n };\n\n zoom.translateBy = function(selection, x, y) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n });\n };\n\n zoom.translateTo = function(selection, x, y, p) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n customEvent(new ZoomEvent(zoom, type, this.that.__zoom), listeners.apply, listeners, [type, this.that, this.args]);\n }\n };\n\n function wheeled() {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, arguments),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = mouse(this);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent();\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned() {\n if (touchending || !filter.apply(this, arguments)) return;\n var g = gesture(this, arguments, true),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = mouse(this),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation();\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved() {\n noevent();\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = mouse(g.that), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped() {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent();\n g.end();\n }\n }\n\n function dblclicked() {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = mouse(this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, arguments), translateExtent);\n\n noevent();\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0);\n else select(this).call(zoom.transform, t1);\n }\n\n function touchstarted() {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, arguments, event.changedTouches.length === n),\n started, i, t, p;\n\n nopropagation();\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent();\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n g.taps = 0;\n for (i = 0; i < n; ++i) {\n t = touches[i], p = touch(this, touches, t.identifier);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended() {\n if (!this.__zooming) return;\n var g = gesture(this, arguments),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation();\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n return zoom;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/number.js", - "name": "./node_modules/d3-array/src/number.js", - "index": 14, - "index2": 8, - "size": 63, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/mean.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "name": "./node_modules/d3-array/src/mean.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 117, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "module": "./node_modules/d3-array/src/quantile.js", - "moduleName": "./node_modules/d3-array/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../number", - "loc": "3:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/quantile.js", - "module": "./node_modules/d3-array/src/quantile.js", - "moduleName": "./node_modules/d3-array/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "4:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../number", - "loc": "7:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "12:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "13:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "14:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/mean.js", - "module": "./node_modules/d3-array/src/mean.js", - "moduleName": "./node_modules/d3-array/src/mean.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "19:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/median.js", - "module": "./node_modules/d3-array/src/median.js", - "moduleName": "./node_modules/d3-array/src/median.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "21:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/variance.js", - "module": "./node_modules/d3-array/src/variance.js", - "moduleName": "./node_modules/d3-array/src/variance.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "24:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x === null ? NaN : +x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/array.js", - "name": "./node_modules/d3-array/src/array.js", - "index": 17, - "index2": 12, - "size": 90, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony side effect evaluation", - "userRequest": "../array", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "module": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "moduleName": "./node_modules/d3-array/src/threshold/freedmanDiaconis.js", - "type": "harmony import specifier", - "userRequest": "../array", - "loc": "7:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "71:101-106" - } - ], - "usedExports": [ - "map", - "slice" - ], - "providedExports": [ - "slice", - "map" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var slice = array.slice;\nexport var map = array.map;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/constant.js", - "name": "./node_modules/d3-array/src/constant.js", - "index": 18, - "index2": 13, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "63:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "67:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:118-126" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/identity.js", - "name": "./node_modules/d3-array/src/identity.js", - "index": 19, - "index2": 14, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-array/src/histogram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/index.js", - "name": "./node_modules/d3-array/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "name": "./node_modules/d3-array/src/histogram.js", - "profile": { - "factory": 198, - "building": 41, - "dependencies": 117 - } - } - ], - "profile": { - "factory": 119, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-array/src/histogram.js", - "module": "./node_modules/d3-array/src/histogram.js", - "moduleName": "./node_modules/d3-array/src/histogram.js", - "type": "harmony import specifier", - "userRequest": "./identity", - "loc": "11:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/array.js", - "name": "./node_modules/d3-axis/src/array.js", - "index": 39, - "index2": 34, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/axis.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "profile": { - "factory": 187, - "building": 33 - } - } - ], - "profile": { - "factory": 124, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "126:27-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "130:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "134:63-68" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/identity.js", - "name": "./node_modules/d3-axis/src/identity.js", - "index": 40, - "index2": 35, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "issuerId": null, - "issuerName": "./node_modules/d3-axis/src/axis.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/index.js", - "name": "./node_modules/d3-axis/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "name": "./node_modules/d3-axis/src/axis.js", - "profile": { - "factory": 187, - "building": 33 - } - } - ], - "profile": { - "factory": 124, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-axis/src/axis.js", - "module": "./node_modules/d3-axis/src/axis.js", - "moduleName": "./node_modules/d3-axis/src/axis.js", - "type": "harmony import specifier", - "userRequest": "./identity", - "loc": "49:105-113" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/select.js", - "name": "./node_modules/d3-selection/src/selection/select.js", - "index": 85, - "index2": 74, - "size": 653, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./select", - "loc": "46:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/selectAll.js", - "name": "./node_modules/d3-selection/src/selection/selectAll.js", - "index": 86, - "index2": 75, - "size": 550, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./selectAll", - "loc": "47:13-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/filter.js", - "name": "./node_modules/d3-selection/src/selection/filter.js", - "index": 87, - "index2": 76, - "size": 546, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./filter", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./filter", - "loc": "48:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "name": "./node_modules/d3-selection/src/selection/enter.js", - "index": 89, - "index2": 78, - "size": 792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "./enter", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./enter", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "21:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "50:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "./enter", - "loc": "65:21-30" - } - ], - "usedExports": [ - "default", - "EnterNode" - ], - "providedExports": [ - "default", - "EnterNode" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "name": "./node_modules/d3-selection/src/selection/data.js", - "index": 88, - "index2": 80, - "size": 3597, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./data", - "loc": "4:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./data", - "loc": "49:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "name": "./node_modules/d3-selection/src/selection/exit.js", - "index": 92, - "index2": 81, - "size": 176, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./exit", - "loc": "6:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./exit", - "loc": "51:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/join.js", - "name": "./node_modules/d3-selection/src/selection/join.js", - "index": 93, - "index2": 82, - "size": 377, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./join", - "loc": "7:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./join", - "loc": "52:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n enter = typeof onenter === \"function\" ? onenter(enter) : enter.append(onenter + \"\");\n if (onupdate != null) update = onupdate(update);\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/merge.js", - "name": "./node_modules/d3-selection/src/selection/merge.js", - "index": 94, - "index2": 83, - "size": 575, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./merge", - "loc": "53:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/order.js", - "name": "./node_modules/d3-selection/src/selection/order.js", - "index": 95, - "index2": 84, - "size": 380, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./order", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./order", - "loc": "54:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sort.js", - "name": "./node_modules/d3-selection/src/selection/sort.js", - "index": 96, - "index2": 85, - "size": 681, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sort", - "loc": "10:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./sort", - "loc": "55:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/call.js", - "name": "./node_modules/d3-selection/src/selection/call.js", - "index": 97, - "index2": 86, - "size": 134, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./call", - "loc": "11:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./call", - "loc": "56:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/nodes.js", - "name": "./node_modules/d3-selection/src/selection/nodes.js", - "index": 98, - "index2": 87, - "size": 140, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "12:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "57:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/node.js", - "name": "./node_modules/d3-selection/src/selection/node.js", - "index": 99, - "index2": 88, - "size": 258, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./node", - "loc": "13:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./node", - "loc": "58:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/size.js", - "name": "./node_modules/d3-selection/src/selection/size.js", - "index": 100, - "index2": 89, - "size": 98, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./size", - "loc": "14:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./size", - "loc": "59:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/empty.js", - "name": "./node_modules/d3-selection/src/selection/empty.js", - "index": 101, - "index2": 90, - "size": 53, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./empty", - "loc": "15:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./empty", - "loc": "60:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return !this.node();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/each.js", - "name": "./node_modules/d3-selection/src/selection/each.js", - "index": 102, - "index2": 91, - "size": 289, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./each", - "loc": "16:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./each", - "loc": "61:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/attr.js", - "name": "./node_modules/d3-selection/src/selection/attr.js", - "index": 103, - "index2": 92, - "size": 1460, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attr", - "loc": "17:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./attr", - "loc": "62:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/property.js", - "name": "./node_modules/d3-selection/src/selection/property.js", - "index": 106, - "index2": 95, - "size": 617, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./property", - "loc": "19:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./property", - "loc": "64:12-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/classed.js", - "name": "./node_modules/d3-selection/src/selection/classed.js", - "index": 107, - "index2": 96, - "size": 1740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./classed", - "loc": "20:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./classed", - "loc": "65:11-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/text.js", - "name": "./node_modules/d3-selection/src/selection/text.js", - "index": 108, - "index2": 97, - "size": 528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text", - "loc": "21:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./text", - "loc": "66:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/html.js", - "name": "./node_modules/d3-selection/src/selection/html.js", - "index": 109, - "index2": 98, - "size": 520, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./html", - "loc": "22:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./html", - "loc": "67:8-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/raise.js", - "name": "./node_modules/d3-selection/src/selection/raise.js", - "index": 110, - "index2": 99, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./raise", - "loc": "23:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./raise", - "loc": "68:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/lower.js", - "name": "./node_modules/d3-selection/src/selection/lower.js", - "index": 111, - "index2": 100, - "size": 171, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./lower", - "loc": "24:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./lower", - "loc": "69:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/append.js", - "name": "./node_modules/d3-selection/src/selection/append.js", - "index": 112, - "index2": 102, - "size": 235, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./append", - "loc": "25:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./append", - "loc": "70:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/insert.js", - "name": "./node_modules/d3-selection/src/selection/insert.js", - "index": 114, - "index2": 103, - "size": 468, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./insert", - "loc": "26:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./insert", - "loc": "71:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/remove.js", - "name": "./node_modules/d3-selection/src/selection/remove.js", - "index": 115, - "index2": 104, - "size": 153, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove", - "loc": "27:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./remove", - "loc": "72:10-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/clone.js", - "name": "./node_modules/d3-selection/src/selection/clone.js", - "index": 116, - "index2": 105, - "size": 453, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clone", - "loc": "28:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./clone", - "loc": "73:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/datum.js", - "name": "./node_modules/d3-selection/src/selection/datum.js", - "index": 117, - "index2": 106, - "size": 132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./datum", - "loc": "29:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./datum", - "loc": "74:9-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/dispatch.js", - "name": "./node_modules/d3-selection/src/selection/dispatch.js", - "index": 119, - "index2": 108, - "size": 891, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - } - ], - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./dispatch", - "loc": "31:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "module": "./node_modules/d3-selection/src/selection/index.js", - "moduleName": "./node_modules/d3-selection/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./dispatch", - "loc": "76:12-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/noevent.js", - "name": "./node_modules/d3-drag/src/noevent.js", - "index": 142, - "index2": 136, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/nodrag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "name": "./node_modules/d3-drag/src/nodrag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 57, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "6:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "8:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/nodrag.js", - "module": "./node_modules/d3-drag/src/nodrag.js", - "moduleName": "./node_modules/d3-drag/src/nodrag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "19:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "56:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "75:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "87:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "99:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "113:8-21" - } - ], - "usedExports": [ - "default", - "nopropagation" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/define.js", - "name": "./node_modules/d3-color/src/define.js", - "index": 58, - "index2": 46, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/color.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "name": "./node_modules/d3-color/src/color.js", - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - } - } - ], - "profile": { - "factory": 63, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./define.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "39:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "39:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "45:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "45:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "113:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "113:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "170:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "242:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "242:17-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "328:0-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/color.js", - "module": "./node_modules/d3-color/src/color.js", - "moduleName": "./node_modules/d3-color/src/color.js", - "type": "harmony import specifier", - "userRequest": "./define.js", - "loc": "328:17-23" - } - ], - "usedExports": [ - "default", - "extend" - ], - "providedExports": [ - "default", - "extend" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/constant.js", - "name": "./node_modules/d3-interpolate/src/constant.js", - "index": 61, - "index2": 48, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/value.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "module": "./node_modules/d3-interpolate/src/value.js", - "moduleName": "./node_modules/d3-interpolate/src/value.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "13:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "17:82-90" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "22:42-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "module": "./node_modules/d3-interpolate/src/color.js", - "moduleName": "./node_modules/d3-interpolate/src/color.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "28:28-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/color.js", - "name": "./node_modules/d3-interpolate/src/color.js", - "index": 60, - "index2": 49, - "size": 700, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/rgb.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/value.js", - "name": "./node_modules/d3-interpolate/src/value.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "name": "./node_modules/d3-interpolate/src/rgb.js", - "profile": { - "factory": 113, - "building": 47, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 28, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "module": "./node_modules/d3-interpolate/src/hue.js", - "moduleName": "./node_modules/d3-interpolate/src/hue.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony side effect evaluation", - "userRequest": "./color.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hue.js", - "module": "./node_modules/d3-interpolate/src/hue.js", - "moduleName": "./node_modules/d3-interpolate/src/hue.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "4:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "6:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "7:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/lab.js", - "module": "./node_modules/d3-interpolate/src/lab.js", - "moduleName": "./node_modules/d3-interpolate/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "8:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "9:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "9:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "10:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "11:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "12:20-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/rgb.js", - "module": "./node_modules/d3-interpolate/src/rgb.js", - "moduleName": "./node_modules/d3-interpolate/src/rgb.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "13:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "20:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "20:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hcl.js", - "module": "./node_modules/d3-interpolate/src/hcl.js", - "moduleName": "./node_modules/d3-interpolate/src/hcl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "21:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/hsl.js", - "module": "./node_modules/d3-interpolate/src/hsl.js", - "moduleName": "./node_modules/d3-interpolate/src/hsl.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "21:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "28:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/cubehelix.js", - "module": "./node_modules/d3-interpolate/src/cubehelix.js", - "moduleName": "./node_modules/d3-interpolate/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./color.js", - "loc": "29:37-42" - } - ], - "usedExports": [ - "gamma", - "default", - "hue" - ], - "providedExports": [ - "hue", - "gamma", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import constant from \"./constant.js\";\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/sourceEvent.js", - "name": "./node_modules/d3-selection/src/sourceEvent.js", - "index": 132, - "index2": 126, - "size": 175, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/touches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "name": "./node_modules/d3-selection/src/touches.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - } - ], - "profile": { - "factory": 95, - "building": 17, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony side effect evaluation", - "userRequest": "./sourceEvent", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/mouse.js", - "module": "./node_modules/d3-selection/src/mouse.js", - "moduleName": "./node_modules/d3-selection/src/mouse.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touches.js", - "module": "./node_modules/d3-selection/src/touches.js", - "moduleName": "./node_modules/d3-selection/src/touches.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:33-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/touch.js", - "module": "./node_modules/d3-selection/src/touch.js", - "moduleName": "./node_modules/d3-selection/src/touch.js", - "type": "harmony import specifier", - "userRequest": "./sourceEvent", - "loc": "5:60-71" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"./selection/on\";\n\nexport default function() {\n var current = event, source;\n while (source = current.sourceEvent) current = source;\n return current;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/schedule.js", - "name": "./node_modules/d3-transition/src/transition/schedule.js", - "index": 47, - "index2": 41, - "size": 4617, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/interrupt.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "name": "./node_modules/d3-transition/src/interrupt.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 39, - "building": 57, - "dependencies": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/schedule.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "module": "./node_modules/d3-transition/src/transition/end.js", - "moduleName": "./node_modules/d3-transition/src/transition/end.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "../transition/schedule.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition/schedule.js", - "loc": "2:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony side effect evaluation", - "userRequest": "./schedule.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "5:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "5:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "6:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "module": "./node_modules/d3-transition/src/transition/end.js", - "moduleName": "./node_modules/d3-transition/src/transition/end.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "10:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "11:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "11:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "12:43-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "module": "./node_modules/d3-transition/src/transition/transition.js", - "moduleName": "./node_modules/d3-transition/src/transition/transition.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "13:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/active.js", - "module": "./node_modules/d3-transition/src/active.js", - "moduleName": "./node_modules/d3-transition/src/active.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "14:44-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "14:89-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "module": "./node_modules/d3-transition/src/transition/ease.js", - "moduleName": "./node_modules/d3-transition/src/transition/ease.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "15:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "module": "./node_modules/d3-transition/src/transition/selectAll.js", - "moduleName": "./node_modules/d3-transition/src/transition/selectAll.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "16:30-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "module": "./node_modules/d3-transition/src/transition/select.js", - "moduleName": "./node_modules/d3-transition/src/transition/select.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "16:53-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "16:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/interrupt.js", - "module": "./node_modules/d3-transition/src/interrupt.js", - "moduleName": "./node_modules/d3-transition/src/interrupt.js", - "type": "harmony import specifier", - "userRequest": "./transition/schedule.js", - "loc": "17:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "module": "./node_modules/d3-transition/src/transition/duration.js", - "moduleName": "./node_modules/d3-transition/src/transition/duration.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "22:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "module": "./node_modules/d3-transition/src/transition/delay.js", - "moduleName": "./node_modules/d3-transition/src/transition/delay.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "22:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "module": "./node_modules/d3-transition/src/transition/on.js", - "moduleName": "./node_modules/d3-transition/src/transition/on.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "30:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "31:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "module": "./node_modules/d3-transition/src/selection/transition.js", - "moduleName": "./node_modules/d3-transition/src/selection/transition.js", - "type": "harmony import specifier", - "userRequest": "../transition/schedule.js", - "loc": "36:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "56:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "58:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "74:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "module": "./node_modules/d3-transition/src/transition/tween.js", - "moduleName": "./node_modules/d3-transition/src/transition/tween.js", - "type": "harmony import specifier", - "userRequest": "./schedule.js", - "loc": "79:11-14" - } - ], - "usedExports": [ - "STARTING", - "ENDING", - "ENDED", - "SCHEDULED", - "set", - "get", - "init", - "default" - ], - "providedExports": [ - "CREATED", - "SCHEDULED", - "STARTING", - "STARTED", - "RUNNING", - "ENDING", - "ENDED", - "default", - "init", - "set", - "get" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {dispatch} from \"d3-dispatch\";\nimport {timer, timeout} from \"d3-timer\";\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nexport var CREATED = 0;\nexport var SCHEDULED = 1;\nexport var STARTING = 2;\nexport var STARTED = 3;\nexport var RUNNING = 4;\nexport var ENDING = 5;\nexport var ENDED = 6;\n\nexport default function(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nexport function init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nexport function set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nexport function get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return; // eslint-disable-line no-unused-vars\n delete node.__transition;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/interrupt.js", - "name": "./node_modules/d3-transition/src/selection/interrupt.js", - "index": 45, - "index2": 43, - "size": 141, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./interrupt.js", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./interrupt.js", - "loc": "5:32-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import interrupt from \"../interrupt.js\";\n\nexport default function(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "name": "./node_modules/d3-interpolate/src/transform/parse.js", - "index": 68, - "index2": 58, - "size": 983, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/transform/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - } - ], - "profile": { - "factory": 54, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./parse.js", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "./parse.js", - "loc": "62:58-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "module": "./node_modules/d3-interpolate/src/transform/index.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/index.js", - "type": "harmony import specifier", - "userRequest": "./parse.js", - "loc": "63:58-66" - } - ], - "usedExports": [ - "parseCss", - "parseSvg" - ], - "providedExports": [ - "parseCss", - "parseSvg" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import decompose, {identity} from \"./decompose.js\";\n\nvar cssNode,\n cssRoot,\n cssView,\n svgNode;\n\nexport function parseCss(value) {\n if (value === \"none\") return identity;\n if (!cssNode) cssNode = document.createElement(\"DIV\"), cssRoot = document.documentElement, cssView = document.defaultView;\n cssNode.style.transform = value;\n value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue(\"transform\");\n cssRoot.removeChild(cssNode);\n value = value.slice(7, -1).split(\",\");\n return decompose(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]);\n}\n\nexport function parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/tween.js", - "name": "./node_modules/d3-transition/src/transition/tween.js", - "index": 54, - "index2": 44, - "size": 2029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "module": "./node_modules/d3-transition/src/transition/text.js", - "moduleName": "./node_modules/d3-transition/src/transition/text.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "module": "./node_modules/d3-transition/src/transition/text.js", - "moduleName": "./node_modules/d3-transition/src/transition/text.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "18:21-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./tween.js", - "loc": "19:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "63:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "75:47-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "userRequest": "./tween.js", - "loc": "75:70-80" - } - ], - "usedExports": [ - "default", - "tweenValue" - ], - "providedExports": [ - "default", - "tweenValue" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nexport default function(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nexport function tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "name": "./node_modules/d3-transition/src/transition/attr.js", - "index": 53, - "index2": 60, - "size": 2673, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attr.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./attr.js", - "loc": "56:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateTransformSvg as interpolateTransform} from \"d3-interpolate\";\nimport {namespace} from \"d3-selection\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransform : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attrTween.js", - "name": "./node_modules/d3-transition/src/transition/attrTween.js", - "index": 70, - "index2": 61, - "size": 1148, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./attrTween.js", - "loc": "3:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./attrTween.js", - "loc": "57:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {namespace} from \"d3-selection\";\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/delay.js", - "name": "./node_modules/d3-transition/src/transition/delay.js", - "index": 71, - "index2": 62, - "size": 513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./delay.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./delay.js", - "loc": "64:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, init} from \"./schedule.js\";\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/duration.js", - "name": "./node_modules/d3-transition/src/transition/duration.js", - "index": 72, - "index2": 63, - "size": 531, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "5:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "65:12-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/ease.js", - "name": "./node_modules/d3-transition/src/transition/ease.js", - "index": 73, - "index2": 64, - "size": 351, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ease.js", - "loc": "6:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./ease.js", - "loc": "66:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set} from \"./schedule.js\";\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nexport default function(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/filter.js", - "name": "./node_modules/d3-transition/src/transition/filter.js", - "index": 74, - "index2": 66, - "size": 577, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./filter.js", - "loc": "7:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./filter.js", - "loc": "45:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {matcher} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/merge.js", - "name": "./node_modules/d3-transition/src/transition/merge.js", - "index": 76, - "index2": 67, - "size": 656, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./merge.js", - "loc": "8:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./merge.js", - "loc": "46:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition} from \"./index.js\";\n\nexport default function(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/on.js", - "name": "./node_modules/d3-transition/src/transition/on.js", - "index": 77, - "index2": 68, - "size": 856, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./on.js", - "loc": "9:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./on.js", - "loc": "55:6-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {get, set, init} from \"./schedule.js\";\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/remove.js", - "name": "./node_modules/d3-transition/src/transition/remove.js", - "index": 78, - "index2": 69, - "size": 284, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove.js", - "loc": "10:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "62:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nexport default function() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/select.js", - "name": "./node_modules/d3-transition/src/transition/select.js", - "index": 79, - "index2": 71, - "size": 832, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./select.js", - "loc": "11:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./select.js", - "loc": "43:10-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selector} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selectAll.js", - "name": "./node_modules/d3-transition/src/transition/selectAll.js", - "index": 81, - "index2": 73, - "size": 889, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selectAll.js", - "loc": "12:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./selectAll.js", - "loc": "44:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selectorAll} from \"d3-selection\";\nimport {Transition} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/selection.js", - "name": "./node_modules/d3-transition/src/transition/selection.js", - "index": 83, - "index2": 110, - "size": 174, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./selection.js", - "loc": "13:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./selection.js", - "loc": "47:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {selection} from \"d3-selection\";\n\nvar Selection = selection.prototype.constructor;\n\nexport default function() {\n return new Selection(this._groups, this._parents);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "name": "./node_modules/d3-transition/src/transition/style.js", - "index": 120, - "index2": 111, - "size": 2748, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./style.js", - "loc": "14:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./style.js", - "loc": "58:9-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateTransformCss as interpolateTransform} from \"d3-interpolate\";\nimport {style} from \"d3-selection\";\nimport {set} from \"./schedule.js\";\nimport {tweenValue} from \"./tween.js\";\nimport interpolate from \"./interpolate.js\";\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nexport default function(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransform : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/styleTween.js", - "name": "./node_modules/d3-transition/src/transition/styleTween.js", - "index": 121, - "index2": 112, - "size": 742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./styleTween.js", - "loc": "15:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./styleTween.js", - "loc": "59:14-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/text.js", - "name": "./node_modules/d3-transition/src/transition/text.js", - "index": 122, - "index2": 113, - "size": 476, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./text.js", - "loc": "16:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./text.js", - "loc": "60:8-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {tweenValue} from \"./tween.js\";\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nexport default function(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/textTween.js", - "name": "./node_modules/d3-transition/src/transition/textTween.js", - "index": 123, - "index2": 114, - "size": 599, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./textTween.js", - "loc": "17:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./textTween.js", - "loc": "61:13-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nexport default function(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/transition.js", - "name": "./node_modules/d3-transition/src/transition/transition.js", - "index": 124, - "index2": 115, - "size": 697, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition.js", - "loc": "18:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./transition.js", - "loc": "48:14-35" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition, newId} from \"./index.js\";\nimport schedule, {get} from \"./schedule.js\";\n\nexport default function() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/end.js", - "name": "./node_modules/d3-transition/src/transition/end.js", - "index": 125, - "index2": 116, - "size": 747, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./end.js", - "loc": "20:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "module": "./node_modules/d3-transition/src/transition/index.js", - "moduleName": "./node_modules/d3-transition/src/transition/index.js", - "type": "harmony import specifier", - "userRequest": "./end.js", - "loc": "67:7-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {set} from \"./schedule.js\";\n\nexport default function() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "index": 51, - "index2": 119, - "size": 1096, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/selection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./transition.js", - "loc": "3:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "module": "./node_modules/d3-transition/src/selection/index.js", - "moduleName": "./node_modules/d3-transition/src/selection/index.js", - "type": "harmony import specifier", - "userRequest": "./transition.js", - "loc": "6:33-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {Transition, newId} from \"../transition/index.js\";\nimport schedule from \"../transition/schedule.js\";\nimport {easeCubicInOut} from \"d3-ease\";\nimport {now} from \"d3-timer\";\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n return defaultTiming.time = now(), defaultTiming;\n }\n }\n return timing;\n}\n\nexport default function(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/constant.js", - "name": "./node_modules/d3-brush/src/constant.js", - "index": 128, - "index2": 123, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "6:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "564:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "568:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "572:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/event.js", - "name": "./node_modules/d3-brush/src/event.js", - "index": 129, - "index2": 124, - "size": 127, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "7:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "320:22-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(target, type, selection) {\n this.target = target;\n this.type = type;\n this.selection = selection;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/noevent.js", - "name": "./node_modules/d3-brush/src/noevent.js", - "index": 130, - "index2": 125, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "issuerId": null, - "issuerName": "./node_modules/d3-brush/src/brush.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/index.js", - "name": "./node_modules/d3-brush/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "name": "./node_modules/d3-brush/src/brush.js", - "profile": { - "factory": 73, - "building": 72, - "dependencies": 57 - } - } - ], - "profile": { - "factory": 107, - "building": 43, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "8:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "389:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "402:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "462:6-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "505:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-brush/src/brush.js", - "module": "./node_modules/d3-brush/src/brush.js", - "moduleName": "./node_modules/d3-brush/src/brush.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "544:6-13" - } - ], - "usedExports": [ - "nopropagation", - "default" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/math.js", - "name": "./node_modules/d3-chord/src/math.js", - "index": 145, - "index2": 140, - "size": 159, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony side effect evaluation", - "userRequest": "./math", - "loc": "2:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./math", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "40:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "41:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "42:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "43:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "45:45-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "46:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "53:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "53:57-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "59:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "60:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/chord.js", - "module": "./node_modules/d3-chord/src/chord.js", - "moduleName": "./node_modules/d3-chord/src/chord.js", - "type": "harmony import specifier", - "userRequest": "./math", - "loc": "105:42-45" - } - ], - "usedExports": [ - "halfPi", - "cos", - "sin", - "max", - "tau" - ], - "providedExports": [ - "cos", - "sin", - "pi", - "halfPi", - "tau", - "max" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var cos = Math.cos;\nexport var sin = Math.sin;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = pi * 2;\nexport var max = Math.max;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/array.js", - "name": "./node_modules/d3-chord/src/array.js", - "index": 147, - "index2": 142, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "36:15-20" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/constant.js", - "name": "./node_modules/d3-chord/src/constant.js", - "index": 148, - "index2": 143, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "issuerId": null, - "issuerName": "./node_modules/d3-chord/src/ribbon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/index.js", - "name": "./node_modules/d3-chord/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "name": "./node_modules/d3-chord/src/ribbon.js", - "profile": { - "factory": 188, - "building": 35, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 120, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "63:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "67:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-chord/src/ribbon.js", - "module": "./node_modules/d3-chord/src/ribbon.js", - "moduleName": "./node_modules/d3-chord/src/ribbon.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "71:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/math.js", - "name": "./node_modules/d3-color/src/math.js", - "index": 159, - "index2": 154, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "issuerId": null, - "issuerName": "./node_modules/d3-color/src/cubehelix.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/index.js", - "name": "./node_modules/d3-color/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "name": "./node_modules/d3-color/src/cubehelix.js", - "profile": { - "factory": 78, - "building": 55, - "dependencies": 61 - } - } - ], - "profile": { - "factory": 61, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/cubehelix.js", - "module": "./node_modules/d3-color/src/cubehelix.js", - "moduleName": "./node_modules/d3-color/src/cubehelix.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "88:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-color/src/lab.js", - "module": "./node_modules/d3-color/src/lab.js", - "moduleName": "./node_modules/d3-color/src/lab.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:16-23" - } - ], - "usedExports": [ - "rad2deg", - "deg2rad" - ], - "providedExports": [ - "deg2rad", - "rad2deg" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/array.js", - "name": "./node_modules/d3-contour/src/array.js", - "index": 163, - "index2": 158, - "size": 62, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "123:101-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "195:101-106" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var slice = array.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/ascending.js", - "name": "./node_modules/d3-contour/src/ascending.js", - "index": 164, - "index2": 159, - "size": 50, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./ascending", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./ascending", - "loc": "43:27-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n return a - b;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/area.js", - "name": "./node_modules/d3-contour/src/area.js", - "index": 165, - "index2": 160, - "size": 230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./area", - "loc": "4:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./area", - "loc": "59:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(ring) {\n var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];\n while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];\n return area;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/constant.js", - "name": "./node_modules/d3-contour/src/constant.js", - "index": 166, - "index2": 161, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "30:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "98:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "102:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "106:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "123:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "123:118-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "195:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "195:118-126" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contains.js", - "name": "./node_modules/d3-contour/src/contains.js", - "index": 167, - "index2": 162, - "size": 871, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./contains", - "loc": "6:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./contains", - "loc": "65:12-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(ring, hole) {\n var i = -1, n = hole.length, c;\n while (++i < n) if (c = ringContains(ring, hole[i])) return c;\n return 0;\n}\n\nfunction ringContains(ring, point) {\n var x = point[0], y = point[1], contains = -1;\n for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {\n var pi = ring[i], xi = pi[0], yi = pi[1], pj = ring[j], xj = pj[0], yj = pj[1];\n if (segmentContains(pi, pj, point)) return 0;\n if (((yi > y) !== (yj > y)) && ((x < (xj - xi) * (y - yi) / (yj - yi) + xi))) contains = -contains;\n }\n return contains;\n}\n\nfunction segmentContains(a, b, c) {\n var i; return collinear(a, b, c) && within(a[i = +(a[0] === b[0])], c[i], b[i]);\n}\n\nfunction collinear(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) === (c[0] - a[0]) * (b[1] - a[1]);\n}\n\nfunction within(p, q, r) {\n return p <= q && q <= r || r <= q && q <= p;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/noop.js", - "name": "./node_modules/d3-contour/src/noop.js", - "index": 168, - "index2": 163, - "size": 29, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/contours.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "name": "./node_modules/d3-contour/src/contours.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 116, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop", - "loc": "7:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/contours.js", - "module": "./node_modules/d3-contour/src/contours.js", - "moduleName": "./node_modules/d3-contour/src/contours.js", - "type": "harmony import specifier", - "userRequest": "./noop", - "loc": "199:59-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/blur.js", - "name": "./node_modules/d3-contour/src/blur.js", - "index": 170, - "index2": 165, - "size": 1095, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "issuerId": null, - "issuerName": "./node_modules/d3-contour/src/density.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/index.js", - "name": "./node_modules/d3-contour/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "name": "./node_modules/d3-contour/src/density.js", - "profile": { - "factory": 187, - "building": 41, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony side effect evaluation", - "userRequest": "./blur", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "46:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "47:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "48:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "49:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "50:4-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-contour/src/density.js", - "module": "./node_modules/d3-contour/src/density.js", - "moduleName": "./node_modules/d3-contour/src/density.js", - "type": "harmony import specifier", - "userRequest": "./blur", - "loc": "51:4-9" - } - ], - "usedExports": [ - "blurX", - "blurY" - ], - "providedExports": [ - "blurX", - "blurY" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurX(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var j = 0; j < m; ++j) {\n for (var i = 0, sr = 0; i < n + r; ++i) {\n if (i < n) {\n sr += source.data[i + j * n];\n }\n if (i >= r) {\n if (i >= w) {\n sr -= source.data[i - w + j * n];\n }\n target.data[i - r + j * n] = sr / Math.min(i + 1, n - 1 + w - i, w);\n }\n }\n }\n}\n\n// TODO Optimize edge cases.\n// TODO Optimize index calculation.\n// TODO Optimize arguments.\nexport function blurY(source, target, r) {\n var n = source.width,\n m = source.height,\n w = (r << 1) + 1;\n for (var i = 0; i < n; ++i) {\n for (var j = 0, sr = 0; j < m + r; ++j) {\n if (j < m) {\n sr += source.data[i + j * n];\n }\n if (j >= r) {\n if (j >= w) {\n sr -= source.data[i + (j - w) * n];\n }\n target.data[i + (j - r) * n] = sr / Math.min(j + 1, m - 1 + w - j, w);\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/constant.js", - "name": "./node_modules/d3-drag/src/constant.js", - "index": 175, - "index2": 170, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/drag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 58, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "5:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "142:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "146:73-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "150:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "154:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/event.js", - "name": "./node_modules/d3-drag/src/event.js", - "index": 174, - "index2": 169, - "size": 430, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "issuerId": null, - "issuerName": "./node_modules/d3-drag/src/drag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/index.js", - "name": "./node_modules/d3-drag/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "name": "./node_modules/d3-drag/src/drag.js", - "profile": { - "factory": 77, - "building": 60, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 58, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "6:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "123:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-drag/src/drag.js", - "module": "./node_modules/d3-drag/src/drag.js", - "moduleName": "./node_modules/d3-drag/src/drag.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "137:22-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {\n this.target = target;\n this.type = type;\n this.subject = subject;\n this.identifier = id;\n this.active = active;\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this._ = dispatch;\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/constant.js", - "name": "./node_modules/d3-force/src/constant.js", - "index": 202, - "index2": 197, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/y.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "name": "./node_modules/d3-force/src/y.js", - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - } - } - ], - "profile": { - "factory": 17, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "4:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "4:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "5:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "9:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "10:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "19:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "19:45-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "33:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "33:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/y.js", - "module": "./node_modules/d3-force/src/y.js", - "moduleName": "./node_modules/d3-force/src/y.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "37:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/x.js", - "module": "./node_modules/d3-force/src/x.js", - "moduleName": "./node_modules/d3-force/src/x.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "37:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "41:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/radial.js", - "module": "./node_modules/d3-force/src/radial.js", - "moduleName": "./node_modules/d3-force/src/radial.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "45:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "94:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "98:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "108:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "112:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/jiggle.js", - "name": "./node_modules/d3-force/src/jiggle.js", - "index": 203, - "index2": 198, - "size": 69, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "issuerId": null, - "issuerName": "./node_modules/d3-force/src/manyBody.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/index.js", - "name": "./node_modules/d3-force/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "name": "./node_modules/d3-force/src/manyBody.js", - "profile": { - "factory": 893, - "building": 18, - "dependencies": 16 - } - } - ], - "profile": { - "factory": 11, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony side effect evaluation", - "userRequest": "./jiggle", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "36:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/link.js", - "module": "./node_modules/d3-force/src/link.js", - "moduleName": "./node_modules/d3-force/src/link.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "37:59-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "49:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/collide.js", - "module": "./node_modules/d3-force/src/collide.js", - "moduleName": "./node_modules/d3-force/src/collide.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "50:29-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "66:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "67:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "80:23-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-force/src/manyBody.js", - "module": "./node_modules/d3-force/src/manyBody.js", - "moduleName": "./node_modules/d3-force/src/manyBody.js", - "type": "harmony import specifier", - "userRequest": "./jiggle", - "loc": "81:23-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return (Math.random() - 0.5) * 1e-6;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/add.js", - "name": "./node_modules/d3-quadtree/src/add.js", - "index": 207, - "index2": 201, - "size": 2368, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./add.js", - "loc": "1:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./add.js", - "loc": "60:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./add.js", - "loc": "61:19-30" - } - ], - "usedExports": [ - "default", - "addAll" - ], - "providedExports": [ - "default", - "addAll" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n var x = +this._x.call(null, d),\n y = +this._y.call(null, d);\n return add(this.cover(x, y), x, y, d);\n}\n\nfunction add(tree, x, y, d) {\n if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points\n\n var parent,\n node = tree._root,\n leaf = {data: d},\n x0 = tree._x0,\n y0 = tree._y0,\n x1 = tree._x1,\n y1 = tree._y1,\n xm,\n ym,\n xp,\n yp,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return tree._root = leaf, tree;\n\n // Find the existing leaf for the new point, or add it.\n while (node.length) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;\n }\n\n // Is the new point is exactly coincident with the existing point?\n xp = +tree._x.call(null, node.data);\n yp = +tree._y.call(null, node.data);\n if (x === xp && y === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;\n\n // Otherwise, split the leaf node until the old and new point are separated.\n do {\n parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n } while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | (xp >= xm)));\n return parent[j] = node, parent[i] = leaf, tree;\n}\n\nexport function addAll(data) {\n var d, i, n = data.length,\n x,\n y,\n xz = new Array(n),\n yz = new Array(n),\n x0 = Infinity,\n y0 = Infinity,\n x1 = -Infinity,\n y1 = -Infinity;\n\n // Compute the points and their extent.\n for (i = 0; i < n; ++i) {\n if (isNaN(x = +this._x.call(null, d = data[i])) || isNaN(y = +this._y.call(null, d))) continue;\n xz[i] = x;\n yz[i] = y;\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n }\n\n // If there were no (valid) points, abort.\n if (x0 > x1 || y0 > y1) return this;\n\n // Expand the tree to cover the new points.\n this.cover(x0, y0).cover(x1, y1);\n\n // Add the new points.\n for (i = 0; i < n; ++i) {\n add(this, xz[i], yz[i], data[i]);\n }\n\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/cover.js", - "name": "./node_modules/d3-quadtree/src/cover.js", - "index": 208, - "index2": 202, - "size": 1164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./cover.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./cover.js", - "loc": "62:18-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x, y) {\n if (isNaN(x = +x) || isNaN(y = +y)) return this; // ignore invalid points\n\n var x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1;\n\n // If the quadtree has no extent, initialize them.\n // Integer extent are necessary so that if we later double the extent,\n // the existing quadrant boundaries don’t change due to floating point error!\n if (isNaN(x0)) {\n x1 = (x0 = Math.floor(x)) + 1;\n y1 = (y0 = Math.floor(y)) + 1;\n }\n\n // Otherwise, double repeatedly to cover.\n else {\n var z = x1 - x0,\n node = this._root,\n parent,\n i;\n\n while (x0 > x || x >= x1 || y0 > y || y >= y1) {\n i = (y < y0) << 1 | (x < x0);\n parent = new Array(4), parent[i] = node, node = parent, z *= 2;\n switch (i) {\n case 0: x1 = x0 + z, y1 = y0 + z; break;\n case 1: x0 = x1 - z, y1 = y0 + z; break;\n case 2: x1 = x0 + z, y0 = y1 - z; break;\n case 3: x0 = x1 - z, y0 = y1 - z; break;\n }\n }\n\n if (this._root && this._root.length) this._root = node;\n }\n\n this._x0 = x0;\n this._y0 = y0;\n this._x1 = x1;\n this._y1 = y1;\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/data.js", - "name": "./node_modules/d3-quadtree/src/data.js", - "index": 209, - "index2": 203, - "size": 170, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./data.js", - "loc": "3:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./data.js", - "loc": "63:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var data = [];\n this.visit(function(node) {\n if (!node.length) do data.push(node.data); while (node = node.next)\n });\n return data;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/extent.js", - "name": "./node_modules/d3-quadtree/src/extent.js", - "index": 210, - "index2": 204, - "size": 206, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./extent.js", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./extent.js", - "loc": "64:19-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(_) {\n return arguments.length\n ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1])\n : isNaN(this._x0) ? undefined : [[this._x0, this._y0], [this._x1, this._y1]];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "name": "./node_modules/d3-quadtree/src/find.js", - "index": 211, - "index2": 206, - "size": 1699, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./find.js", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./find.js", - "loc": "65:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(x, y, radius) {\n var data,\n x0 = this._x0,\n y0 = this._y0,\n x1,\n y1,\n x2,\n y2,\n x3 = this._x1,\n y3 = this._y1,\n quads = [],\n node = this._root,\n q,\n i;\n\n if (node) quads.push(new Quad(node, x0, y0, x3, y3));\n if (radius == null) radius = Infinity;\n else {\n x0 = x - radius, y0 = y - radius;\n x3 = x + radius, y3 = y + radius;\n radius *= radius;\n }\n\n while (q = quads.pop()) {\n\n // Stop searching if this quadrant can’t contain a closer node.\n if (!(node = q.node)\n || (x1 = q.x0) > x3\n || (y1 = q.y0) > y3\n || (x2 = q.x1) < x0\n || (y2 = q.y1) < y0) continue;\n\n // Bisect the current quadrant.\n if (node.length) {\n var xm = (x1 + x2) / 2,\n ym = (y1 + y2) / 2;\n\n quads.push(\n new Quad(node[3], xm, ym, x2, y2),\n new Quad(node[2], x1, ym, xm, y2),\n new Quad(node[1], xm, y1, x2, ym),\n new Quad(node[0], x1, y1, xm, ym)\n );\n\n // Visit the closest quadrant first.\n if (i = (y >= ym) << 1 | (x >= xm)) {\n q = quads[quads.length - 1];\n quads[quads.length - 1] = quads[quads.length - 1 - i];\n quads[quads.length - 1 - i] = q;\n }\n }\n\n // Visit this point. (Visiting coincident points isn’t necessary!)\n else {\n var dx = x - +this._x.call(null, node.data),\n dy = y - +this._y.call(null, node.data),\n d2 = dx * dx + dy * dy;\n if (d2 < radius) {\n var d = Math.sqrt(radius = d2);\n x0 = x - d, y0 = y - d;\n x3 = x + d, y3 = y + d;\n data = node.data;\n }\n }\n }\n\n return data;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/remove.js", - "name": "./node_modules/d3-quadtree/src/remove.js", - "index": 213, - "index2": 207, - "size": 1898, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./remove.js", - "loc": "6:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "66:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./remove.js", - "loc": "67:22-36" - } - ], - "usedExports": [ - "default", - "removeAll" - ], - "providedExports": [ - "default", - "removeAll" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n if (isNaN(x = +this._x.call(null, d)) || isNaN(y = +this._y.call(null, d))) return this; // ignore invalid points\n\n var parent,\n node = this._root,\n retainer,\n previous,\n next,\n x0 = this._x0,\n y0 = this._y0,\n x1 = this._x1,\n y1 = this._y1,\n x,\n y,\n xm,\n ym,\n right,\n bottom,\n i,\n j;\n\n // If the tree is empty, initialize the root as a leaf.\n if (!node) return this;\n\n // Find the leaf node for the point.\n // While descending, also retain the deepest parent with a non-removed sibling.\n if (node.length) while (true) {\n if (right = x >= (xm = (x0 + x1) / 2)) x0 = xm; else x1 = xm;\n if (bottom = y >= (ym = (y0 + y1) / 2)) y0 = ym; else y1 = ym;\n if (!(parent = node, node = node[i = bottom << 1 | right])) return this;\n if (!node.length) break;\n if (parent[(i + 1) & 3] || parent[(i + 2) & 3] || parent[(i + 3) & 3]) retainer = parent, j = i;\n }\n\n // Find the point to remove.\n while (node.data !== d) if (!(previous = node, node = node.next)) return this;\n if (next = node.next) delete node.next;\n\n // If there are multiple coincident points, remove just the point.\n if (previous) return (next ? previous.next = next : delete previous.next), this;\n\n // If this is the root point, remove it.\n if (!parent) return this._root = next, this;\n\n // Remove this leaf.\n next ? parent[i] = next : delete parent[i];\n\n // If the parent now contains exactly one leaf, collapse superfluous parents.\n if ((node = parent[0] || parent[1] || parent[2] || parent[3])\n && node === (parent[3] || parent[2] || parent[1] || parent[0])\n && !node.length) {\n if (retainer) retainer[j] = node;\n else this._root = node;\n }\n\n return this;\n}\n\nexport function removeAll(data) {\n for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/root.js", - "name": "./node_modules/d3-quadtree/src/root.js", - "index": 214, - "index2": 208, - "size": 51, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./root.js", - "loc": "7:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./root.js", - "loc": "68:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return this._root;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/size.js", - "name": "./node_modules/d3-quadtree/src/size.js", - "index": 215, - "index2": 209, - "size": 155, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./size.js", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./size.js", - "loc": "69:17-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var size = 0;\n this.visit(function(node) {\n if (!node.length) do ++size; while (node = node.next)\n });\n return size;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "name": "./node_modules/d3-quadtree/src/visit.js", - "index": 216, - "index2": 210, - "size": 698, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./visit.js", - "loc": "9:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./visit.js", - "loc": "70:18-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], q, node = this._root, child, x0, y0, x1, y1;\n if (node) quads.push(new Quad(node, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n if (!callback(node = q.node, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1) && node.length) {\n var xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n }\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "name": "./node_modules/d3-quadtree/src/visitAfter.js", - "index": 217, - "index2": 211, - "size": 776, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./visitAfter.js", - "loc": "10:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./visitAfter.js", - "loc": "71:23-38" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import Quad from \"./quad.js\";\n\nexport default function(callback) {\n var quads = [], next = [], q;\n if (this._root) quads.push(new Quad(this._root, this._x0, this._y0, this._x1, this._y1));\n while (q = quads.pop()) {\n var node = q.node;\n if (node.length) {\n var child, x0 = q.x0, y0 = q.y0, x1 = q.x1, y1 = q.y1, xm = (x0 + x1) / 2, ym = (y0 + y1) / 2;\n if (child = node[0]) quads.push(new Quad(child, x0, y0, xm, ym));\n if (child = node[1]) quads.push(new Quad(child, xm, y0, x1, ym));\n if (child = node[2]) quads.push(new Quad(child, x0, ym, xm, y1));\n if (child = node[3]) quads.push(new Quad(child, xm, ym, x1, y1));\n }\n next.push(q);\n }\n while (q = next.pop()) {\n callback(q.node, q.x0, q.y0, q.x1, q.y1);\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/x.js", - "name": "./node_modules/d3-quadtree/src/x.js", - "index": 205, - "index2": 199, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./x.js", - "loc": "11:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./x.js", - "loc": "15:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./x.js", - "loc": "72:14-20" - } - ], - "usedExports": [ - "defaultX", - "default" - ], - "providedExports": [ - "defaultX", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function defaultX(d) {\n return d[0];\n}\n\nexport default function(_) {\n return arguments.length ? (this._x = _, this) : this._x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/y.js", - "name": "./node_modules/d3-quadtree/src/y.js", - "index": 206, - "index2": 200, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/quadtree.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - } - ], - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony side effect evaluation", - "userRequest": "./y.js", - "loc": "12:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./y.js", - "loc": "15:64-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "module": "./node_modules/d3-quadtree/src/quadtree.js", - "moduleName": "./node_modules/d3-quadtree/src/quadtree.js", - "type": "harmony import specifier", - "userRequest": "./y.js", - "loc": "73:14-20" - } - ], - "usedExports": [ - "defaultY", - "default" - ], - "providedExports": [ - "defaultY", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function defaultY(d) {\n return d[1];\n}\n\nexport default function(_) {\n return arguments.length ? (this._y = _, this) : this._y;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "name": "./node_modules/d3-format/src/exponent.js", - "index": 236, - "index2": 230, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "module": "./node_modules/d3-format/src/precisionFixed.js", - "moduleName": "./node_modules/d3-format/src/precisionFixed.js", - "type": "harmony side effect evaluation", - "userRequest": "./exponent.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionFixed.js", - "module": "./node_modules/d3-format/src/precisionFixed.js", - "moduleName": "./node_modules/d3-format/src/precisionFixed.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:22-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:57-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionPrefix.js", - "module": "./node_modules/d3-format/src/precisionPrefix.js", - "moduleName": "./node_modules/d3-format/src/precisionPrefix.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "4:86-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "5:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/precisionRound.js", - "module": "./node_modules/d3-format/src/precisionRound.js", - "moduleName": "./node_modules/d3-format/src/precisionRound.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "5:37-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./exponent.js", - "loc": "135:48-56" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x) {\n return x = formatDecimal(Math.abs(x)), x ? x[1] : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatGroup.js", - "name": "./node_modules/d3-format/src/formatGroup.js", - "index": 228, - "index2": 222, - "size": 475, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatGroup.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatGroup.js", - "loc": "14:91-102" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(grouping, thousands) {\n return function(value, width) {\n var i = value.length,\n t = [],\n j = 0,\n g = grouping[0],\n length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) g = Math.max(1, width - length);\n t.push(value.substring(i -= g, i + g));\n if ((length += g + 1) > width) break;\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatNumerals.js", - "name": "./node_modules/d3-format/src/formatNumerals.js", - "index": 229, - "index2": 223, - "size": 154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatNumerals.js", - "loc": "3:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatNumerals.js", - "loc": "18:60-74" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(numerals) {\n return function(value) {\n return value.replace(/[0-9]/g, function(i) {\n return numerals[+i];\n });\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTrim.js", - "name": "./node_modules/d3-format/src/formatTrim.js", - "index": 235, - "index2": 229, - "size": 399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatTrim.js", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTrim.js", - "loc": "81:26-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\nexport default function(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {\n switch (s[i]) {\n case \".\": i0 = i1 = i; break;\n case \"0\": if (i0 === 0) i0 = i; i1 = i; break;\n default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;\n }\n }\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "name": "./node_modules/d3-format/src/formatPrefixAuto.js", - "index": 234, - "index2": 227, - "size": 614, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatPrefixAuto.js", - "loc": "1:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatPrefixAuto.js", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatPrefixAuto.js", - "loc": "15:7-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatPrefixAuto.js", - "loc": "89:51-65" - } - ], - "usedExports": [ - "prefixExponent", - "default" - ], - "providedExports": [ - "prefixExponent", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport var prefixExponent;\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1],\n i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,\n n = coefficient.length;\n return i === n ? coefficient\n : i > n ? coefficient + new Array(i - n + 1).join(\"0\")\n : i > 0 ? coefficient.slice(0, i) + \".\" + coefficient.slice(i)\n : \"0.\" + new Array(1 - i).join(\"0\") + formatDecimal(x, Math.max(0, p + i - 1))[0]; // less than 1y!\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "name": "./node_modules/d3-format/src/formatTypes.js", - "index": 231, - "index2": 228, - "size": 786, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatTypes.js", - "loc": "6:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTypes.js", - "loc": "41:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./formatTypes.js", - "loc": "54:21-32" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import formatPrefixAuto from \"./formatPrefixAuto.js\";\nimport formatRounded from \"./formatRounded.js\";\n\nexport default {\n \"%\": function(x, p) { return (x * 100).toFixed(p); },\n \"b\": function(x) { return Math.round(x).toString(2); },\n \"c\": function(x) { return x + \"\"; },\n \"d\": function(x) { return Math.round(x).toString(10); },\n \"e\": function(x, p) { return x.toExponential(p); },\n \"f\": function(x, p) { return x.toFixed(p); },\n \"g\": function(x, p) { return x.toPrecision(p); },\n \"o\": function(x) { return Math.round(x).toString(8); },\n \"p\": function(x, p) { return formatRounded(x * 100, p); },\n \"r\": formatRounded,\n \"s\": formatPrefixAuto,\n \"X\": function(x) { return Math.round(x).toString(16).toUpperCase(); },\n \"x\": function(x) { return Math.round(x).toString(16); }\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/identity.js", - "name": "./node_modules/d3-format/src/identity.js", - "index": 227, - "index2": 221, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/locale.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - } - ], - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "14:80-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "module": "./node_modules/d3-format/src/locale.js", - "moduleName": "./node_modules/d3-format/src/locale.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "18:49-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/adder.js", - "name": "./node_modules/d3-geo/src/adder.js", - "index": 242, - "index2": 237, - "size": 906, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./adder.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../adder.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../adder.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "5:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "5:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "5:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "6:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../adder.js", - "loc": "6:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "6:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "8:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./adder.js", - "loc": "11:15-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Adds floating point numbers with twice the normal precision.\n// Reference: J. R. Shewchuk, Adaptive Precision Floating-Point Arithmetic and\n// Fast Robust Geometric Predicates, Discrete & Computational Geometry 18(3)\n// 305–363 (1997).\n// Code adapted from GeographicLib by Charles F. F. Karney,\n// http://geographiclib.sourceforge.net/\n\nexport default function() {\n return new Adder;\n}\n\nfunction Adder() {\n this.reset();\n}\n\nAdder.prototype = {\n constructor: Adder,\n reset: function() {\n this.s = // rounded value\n this.t = 0; // exact error\n },\n add: function(y) {\n add(temp, y, this.t);\n add(this, temp.s, this.s);\n if (this.s) this.t += temp.t;\n else this.s = temp.t;\n },\n valueOf: function() {\n return this.s;\n }\n};\n\nvar temp = new Adder;\n\nfunction add(adder, a, b) {\n var x = adder.s = a + b,\n bv = x - a,\n av = x - bv;\n adder.t = (a - av) + (b - bv);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/math.js", - "name": "./node_modules/d3-geo/src/math.js", - "index": 244, - "index2": 239, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "1:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "3:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "4:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:39-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:45-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "module": "./node_modules/d3-geo/src/pointEqual.js", - "moduleName": "./node_modules/d3-geo/src/pointEqual.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "4:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:24-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:59-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "5:66-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "6:0-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:13-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "6:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:27-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "7:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:27-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:39-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:4-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "8:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:23-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "8:58-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:18-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/transverseMercator.js", - "module": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/transverseMercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "9:41-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:41-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "9:54-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "10:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:32-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:32-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:40-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:46-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:52-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:53-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:58-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:69-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:88-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "module": "./node_modules/d3-geo/src/projection/conic.js", - "moduleName": "./node_modules/d3-geo/src/projection/conic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "11:104-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "12:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "12:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "13:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "13:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "14:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:29-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "14:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "15:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "15:38-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:19-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "16:56-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "17:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "17:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:49-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:19-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/naturalEarth1.js", - "module": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "moduleName": "./node_modules/d3-geo/src/projection/naturalEarth1.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:41-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "18:50-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "18:61-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:44-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:50-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:58-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "19:60-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:74-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "19:88-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "20:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:36-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:37-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "20:48-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:47-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "21:68-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "22:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "22:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "module": "./node_modules/d3-geo/src/projection/azimuthal.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "23:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "24:24-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "24:34-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "24:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:12-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "25:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "25:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:50-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:55-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "25:76-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "26:31-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "26:32-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "26:38-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "27:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "27:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:22-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "28:63-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:78-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "28:92-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:4-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/equalEarth.js", - "module": "./node_modules/d3-geo/src/projection/equalEarth.js", - "moduleName": "./node_modules/d3-geo/src/projection/equalEarth.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:61-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "29:71-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:78-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:92-99" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/interpolate.js", - "module": "./node_modules/d3-geo/src/interpolate.js", - "moduleName": "./node_modules/d3-geo/src/interpolate.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "30:31-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "module": "./node_modules/d3-geo/src/cartesian.js", - "moduleName": "./node_modules/d3-geo/src/cartesian.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:11-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "31:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:34-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:47-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:56-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:64-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "31:69-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "32:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "32:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "32:27-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:24-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:27-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "33:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:49-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:74-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "33:110-115" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "34:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "35:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "36:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "36:45-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "37:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "37:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "37:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "38:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "38:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "38:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "39:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "39:49-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "40:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "40:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "41:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "41:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "41:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "41:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "42:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "42:20-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "42:48-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "42:54-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "43:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/mercator.js", - "module": "./node_modules/d3-geo/src/projection/mercator.js", - "moduleName": "./node_modules/d3-geo/src/projection/mercator.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "43:12-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "44:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "44:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:22-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "45:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:36-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:50-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "46:72-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "47:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "48:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "49:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:31-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:44-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "49:70-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:7-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "50:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:45-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "50:47-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "51:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "51:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "52:35-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "52:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "54:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "55:6-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "56:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "56:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "57:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "57:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "58:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "59:60-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "60:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "60:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "60:36-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "61:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "62:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "62:33-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "63:9-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:25-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "63:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "63:99-106" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "64:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "64:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "64:50-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "65:48-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "66:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "66:68-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "67:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "67:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "71:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "71:75-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:29-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "72:61-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "73:22-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "74:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "76:65-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "77:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:19-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "78:56-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:90-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "78:115-122" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "80:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:32-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "81:52-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "82:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:63-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:90-97" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "83:115-122" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "84:35-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "84:41-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "86:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "86:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "module": "./node_modules/d3-geo/src/path/centroid.js", - "moduleName": "./node_modules/d3-geo/src/path/centroid.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "87:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "88:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "89:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "90:41-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "91:7-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "96:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "96:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "97:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "97:69-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "97:133-140" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "98:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "99:54-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:33-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/graticule.js", - "module": "./node_modules/d3-geo/src/graticule.js", - "moduleName": "./node_modules/d3-geo/src/graticule.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "100:54-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "104:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "105:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:17-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:81-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:114-121" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "113:129-136" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:91-98" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:141-148" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:183-190" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:203-210" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "117:225-232" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "121:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "121:80-87" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "125:104-108" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "129:55-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "130:10-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:45-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "130:55-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "135:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "136:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:33-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "139:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:28-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "152:34-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "153:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "160:38-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "160:60-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "162:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "172:35-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "181:77-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "181:90-92" - } - ], - "usedExports": [ - "abs", - "pi", - "tau", - "cos", - "sin", - "atan2", - "asin", - "radians", - "degrees", - "log", - "tan", - "halfPi", - "atan", - "exp", - "sqrt", - "epsilon", - "epsilon2", - "sign", - "pow", - "acos", - "haversin", - "ceil", - "quarterPi" - ], - "providedExports": [ - "epsilon", - "epsilon2", - "pi", - "halfPi", - "quarterPi", - "tau", - "degrees", - "radians", - "abs", - "atan", - "atan2", - "cos", - "ceil", - "exp", - "floor", - "log", - "pow", - "sin", - "sign", - "sqrt", - "tan", - "acos", - "asin", - "haversin" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var quarterPi = pi / 4;\nexport var tau = pi * 2;\n\nexport var degrees = 180 / pi;\nexport var radians = pi / 180;\n\nexport var abs = Math.abs;\nexport var atan = Math.atan;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var ceil = Math.ceil;\nexport var exp = Math.exp;\nexport var floor = Math.floor;\nexport var log = Math.log;\nexport var pow = Math.pow;\nexport var sin = Math.sin;\nexport var sign = Math.sign || function(x) { return x > 0 ? 1 : x < 0 ? -1 : 0; };\nexport var sqrt = Math.sqrt;\nexport var tan = Math.tan;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x);\n}\n\nexport function haversin(x) {\n return (x = sin(x / 2)) * x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/noop.js", - "name": "./node_modules/d3-geo/src/noop.js", - "index": 243, - "index2": 238, - "size": 34, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/area.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "name": "./node_modules/d3-geo/src/area.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 114, - "building": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "module": "./node_modules/d3-geo/src/clip/buffer.js", - "moduleName": "./node_modules/d3-geo/src/clip/buffer.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "2:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "3:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony side effect evaluation", - "userRequest": "./noop.js", - "loc": "3:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "12:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "12:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/centroid.js", - "module": "./node_modules/d3-geo/src/centroid.js", - "moduleName": "./node_modules/d3-geo/src/centroid.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "13:10-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "module": "./node_modules/d3-geo/src/clip/buffer.js", - "moduleName": "./node_modules/d3-geo/src/clip/buffer.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "module": "./node_modules/d3-geo/src/path/bounds.js", - "moduleName": "./node_modules/d3-geo/src/path/bounds.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "13:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "14:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "15:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "15:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "16:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "16:16-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "17:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "17:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "18:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "module": "./node_modules/d3-geo/src/path/measure.js", - "moduleName": "./node_modules/d3-geo/src/path/measure.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "19:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "module": "./node_modules/d3-geo/src/path/area.js", - "moduleName": "./node_modules/d3-geo/src/path/area.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "21:67-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/length.js", - "module": "./node_modules/d3-geo/src/length.js", - "moduleName": "./node_modules/d3-geo/src/length.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "26:46-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/area.js", - "module": "./node_modules/d3-geo/src/area.js", - "moduleName": "./node_modules/d3-geo/src/area.js", - "type": "harmony import specifier", - "userRequest": "./noop.js", - "loc": "27:49-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "module": "./node_modules/d3-geo/src/path/context.js", - "moduleName": "./node_modules/d3-geo/src/path/context.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "44:10-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function noop() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/cartesian.js", - "name": "./node_modules/d3-geo/src/cartesian.js", - "index": 247, - "index2": 242, - "size": 932, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../cartesian.js", - "loc": "1:0-120" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "1:0-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony side effect evaluation", - "userRequest": "../cartesian.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "2:0-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony side effect evaluation", - "userRequest": "./cartesian.js", - "loc": "3:0-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "21:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "28:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "29:2-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "48:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "50:17-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "52:21-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "53:4-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/bounds.js", - "module": "./node_modules/d3-geo/src/bounds.js", - "moduleName": "./node_modules/d3-geo/src/bounds.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "54:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:18-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "55:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "56:8-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "57:27-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "module": "./node_modules/d3-geo/src/polygonContains.js", - "moduleName": "./node_modules/d3-geo/src/polygonContains.js", - "type": "harmony import specifier", - "userRequest": "./cartesian.js", - "loc": "58:8-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "module": "./node_modules/d3-geo/src/projection/resample.js", - "moduleName": "./node_modules/d3-geo/src/projection/resample.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "73:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "106:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "107:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "112:13-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "113:15-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "122:16-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "123:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "124:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "125:4-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "129:12-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "130:13-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "131:27-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "136:12-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "137:4-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "138:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "163:15-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "164:6-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../cartesian.js", - "loc": "165:17-26" - } - ], - "usedExports": [ - "cartesian", - "cartesianCross", - "cartesianNormalizeInPlace", - "cartesianDot", - "cartesianScale", - "cartesianAddInPlace", - "spherical" - ], - "providedExports": [ - "spherical", - "cartesian", - "cartesianDot", - "cartesianCross", - "cartesianAddInPlace", - "cartesianScale", - "cartesianNormalizeInPlace" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, atan2, cos, sin, sqrt} from \"./math.js\";\n\nexport function spherical(cartesian) {\n return [atan2(cartesian[1], cartesian[0]), asin(cartesian[2])];\n}\n\nexport function cartesian(spherical) {\n var lambda = spherical[0], phi = spherical[1], cosPhi = cos(phi);\n return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];\n}\n\nexport function cartesianDot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n}\n\nexport function cartesianCross(a, b) {\n return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];\n}\n\n// TODO return a\nexport function cartesianAddInPlace(a, b) {\n a[0] += b[0], a[1] += b[1], a[2] += b[2];\n}\n\nexport function cartesianScale(vector, k) {\n return [vector[0] * k, vector[1] * k, vector[2] * k];\n}\n\n// TODO return d\nexport function cartesianNormalizeInPlace(d) {\n var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);\n d[0] /= l, d[1] /= l, d[2] /= l;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/constant.js", - "name": "./node_modules/d3-geo/src/constant.js", - "index": 250, - "index2": 245, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "name": "./node_modules/d3-geo/src/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "35:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "36:15-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "37:18-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "60:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "64:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/circle.js", - "module": "./node_modules/d3-geo/src/circle.js", - "moduleName": "./node_modules/d3-geo/src/circle.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "68:73-81" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/compose.js", - "name": "./node_modules/d3-geo/src/compose.js", - "index": 252, - "index2": 246, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/rotation.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "name": "./node_modules/d3-geo/src/rotation.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 47, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony side effect evaluation", - "userRequest": "./compose.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../compose.js", - "loc": "4:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/rotation.js", - "module": "./node_modules/d3-geo/src/rotation.js", - "moduleName": "./node_modules/d3-geo/src/rotation.js", - "type": "harmony import specifier", - "userRequest": "./compose.js", - "loc": "11:58-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../compose.js", - "loc": "148:23-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../compose.js", - "loc": "149:29-36" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/buffer.js", - "name": "./node_modules/d3-geo/src/clip/buffer.js", - "index": 255, - "index2": 249, - "size": 473, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./buffer.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "./buffer.js", - "loc": "10:21-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./buffer.js", - "loc": "53:23-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import noop from \"../noop.js\";\n\nexport default function() {\n var lines = [],\n line;\n return {\n point: function(x, y) {\n line.push([x, y]);\n },\n lineStart: function() {\n lines.push(line = []);\n },\n lineEnd: noop,\n rejoin: function() {\n if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));\n },\n result: function() {\n var result = lines;\n lines = [];\n line = null;\n return result;\n }\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/pointEqual.js", - "name": "./node_modules/d3-geo/src/pointEqual.js", - "index": 258, - "index2": 251, - "size": 142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "module": "./node_modules/d3-geo/src/clip/rejoin.js", - "moduleName": "./node_modules/d3-geo/src/clip/rejoin.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointEqual.js", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../pointEqual.js", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "module": "./node_modules/d3-geo/src/clip/rejoin.js", - "moduleName": "./node_modules/d3-geo/src/clip/rejoin.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "28:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "48:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "48:55-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "../pointEqual.js", - "loc": "87:30-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {abs, epsilon} from \"./math.js\";\n\nexport default function(a, b) {\n return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rejoin.js", - "name": "./node_modules/d3-geo/src/clip/rejoin.js", - "index": 257, - "index2": 252, - "size": 2805, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./rejoin.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./rejoin.js", - "loc": "4:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "./rejoin.js", - "loc": "36:10-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./rejoin.js", - "loc": "105:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import pointEqual from \"../pointEqual.js\";\n\nfunction Intersection(point, points, other, entry) {\n this.x = point;\n this.z = points;\n this.o = other; // another intersection\n this.e = entry; // is an entry?\n this.v = false; // visited\n this.n = this.p = null; // next & previous\n}\n\n// A generalized polygon clipping algorithm: given a polygon that has been cut\n// into its visible line segments, and rejoins the segments by interpolating\n// along the clip edge.\nexport default function(segments, compareIntersection, startInside, interpolate, stream) {\n var subject = [],\n clip = [],\n i,\n n;\n\n segments.forEach(function(segment) {\n if ((n = segment.length - 1) <= 0) return;\n var n, p0 = segment[0], p1 = segment[n], x;\n\n // If the first and last points of a segment are coincident, then treat as a\n // closed ring. TODO if all rings are closed, then the winding order of the\n // exterior ring should be checked.\n if (pointEqual(p0, p1)) {\n stream.lineStart();\n for (i = 0; i < n; ++i) stream.point((p0 = segment[i])[0], p0[1]);\n stream.lineEnd();\n return;\n }\n\n subject.push(x = new Intersection(p0, segment, null, true));\n clip.push(x.o = new Intersection(p0, null, x, false));\n subject.push(x = new Intersection(p1, segment, null, false));\n clip.push(x.o = new Intersection(p1, null, x, true));\n });\n\n if (!subject.length) return;\n\n clip.sort(compareIntersection);\n link(subject);\n link(clip);\n\n for (i = 0, n = clip.length; i < n; ++i) {\n clip[i].e = startInside = !startInside;\n }\n\n var start = subject[0],\n points,\n point;\n\n while (1) {\n // Find first unvisited intersection.\n var current = start,\n isSubject = true;\n while (current.v) if ((current = current.n) === start) return;\n points = current.z;\n stream.lineStart();\n do {\n current.v = current.o.v = true;\n if (current.e) {\n if (isSubject) {\n for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.n.x, 1, stream);\n }\n current = current.n;\n } else {\n if (isSubject) {\n points = current.p.z;\n for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]);\n } else {\n interpolate(current.x, current.p.x, -1, stream);\n }\n current = current.p;\n }\n current = current.o;\n points = current.z;\n isSubject = !isSubject;\n } while (!current.v);\n stream.lineEnd();\n }\n}\n\nfunction link(array) {\n if (!(n = array.length)) return;\n var n,\n i = 0,\n a = array[0],\n b;\n while (++i < n) {\n a.n = b = array[i];\n b.p = a;\n a = b;\n }\n a.n = b = array[0];\n b.p = a;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/polygonContains.js", - "name": "./node_modules/d3-geo/src/polygonContains.js", - "index": 256, - "index2": 250, - "size": 2813, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/contains.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "name": "./node_modules/d3-geo/src/contains.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 19, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony side effect evaluation", - "userRequest": "./polygonContains.js", - "loc": "1:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../polygonContains.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "module": "./node_modules/d3-geo/src/clip/index.js", - "moduleName": "./node_modules/d3-geo/src/clip/index.js", - "type": "harmony import specifier", - "userRequest": "../polygonContains.js", - "loc": "33:26-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/contains.js", - "module": "./node_modules/d3-geo/src/contains.js", - "moduleName": "./node_modules/d3-geo/src/contains.js", - "type": "harmony import specifier", - "userRequest": "./polygonContains.js", - "loc": "82:11-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"./adder.js\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, halfPi, pi, quarterPi, sign, sin, tau} from \"./math.js\";\n\nvar sum = adder();\n\nfunction longitude(point) {\n if (abs(point[0]) <= pi)\n return point[0];\n else\n return sign(point[0]) * ((abs(point[0]) + pi) % tau - pi);\n}\n\nexport default function(polygon, point) {\n var lambda = longitude(point),\n phi = point[1],\n sinPhi = sin(phi),\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n if (sinPhi === 1) phi = halfPi + epsilon;\n else if (sinPhi === -1) phi = -halfPi - epsilon;\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = longitude(point0),\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = longitude(point1),\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/index.js", - "name": "./node_modules/d3-geo/src/clip/index.js", - "index": 254, - "index2": 253, - "size": 3596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/circle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "name": "./node_modules/d3-geo/src/clip/circle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 15, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/antimeridian.js", - "module": "./node_modules/d3-geo/src/clip/antimeridian.js", - "moduleName": "./node_modules/d3-geo/src/clip/antimeridian.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "4:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./index.js", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/circle.js", - "module": "./node_modules/d3-geo/src/clip/circle.js", - "moduleName": "./node_modules/d3-geo/src/clip/circle.js", - "type": "harmony import specifier", - "userRequest": "./index.js", - "loc": "181:9-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import clipBuffer from \"./buffer.js\";\nimport clipRejoin from \"./rejoin.js\";\nimport {epsilon, halfPi} from \"../math.js\";\nimport polygonContains from \"../polygonContains.js\";\nimport {merge} from \"d3-array\";\n\nexport default function(pointVisible, clipLine, interpolate, start) {\n return function(sink) {\n var line = clipLine(sink),\n ringBuffer = clipBuffer(),\n ringSink = clipLine(ringBuffer),\n polygonStarted = false,\n polygon,\n segments,\n ring;\n\n var clip = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() {\n clip.point = pointRing;\n clip.lineStart = ringStart;\n clip.lineEnd = ringEnd;\n segments = [];\n polygon = [];\n },\n polygonEnd: function() {\n clip.point = point;\n clip.lineStart = lineStart;\n clip.lineEnd = lineEnd;\n segments = merge(segments);\n var startInside = polygonContains(polygon, start);\n if (segments.length) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n clipRejoin(segments, compareIntersection, startInside, interpolate, sink);\n } else if (startInside) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n }\n if (polygonStarted) sink.polygonEnd(), polygonStarted = false;\n segments = polygon = null;\n },\n sphere: function() {\n sink.polygonStart();\n sink.lineStart();\n interpolate(null, null, 1, sink);\n sink.lineEnd();\n sink.polygonEnd();\n }\n };\n\n function point(lambda, phi) {\n if (pointVisible(lambda, phi)) sink.point(lambda, phi);\n }\n\n function pointLine(lambda, phi) {\n line.point(lambda, phi);\n }\n\n function lineStart() {\n clip.point = pointLine;\n line.lineStart();\n }\n\n function lineEnd() {\n clip.point = point;\n line.lineEnd();\n }\n\n function pointRing(lambda, phi) {\n ring.push([lambda, phi]);\n ringSink.point(lambda, phi);\n }\n\n function ringStart() {\n ringSink.lineStart();\n ring = [];\n }\n\n function ringEnd() {\n pointRing(ring[0][0], ring[0][1]);\n ringSink.lineEnd();\n\n var clean = ringSink.clean(),\n ringSegments = ringBuffer.result(),\n i, n = ringSegments.length, m,\n segment,\n point;\n\n ring.pop();\n polygon.push(ring);\n ring = null;\n\n if (!n) return;\n\n // No intersections.\n if (clean & 1) {\n segment = ringSegments[0];\n if ((m = segment.length - 1) > 0) {\n if (!polygonStarted) sink.polygonStart(), polygonStarted = true;\n sink.lineStart();\n for (i = 0; i < m; ++i) sink.point((point = segment[i])[0], point[1]);\n sink.lineEnd();\n }\n return;\n }\n\n // Rejoin connected segments.\n // TODO reuse ringBuffer.rejoin()?\n if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));\n\n segments.push(ringSegments.filter(validSegment));\n }\n\n return clip;\n };\n}\n\nfunction validSegment(segment) {\n return segment.length > 1;\n}\n\n// Intersections are sorted along the clip edge. For both antimeridian cutting\n// and circle clipping, the same comparison is used.\nfunction compareIntersection(a, b) {\n return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1])\n - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/line.js", - "name": "./node_modules/d3-geo/src/clip/line.js", - "index": 262, - "index2": 256, - "size": 1099, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/clip/rectangle.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "name": "./node_modules/d3-geo/src/clip/rectangle.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 18, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony side effect evaluation", - "userRequest": "./line.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/clip/rectangle.js", - "module": "./node_modules/d3-geo/src/clip/rectangle.js", - "moduleName": "./node_modules/d3-geo/src/clip/rectangle.js", - "type": "harmony import specifier", - "userRequest": "./line.js", - "loc": "148:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b, x0, y0, x1, y1) {\n var ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy;\n if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;\n return true;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/identity.js", - "name": "./node_modules/d3-geo/src/identity.js", - "index": 273, - "index2": 268, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 24, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../identity.js", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "7:56-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "15:57-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "17:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "35:83-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "44:82-90" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "67:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "../identity.js", - "loc": "101:81-89" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/area.js", - "name": "./node_modules/d3-geo/src/path/area.js", - "index": 269, - "index2": 264, - "size": 954, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./area.js", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "24:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./area.js", - "loc": "25:11-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"../adder.js\";\nimport {abs} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/bounds.js", - "name": "./node_modules/d3-geo/src/path/bounds.js", - "index": 271, - "index2": 266, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony side effect evaluation", - "userRequest": "../path/bounds.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./bounds.js", - "loc": "4:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../path/bounds.js", - "loc": "8:38-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "module": "./node_modules/d3-geo/src/projection/fit.js", - "moduleName": "./node_modules/d3-geo/src/projection/fit.js", - "type": "harmony import specifier", - "userRequest": "../path/bounds.js", - "loc": "9:12-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./bounds.js", - "loc": "34:36-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./bounds.js", - "loc": "35:11-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import noop from \"../noop.js\";\n\nvar x0 = Infinity,\n y0 = x0,\n x1 = -x0,\n y1 = x1;\n\nvar boundsStream = {\n point: boundsPoint,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop,\n result: function() {\n var bounds = [[x0, y0], [x1, y1]];\n x1 = y1 = -(y0 = x0 = Infinity);\n return bounds;\n }\n};\n\nfunction boundsPoint(x, y) {\n if (x < x0) x0 = x;\n if (x > x1) x1 = x;\n if (y < y0) y0 = y;\n if (y > y1) y1 = y;\n}\n\nexport default boundsStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/centroid.js", - "name": "./node_modules/d3-geo/src/path/centroid.js", - "index": 272, - "index2": 267, - "size": 2036, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./centroid.js", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./centroid.js", - "loc": "39:36-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./centroid.js", - "loc": "40:11-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {sqrt} from \"../math.js\";\n\n// TODO Enforce positive area for exterior, negative area for interior?\n\nvar X0 = 0,\n Y0 = 0,\n Z0 = 0,\n X1 = 0,\n Y1 = 0,\n Z1 = 0,\n X2 = 0,\n Y2 = 0,\n Z2 = 0,\n x00,\n y00,\n x0,\n y0;\n\nvar centroidStream = {\n point: centroidPoint,\n lineStart: centroidLineStart,\n lineEnd: centroidLineEnd,\n polygonStart: function() {\n centroidStream.lineStart = centroidRingStart;\n centroidStream.lineEnd = centroidRingEnd;\n },\n polygonEnd: function() {\n centroidStream.point = centroidPoint;\n centroidStream.lineStart = centroidLineStart;\n centroidStream.lineEnd = centroidLineEnd;\n },\n result: function() {\n var centroid = Z2 ? [X2 / Z2, Y2 / Z2]\n : Z1 ? [X1 / Z1, Y1 / Z1]\n : Z0 ? [X0 / Z0, Y0 / Z0]\n : [NaN, NaN];\n X0 = Y0 = Z0 =\n X1 = Y1 = Z1 =\n X2 = Y2 = Z2 = 0;\n return centroid;\n }\n};\n\nfunction centroidPoint(x, y) {\n X0 += x;\n Y0 += y;\n ++Z0;\n}\n\nfunction centroidLineStart() {\n centroidStream.point = centroidPointFirstLine;\n}\n\nfunction centroidPointFirstLine(x, y) {\n centroidStream.point = centroidPointLine;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidPointLine(x, y) {\n var dx = x - x0, dy = y - y0, z = sqrt(dx * dx + dy * dy);\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n centroidPoint(x0 = x, y0 = y);\n}\n\nfunction centroidLineEnd() {\n centroidStream.point = centroidPoint;\n}\n\nfunction centroidRingStart() {\n centroidStream.point = centroidPointFirstRing;\n}\n\nfunction centroidRingEnd() {\n centroidPointRing(x00, y00);\n}\n\nfunction centroidPointFirstRing(x, y) {\n centroidStream.point = centroidPointRing;\n centroidPoint(x00 = x0 = x, y00 = y0 = y);\n}\n\nfunction centroidPointRing(x, y) {\n var dx = x - x0,\n dy = y - y0,\n z = sqrt(dx * dx + dy * dy);\n\n X1 += z * (x0 + x) / 2;\n Y1 += z * (y0 + y) / 2;\n Z1 += z;\n\n z = y0 * x - x0 * y;\n X2 += z * (x0 + x);\n Y2 += z * (y0 + y);\n Z2 += z * 3;\n centroidPoint(x0 = x, y0 = y);\n}\n\nexport default centroidStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/context.js", - "name": "./node_modules/d3-geo/src/path/context.js", - "index": 275, - "index2": 270, - "size": 920, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./context.js", - "loc": "6:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./context.js", - "loc": "49:71-82" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {tau} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nexport default function PathContext(context) {\n this._context = context;\n}\n\nPathContext.prototype = {\n _radius: 4.5,\n pointRadius: function(_) {\n return this._radius = _, this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._context.closePath();\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._context.moveTo(x, y);\n this._point = 1;\n break;\n }\n case 1: {\n this._context.lineTo(x, y);\n break;\n }\n default: {\n this._context.moveTo(x + this._radius, y);\n this._context.arc(x, y, this._radius, 0, tau);\n break;\n }\n }\n },\n result: noop\n};\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/measure.js", - "name": "./node_modules/d3-geo/src/path/measure.js", - "index": 270, - "index2": 265, - "size": 845, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./measure.js", - "loc": "7:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./measure.js", - "loc": "29:36-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./measure.js", - "loc": "30:11-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import adder from \"../adder.js\";\nimport {sqrt} from \"../math.js\";\nimport noop from \"../noop.js\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/string.js", - "name": "./node_modules/d3-geo/src/path/string.js", - "index": 274, - "index2": 269, - "size": 1316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/path/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "name": "./node_modules/d3-geo/src/path/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 22, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./string.js", - "loc": "8:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/path/index.js", - "module": "./node_modules/d3-geo/src/path/index.js", - "moduleName": "./node_modules/d3-geo/src/path/index.js", - "type": "harmony import specifier", - "userRequest": "./string.js", - "loc": "49:53-63" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function PathString() {\n this._string = [];\n}\n\nPathString.prototype = {\n _radius: 4.5,\n _circle: circle(4.5),\n pointRadius: function(_) {\n if ((_ = +_) !== this._radius) this._radius = _, this._circle = null;\n return this;\n },\n polygonStart: function() {\n this._line = 0;\n },\n polygonEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._line === 0) this._string.push(\"Z\");\n this._point = NaN;\n },\n point: function(x, y) {\n switch (this._point) {\n case 0: {\n this._string.push(\"M\", x, \",\", y);\n this._point = 1;\n break;\n }\n case 1: {\n this._string.push(\"L\", x, \",\", y);\n break;\n }\n default: {\n if (this._circle == null) this._circle = circle(this._radius);\n this._string.push(\"M\", x, \",\", y, this._circle);\n break;\n }\n }\n },\n result: function() {\n if (this._string.length) {\n var result = this._string.join(\"\");\n this._string = [];\n return result;\n } else {\n return null;\n }\n }\n};\n\nfunction circle(radius) {\n return \"m0,\" + radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + -2 * radius\n + \"a\" + radius + \",\" + radius + \" 0 1,1 0,\" + 2 * radius\n + \"z\";\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/fit.js", - "name": "./node_modules/d3-geo/src/projection/fit.js", - "index": 283, - "index2": 275, - "size": 1594, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "name": "./node_modules/d3-geo/src/projection/identity.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 24, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "4:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "4:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./fit.js", - "loc": "9:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "50:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "53:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "56:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/identity.js", - "module": "./node_modules/d3-geo/src/projection/identity.js", - "moduleName": "./node_modules/d3-geo/src/projection/identity.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "59:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "90:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "94:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "98:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/albersUsa.js", - "module": "./node_modules/d3-geo/src/projection/albersUsa.js", - "moduleName": "./node_modules/d3-geo/src/projection/albersUsa.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "102:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "129:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "133:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "137:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./fit.js", - "loc": "141:11-20" - } - ], - "usedExports": [ - "fitExtent", - "fitSize", - "fitWidth", - "fitHeight" - ], - "providedExports": [ - "fitExtent", - "fitSize", - "fitWidth", - "fitHeight" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {default as geoStream} from \"../stream.js\";\nimport boundsStream from \"../path/bounds.js\";\n\nfunction fit(projection, fitBounds, object) {\n var clip = projection.clipExtent && projection.clipExtent();\n projection.scale(150).translate([0, 0]);\n if (clip != null) projection.clipExtent(null);\n geoStream(object, projection.stream(boundsStream));\n fitBounds(boundsStream.result());\n if (clip != null) projection.clipExtent(clip);\n return projection;\n}\n\nexport function fitExtent(projection, extent, object) {\n return fit(projection, function(b) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n\nexport function fitWidth(projection, width, object) {\n return fit(projection, function(b) {\n var w = +width,\n k = w / (b[1][0] - b[0][0]),\n x = (w - k * (b[1][0] + b[0][0])) / 2,\n y = -k * b[0][1];\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n\nexport function fitHeight(projection, height, object) {\n return fit(projection, function(b) {\n var h = +height,\n k = h / (b[1][1] - b[0][1]),\n x = -k * b[0][0],\n y = (h - k * (b[1][1] + b[0][1])) / 2;\n projection.scale(150 * k).translate([x, y]);\n }, object);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/resample.js", - "name": "./node_modules/d3-geo/src/projection/resample.js", - "index": 282, - "index2": 274, - "size": 3284, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "name": "./node_modules/d3-geo/src/projection/index.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 25, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./resample.js", - "loc": "10:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./resample.js", - "loc": "125:49-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/index.js", - "module": "./node_modules/d3-geo/src/projection/index.js", - "moduleName": "./node_modules/d3-geo/src/projection/index.js", - "type": "harmony import specifier", - "userRequest": "./resample.js", - "loc": "150:22-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {cartesian} from \"../cartesian.js\";\nimport {abs, asin, atan2, cos, epsilon, radians, sqrt} from \"../math.js\";\nimport {transformer} from \"../transform.js\";\n\nvar maxDepth = 16, // maximum depth of subdivision\n cosMinDistance = cos(30 * radians); // cos(minimum angular distance)\n\nexport default function(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}\n\nfunction resampleNone(project) {\n return transformer({\n point: function(x, y) {\n x = project(x, y);\n this.stream.point(x[0], x[1]);\n }\n });\n}\n\nfunction resample(project, delta2) {\n\n function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {\n var dx = x1 - x0,\n dy = y1 - y0,\n d2 = dx * dx + dy * dy;\n if (d2 > 4 * delta2 && depth--) {\n var a = a0 + a1,\n b = b0 + b1,\n c = c0 + c1,\n m = sqrt(a * a + b * b + c * c),\n phi2 = asin(c /= m),\n lambda2 = abs(abs(c) - 1) < epsilon || abs(lambda0 - lambda1) < epsilon ? (lambda0 + lambda1) / 2 : atan2(b, a),\n p = project(lambda2, phi2),\n x2 = p[0],\n y2 = p[1],\n dx2 = x2 - x0,\n dy2 = y2 - y0,\n dz = dy * dx2 - dx * dy2;\n if (dz * dz / d2 > delta2 // perpendicular projected distance\n || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 // midpoint close to an end\n || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) { // angular distance\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x2, y2, lambda2, a /= m, b /= m, c, depth, stream);\n stream.point(x2, y2);\n resampleLineTo(x2, y2, lambda2, a, b, c, x1, y1, lambda1, a1, b1, c1, depth, stream);\n }\n }\n }\n return function(stream) {\n var lambda00, x00, y00, a00, b00, c00, // first point\n lambda0, x0, y0, a0, b0, c0; // previous point\n\n var resampleStream = {\n point: point,\n lineStart: lineStart,\n lineEnd: lineEnd,\n polygonStart: function() { stream.polygonStart(); resampleStream.lineStart = ringStart; },\n polygonEnd: function() { stream.polygonEnd(); resampleStream.lineStart = lineStart; }\n };\n\n function point(x, y) {\n x = project(x, y);\n stream.point(x[0], x[1]);\n }\n\n function lineStart() {\n x0 = NaN;\n resampleStream.point = linePoint;\n stream.lineStart();\n }\n\n function linePoint(lambda, phi) {\n var c = cartesian([lambda, phi]), p = project(lambda, phi);\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x0 = p[0], y0 = p[1], lambda0 = lambda, a0 = c[0], b0 = c[1], c0 = c[2], maxDepth, stream);\n stream.point(x0, y0);\n }\n\n function lineEnd() {\n resampleStream.point = point;\n stream.lineEnd();\n }\n\n function ringStart() {\n lineStart();\n resampleStream.point = ringPoint;\n resampleStream.lineEnd = ringEnd;\n }\n\n function ringPoint(lambda, phi) {\n linePoint(lambda00 = lambda, phi), x00 = x0, y00 = y0, a00 = a0, b00 = b0, c00 = c0;\n resampleStream.point = linePoint;\n }\n\n function ringEnd() {\n resampleLineTo(x0, y0, lambda0, a0, b0, c0, x00, y00, lambda00, a00, b00, c00, maxDepth, stream);\n resampleStream.lineEnd = lineEnd;\n lineEnd();\n }\n\n return resampleStream;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conic.js", - "name": "./node_modules/d3-geo/src/projection/conic.js", - "index": 279, - "index2": 277, - "size": 408, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "name": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 21, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./conic.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "26:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "27:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicConformal.js", - "module": "./node_modules/d3-geo/src/projection/conicConformal.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicConformal.js", - "type": "harmony import specifier", - "userRequest": "./conic.js", - "loc": "32:9-24" - } - ], - "usedExports": [ - "conicProjection" - ], - "providedExports": [ - "conicProjection" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {degrees, pi, radians} from \"../math.js\";\nimport {projectionMutator} from \"./index.js\";\n\nexport function conicProjection(projectAt) {\n var phi0 = 0,\n phi1 = pi / 3,\n m = projectionMutator(projectAt),\n p = m(phi0, phi1);\n\n p.parallels = function(_) {\n return arguments.length ? m(phi0 = _[0] * radians, phi1 = _[1] * radians) : [phi0 * degrees, phi1 * degrees];\n };\n\n return p;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/cylindricalEqualArea.js", - "index": 278, - "index2": 272, - "size": 317, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "name": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 19, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./cylindricalEqualArea.js", - "loc": "3:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/conicEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/conicEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./cylindricalEqualArea.js", - "loc": "9:31-54" - } - ], - "usedExports": [ - "cylindricalEqualAreaRaw" - ], - "providedExports": [ - "cylindricalEqualAreaRaw" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, cos, sin} from \"../math.js\";\n\nexport function cylindricalEqualAreaRaw(phi0) {\n var cosPhi0 = cos(phi0);\n\n function forward(lambda, phi) {\n return [lambda * cosPhi0, sin(phi) / cosPhi0];\n }\n\n forward.invert = function(x, y) {\n return [x / cosPhi0, asin(y * cosPhi0)];\n };\n\n return forward;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthal.js", - "name": "./node_modules/d3-geo/src/projection/azimuthal.js", - "index": 286, - "index2": 281, - "size": 505, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "issuerId": null, - "issuerName": "./node_modules/d3-geo/src/projection/stereographic.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/index.js", - "name": "./node_modules/d3-geo/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "name": "./node_modules/d3-geo/src/projection/stereographic.js", - "profile": { - "factory": 818, - "building": 55, - "dependencies": 29 - } - } - ], - "profile": { - "factory": 29, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony side effect evaluation", - "userRequest": "./azimuthal.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "5:35-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "5:37-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/orthographic.js", - "module": "./node_modules/d3-geo/src/projection/orthographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/orthographic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:25-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEqualArea.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:31-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "module": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "moduleName": "./node_modules/d3-geo/src/projection/azimuthalEquidistant.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "9:33-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/gnomonic.js", - "module": "./node_modules/d3-geo/src/projection/gnomonic.js", - "moduleName": "./node_modules/d3-geo/src/projection/gnomonic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "10:21-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-geo/src/projection/stereographic.js", - "module": "./node_modules/d3-geo/src/projection/stereographic.js", - "moduleName": "./node_modules/d3-geo/src/projection/stereographic.js", - "type": "harmony import specifier", - "userRequest": "./azimuthal.js", - "loc": "10:26-41" - } - ], - "usedExports": [ - "azimuthalInvert", - "azimuthalRaw" - ], - "providedExports": [ - "azimuthalRaw", - "azimuthalInvert" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {asin, atan2, cos, sin, sqrt} from \"../math.js\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/count.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/count.js", - "index": 302, - "index2": 297, - "size": 263, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./count.js", - "loc": "1:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./count.js", - "loc": "67:9-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "function count(node) {\n var sum = 0,\n children = node.children,\n i = children && children.length;\n if (!i) sum = 1;\n else while (--i >= 0) sum += children[i].value;\n node.value = sum;\n}\n\nexport default function() {\n return this.eachAfter(count);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/each.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/each.js", - "index": 303, - "index2": 298, - "size": 381, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./each.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./each.js", - "loc": "68:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, current, next = [node], children, i, n;\n do {\n current = next.reverse(), next = [];\n while (node = current.pop()) {\n callback(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n next.push(children[i]);\n }\n }\n } while (next.length);\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/eachBefore.js", - "index": 305, - "index2": 300, - "size": 282, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./eachBefore.js", - "loc": "3:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./eachBefore.js", - "loc": "70:14-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, nodes = [node], children, i;\n while (node = nodes.pop()) {\n callback(node), children = node.children;\n if (children) for (i = children.length - 1; i >= 0; --i) {\n nodes.push(children[i]);\n }\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/eachAfter.js", - "index": 304, - "index2": 299, - "size": 353, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./eachAfter.js", - "loc": "4:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./eachAfter.js", - "loc": "69:13-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(callback) {\n var node = this, nodes = [node], next = [], children, i, n;\n while (node = nodes.pop()) {\n next.push(node), children = node.children;\n if (children) for (i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n while (node = next.pop()) {\n callback(node);\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/sum.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/sum.js", - "index": 306, - "index2": 301, - "size": 264, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sum.js", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./sum.js", - "loc": "71:7-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(value) {\n return this.eachAfter(function(node) {\n var sum = +value(node.data) || 0,\n children = node.children,\n i = children && children.length;\n while (--i >= 0) sum += children[i].value;\n node.value = sum;\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/sort.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/sort.js", - "index": 307, - "index2": 302, - "size": 151, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./sort.js", - "loc": "6:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./sort.js", - "loc": "72:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(compare) {\n return this.eachBefore(function(node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/path.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/path.js", - "index": 308, - "index2": 303, - "size": 606, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./path.js", - "loc": "7:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./path.js", - "loc": "73:8-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(end) {\n var start = this,\n ancestor = leastCommonAncestor(start, end),\n nodes = [start];\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n var k = nodes.length;\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n return nodes;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (a === b) return a;\n var aNodes = a.ancestors(),\n bNodes = b.ancestors(),\n c = null;\n a = aNodes.pop();\n b = bNodes.pop();\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n return c;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/ancestors.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/ancestors.js", - "index": 309, - "index2": 304, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./ancestors.js", - "loc": "8:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./ancestors.js", - "loc": "74:13-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var node = this, nodes = [node];\n while (node = node.parent) {\n nodes.push(node);\n }\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/descendants.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/descendants.js", - "index": 310, - "index2": 305, - "size": 121, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./descendants.js", - "loc": "9:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./descendants.js", - "loc": "75:15-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var nodes = [];\n this.each(function(node) {\n nodes.push(node);\n });\n return nodes;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/leaves.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/leaves.js", - "index": 311, - "index2": 306, - "size": 164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./leaves.js", - "loc": "10:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./leaves.js", - "loc": "76:10-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var leaves = [];\n this.eachBefore(function(node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/links.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/links.js", - "index": 312, - "index2": 307, - "size": 246, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "name": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 48, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./links.js", - "loc": "11:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/hierarchy/index.js", - "module": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/hierarchy/index.js", - "type": "harmony import specifier", - "userRequest": "./links.js", - "loc": "77:9-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n var root = this, links = [];\n root.each(function(node) {\n if (node !== root) { // Don’t include the root’s parent, if any.\n links.push({source: node.parent, target: node});\n }\n });\n return links;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/array.js", - "name": "./node_modules/d3-hierarchy/src/array.js", - "index": 318, - "index2": 311, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "name": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 37, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony side effect evaluation", - "userRequest": "../array.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "4:28-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/enclose.js", - "module": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/enclose.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "4:36-41" - } - ], - "usedExports": [ - "shuffle", - "slice" - ], - "providedExports": [ - "slice", - "shuffle" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n\nexport function shuffle(array) {\n var m = array.length,\n t,\n i;\n\n while (m) {\n i = Math.random() * m-- | 0;\n t = array[m];\n array[m] = array[i];\n array[i] = t;\n }\n\n return array;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/accessors.js", - "name": "./node_modules/d3-hierarchy/src/accessors.js", - "index": 315, - "index2": 310, - "size": 166, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/stratify.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "name": "./node_modules/d3-hierarchy/src/stratify.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 49, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony side effect evaluation", - "userRequest": "./accessors.js", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../accessors.js", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../accessors.js", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../accessors.js", - "loc": "31:40-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../accessors.js", - "loc": "62:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./accessors.js", - "loc": "65:36-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/stratify.js", - "module": "./node_modules/d3-hierarchy/src/stratify.js", - "moduleName": "./node_modules/d3-hierarchy/src/stratify.js", - "type": "harmony import specifier", - "userRequest": "./accessors.js", - "loc": "69:42-50" - } - ], - "usedExports": [ - "required", - "optional" - ], - "providedExports": [ - "optional", - "required" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function optional(f) {\n return f == null ? null : required(f);\n}\n\nexport function required(f) {\n if (typeof f !== \"function\") throw new Error;\n return f;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/constant.js", - "name": "./node_modules/d3-hierarchy/src/constant.js", - "index": 314, - "index2": 309, - "size": 120, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 52, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "3:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "4:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "12:21-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "13:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "13:19-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "14:21-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "15:22-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "16:20-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "23:34-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/pack/index.js", - "module": "./node_modules/d3-hierarchy/src/pack/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/pack/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "39:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "70:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "78:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "82:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "86:77-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "90:75-83" - } - ], - "usedExports": [ - "constantZero", - "default" - ], - "providedExports": [ - "constantZero", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function constantZero() {\n return 0;\n}\n\nexport default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/round.js", - "name": "./node_modules/d3-hierarchy/src/treemap/round.js", - "index": 320, - "index2": 315, - "size": 166, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "issuerId": null, - "issuerName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/index.js", - "name": "./node_modules/d3-hierarchy/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "name": "./node_modules/d3-hierarchy/src/treemap/index.js", - "profile": { - "factory": 783, - "building": 53, - "dependencies": 52 - } - } - ], - "profile": { - "factory": 52, - "building": 17 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./round.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony side effect evaluation", - "userRequest": "./treemap/round.js", - "loc": "1:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/partition.js", - "module": "./node_modules/d3-hierarchy/src/partition.js", - "moduleName": "./node_modules/d3-hierarchy/src/partition.js", - "type": "harmony import specifier", - "userRequest": "./treemap/round.js", - "loc": "17:31-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-hierarchy/src/treemap/index.js", - "module": "./node_modules/d3-hierarchy/src/treemap/index.js", - "moduleName": "./node_modules/d3-hierarchy/src/treemap/index.js", - "type": "harmony import specifier", - "userRequest": "./round.js", - "loc": "25:31-40" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/cross.js", - "name": "./node_modules/d3-polygon/src/cross.js", - "index": 346, - "index2": 341, - "size": 402, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "issuerId": null, - "issuerName": "./node_modules/d3-polygon/src/hull.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/index.js", - "name": "./node_modules/d3-polygon/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "name": "./node_modules/d3-polygon/src/hull.js", - "profile": { - "factory": 765, - "building": 20 - } - } - ], - "profile": { - "factory": 32, - "building": 53 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "module": "./node_modules/d3-polygon/src/hull.js", - "moduleName": "./node_modules/d3-polygon/src/hull.js", - "type": "harmony side effect evaluation", - "userRequest": "./cross.js", - "loc": "1:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-polygon/src/hull.js", - "module": "./node_modules/d3-polygon/src/hull.js", - "moduleName": "./node_modules/d3-polygon/src/hull.js", - "type": "harmony import specifier", - "userRequest": "./cross.js", - "loc": "16:23-28" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "// Returns the 2D cross product of AB and AC vectors, i.e., the z-component of\n// the 3D cross product in a quadrant I Cartesian coordinate system (+x is\n// right, +y is up). Returns a positive value if ABC is counter-clockwise,\n// negative if clockwise, and zero if the points are collinear.\nexport default function(a, b, c) {\n return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/defaultSource.js", - "name": "./node_modules/d3-random/src/defaultSource.js", - "index": 352, - "index2": 347, - "size": 54, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "issuerId": null, - "issuerName": "./node_modules/d3-random/src/uniform.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/index.js", - "name": "./node_modules/d3-random/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "name": "./node_modules/d3-random/src/uniform.js", - "profile": { - "factory": 795, - "building": 62, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 97, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "module": "./node_modules/d3-random/src/uniform.js", - "moduleName": "./node_modules/d3-random/src/uniform.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "module": "./node_modules/d3-random/src/exponential.js", - "moduleName": "./node_modules/d3-random/src/exponential.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "module": "./node_modules/d3-random/src/irwinHall.js", - "moduleName": "./node_modules/d3-random/src/irwinHall.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "module": "./node_modules/d3-random/src/normal.js", - "moduleName": "./node_modules/d3-random/src/normal.js", - "type": "harmony side effect evaluation", - "userRequest": "./defaultSource", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/exponential.js", - "module": "./node_modules/d3-random/src/exponential.js", - "moduleName": "./node_modules/d3-random/src/exponential.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "13:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/irwinHall.js", - "module": "./node_modules/d3-random/src/irwinHall.js", - "moduleName": "./node_modules/d3-random/src/irwinHall.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "14:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/bates.js", - "module": "./node_modules/d3-random/src/bates.js", - "moduleName": "./node_modules/d3-random/src/bates.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "15:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/logNormal.js", - "module": "./node_modules/d3-random/src/logNormal.js", - "moduleName": "./node_modules/d3-random/src/logNormal.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "15:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/uniform.js", - "module": "./node_modules/d3-random/src/uniform.js", - "moduleName": "./node_modules/d3-random/src/uniform.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "17:3-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-random/src/normal.js", - "module": "./node_modules/d3-random/src/normal.js", - "moduleName": "./node_modules/d3-random/src/normal.js", - "type": "harmony import specifier", - "userRequest": "./defaultSource", - "loc": "28:3-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {\n return Math.random();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/init.js", - "name": "./node_modules/d3-scale/src/init.js", - "index": 360, - "index2": 355, - "size": 448, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/band.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "2:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "3:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "5:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./init", - "loc": "6:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/utcTime.js", - "module": "./node_modules/d3-scale/src/utcTime.js", - "moduleName": "./node_modules/d3-scale/src/utcTime.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "7:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "29:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "34:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "39:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "42:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "43:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "56:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "56:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "57:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "60:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "66:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "69:2-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "70:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "76:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "80:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "module": "./node_modules/d3-scale/src/band.js", - "moduleName": "./node_modules/d3-scale/src/band.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "81:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "86:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "90:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "134:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./init", - "loc": "142:2-11" - } - ], - "usedExports": [ - "initInterpolator", - "initRange" - ], - "providedExports": [ - "initRange", - "initInterpolator" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.interpolator(domain); break;\n default: this.interpolator(interpolator).domain(domain); break;\n }\n return this;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/array.js", - "name": "./node_modules/d3-scale/src/array.js", - "index": 362, - "index2": 356, - "size": 90, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/ordinal.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/band.js", - "name": "./node_modules/d3-scale/src/band.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "name": "./node_modules/d3-scale/src/ordinal.js", - "profile": { - "factory": 104, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 74, - "building": 33 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "1:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./array", - "loc": "4:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "15:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "16:40-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/threshold.js", - "module": "./node_modules/d3-scale/src/threshold.js", - "moduleName": "./node_modules/d3-scale/src/threshold.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "20:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "26:30-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantize.js", - "module": "./node_modules/d3-scale/src/quantize.js", - "moduleName": "./node_modules/d3-scale/src/quantize.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "30:44-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/ordinal.js", - "module": "./node_modules/d3-scale/src/ordinal.js", - "moduleName": "./node_modules/d3-scale/src/ordinal.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "31:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/quantile.js", - "module": "./node_modules/d3-scale/src/quantile.js", - "moduleName": "./node_modules/d3-scale/src/quantile.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "39:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "93:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "97:39-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "100:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./array", - "loc": "101:19-24" - } - ], - "usedExports": [ - "map", - "slice" - ], - "providedExports": [ - "map", - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var array = Array.prototype;\n\nexport var map = array.map;\nexport var slice = array.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/number.js", - "name": "./node_modules/d3-scale/src/number.js", - "index": 367, - "index2": 360, - "size": 44, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/identity.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "name": "./node_modules/d3-scale/src/identity.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 69, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./number", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "15:52-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/identity.js", - "module": "./node_modules/d3-scale/src/identity.js", - "moduleName": "./node_modules/d3-scale/src/identity.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "26:47-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./number", - "loc": "93:52-58" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return +x;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "name": "./node_modules/d3-scale/src/continuous.js", - "index": 365, - "index2": 361, - "size": 3528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/diverging.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 89, - "building": 20, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-57" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "2:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "4:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./continuous", - "loc": "5:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequentialQuantile.js", - "module": "./node_modules/d3-scale/src/sequentialQuantile.js", - "moduleName": "./node_modules/d3-scale/src/sequentialQuantile.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "7:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "15:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "18:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "20:24-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "20:34-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "24:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "24:48-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "26:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "28:24-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/symlog.js", - "module": "./node_modules/d3-scale/src/symlog.js", - "moduleName": "./node_modules/d3-scale/src/symlog.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "31:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "37:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/pow.js", - "module": "./node_modules/d3-scale/src/pow.js", - "moduleName": "./node_modules/d3-scale/src/pow.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "40:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "module": "./node_modules/d3-scale/src/diverging.js", - "moduleName": "./node_modules/d3-scale/src/diverging.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "50:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/sequential.js", - "module": "./node_modules/d3-scale/src/sequential.js", - "moduleName": "./node_modules/d3-scale/src/sequential.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "54:38-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:25-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "63:35-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/linear.js", - "module": "./node_modules/d3-scale/src/linear.js", - "moduleName": "./node_modules/d3-scale/src/linear.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "66:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "127:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "136:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./continuous", - "loc": "139:11-15" - } - ], - "usedExports": [ - "identity", - "transformer", - "copy", - "default" - ], - "providedExports": [ - "identity", - "copy", - "transformer", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {bisect} from \"d3-array\";\nimport {interpolate as interpolateValue, interpolateNumber, interpolateRound} from \"d3-interpolate\";\nimport {map, slice} from \"./array\";\nimport constant from \"./constant\";\nimport number from \"./number\";\n\nvar unit = [0, 1];\n\nexport function identity(x) {\n return x;\n}\n\nfunction normalize(a, b) {\n return (b -= (a = +a))\n ? function(x) { return (x - a) / b; }\n : constant(isNaN(b) ? NaN : 0.5);\n}\n\nfunction clamper(domain) {\n var a = domain[0], b = domain[domain.length - 1], t;\n if (a > b) t = a, a = b, b = t;\n return function(x) { return Math.max(a, Math.min(b, x)); };\n}\n\n// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].\n// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].\nfunction bimap(domain, range, interpolate) {\n var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];\n if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);\n else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);\n return function(x) { return r0(d0(x)); };\n}\n\nfunction polymap(domain, range, interpolate) {\n var j = Math.min(domain.length, range.length) - 1,\n d = new Array(j),\n r = new Array(j),\n i = -1;\n\n // Reverse descending domains.\n if (domain[j] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n }\n\n while (++i < j) {\n d[i] = normalize(domain[i], domain[i + 1]);\n r[i] = interpolate(range[i], range[i + 1]);\n }\n\n return function(x) {\n var i = bisect(domain, x, 1, j) - 1;\n return r[i](d[i](x));\n };\n}\n\nexport function copy(source, target) {\n return target\n .domain(source.domain())\n .range(source.range())\n .interpolate(source.interpolate())\n .clamp(source.clamp())\n .unknown(source.unknown());\n}\n\nexport function transformer() {\n var domain = unit,\n range = unit,\n interpolate = interpolateValue,\n transform,\n untransform,\n unknown,\n clamp = identity,\n piecewise,\n output,\n input;\n\n function rescale() {\n piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap;\n output = input = null;\n return scale;\n }\n\n function scale(x) {\n return isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));\n }\n\n scale.invert = function(y) {\n return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));\n };\n\n scale.domain = function(_) {\n return arguments.length ? (domain = map.call(_, number), clamp === identity || (clamp = clamper(domain)), rescale()) : domain.slice();\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = slice.call(_), rescale()) : range.slice();\n };\n\n scale.rangeRound = function(_) {\n return range = slice.call(_), interpolate = interpolateRound, rescale();\n };\n\n scale.clamp = function(_) {\n return arguments.length ? (clamp = _ ? clamper(domain) : identity, scale) : clamp !== identity;\n };\n\n scale.interpolate = function(_) {\n return arguments.length ? (interpolate = _, rescale()) : interpolate;\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n return function(t, u) {\n transform = t, untransform = u;\n return rescale();\n };\n}\n\nexport default function continuous(transform, untransform) {\n return transformer()(transform, untransform);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/nice.js", - "name": "./node_modules/d3-scale/src/nice.js", - "index": 370, - "index2": 365, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/time.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "name": "./node_modules/d3-scale/src/time.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 83, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony side effect evaluation", - "userRequest": "./nice", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony side effect evaluation", - "userRequest": "./nice", - "loc": "7:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/time.js", - "module": "./node_modules/d3-scale/src/time.js", - "moduleName": "./node_modules/d3-scale/src/time.js", - "type": "harmony import specifier", - "userRequest": "./nice", - "loc": "122:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/log.js", - "module": "./node_modules/d3-scale/src/log.js", - "moduleName": "./node_modules/d3-scale/src/log.js", - "type": "harmony import specifier", - "userRequest": "./nice", - "loc": "126:18-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(domain, interval) {\n domain = domain.slice();\n\n var i0 = 0,\n i1 = domain.length - 1,\n x0 = domain[i0],\n x1 = domain[i1],\n t;\n\n if (x1 < x0) {\n t = i0, i0 = i1, i1 = t;\n t = x0, x0 = x1, x1 = t;\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/duration.js", - "name": "./node_modules/d3-time/src/duration.js", - "index": 381, - "index2": 375, - "size": 164, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "issuerId": null, - "issuerName": "./node_modules/d3-time/src/utcWeek.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/index.js", - "name": "./node_modules/d3-time/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "name": "./node_modules/d3-time/src/utcWeek.js", - "profile": { - "factory": 483, - "building": 34, - "dependencies": 26 - } - } - ], - "profile": { - "factory": 26, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony side effect evaluation", - "userRequest": "./duration.js", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:67-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:67-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "5:104-118" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "7:30-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcDay.js", - "module": "./node_modules/d3-time/src/utcDay.js", - "moduleName": "./node_modules/d3-time/src/utcDay.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcHour.js", - "module": "./node_modules/d3-time/src/utcHour.js", - "moduleName": "./node_modules/d3-time/src/utcHour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcMinute.js", - "module": "./node_modules/d3-time/src/utcMinute.js", - "moduleName": "./node_modules/d3-time/src/utcMinute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/hour.js", - "module": "./node_modules/d3-time/src/hour.js", - "moduleName": "./node_modules/d3-time/src/hour.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/minute.js", - "module": "./node_modules/d3-time/src/minute.js", - "moduleName": "./node_modules/d3-time/src/minute.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/second.js", - "module": "./node_modules/d3-time/src/second.js", - "moduleName": "./node_modules/d3-time/src/second.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:25-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:80-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/day.js", - "module": "./node_modules/d3-time/src/day.js", - "moduleName": "./node_modules/d3-time/src/day.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "9:98-109" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/utcWeek.js", - "module": "./node_modules/d3-time/src/utcWeek.js", - "moduleName": "./node_modules/d3-time/src/utcWeek.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:27-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:82-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-time/src/week.js", - "module": "./node_modules/d3-time/src/week.js", - "moduleName": "./node_modules/d3-time/src/week.js", - "type": "harmony import specifier", - "userRequest": "./duration.js", - "loc": "11:100-112" - } - ], - "usedExports": [ - "durationWeek", - "durationMinute", - "durationDay", - "durationSecond", - "durationHour" - ], - "providedExports": [ - "durationSecond", - "durationMinute", - "durationHour", - "durationDay", - "durationWeek" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var durationSecond = 1e3;\nexport var durationMinute = 6e4;\nexport var durationHour = 36e5;\nexport var durationDay = 864e5;\nexport var durationWeek = 6048e5;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/colors.js", - "name": "./node_modules/d3-scale-chromatic/src/colors.js", - "index": 401, - "index2": 396, - "size": 189, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "name": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - } - } - ], - "profile": { - "factory": 19, - "building": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "type": "harmony side effect evaluation", - "userRequest": "../colors.js", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/category10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/category10.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Tableau10.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set3.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Set1.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Pastel1.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Paired.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Dark2.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "module": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/categorical/Accent.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "3:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "10:20-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "12:24-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "14:26-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js", - "type": "harmony import specifier", - "userRequest": "../colors.js", - "loc": "16:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(specifier) {\n var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;\n while (i < n) colors[i] = \"#\" + specifier.slice(i * 6, ++i * 6);\n return colors;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/ramp.js", - "name": "./node_modules/d3-scale-chromatic/src/ramp.js", - "index": 412, - "index2": 407, - "size": 146, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/index.js", - "name": "./node_modules/d3-scale-chromatic/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "name": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "profile": { - "factory": 735, - "building": 26, - "dependencies": 20 - } - } - ], - "profile": { - "factory": 22, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony side effect evaluation", - "userRequest": "../ramp.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Reds.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Purples.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greys.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Greens.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-single/Blues.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "module": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "14:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/Spectral.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdGy.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/RdBu.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PuOr.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PiYG.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/PRGn.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "module": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "moduleName": "./node_modules/d3-scale-chromatic/src/diverging/BrBG.js", - "type": "harmony import specifier", - "userRequest": "../ramp.js", - "loc": "16:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {interpolateRgbBasis} from \"d3-interpolate\";\n\nexport default function(scheme) {\n return interpolateRgbBasis(scheme[scheme.length - 1]);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/constant.js", - "name": "./node_modules/d3-shape/src/constant.js", - "index": 453, - "index2": 448, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/arc.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 34, - "building": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "1:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant.js", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "9:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "9:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "10:11-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "10:19-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "11:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "11:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "12:16-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "12:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "22:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "23:13-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "34:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "35:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "38:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol.js", - "module": "./node_modules/d3-shape/src/symbol.js", - "moduleName": "./node_modules/d3-shape/src/symbol.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "38:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "39:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "41:68-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../constant.js", - "loc": "42:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "43:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "45:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "49:93-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "55:69-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "60:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "64:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "67:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "68:85-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "71:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "72:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "75:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "76:66-74" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "80:21-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "80:85-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "97:71-79" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "229:75-83" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "233:75-83" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "237:76-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "241:92-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "245:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "249:72-80" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "253:72-80" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function constant() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/math.js", - "name": "./node_modules/d3-shape/src/math.js", - "index": 452, - "index2": 447, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/arc.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "name": "./node_modules/d3-shape/src/arc.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 34, - "building": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony side effect evaluation", - "userRequest": "../math.js", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "3:0-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./math.js", - "loc": "4:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:18-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "4:42-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "5:29-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "6:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/circle.js", - "module": "./node_modules/d3-shape/src/symbol/circle.js", - "moduleName": "./node_modules/d3-shape/src/symbol/circle.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "7:28-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "10:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "11:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/symbol/star.js", - "module": "./node_modules/d3-shape/src/symbol/star.js", - "moduleName": "./node_modules/d3-shape/src/symbol/star.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "16:14-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRom.js", - "module": "./node_modules/d3-shape/src/curve/catmullRom.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRom.js", - "type": "harmony import specifier", - "userRequest": "../math.js", - "loc": "17:20-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "23:22-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "23:37-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "29:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "39:29-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "53:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "53:35-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "92:49-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "93:47-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "94:13-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "103:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "106:18-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "106:24-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "107:26-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "107:40-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "109:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "110:28-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "110:42-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "124:82-86" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "125:15-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "125:19-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "132:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "133:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "134:17-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "134:32-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "135:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "137:30-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "141:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "142:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "143:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "144:21-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "147:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "148:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "149:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "150:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "151:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "155:17-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:23-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:55-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "160:81-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "161:19-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "162:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "163:16-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "168:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "171:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "178:53-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "178:76-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "182:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "182:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "183:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "183:71-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "184:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "184:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "193:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "193:37-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "196:21-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "203:53-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "203:76-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "207:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "207:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "208:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "208:71-76" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "209:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "209:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "224:90-92" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "225:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/arc.js", - "module": "./node_modules/d3-shape/src/arc.js", - "moduleName": "./node_modules/d3-shape/src/arc.js", - "type": "harmony import specifier", - "userRequest": "./math.js", - "loc": "225:24-27" - } - ], - "usedExports": [ - "epsilon", - "sqrt", - "max", - "halfPi", - "abs", - "tau", - "cos", - "sin", - "min", - "asin", - "pi", - "acos", - "atan2" - ], - "providedExports": [ - "abs", - "atan2", - "cos", - "max", - "min", - "sin", - "sqrt", - "epsilon", - "pi", - "halfPi", - "tau", - "acos", - "asin" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var abs = Math.abs;\nexport var atan2 = Math.atan2;\nexport var cos = Math.cos;\nexport var max = Math.max;\nexport var min = Math.min;\nexport var sin = Math.sin;\nexport var sqrt = Math.sqrt;\n\nexport var epsilon = 1e-12;\nexport var pi = Math.PI;\nexport var halfPi = pi / 2;\nexport var tau = 2 * pi;\n\nexport function acos(x) {\n return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);\n}\n\nexport function asin(x) {\n return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/point.js", - "name": "./node_modules/d3-shape/src/point.js", - "index": 455, - "index2": 450, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/line.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "name": "./node_modules/d3-shape/src/line.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 22, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony side effect evaluation", - "userRequest": "./point.js", - "loc": "4:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../point.js", - "loc": "4:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony side effect evaluation", - "userRequest": "./point.js", - "loc": "5:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "7:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/line.js", - "module": "./node_modules/d3-shape/src/line.js", - "moduleName": "./node_modules/d3-shape/src/line.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "8:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "8:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/area.js", - "module": "./node_modules/d3-shape/src/area.js", - "moduleName": "./node_modules/d3-shape/src/area.js", - "type": "harmony import specifier", - "userRequest": "./point.js", - "loc": "11:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../point.js", - "loc": "18:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../point.js", - "loc": "19:10-16" - } - ], - "usedExports": [ - "x", - "y" - ], - "providedExports": [ - "x", - "y" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/descending.js", - "name": "./node_modules/d3-shape/src/descending.js", - "index": 460, - "index2": 455, - "size": 86, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/pie.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 26, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./descending.js", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./descending.js", - "loc": "8:19-29" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(a, b) {\n return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/identity.js", - "name": "./node_modules/d3-shape/src/identity.js", - "index": 459, - "index2": 454, - "size": 43, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/pie.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "name": "./node_modules/d3-shape/src/pie.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 26, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony side effect evaluation", - "userRequest": "./identity.js", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/pie.js", - "module": "./node_modules/d3-shape/src/pie.js", - "moduleName": "./node_modules/d3-shape/src/pie.js", - "type": "harmony import specifier", - "userRequest": "./identity.js", - "loc": "7:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(d) {\n return d;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/radial.js", - "name": "./node_modules/d3-shape/src/curve/radial.js", - "index": 462, - "index2": 457, - "size": 658, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/lineRadial.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "name": "./node_modules/d3-shape/src/lineRadial.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 24, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/radial.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony side effect evaluation", - "userRequest": "./curve/radial.js", - "loc": "1:0-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "6:23-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "11:32-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/lineRadial.js", - "module": "./node_modules/d3-shape/src/lineRadial.js", - "moduleName": "./node_modules/d3-shape/src/lineRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "18:33-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/areaRadial.js", - "module": "./node_modules/d3-shape/src/areaRadial.js", - "moduleName": "./node_modules/d3-shape/src/areaRadial.js", - "type": "harmony import specifier", - "userRequest": "./curve/radial.js", - "loc": "25:32-43" - } - ], - "usedExports": [ - "default", - "curveRadialLinear" - ], - "providedExports": [ - "curveRadialLinear", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/array.js", - "name": "./node_modules/d3-shape/src/array.js", - "index": 466, - "index2": 461, - "size": 42, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "name": "./node_modules/d3-shape/src/stack.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 32, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony side effect evaluation", - "userRequest": "./array.js", - "loc": "1:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../array.js", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/link/index.js", - "module": "./node_modules/d3-shape/src/link/index.js", - "moduleName": "./node_modules/d3-shape/src/link/index.js", - "type": "harmony import specifier", - "userRequest": "../array.js", - "loc": "23:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "41:77-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/stack.js", - "module": "./node_modules/d3-shape/src/stack.js", - "moduleName": "./node_modules/d3-shape/src/stack.js", - "type": "harmony import specifier", - "userRequest": "./array.js", - "loc": "49:102-107" - } - ], - "usedExports": [ - "slice" - ], - "providedExports": [ - "slice" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export var slice = Array.prototype.slice;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/noop.js", - "name": "./node_modules/d3-shape/src/noop.js", - "index": 476, - "index2": 471, - "size": 29, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "issuerId": null, - "issuerName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/index.js", - "name": "./node_modules/d3-shape/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "name": "./node_modules/d3-shape/src/curve/linearClosed.js", - "profile": { - "factory": 677, - "building": 44, - "dependencies": 23 - } - } - ], - "profile": { - "factory": 27, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony side effect evaluation", - "userRequest": "../noop.js", - "loc": "2:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "8:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/linearClosed.js", - "module": "./node_modules/d3-shape/src/curve/linearClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/linearClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "9:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "9:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/basisClosed.js", - "module": "./node_modules/d3-shape/src/curve/basisClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/basisClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "10:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/cardinalClosed.js", - "module": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/cardinalClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:11-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "11:13-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-shape/src/curve/catmullRomClosed.js", - "module": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "moduleName": "./node_modules/d3-shape/src/curve/catmullRomClosed.js", - "type": "harmony import specifier", - "userRequest": "../noop.js", - "loc": "12:11-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function() {}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/constant.js", - "name": "./node_modules/d3-voronoi/src/constant.js", - "index": 510, - "index2": 505, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "1:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "32:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "36:65-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/point.js", - "name": "./node_modules/d3-voronoi/src/point.js", - "index": 511, - "index2": 506, - "size": 81, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./point", - "loc": "2:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "6:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./point", - "loc": "7:10-16" - } - ], - "usedExports": [ - "x", - "y" - ], - "providedExports": [ - "x", - "y" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export function x(d) {\n return d[0];\n}\n\nexport function y(d) {\n return d[1];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "index": 512, - "index2": 512, - "size": 3567, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/voronoi.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - } - ], - "profile": { - "factory": 100, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "1:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "2:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "2:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "3:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Diagram", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "5:9-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "5:14-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "10:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "11:2-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "11:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:42-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:53-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:89-96" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "module": "./node_modules/d3-voronoi/src/voronoi.js", - "moduleName": "./node_modules/d3-voronoi/src/voronoi.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "12:100-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "31:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "32:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "35:79-84" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "37:12-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "42:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "43:40-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "44:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "53:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "55:39-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "56:40-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "60:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "65:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "67:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "73:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "75:36-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "76:40-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "77:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "77:75-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "78:41-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:36-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:59-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "79:98-105" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "80:96-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "81:100-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:38-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:61-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "82:96-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "89:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "93:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "95:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "98:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "102:19-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "105:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "110:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "111:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "112:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "113:8-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "118:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "120:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "122:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "125:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "157:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "161:28-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "163:49-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "164:51-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "module": "./node_modules/d3-voronoi/src/Edge.js", - "moduleName": "./node_modules/d3-voronoi/src/Edge.js", - "type": "harmony import specifier", - "userRequest": "./Diagram", - "loc": "165:13-18" - } - ], - "usedExports": [ - "default", - "epsilon", - "cells", - "edges", - "beaches", - "epsilon2", - "circles" - ], - "providedExports": [ - "epsilon", - "epsilon2", - "beaches", - "cells", - "circles", - "edges", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {addBeach, removeBeach} from \"./Beach\";\nimport {sortCellHalfedges, cellHalfedgeStart, clipCells} from \"./Cell\";\nimport {firstCircle} from \"./Circle\";\nimport {clipEdges} from \"./Edge\";\nimport RedBlackTree from \"./RedBlackTree\";\n\nexport var epsilon = 1e-6;\nexport var epsilon2 = 1e-12;\nexport var beaches;\nexport var cells;\nexport var circles;\nexport var edges;\n\nfunction triangleArea(a, b, c) {\n return (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]);\n}\n\nfunction lexicographic(a, b) {\n return b[1] - a[1]\n || b[0] - a[0];\n}\n\nexport default function Diagram(sites, extent) {\n var site = sites.sort(lexicographic).pop(),\n x,\n y,\n circle;\n\n edges = [];\n cells = new Array(sites.length);\n beaches = new RedBlackTree;\n circles = new RedBlackTree;\n\n while (true) {\n circle = firstCircle;\n if (site && (!circle || site[1] < circle.y || (site[1] === circle.y && site[0] < circle.x))) {\n if (site[0] !== x || site[1] !== y) {\n addBeach(site);\n x = site[0], y = site[1];\n }\n site = sites.pop();\n } else if (circle) {\n removeBeach(circle.arc);\n } else {\n break;\n }\n }\n\n sortCellHalfedges();\n\n if (extent) {\n var x0 = +extent[0][0],\n y0 = +extent[0][1],\n x1 = +extent[1][0],\n y1 = +extent[1][1];\n clipEdges(x0, y0, x1, y1);\n clipCells(x0, y0, x1, y1);\n }\n\n this.edges = edges;\n this.cells = cells;\n\n beaches =\n circles =\n edges =\n cells = null;\n}\n\nDiagram.prototype = {\n constructor: Diagram,\n\n polygons: function() {\n var edges = this.edges;\n\n return this.cells.map(function(cell) {\n var polygon = cell.halfedges.map(function(i) { return cellHalfedgeStart(cell, edges[i]); });\n polygon.data = cell.site.data;\n return polygon;\n });\n },\n\n triangles: function() {\n var triangles = [],\n edges = this.edges;\n\n this.cells.forEach(function(cell, i) {\n if (!(m = (halfedges = cell.halfedges).length)) return;\n var site = cell.site,\n halfedges,\n j = -1,\n m,\n s0,\n e1 = edges[halfedges[m - 1]],\n s1 = e1.left === site ? e1.right : e1.left;\n\n while (++j < m) {\n s0 = s1;\n e1 = edges[halfedges[j]];\n s1 = e1.left === site ? e1.right : e1.left;\n if (s0 && s1 && i < s0.index && i < s1.index && triangleArea(site, s0, s1) < 0) {\n triangles.push([site.data, s0.data, s1.data]);\n }\n }\n });\n\n return triangles;\n },\n\n links: function() {\n return this.edges.filter(function(edge) {\n return edge.right;\n }).map(function(edge) {\n return {\n source: edge.left.data,\n target: edge.right.data\n };\n });\n },\n\n find: function(x, y, radius) {\n var that = this, i0, i1 = that._found || 0, n = that.cells.length, cell;\n\n // Use the previously-found cell, or start with an arbitrary one.\n while (!(cell = that.cells[i1])) if (++i1 >= n) return null;\n var dx = x - cell.site[0], dy = y - cell.site[1], d2 = dx * dx + dy * dy;\n\n // Traverse the half-edges to find a closer cell, if any.\n do {\n cell = that.cells[i0 = i1], i1 = null;\n cell.halfedges.forEach(function(e) {\n var edge = that.edges[e], v = edge.left;\n if ((v === cell.site || !v) && !(v = edge.right)) return;\n var vx = x - v[0], vy = y - v[1], v2 = vx * vx + vy * vy;\n if (v2 < d2) d2 = v2, i1 = v.index;\n });\n } while (i1 !== null);\n\n that._found = i0;\n\n return radius == null || d2 <= radius * radius ? cell.site : null;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/constant.js", - "name": "./node_modules/d3-zoom/src/constant.js", - "index": 520, - "index2": 515, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant.js", - "loc": "6:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "374:74-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "378:70-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "382:73-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./constant.js", - "loc": "386:70-78" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/event.js", - "name": "./node_modules/d3-zoom/src/event.js", - "index": 521, - "index2": 516, - "size": 137, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./event.js", - "loc": "7:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./event.js", - "loc": "210:22-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "export default function ZoomEvent(target, type, transform) {\n this.target = target;\n this.type = type;\n this.transform = transform;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/noevent.js", - "name": "./node_modules/d3-zoom/src/noevent.js", - "index": 523, - "index2": 518, - "size": 202, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "issuerId": null, - "issuerName": "./node_modules/d3-zoom/src/zoom.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/index.js", - "name": "./node_modules/d3-zoom/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "name": "./node_modules/d3-zoom/src/zoom.js", - "profile": { - "factory": 67, - "building": 95, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 24, - "building": 53, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony side effect evaluation", - "userRequest": "./noevent.js", - "loc": "9:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "240:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "259:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "265:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "276:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "289:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "301:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "324:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-zoom/src/zoom.js", - "module": "./node_modules/d3-zoom/src/zoom.js", - "moduleName": "./node_modules/d3-zoom/src/zoom.js", - "type": "harmony import specifier", - "userRequest": "./noevent.js", - "loc": "353:4-17" - } - ], - "usedExports": [ - "default", - "nopropagation" - ], - "providedExports": [ - "nopropagation", - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import {event} from \"d3-selection\";\n\nexport function nopropagation() {\n event.stopImmediatePropagation();\n}\n\nexport default function() {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/sparse.js", - "name": "./node_modules/d3-selection/src/selection/sparse.js", - "index": 90, - "index2": 77, - "size": 71, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/exit.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "name": "./node_modules/d3-selection/src/selection/exit.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony side effect evaluation", - "userRequest": "./sparse", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony side effect evaluation", - "userRequest": "./sparse", - "loc": "1:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/exit.js", - "module": "./node_modules/d3-selection/src/selection/exit.js", - "moduleName": "./node_modules/d3-selection/src/selection/exit.js", - "type": "harmony import specifier", - "userRequest": "./sparse", - "loc": "5:54-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/enter.js", - "module": "./node_modules/d3-selection/src/selection/enter.js", - "moduleName": "./node_modules/d3-selection/src/selection/enter.js", - "type": "harmony import specifier", - "userRequest": "./sparse", - "loc": "5:55-61" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(update) {\n return new Array(update.length);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/constant.js", - "name": "./node_modules/d3-selection/src/constant.js", - "index": 91, - "index2": 79, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "issuerId": null, - "issuerName": "./node_modules/d3-selection/src/selection/data.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/index.js", - "name": "./node_modules/d3-selection/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/create.js", - "name": "./node_modules/d3-selection/src/create.js", - "profile": { - "factory": 736, - "building": 29, - "dependencies": 94 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/select.js", - "name": "./node_modules/d3-selection/src/select.js", - "profile": { - "factory": 102, - "building": 30 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/index.js", - "name": "./node_modules/d3-selection/src/selection/index.js", - "profile": { - "factory": 81, - "building": 37 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "name": "./node_modules/d3-selection/src/selection/data.js", - "profile": { - "factory": 138, - "building": 29, - "dependencies": 78 - } - } - ], - "profile": { - "factory": 77, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony side effect evaluation", - "userRequest": "../constant", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-selection/src/selection/data.js", - "module": "./node_modules/d3-selection/src/selection/data.js", - "moduleName": "./node_modules/d3-selection/src/selection/data.js", - "type": "harmony import specifier", - "userRequest": "../constant", - "loc": "88:43-51" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/decompose.js", - "name": "./node_modules/d3-interpolate/src/transform/decompose.js", - "index": 69, - "index2": 57, - "size": 672, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "issuerId": null, - "issuerName": "./node_modules/d3-interpolate/src/transform/parse.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/index.js", - "name": "./node_modules/d3-interpolate/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/index.js", - "name": "./node_modules/d3-interpolate/src/transform/index.js", - "profile": { - "factory": 777, - "building": 27, - "dependencies": 32 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "name": "./node_modules/d3-interpolate/src/transform/parse.js", - "profile": { - "factory": 54, - "building": 20 - } - } - ], - "profile": { - "factory": 16, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony side effect evaluation", - "userRequest": "./decompose.js", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "9:31-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "15:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "19:28-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "22:65-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-interpolate/src/transform/parse.js", - "module": "./node_modules/d3-interpolate/src/transform/parse.js", - "moduleName": "./node_modules/d3-interpolate/src/transform/parse.js", - "type": "harmony import specifier", - "userRequest": "./decompose.js", - "loc": "24:9-18" - } - ], - "usedExports": [ - "identity", - "default" - ], - "providedExports": [ - "identity", - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "var degrees = 180 / Math.PI;\n\nexport var identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nexport default function(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/interpolate.js", - "name": "./node_modules/d3-transition/src/transition/interpolate.js", - "index": 55, - "index2": 54, - "size": 340, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "issuerId": null, - "issuerName": "./node_modules/d3-transition/src/transition/style.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/index.js", - "name": "./node_modules/d3-transition/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/index.js", - "name": "./node_modules/d3-transition/src/selection/index.js", - "profile": { - "factory": 285, - "building": 41, - "dependencies": 7 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/selection/transition.js", - "name": "./node_modules/d3-transition/src/selection/transition.js", - "profile": { - "factory": 18, - "building": 56, - "dependencies": 1 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/index.js", - "name": "./node_modules/d3-transition/src/transition/index.js", - "profile": { - "factory": 38, - "building": 36, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "name": "./node_modules/d3-transition/src/transition/style.js", - "profile": { - "factory": 65, - "building": 36, - "dependencies": 19 - } - } - ], - "profile": { - "factory": 27, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "4:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony side effect evaluation", - "userRequest": "./interpolate.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/style.js", - "module": "./node_modules/d3-transition/src/transition/style.js", - "moduleName": "./node_modules/d3-transition/src/transition/style.js", - "type": "harmony import specifier", - "userRequest": "./interpolate.js", - "loc": "70:64-75" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-transition/src/transition/attr.js", - "module": "./node_modules/d3-transition/src/transition/attr.js", - "moduleName": "./node_modules/d3-transition/src/transition/attr.js", - "type": "harmony import specifier", - "userRequest": "./interpolate.js", - "loc": "73:88-99" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {color} from \"d3-color\";\nimport {interpolateNumber, interpolateRgb, interpolateString} from \"d3-interpolate\";\n\nexport default function(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quad.js", - "name": "./node_modules/d3-quadtree/src/quad.js", - "index": 212, - "index2": 205, - "size": 134, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "issuerId": null, - "issuerName": "./node_modules/d3-quadtree/src/visitAfter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/index.js", - "name": "./node_modules/d3-quadtree/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/quadtree.js", - "name": "./node_modules/d3-quadtree/src/quadtree.js", - "profile": { - "factory": 73, - "building": 74 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "name": "./node_modules/d3-quadtree/src/visitAfter.js", - "profile": { - "factory": 105, - "building": 41, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony side effect evaluation", - "userRequest": "./quad.js", - "loc": "1:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "5:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "5:33-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "9:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "10:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "10:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "11:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "11:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "12:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visit.js", - "module": "./node_modules/d3-quadtree/src/visit.js", - "moduleName": "./node_modules/d3-quadtree/src/visit.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "12:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/visitAfter.js", - "module": "./node_modules/d3-quadtree/src/visitAfter.js", - "moduleName": "./node_modules/d3-quadtree/src/visitAfter.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "13:42-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "18:27-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "41:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "42:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "43:12-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-quadtree/src/find.js", - "module": "./node_modules/d3-quadtree/src/find.js", - "moduleName": "./node_modules/d3-quadtree/src/find.js", - "type": "harmony import specifier", - "userRequest": "./quad.js", - "loc": "44:12-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(node, x0, y0, x1, y1) {\n this.node = node;\n this.x0 = x0;\n this.y0 = y0;\n this.x1 = x1;\n this.y1 = y1;\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatDecimal.js", - "name": "./node_modules/d3-format/src/formatDecimal.js", - "index": 233, - "index2": 225, - "size": 656, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/exponent.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "name": "./node_modules/d3-format/src/exponent.js", - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - } - } - ], - "profile": { - "factory": 29, - "building": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "module": "./node_modules/d3-format/src/exponent.js", - "moduleName": "./node_modules/d3-format/src/exponent.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "module": "./node_modules/d3-format/src/formatRounded.js", - "moduleName": "./node_modules/d3-format/src/formatRounded.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatDecimal.js", - "loc": "1:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "module": "./node_modules/d3-format/src/formatRounded.js", - "moduleName": "./node_modules/d3-format/src/formatRounded.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "4:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/exponent.js", - "module": "./node_modules/d3-format/src/exponent.js", - "moduleName": "./node_modules/d3-format/src/exponent.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "4:13-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "6:10-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatPrefixAuto.js", - "module": "./node_modules/d3-format/src/formatPrefixAuto.js", - "moduleName": "./node_modules/d3-format/src/formatPrefixAuto.js", - "type": "harmony import specifier", - "userRequest": "./formatDecimal.js", - "loc": "15:44-57" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "// Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimal(1.23) returns [\"123\", 0].\nexport default function(x, p) {\n if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf(\"e\")) < 0) return null; // NaN, ±Infinity\n var i, coefficient = x.slice(0, i);\n\n // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n return [\n coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,\n +x.slice(i + 1)\n ];\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatRounded.js", - "name": "./node_modules/d3-format/src/formatRounded.js", - "index": 232, - "index2": 226, - "size": 461, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "issuerId": null, - "issuerName": "./node_modules/d3-format/src/formatTypes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/index.js", - "name": "./node_modules/d3-format/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/defaultLocale.js", - "name": "./node_modules/d3-format/src/defaultLocale.js", - "profile": { - "factory": 828, - "building": 47, - "dependencies": 0 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/locale.js", - "name": "./node_modules/d3-format/src/locale.js", - "profile": { - "factory": 50, - "building": 45 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "name": "./node_modules/d3-format/src/formatTypes.js", - "profile": { - "factory": 47, - "building": 35, - "dependencies": 28 - } - } - ], - "profile": { - "factory": 28, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony side effect evaluation", - "userRequest": "./formatRounded.js", - "loc": "2:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatRounded.js", - "loc": "13:31-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-format/src/formatTypes.js", - "module": "./node_modules/d3-format/src/formatTypes.js", - "moduleName": "./node_modules/d3-format/src/formatTypes.js", - "type": "harmony import specifier", - "userRequest": "./formatRounded.js", - "loc": "14:7-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import formatDecimal from \"./formatDecimal.js\";\n\nexport default function(x, p) {\n var d = formatDecimal(x, p);\n if (!d) return x + \"\";\n var coefficient = d[0],\n exponent = d[1];\n return exponent < 0 ? \"0.\" + new Array(-exponent).join(\"0\") + coefficient\n : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + \".\" + coefficient.slice(exponent + 1)\n : coefficient + new Array(exponent - coefficient.length + 2).join(\"0\");\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/constant.js", - "name": "./node_modules/d3-scale/src/constant.js", - "index": 366, - "index2": 359, - "size": 72, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "issuerId": null, - "issuerName": "./node_modules/d3-scale/src/continuous.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/index.js", - "name": "./node_modules/d3-scale/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/diverging.js", - "name": "./node_modules/d3-scale/src/diverging.js", - "profile": { - "factory": 778, - "building": 45, - "dependencies": 89 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "name": "./node_modules/d3-scale/src/continuous.js", - "profile": { - "factory": 89, - "building": 20, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 7, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony side effect evaluation", - "userRequest": "./constant", - "loc": "4:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-scale/src/continuous.js", - "module": "./node_modules/d3-scale/src/continuous.js", - "moduleName": "./node_modules/d3-scale/src/continuous.js", - "type": "harmony import specifier", - "userRequest": "./constant", - "loc": "16:8-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "export default function(x) {\n return function() {\n return x;\n };\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/RedBlackTree.js", - "name": "./node_modules/d3-voronoi/src/RedBlackTree.js", - "index": 514, - "index2": 507, - "size": 5302, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "1:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./RedBlackTree", - "loc": "5:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "9:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "10:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "26:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "31:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "32:16-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "module": "./node_modules/d3-voronoi/src/Circle.js", - "moduleName": "./node_modules/d3-voronoi/src/Circle.js", - "type": "harmony import specifier", - "userRequest": "./RedBlackTree", - "loc": "75:4-16" - } - ], - "usedExports": [ - "default", - "RedBlackNode" - ], - "providedExports": [ - "RedBlackNode", - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function RedBlackTree() {\n this._ = null; // root node\n}\n\nexport function RedBlackNode(node) {\n node.U = // parent node\n node.C = // color - true for red, false for black\n node.L = // left node\n node.R = // right node\n node.P = // previous node\n node.N = null; // next node\n}\n\nRedBlackTree.prototype = {\n constructor: RedBlackTree,\n\n insert: function(after, node) {\n var parent, grandpa, uncle;\n\n if (after) {\n node.P = after;\n node.N = after.N;\n if (after.N) after.N.P = node;\n after.N = node;\n if (after.R) {\n after = after.R;\n while (after.L) after = after.L;\n after.L = node;\n } else {\n after.R = node;\n }\n parent = after;\n } else if (this._) {\n after = RedBlackFirst(this._);\n node.P = null;\n node.N = after;\n after.P = after.L = node;\n parent = after;\n } else {\n node.P = node.N = null;\n this._ = node;\n parent = null;\n }\n node.L = node.R = null;\n node.U = parent;\n node.C = true;\n\n after = node;\n while (parent && parent.C) {\n grandpa = parent.U;\n if (parent === grandpa.L) {\n uncle = grandpa.R;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.R) {\n RedBlackRotateLeft(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateRight(this, grandpa);\n }\n } else {\n uncle = grandpa.L;\n if (uncle && uncle.C) {\n parent.C = uncle.C = false;\n grandpa.C = true;\n after = grandpa;\n } else {\n if (after === parent.L) {\n RedBlackRotateRight(this, parent);\n after = parent;\n parent = after.U;\n }\n parent.C = false;\n grandpa.C = true;\n RedBlackRotateLeft(this, grandpa);\n }\n }\n parent = after.U;\n }\n this._.C = false;\n },\n\n remove: function(node) {\n if (node.N) node.N.P = node.P;\n if (node.P) node.P.N = node.N;\n node.N = node.P = null;\n\n var parent = node.U,\n sibling,\n left = node.L,\n right = node.R,\n next,\n red;\n\n if (!left) next = right;\n else if (!right) next = left;\n else next = RedBlackFirst(right);\n\n if (parent) {\n if (parent.L === node) parent.L = next;\n else parent.R = next;\n } else {\n this._ = next;\n }\n\n if (left && right) {\n red = next.C;\n next.C = node.C;\n next.L = left;\n left.U = next;\n if (next !== right) {\n parent = next.U;\n next.U = node.U;\n node = next.R;\n parent.L = node;\n next.R = right;\n right.U = next;\n } else {\n next.U = parent;\n parent = next;\n node = next.R;\n }\n } else {\n red = node.C;\n node = next;\n }\n\n if (node) node.U = parent;\n if (red) return;\n if (node && node.C) { node.C = false; return; }\n\n do {\n if (node === this._) break;\n if (node === parent.L) {\n sibling = parent.R;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateLeft(this, parent);\n sibling = parent.R;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.R || !sibling.R.C) {\n sibling.L.C = false;\n sibling.C = true;\n RedBlackRotateRight(this, sibling);\n sibling = parent.R;\n }\n sibling.C = parent.C;\n parent.C = sibling.R.C = false;\n RedBlackRotateLeft(this, parent);\n node = this._;\n break;\n }\n } else {\n sibling = parent.L;\n if (sibling.C) {\n sibling.C = false;\n parent.C = true;\n RedBlackRotateRight(this, parent);\n sibling = parent.L;\n }\n if ((sibling.L && sibling.L.C)\n || (sibling.R && sibling.R.C)) {\n if (!sibling.L || !sibling.L.C) {\n sibling.R.C = false;\n sibling.C = true;\n RedBlackRotateLeft(this, sibling);\n sibling = parent.L;\n }\n sibling.C = parent.C;\n parent.C = sibling.L.C = false;\n RedBlackRotateRight(this, parent);\n node = this._;\n break;\n }\n }\n sibling.C = true;\n node = parent;\n parent = parent.U;\n } while (!node.C);\n\n if (node) node.C = false;\n }\n};\n\nfunction RedBlackRotateLeft(tree, node) {\n var p = node,\n q = node.R,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.R = q.L;\n if (p.R) p.R.U = p;\n q.L = p;\n}\n\nfunction RedBlackRotateRight(tree, node) {\n var p = node,\n q = node.L,\n parent = p.U;\n\n if (parent) {\n if (parent.L === p) parent.L = q;\n else parent.R = q;\n } else {\n tree._ = q;\n }\n\n q.U = parent;\n p.U = q;\n p.L = q.R;\n if (p.L) p.L.U = p;\n q.R = p;\n}\n\nfunction RedBlackFirst(node) {\n while (node.L) node = node.L;\n return node;\n}\n\nexport default RedBlackTree;\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Edge.js", - "name": "./node_modules/d3-voronoi/src/Edge.js", - "index": 516, - "index2": 508, - "size": 3634, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "1:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "4:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Edge", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "56:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "71:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "76:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "78:52-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "110:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "111:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "112:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "module": "./node_modules/d3-voronoi/src/Cell.js", - "moduleName": "./node_modules/d3-voronoi/src/Cell.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "113:19-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "126:30-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "133:18-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "154:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "155:16-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Edge", - "loc": "156:14-24" - } - ], - "usedExports": [ - "clipEdges", - "createBorderEdge", - "setEdgeEnd", - "createEdge" - ], - "providedExports": [ - "createEdge", - "createBorderEdge", - "setEdgeEnd", - "clipEdges" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createEdge(left, right, v0, v1) {\n var edge = [null, null],\n index = edges.push(edge) - 1;\n edge.left = left;\n edge.right = right;\n if (v0) setEdgeEnd(edge, left, right, v0);\n if (v1) setEdgeEnd(edge, right, left, v1);\n cells[left.index].halfedges.push(index);\n cells[right.index].halfedges.push(index);\n return edge;\n}\n\nexport function createBorderEdge(left, v0, v1) {\n var edge = [v0, v1];\n edge.left = left;\n return edge;\n}\n\nexport function setEdgeEnd(edge, left, right, vertex) {\n if (!edge[0] && !edge[1]) {\n edge[0] = vertex;\n edge.left = left;\n edge.right = right;\n } else if (edge.left === right) {\n edge[1] = vertex;\n } else {\n edge[0] = vertex;\n }\n}\n\n// Liang–Barsky line clipping.\nfunction clipEdge(edge, x0, y0, x1, y1) {\n var a = edge[0],\n b = edge[1],\n ax = a[0],\n ay = a[1],\n bx = b[0],\n by = b[1],\n t0 = 0,\n t1 = 1,\n dx = bx - ax,\n dy = by - ay,\n r;\n\n r = x0 - ax;\n if (!dx && r > 0) return;\n r /= dx;\n if (dx < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dx > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = x1 - ax;\n if (!dx && r < 0) return;\n r /= dx;\n if (dx < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dx > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n r = y0 - ay;\n if (!dy && r > 0) return;\n r /= dy;\n if (dy < 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n } else if (dy > 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n }\n\n r = y1 - ay;\n if (!dy && r < 0) return;\n r /= dy;\n if (dy < 0) {\n if (r > t1) return;\n if (r > t0) t0 = r;\n } else if (dy > 0) {\n if (r < t0) return;\n if (r < t1) t1 = r;\n }\n\n if (!(t0 > 0) && !(t1 < 1)) return true; // TODO Better check?\n\n if (t0 > 0) edge[0] = [ax + t0 * dx, ay + t0 * dy];\n if (t1 < 1) edge[1] = [ax + t1 * dx, ay + t1 * dy];\n return true;\n}\n\nfunction connectEdge(edge, x0, y0, x1, y1) {\n var v1 = edge[1];\n if (v1) return true;\n\n var v0 = edge[0],\n left = edge.left,\n right = edge.right,\n lx = left[0],\n ly = left[1],\n rx = right[0],\n ry = right[1],\n fx = (lx + rx) / 2,\n fy = (ly + ry) / 2,\n fm,\n fb;\n\n if (ry === ly) {\n if (fx < x0 || fx >= x1) return;\n if (lx > rx) {\n if (!v0) v0 = [fx, y0];\n else if (v0[1] >= y1) return;\n v1 = [fx, y1];\n } else {\n if (!v0) v0 = [fx, y1];\n else if (v0[1] < y0) return;\n v1 = [fx, y0];\n }\n } else {\n fm = (lx - rx) / (ry - ly);\n fb = fy - fm * fx;\n if (fm < -1 || fm > 1) {\n if (lx > rx) {\n if (!v0) v0 = [(y0 - fb) / fm, y0];\n else if (v0[1] >= y1) return;\n v1 = [(y1 - fb) / fm, y1];\n } else {\n if (!v0) v0 = [(y1 - fb) / fm, y1];\n else if (v0[1] < y0) return;\n v1 = [(y0 - fb) / fm, y0];\n }\n } else {\n if (ly < ry) {\n if (!v0) v0 = [x0, fm * x0 + fb];\n else if (v0[0] >= x1) return;\n v1 = [x1, fm * x1 + fb];\n } else {\n if (!v0) v0 = [x1, fm * x1 + fb];\n else if (v0[0] < x0) return;\n v1 = [x0, fm * x0 + fb];\n }\n }\n }\n\n edge[0] = v0;\n edge[1] = v1;\n return true;\n}\n\nexport function clipEdges(x0, y0, x1, y1) {\n var i = edges.length,\n edge;\n\n while (i--) {\n if (!connectEdge(edge = edges[i], x0, y0, x1, y1)\n || !clipEdge(edge, x0, y0, x1, y1)\n || !(Math.abs(edge[0][0] - edge[1][0]) > epsilon\n || Math.abs(edge[0][1] - edge[1][1]) > epsilon)) {\n delete edges[i];\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Cell.js", - "name": "./node_modules/d3-voronoi/src/Cell.js", - "index": 515, - "index2": 509, - "size": 4087, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Cell", - "loc": "2:0-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Cell", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "49:2-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "57:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "76:60-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Cell", - "loc": "116:2-12" - } - ], - "usedExports": [ - "sortCellHalfedges", - "clipCells", - "cellHalfedgeStart", - "createCell" - ], - "providedExports": [ - "createCell", - "cellHalfedgeStart", - "cellHalfedgeEnd", - "sortCellHalfedges", - "clipCells" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {createBorderEdge} from \"./Edge\";\nimport {cells, edges, epsilon} from \"./Diagram\";\n\nexport function createCell(site) {\n return cells[site.index] = {\n site: site,\n halfedges: []\n };\n}\n\nfunction cellHalfedgeAngle(cell, edge) {\n var site = cell.site,\n va = edge.left,\n vb = edge.right;\n if (site === vb) vb = va, va = site;\n if (vb) return Math.atan2(vb[1] - va[1], vb[0] - va[0]);\n if (site === va) va = edge[1], vb = edge[0];\n else va = edge[0], vb = edge[1];\n return Math.atan2(va[0] - vb[0], vb[1] - va[1]);\n}\n\nexport function cellHalfedgeStart(cell, edge) {\n return edge[+(edge.left !== cell.site)];\n}\n\nexport function cellHalfedgeEnd(cell, edge) {\n return edge[+(edge.left === cell.site)];\n}\n\nexport function sortCellHalfedges() {\n for (var i = 0, n = cells.length, cell, halfedges, j, m; i < n; ++i) {\n if ((cell = cells[i]) && (m = (halfedges = cell.halfedges).length)) {\n var index = new Array(m),\n array = new Array(m);\n for (j = 0; j < m; ++j) index[j] = j, array[j] = cellHalfedgeAngle(cell, edges[halfedges[j]]);\n index.sort(function(i, j) { return array[j] - array[i]; });\n for (j = 0; j < m; ++j) array[j] = halfedges[index[j]];\n for (j = 0; j < m; ++j) halfedges[j] = array[j];\n }\n }\n}\n\nexport function clipCells(x0, y0, x1, y1) {\n var nCells = cells.length,\n iCell,\n cell,\n site,\n iHalfedge,\n halfedges,\n nHalfedges,\n start,\n startX,\n startY,\n end,\n endX,\n endY,\n cover = true;\n\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n halfedges = cell.halfedges;\n iHalfedge = halfedges.length;\n\n // Remove any dangling clipped edges.\n while (iHalfedge--) {\n if (!edges[halfedges[iHalfedge]]) {\n halfedges.splice(iHalfedge, 1);\n }\n }\n\n // Insert any border edges as necessary.\n iHalfedge = 0, nHalfedges = halfedges.length;\n while (iHalfedge < nHalfedges) {\n end = cellHalfedgeEnd(cell, edges[halfedges[iHalfedge]]), endX = end[0], endY = end[1];\n start = cellHalfedgeStart(cell, edges[halfedges[++iHalfedge % nHalfedges]]), startX = start[0], startY = start[1];\n if (Math.abs(endX - startX) > epsilon || Math.abs(endY - startY) > epsilon) {\n halfedges.splice(iHalfedge, 0, edges.push(createBorderEdge(site, end,\n Math.abs(endX - x0) < epsilon && y1 - endY > epsilon ? [x0, Math.abs(startX - x0) < epsilon ? startY : y1]\n : Math.abs(endY - y1) < epsilon && x1 - endX > epsilon ? [Math.abs(startY - y1) < epsilon ? startX : x1, y1]\n : Math.abs(endX - x1) < epsilon && endY - y0 > epsilon ? [x1, Math.abs(startX - x1) < epsilon ? startY : y0]\n : Math.abs(endY - y0) < epsilon && endX - x0 > epsilon ? [Math.abs(startY - y0) < epsilon ? startX : x0, y0]\n : null)) - 1);\n ++nHalfedges;\n }\n }\n\n if (nHalfedges) cover = false;\n }\n }\n\n // If there weren’t any edges, have the closest site cover the extent.\n // It doesn’t matter which corner of the extent we measure!\n if (cover) {\n var dx, dy, d2, dc = Infinity;\n\n for (iCell = 0, cover = null; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n site = cell.site;\n dx = site[0] - x0;\n dy = site[1] - y0;\n d2 = dx * dx + dy * dy;\n if (d2 < dc) dc = d2, cover = cell;\n }\n }\n\n if (cover) {\n var v00 = [x0, y0], v01 = [x0, y1], v11 = [x1, y1], v10 = [x1, y0];\n cover.halfedges.push(\n edges.push(createBorderEdge(site = cover.site, v00, v01)) - 1,\n edges.push(createBorderEdge(site, v01, v11)) - 1,\n edges.push(createBorderEdge(site, v11, v10)) - 1,\n edges.push(createBorderEdge(site, v10, v00)) - 1\n );\n }\n }\n\n // Lastly delete any cells with no edges; these were entirely clipped.\n for (iCell = 0; iCell < nCells; ++iCell) {\n if (cell = cells[iCell]) {\n if (!cell.halfedges.length) {\n delete cells[iCell];\n }\n }\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Circle.js", - "name": "./node_modules/d3-voronoi/src/Circle.js", - "index": 517, - "index2": 510, - "size": 1632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Circle", - "loc": "3:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony side effect evaluation", - "userRequest": "./Circle", - "loc": "3:0-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "23:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "35:13-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "51:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "64:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "78:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "79:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "123:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "127:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "128:4-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "138:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "139:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "157:2-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "module": "./node_modules/d3-voronoi/src/Beach.js", - "moduleName": "./node_modules/d3-voronoi/src/Beach.js", - "type": "harmony import specifier", - "userRequest": "./Circle", - "loc": "158:2-14" - } - ], - "usedExports": [ - "firstCircle", - "detachCircle", - "attachCircle" - ], - "providedExports": [ - "firstCircle", - "attachCircle", - "detachCircle" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {RedBlackNode} from \"./RedBlackTree\";\nimport {circles, epsilon2} from \"./Diagram\";\n\nvar circlePool = [];\n\nexport var firstCircle;\n\nfunction Circle() {\n RedBlackNode(this);\n this.x =\n this.y =\n this.arc =\n this.site =\n this.cy = null;\n}\n\nexport function attachCircle(arc) {\n var lArc = arc.P,\n rArc = arc.N;\n\n if (!lArc || !rArc) return;\n\n var lSite = lArc.site,\n cSite = arc.site,\n rSite = rArc.site;\n\n if (lSite === rSite) return;\n\n var bx = cSite[0],\n by = cSite[1],\n ax = lSite[0] - bx,\n ay = lSite[1] - by,\n cx = rSite[0] - bx,\n cy = rSite[1] - by;\n\n var d = 2 * (ax * cy - ay * cx);\n if (d >= -epsilon2) return;\n\n var ha = ax * ax + ay * ay,\n hc = cx * cx + cy * cy,\n x = (cy * ha - ay * hc) / d,\n y = (ax * hc - cx * ha) / d;\n\n var circle = circlePool.pop() || new Circle;\n circle.arc = arc;\n circle.site = cSite;\n circle.x = x + bx;\n circle.y = (circle.cy = y + by) + Math.sqrt(x * x + y * y); // y bottom\n\n arc.circle = circle;\n\n var before = null,\n node = circles._;\n\n while (node) {\n if (circle.y < node.y || (circle.y === node.y && circle.x <= node.x)) {\n if (node.L) node = node.L;\n else { before = node.P; break; }\n } else {\n if (node.R) node = node.R;\n else { before = node; break; }\n }\n }\n\n circles.insert(before, circle);\n if (!before) firstCircle = circle;\n}\n\nexport function detachCircle(arc) {\n var circle = arc.circle;\n if (circle) {\n if (!circle.P) firstCircle = circle.N;\n circles.remove(circle);\n circlePool.push(circle);\n RedBlackNode(circle);\n arc.circle = null;\n }\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Beach.js", - "name": "./node_modules/d3-voronoi/src/Beach.js", - "index": 513, - "index2": 511, - "size": 4381, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "issuerId": null, - "issuerName": "./node_modules/d3-voronoi/src/Diagram.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3/index.js", - "name": "./node_modules/d3/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/index.js", - "name": "./node_modules/d3-voronoi/src/index.js", - "profile": { - "factory": 1934, - "building": 39, - "dependencies": 790 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/voronoi.js", - "name": "./node_modules/d3-voronoi/src/voronoi.js", - "profile": { - "factory": 174, - "building": 44 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "name": "./node_modules/d3-voronoi/src/Diagram.js", - "profile": { - "factory": 100, - "building": 31 - } - } - ], - "profile": { - "factory": 79, - "building": 32, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony side effect evaluation", - "userRequest": "./Beach", - "loc": "1:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Beach", - "loc": "38:8-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/d3-voronoi/src/Diagram.js", - "module": "./node_modules/d3-voronoi/src/Diagram.js", - "moduleName": "./node_modules/d3-voronoi/src/Diagram.js", - "type": "harmony import specifier", - "userRequest": "./Beach", - "loc": "43:6-17" - } - ], - "usedExports": [ - "addBeach", - "removeBeach" - ], - "providedExports": [ - "removeBeach", - "addBeach" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import {RedBlackNode} from \"./RedBlackTree\";\nimport {createCell} from \"./Cell\";\nimport {attachCircle, detachCircle} from \"./Circle\";\nimport {createEdge, setEdgeEnd} from \"./Edge\";\nimport {beaches, epsilon} from \"./Diagram\";\n\nvar beachPool = [];\n\nfunction Beach() {\n RedBlackNode(this);\n this.edge =\n this.site =\n this.circle = null;\n}\n\nfunction createBeach(site) {\n var beach = beachPool.pop() || new Beach;\n beach.site = site;\n return beach;\n}\n\nfunction detachBeach(beach) {\n detachCircle(beach);\n beaches.remove(beach);\n beachPool.push(beach);\n RedBlackNode(beach);\n}\n\nexport function removeBeach(beach) {\n var circle = beach.circle,\n x = circle.x,\n y = circle.cy,\n vertex = [x, y],\n previous = beach.P,\n next = beach.N,\n disappearing = [beach];\n\n detachBeach(beach);\n\n var lArc = previous;\n while (lArc.circle\n && Math.abs(x - lArc.circle.x) < epsilon\n && Math.abs(y - lArc.circle.cy) < epsilon) {\n previous = lArc.P;\n disappearing.unshift(lArc);\n detachBeach(lArc);\n lArc = previous;\n }\n\n disappearing.unshift(lArc);\n detachCircle(lArc);\n\n var rArc = next;\n while (rArc.circle\n && Math.abs(x - rArc.circle.x) < epsilon\n && Math.abs(y - rArc.circle.cy) < epsilon) {\n next = rArc.N;\n disappearing.push(rArc);\n detachBeach(rArc);\n rArc = next;\n }\n\n disappearing.push(rArc);\n detachCircle(rArc);\n\n var nArcs = disappearing.length,\n iArc;\n for (iArc = 1; iArc < nArcs; ++iArc) {\n rArc = disappearing[iArc];\n lArc = disappearing[iArc - 1];\n setEdgeEnd(rArc.edge, lArc.site, rArc.site, vertex);\n }\n\n lArc = disappearing[0];\n rArc = disappearing[nArcs - 1];\n rArc.edge = createEdge(lArc.site, rArc.site, null, vertex);\n\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nexport function addBeach(site) {\n var x = site[0],\n directrix = site[1],\n lArc,\n rArc,\n dxl,\n dxr,\n node = beaches._;\n\n while (node) {\n dxl = leftBreakPoint(node, directrix) - x;\n if (dxl > epsilon) node = node.L; else {\n dxr = x - rightBreakPoint(node, directrix);\n if (dxr > epsilon) {\n if (!node.R) {\n lArc = node;\n break;\n }\n node = node.R;\n } else {\n if (dxl > -epsilon) {\n lArc = node.P;\n rArc = node;\n } else if (dxr > -epsilon) {\n lArc = node;\n rArc = node.N;\n } else {\n lArc = rArc = node;\n }\n break;\n }\n }\n }\n\n createCell(site);\n var newArc = createBeach(site);\n beaches.insert(lArc, newArc);\n\n if (!lArc && !rArc) return;\n\n if (lArc === rArc) {\n detachCircle(lArc);\n rArc = createBeach(lArc.site);\n beaches.insert(newArc, rArc);\n newArc.edge = rArc.edge = createEdge(lArc.site, newArc.site);\n attachCircle(lArc);\n attachCircle(rArc);\n return;\n }\n\n if (!rArc) { // && lArc\n newArc.edge = createEdge(lArc.site, newArc.site);\n return;\n }\n\n // else lArc !== rArc\n detachCircle(lArc);\n detachCircle(rArc);\n\n var lSite = lArc.site,\n ax = lSite[0],\n ay = lSite[1],\n bx = site[0] - ax,\n by = site[1] - ay,\n rSite = rArc.site,\n cx = rSite[0] - ax,\n cy = rSite[1] - ay,\n d = 2 * (bx * cy - by * cx),\n hb = bx * bx + by * by,\n hc = cx * cx + cy * cy,\n vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];\n\n setEdgeEnd(rArc.edge, lSite, rSite, vertex);\n newArc.edge = createEdge(lSite, site, null, vertex);\n rArc.edge = createEdge(site, rSite, null, vertex);\n attachCircle(lArc);\n attachCircle(rArc);\n}\n\nfunction leftBreakPoint(arc, directrix) {\n var site = arc.site,\n rfocx = site[0],\n rfocy = site[1],\n pby2 = rfocy - directrix;\n\n if (!pby2) return rfocx;\n\n var lArc = arc.P;\n if (!lArc) return -Infinity;\n\n site = lArc.site;\n var lfocx = site[0],\n lfocy = site[1],\n plby2 = lfocy - directrix;\n\n if (!plby2) return lfocx;\n\n var hl = lfocx - rfocx,\n aby2 = 1 / pby2 - 1 / plby2,\n b = hl / plby2;\n\n if (aby2) return (-b + Math.sqrt(b * b - 2 * aby2 * (hl * hl / (-2 * plby2) - lfocy + plby2 / 2 + rfocy - pby2 / 2))) / aby2 + rfocx;\n\n return (rfocx + lfocx) / 2;\n}\n\nfunction rightBreakPoint(arc, directrix) {\n var rArc = arc.N;\n if (rArc) return leftBreakPoint(rArc, directrix);\n var site = arc.site;\n return site[1] === directrix ? site[0] : Infinity;\n}\n" - } - ], - "filteredModules": 0 - }, - { - "id": 1, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "name": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "index": 555, - "index2": 553, - "size": 32724, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/sequenceDiagram", - "loc": "4:0-50" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "26:0-72" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "84:12-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "93:15-29" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:53-59" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:97-103" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:52-58" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:58-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "458:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "459:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "460:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "465:15-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "466:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "467:17-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "468:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "496:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "501:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "505:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "509:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "515:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "522:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "528:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "535:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "541:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "548:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "554:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "560:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "567:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "573:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "579:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:9-15" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:40-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:72-78" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:98-104" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:125-131" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:157-163" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "661:28-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "666:28-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "700:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "702:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "704:35-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "781:24-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "784:31-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:7-13" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:38-44" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:70-76" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:96-102" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:123-129" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:155-161" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "852:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "853:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "854:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "855:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "865:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "866:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "876:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "877:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "878:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "879:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "884:11-17" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "899:11-17" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('OPEN_DIRECTIVE'); return 56; \nbreak;\ncase 1: this.begin('TYPE_DIRECTIVE'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('ARG_DIRECTIVE'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"ARG_DIRECTIVE\":{\"rules\":[3,4,8],\"inclusive\":false},\"TYPE_DIRECTIVE\":{\"rules\":[2,3,8],\"inclusive\":false},\"OPEN_DIRECTIVE\":{\"rules\":[1,8],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "index": 572, - "index2": 783, - "size": 1723, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 13, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/graphlib.js", - "module": "./node_modules/dagre/lib/graphlib.js", - "moduleName": "./node_modules/dagre/lib/graphlib.js", - "type": "cjs require", - "userRequest": "graphlib", - "loc": "7:15-34" - }, - { - "moduleId": 281, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/graphlib.js", - "module": "./node_modules/dagre-d3/lib/graphlib.js", - "moduleName": "./node_modules/dagre-d3/lib/graphlib.js", - "type": "cjs require", - "userRequest": "graphlib", - "loc": "7:15-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "2:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "5:0-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "12:41-49" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "40:18-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "66:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "76:18-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "92:35-43" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "130:28-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "132:27-35" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "223:10-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "237:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "253:29-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "262:35-43" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "301:29-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "312:14-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "314:41-49" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "323:40-48" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "324:40-48" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "335:14-22" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/**\n * Copyright (c) 2014, Chris Pettitt\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar lib = require(\"./lib\");\n\nmodule.exports = {\n Graph: lib.Graph,\n json: require(\"./lib/json\"),\n alg: require(\"./lib/alg\"),\n version: lib.version\n};\n" - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "index": 793, - "index2": 830, - "size": 1255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "module": "./node_modules/dagre/lib/util.js", - "moduleName": "./node_modules/dagre/lib/util.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "5:8-27" - }, - { - "moduleId": 62, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/util.js", - "module": "./node_modules/dagre/lib/rank/util.js", - "moduleName": "./node_modules/dagre/lib/rank/util.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 315, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "module": "./node_modules/dagre/lib/acyclic.js", - "moduleName": "./node_modules/dagre/lib/acyclic.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 318, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "module": "./node_modules/dagre/lib/normalize.js", - "moduleName": "./node_modules/dagre/lib/normalize.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 321, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/parent-dummy-chains.js", - "module": "./node_modules/dagre/lib/parent-dummy-chains.js", - "moduleName": "./node_modules/dagre/lib/parent-dummy-chains.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 322, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "module": "./node_modules/dagre/lib/nesting-graph.js", - "moduleName": "./node_modules/dagre/lib/nesting-graph.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 323, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "module": "./node_modules/dagre/lib/add-border-segments.js", - "moduleName": "./node_modules/dagre/lib/add-border-segments.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 324, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/coordinate-system.js", - "module": "./node_modules/dagre/lib/coordinate-system.js", - "moduleName": "./node_modules/dagre/lib/coordinate-system.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 326, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/init-order.js", - "module": "./node_modules/dagre/lib/order/init-order.js", - "moduleName": "./node_modules/dagre/lib/order/init-order.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 327, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/cross-count.js", - "module": "./node_modules/dagre/lib/order/cross-count.js", - "moduleName": "./node_modules/dagre/lib/order/cross-count.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 329, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/barycenter.js", - "module": "./node_modules/dagre/lib/order/barycenter.js", - "moduleName": "./node_modules/dagre/lib/order/barycenter.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 330, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/resolve-conflicts.js", - "module": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "moduleName": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 331, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "module": "./node_modules/dagre/lib/order/sort.js", - "moduleName": "./node_modules/dagre/lib/order/sort.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 332, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "module": "./node_modules/dagre/lib/order/build-layer-graph.js", - "moduleName": "./node_modules/dagre/lib/order/build-layer-graph.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 333, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/add-subgraph-constraints.js", - "module": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "moduleName": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "3:8-28" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n cloneDeep: require(\"lodash/cloneDeep\"),\n constant: require(\"lodash/constant\"),\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n find: require(\"lodash/find\"),\n flatten: require(\"lodash/flatten\"),\n forEach: require(\"lodash/forEach\"),\n forIn: require(\"lodash/forIn\"),\n has: require(\"lodash/has\"),\n isUndefined: require(\"lodash/isUndefined\"),\n last: require(\"lodash/last\"),\n map: require(\"lodash/map\"),\n mapValues: require(\"lodash/mapValues\"),\n max: require(\"lodash/max\"),\n merge: require(\"lodash/merge\"),\n min: require(\"lodash/min\"),\n minBy: require(\"lodash/minBy\"),\n now: require(\"lodash/now\"),\n pick: require(\"lodash/pick\"),\n range: require(\"lodash/range\"),\n reduce: require(\"lodash/reduce\"),\n sortBy: require(\"lodash/sortBy\"),\n uniqueId: require(\"lodash/uniqueId\"),\n values: require(\"lodash/values\"),\n zipObject: require(\"lodash/zipObject\"),\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 4, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArray.js", - "name": "./node_modules/lodash/isArray.js", - "index": 635, - "index2": 623, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isArray", - "loc": "13:15-40" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "1:14-34" - }, - { - "moduleId": 84, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "module": "./node_modules/lodash/_isKey.js", - "moduleName": "./node_modules/lodash/_isKey.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "1:14-34" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "16:14-34" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 103, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "module": "./node_modules/lodash/_baseGetAllKeys.js", - "moduleName": "./node_modules/lodash/_baseGetAllKeys.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "2:14-34" - }, - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "5:14-34" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "6:14-34" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "4:14-34" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "2:14-34" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "6:14-34" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "3:14-34" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArray", - "loc": "7:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n" - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "index": 787, - "index2": 885, - "size": 1374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "1:0-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "6:0-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "23:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "56:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "84:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "109:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "134:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "159:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "184:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "212:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "224:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "267:11-18" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "282:14-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "349:15-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "357:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/**\n * @license\n * Copyright (c) 2012-2013 Chris Pettitt\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n dagre: require(\"./lib/dagre\"),\n intersect: require(\"./lib/intersect\"),\n render: require(\"./lib/render\"),\n util: require(\"./lib/util\"),\n version: require(\"./lib/version\")\n};\n" - }, - { - "id": 6, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/module.js", - "name": "(webpack)/buildin/module.js", - "index": 543, - "index2": 538, - "size": 497, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "issuerId": 18, - "issuerName": "./node_modules/moment-mini/moment.min.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - } - ], - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "module": "./node_modules/moment-mini/moment.min.js", - "moduleName": "./node_modules/moment-mini/moment.min.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 73, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "module": "./node_modules/lodash/_nodeUtil.js", - "moduleName": "./node_modules/lodash/_nodeUtil.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - }, - { - "moduleId": 97, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "module": "./node_modules/lodash/_cloneBuffer.js", - "moduleName": "./node_modules/lodash/_cloneBuffer.js", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n" - }, - { - "id": 7, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "name": "./node_modules/dagre/lib/util.js", - "index": 842, - "index2": 834, - "size": 5785, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "29:10-31" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "30:12-33" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "7:21-38" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "9:23-40" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "15:11-28" - }, - { - "moduleId": 318, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "module": "./node_modules/dagre/lib/normalize.js", - "moduleName": "./node_modules/dagre/lib/normalize.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "4:11-28" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "9:15-33" - }, - { - "moduleId": 322, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "module": "./node_modules/dagre/lib/nesting-graph.js", - "moduleName": "./node_modules/dagre/lib/nesting-graph.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - }, - { - "moduleId": 323, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "module": "./node_modules/dagre/lib/add-border-segments.js", - "moduleName": "./node_modules/dagre/lib/add-border-segments.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "10:11-29" - }, - { - "moduleId": 331, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "module": "./node_modules/dagre/lib/order/sort.js", - "moduleName": "./node_modules/dagre/lib/order/sort.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "2:11-29" - }, - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "4:11-29" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "5:11-29" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "2:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* eslint \"no-console\": off */\n\n\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n addDummyNode: addDummyNode,\n simplify: simplify,\n asNonCompoundGraph: asNonCompoundGraph,\n successorWeights: successorWeights,\n predecessorWeights: predecessorWeights,\n intersectRect: intersectRect,\n buildLayerMatrix: buildLayerMatrix,\n normalizeRanks: normalizeRanks,\n removeEmptyRanks: removeEmptyRanks,\n addBorderNode: addBorderNode,\n maxRank: maxRank,\n partition: partition,\n time: time,\n notime: notime\n};\n\n/*\n * Adds a dummy node to the graph and return v.\n */\nfunction addDummyNode(g, type, attrs, name) {\n var v;\n do {\n v = _.uniqueId(name);\n } while (g.hasNode(v));\n\n attrs.dummy = type;\n g.setNode(v, attrs);\n return v;\n}\n\n/*\n * Returns a new graph with only simple edges. Handles aggregation of data\n * associated with multi-edges.\n */\nfunction simplify(g) {\n var simplified = new Graph().setGraph(g.graph());\n _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 };\n var label = g.edge(e);\n simplified.setEdge(e.v, e.w, {\n weight: simpleLabel.weight + label.weight,\n minlen: Math.max(simpleLabel.minlen, label.minlen)\n });\n });\n return simplified;\n}\n\nfunction asNonCompoundGraph(g) {\n var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());\n _.forEach(g.nodes(), function(v) {\n if (!g.children(v).length) {\n simplified.setNode(v, g.node(v));\n }\n });\n _.forEach(g.edges(), function(e) {\n simplified.setEdge(e, g.edge(e));\n });\n return simplified;\n}\n\nfunction successorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var sucs = {};\n _.forEach(g.outEdges(v), function(e) {\n sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;\n });\n return sucs;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\nfunction predecessorWeights(g) {\n var weightMap = _.map(g.nodes(), function(v) {\n var preds = {};\n _.forEach(g.inEdges(v), function(e) {\n preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;\n });\n return preds;\n });\n return _.zipObject(g.nodes(), weightMap);\n}\n\n/*\n * Finds where a line starting at point ({x, y}) would intersect a rectangle\n * ({x, y, width, height}) if it were pointing at the rectangle's center.\n */\nfunction intersectRect(rect, point) {\n var x = rect.x;\n var y = rect.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = rect.width / 2;\n var h = rect.height / 2;\n\n if (!dx && !dy) {\n throw new Error(\"Not possible to find intersection inside of the rectangle\");\n }\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = w * dy / dx;\n }\n\n return { x: x + sx, y: y + sy };\n}\n\n/*\n * Given a DAG with each node assigned \"rank\" and \"order\" properties, this\n * function will produce a matrix with the ids of each node.\n */\nfunction buildLayerMatrix(g) {\n var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n var rank = node.rank;\n if (!_.isUndefined(rank)) {\n layering[rank][node.order] = v;\n }\n });\n return layering;\n}\n\n/*\n * Adjusts the ranks for all nodes in the graph such that all nodes v have\n * rank(v) >= 0 and at least one node w has rank(w) = 0.\n */\nfunction normalizeRanks(g) {\n var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (_.has(node, \"rank\")) {\n node.rank -= min;\n }\n });\n}\n\nfunction removeEmptyRanks(g) {\n // Ranks may not start at 0, so we need to offset them\n var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));\n\n var layers = [];\n _.forEach(g.nodes(), function(v) {\n var rank = g.node(v).rank - offset;\n if (!layers[rank]) {\n layers[rank] = [];\n }\n layers[rank].push(v);\n });\n\n var delta = 0;\n var nodeRankFactor = g.graph().nodeRankFactor;\n _.forEach(layers, function(vs, i) {\n if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {\n --delta;\n } else if (delta) {\n _.forEach(vs, function(v) { g.node(v).rank += delta; });\n }\n });\n}\n\nfunction addBorderNode(g, prefix, rank, order) {\n var node = {\n width: 0,\n height: 0\n };\n if (arguments.length >= 4) {\n node.rank = rank;\n node.order = order;\n }\n return addDummyNode(g, \"border\", node, prefix);\n}\n\nfunction maxRank(g) {\n return _.max(_.map(g.nodes(), function(v) {\n var rank = g.node(v).rank;\n if (!_.isUndefined(rank)) {\n return rank;\n }\n }));\n}\n\n/*\n * Partition a collection into two groups: `lhs` and `rhs`. If the supplied\n * function returns true for an entry it goes into `lhs`. Otherwise it goes\n * into `rhs.\n */\nfunction partition(collection, fn) {\n var result = { lhs: [], rhs: [] };\n _.forEach(collection, function(value) {\n if (fn(value)) {\n result.lhs.push(value);\n } else {\n result.rhs.push(value);\n }\n });\n return result;\n}\n\n/*\n * Returns a new function that wraps `fn` with a timer. The wrapper logs the\n * time it takes to execute the function.\n */\nfunction time(name, fn) {\n var start = _.now();\n try {\n return fn();\n } finally {\n console.log(name + \" time: \" + (_.now() - start) + \"ms\");\n }\n}\n\nfunction notime(name, fn) {\n return fn();\n}\n" - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "index": 575, - "index2": 764, - "size": 868, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "issuerId": 271, - "issuerName": "./node_modules/graphlib/lib/json.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 68, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/graph.js", - "module": "./node_modules/graphlib/lib/graph.js", - "moduleName": "./node_modules/graphlib/lib/graph.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 131, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 132, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/data/priority-queue.js", - "module": "./node_modules/graphlib/lib/data/priority-queue.js", - "moduleName": "./node_modules/graphlib/lib/data/priority-queue.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 133, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/tarjan.js", - "module": "./node_modules/graphlib/lib/alg/tarjan.js", - "moduleName": "./node_modules/graphlib/lib/alg/tarjan.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 134, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/topsort.js", - "module": "./node_modules/graphlib/lib/alg/topsort.js", - "moduleName": "./node_modules/graphlib/lib/alg/topsort.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 135, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dfs.js", - "module": "./node_modules/graphlib/lib/alg/dfs.js", - "moduleName": "./node_modules/graphlib/lib/alg/dfs.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 271, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "module": "./node_modules/graphlib/lib/json.js", - "moduleName": "./node_modules/graphlib/lib/json.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 273, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/components.js", - "module": "./node_modules/graphlib/lib/alg/components.js", - "moduleName": "./node_modules/graphlib/lib/alg/components.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 274, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "2:8-28" - }, - { - "moduleId": 275, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "module": "./node_modules/graphlib/lib/alg/find-cycles.js", - "moduleName": "./node_modules/graphlib/lib/alg/find-cycles.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 276, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/floyd-warshall.js", - "module": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "moduleName": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../lodash", - "loc": "1:8-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n clone: require(\"lodash/clone\"),\n constant: require(\"lodash/constant\"),\n each: require(\"lodash/each\"),\n filter: require(\"lodash/filter\"),\n has: require(\"lodash/has\"),\n isArray: require(\"lodash/isArray\"),\n isEmpty: require(\"lodash/isEmpty\"),\n isFunction: require(\"lodash/isFunction\"),\n isUndefined: require(\"lodash/isUndefined\"),\n keys: require(\"lodash/keys\"),\n map: require(\"lodash/map\"),\n reduce: require(\"lodash/reduce\"),\n size: require(\"lodash/size\"),\n transform: require(\"lodash/transform\"),\n union: require(\"lodash/union\"),\n values: require(\"lodash/values\")\n };\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 9, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isObject.js", - "name": "./node_modules/lodash/isObject.js", - "index": 603, - "index2": 588, - "size": 733, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "issuerId": 32, - "issuerName": "./node_modules/lodash/isFunction.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "name": "./node_modules/lodash/isFunction.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 64, - "building": 40 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "module": "./node_modules/lodash/isFunction.js", - "moduleName": "./node_modules/lodash/isFunction.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "2:15-36" - }, - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "4:15-36" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "19:15-36" - }, - { - "moduleId": 108, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseCreate.js", - "module": "./node_modules/lodash/_baseCreate.js", - "moduleName": "./node_modules/lodash/_baseCreate.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 116, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isStrictComparable.js", - "module": "./node_modules/lodash/_isStrictComparable.js", - "moduleName": "./node_modules/lodash/_isStrictComparable.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "3:15-36" - }, - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "9:15-36" - }, - { - "moduleId": 288, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "module": "./node_modules/lodash/toNumber.js", - "moduleName": "./node_modules/lodash/toNumber.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "1:15-36" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "5:15-36" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "11:15-36" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./isObject", - "loc": "4:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n" - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "index": 877, - "index2": 869, - "size": 1124, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "issuerId": 44, - "issuerName": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 512, - "building": 394 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/util", - "loc": "28:8-29" - }, - { - "moduleId": 44, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 342, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-text-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 343, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-svg-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "type": "cjs require", - "userRequest": "../util", - "loc": "1:11-29" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "1:11-28" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:11-28" - }, - { - "moduleId": 347, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "module": "./node_modules/dagre-d3/lib/position-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/position-nodes.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 349, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "module": "./node_modules/dagre-d3/lib/position-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/position-clusters.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:11-28" - }, - { - "moduleId": 351, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/arrows.js", - "module": "./node_modules/dagre-d3/lib/arrows.js", - "moduleName": "./node_modules/dagre-d3/lib/arrows.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "1:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\n\n// Public utility functions\nmodule.exports = {\n isSubgraph: isSubgraph,\n edgeToId: edgeToId,\n applyStyle: applyStyle,\n applyClass: applyClass,\n applyTransition: applyTransition\n};\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + \":\" + escapeId(e.w) + \":\" + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, \"\\\\:\") : \"\";\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr(\"style\", styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom\n .attr(\"class\", classFn)\n .attr(\"class\", otherClasses + \" \" + dom.attr(\"class\"));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n" - }, - { - "id": 11, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/process/browser.js", - "name": "./node_modules/process/browser.js", - "index": 548, - "index2": 545, - "size": 5418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "module": "./node_modules/path-browserify/index.js", - "moduleName": "./node_modules/path-browserify/index.js", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-34" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n" - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "index": 598, - "index2": 583, - "size": 300, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "issuerId": 301, - "issuerName": "./node_modules/lodash/now.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 33, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Symbol.js", - "module": "./node_modules/lodash/_Symbol.js", - "moduleName": "./node_modules/lodash/_Symbol.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 69, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "module": "./node_modules/lodash/_Map.js", - "moduleName": "./node_modules/lodash/_Map.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 97, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "module": "./node_modules/lodash/_cloneBuffer.js", - "moduleName": "./node_modules/lodash/_cloneBuffer.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 104, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "module": "./node_modules/lodash/_Set.js", - "moduleName": "./node_modules/lodash/_Set.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 105, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Uint8Array.js", - "module": "./node_modules/lodash/_Uint8Array.js", - "moduleName": "./node_modules/lodash/_Uint8Array.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 185, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_coreJsData.js", - "module": "./node_modules/lodash/_coreJsData.js", - "moduleName": "./node_modules/lodash/_coreJsData.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - }, - { - "moduleId": 211, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "module": "./node_modules/lodash/_DataView.js", - "moduleName": "./node_modules/lodash/_DataView.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 212, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "module": "./node_modules/lodash/_Promise.js", - "moduleName": "./node_modules/lodash/_Promise.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 213, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "module": "./node_modules/lodash/_WeakMap.js", - "moduleName": "./node_modules/lodash/_WeakMap.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "2:11-29" - }, - { - "moduleId": 301, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "module": "./node_modules/lodash/now.js", - "moduleName": "./node_modules/lodash/now.js", - "type": "cjs require", - "userRequest": "./_root", - "loc": "1:11-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n" - }, - { - "id": 13, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/graphlib.js", - "name": "./node_modules/dagre/lib/graphlib.js", - "index": 791, - "index2": 785, - "size": 253, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/util.js", - "module": "./node_modules/dagre/lib/util.js", - "moduleName": "./node_modules/dagre/lib/util.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "6:12-33" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/graphlib", - "loc": "24:12-37" - }, - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "4:12-34" - }, - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "16:12-33" - }, - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "2:12-33" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "7:15-37" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "8:16-38" - }, - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "9:12-34" - }, - { - "moduleId": 332, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "module": "./node_modules/dagre/lib/order/build-layer-graph.js", - "moduleName": "./node_modules/dagre/lib/order/build-layer-graph.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "2:12-34" - }, - { - "moduleId": 335, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "module": "./node_modules/dagre/lib/position/bk.js", - "moduleName": "./node_modules/dagre/lib/position/bk.js", - "type": "cjs require", - "userRequest": "../graphlib", - "loc": "4:12-34" - }, - { - "moduleId": 336, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "module": "./node_modules/dagre/lib/debug.js", - "moduleName": "./node_modules/dagre/lib/debug.js", - "type": "cjs require", - "userRequest": "./graphlib", - "loc": "3:12-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n" - }, - { - "id": 14, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/node-libs-browser/mock/empty.js", - "name": "./node_modules/node-libs-browser/mock/empty.js", - "index": 549, - "index2": 546, - "size": 0, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "835:17-30" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "769:17-30" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "993:17-30" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "722:17-30" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "640:17-30" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "776:17-30" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "690:17-30" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "616:17-30" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "628:17-30" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "673:17-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "" - }, - { - "id": 15, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "name": "./node_modules/path-browserify/index.js", - "index": 550, - "index2": 547, - "size": 8742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 22, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 704, - "building": 367, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "835:44-59" - }, - { - "moduleId": 17, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "769:44-59" - }, - { - "moduleId": 22, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "993:44-59" - }, - { - "moduleId": 23, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "722:44-59" - }, - { - "moduleId": 24, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "640:44-59" - }, - { - "moduleId": 39, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "776:44-59" - }, - { - "moduleId": 64, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "690:44-59" - }, - { - "moduleId": 65, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "616:44-59" - }, - { - "moduleId": 66, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "628:44-59" - }, - { - "moduleId": 67, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "673:44-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n" - }, - { - "id": 16, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isObjectLike.js", - "name": "./node_modules/lodash/isObjectLike.js", - "index": 634, - "index2": 620, - "size": 614, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 37, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "module": "./node_modules/lodash/isSymbol.js", - "moduleName": "./node_modules/lodash/isSymbol.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 41, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "module": "./node_modules/lodash/isArguments.js", - "moduleName": "./node_modules/lodash/isArguments.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 112, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "module": "./node_modules/lodash/_baseIsEqual.js", - "moduleName": "./node_modules/lodash/_baseIsEqual.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 129, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLikeObject.js", - "module": "./node_modules/lodash/isArrayLikeObject.js", - "moduleName": "./node_modules/lodash/isArrayLikeObject.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - }, - { - "moduleId": 201, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "module": "./node_modules/lodash/_baseIsArguments.js", - "moduleName": "./node_modules/lodash/_baseIsArguments.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - }, - { - "moduleId": 220, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "module": "./node_modules/lodash/_baseIsMap.js", - "moduleName": "./node_modules/lodash/_baseIsMap.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 222, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "module": "./node_modules/lodash/_baseIsSet.js", - "moduleName": "./node_modules/lodash/_baseIsSet.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "2:19-44" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./isObjectLike", - "loc": "3:19-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n" - }, - { - "id": 17, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "name": "./src/diagrams/state/parser/stateDiagram.jison", - "index": 561, - "index2": 559, - "size": 29755, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "7:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "11:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "25:15-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "33:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "34:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "36:0-63" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "108:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "113:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "217:15-20" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "index": 542, - "index2": 541, - "size": 53324, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "issuerId": null, - "issuerName": "./src/logger.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1976, - "building": 181 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "1:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "9:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "63:13-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "115:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "117:16-22" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "177:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "223:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "233:62-68" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "301:25-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "451:38-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){\"use strict\";var e,i;function c(){return e.apply(null,arguments)}function o(e){return e instanceof Array||\"[object Array]\"===Object.prototype.toString.call(e)}function u(e){return null!=e&&\"[object Object]\"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function h(e){return\"number\"==typeof e||\"[object Number]\"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||\"[object Date]\"===Object.prototype.toString.call(e)}function f(e,t){var n,s=[];for(n=0;n>>0,s=0;sSe(e)?(r=e+1,o-Se(e)):(r=e,o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ve(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ae(i=e.year()-1,t,n):a>Ae(e.year(),t,n)?(s=a-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ae(e,t,n){var s=Ve(e,t,n),i=Ve(e+1,t,n);return(Se(e)-s+i)/7}I(\"w\",[\"ww\",2],\"wo\",\"week\"),I(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\"),C(\"week\",\"w\"),C(\"isoWeek\",\"W\"),F(\"week\",5),F(\"isoWeek\",5),ue(\"w\",B),ue(\"ww\",B,z),ue(\"W\",B),ue(\"WW\",B,z),fe([\"w\",\"ww\",\"W\",\"WW\"],function(e,t,n,s){t[s.substr(0,1)]=D(e)});function je(e,t){return e.slice(t,7).concat(e.slice(0,t))}I(\"d\",0,\"do\",\"day\"),I(\"dd\",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I(\"ddd\",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I(\"dddd\",0,0,function(e){return this.localeData().weekdays(this,e)}),I(\"e\",0,0,\"weekday\"),I(\"E\",0,0,\"isoWeekday\"),C(\"day\",\"d\"),C(\"weekday\",\"e\"),C(\"isoWeekday\",\"E\"),F(\"day\",11),F(\"weekday\",11),F(\"isoWeekday\",11),ue(\"d\",B),ue(\"e\",B),ue(\"E\",B),ue(\"dd\",function(e,t){return t.weekdaysMinRegex(e)}),ue(\"ddd\",function(e,t){return t.weekdaysShortRegex(e)}),ue(\"dddd\",function(e,t){return t.weekdaysRegex(e)}),fe([\"dd\",\"ddd\",\"dddd\"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),fe([\"d\",\"e\",\"E\"],function(e,t,n,s){t[s]=D(e)});var Ze=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");var ze=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");var $e=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");var qe=ae;var Je=ae;var Be=ae;function Qe(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=y([2e3,1]).day(t),s=this.weekdaysMin(n,\"\"),i=this.weekdaysShort(n,\"\"),r=this.weekdays(n,\"\"),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);for(a.sort(e),o.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)o[t]=he(o[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp(\"^(\"+l.join(\"|\")+\")\",\"i\"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(\"^(\"+u.join(\"|\")+\")\",\"i\"),this._weekdaysShortStrictRegex=new RegExp(\"^(\"+o.join(\"|\")+\")\",\"i\"),this._weekdaysMinStrictRegex=new RegExp(\"^(\"+a.join(\"|\")+\")\",\"i\")}function Xe(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I(\"H\",[\"HH\",2],0,\"hour\"),I(\"h\",[\"hh\",2],0,Xe),I(\"k\",[\"kk\",2],0,function(){return this.hours()||24}),I(\"hmm\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)}),I(\"hmmss\",0,0,function(){return\"\"+Xe.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),I(\"Hmm\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)}),I(\"Hmmss\",0,0,function(){return\"\"+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),Ke(\"a\",!0),Ke(\"A\",!1),C(\"hour\",\"h\"),F(\"hour\",13),ue(\"a\",et),ue(\"A\",et),ue(\"H\",B),ue(\"h\",B),ue(\"k\",B),ue(\"HH\",B,z),ue(\"hh\",B,z),ue(\"kk\",B,z),ue(\"hmm\",Q),ue(\"hmmss\",X),ue(\"Hmm\",Q),ue(\"Hmmss\",X),ce([\"H\",\"HH\"],ge),ce([\"k\",\"kk\"],function(e,t,n){var s=D(e);t[ge]=24===s?0:s}),ce([\"a\",\"A\"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ce([\"h\",\"hh\"],function(e,t,n){t[ge]=D(e),g(n).bigHour=!0}),ce(\"hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s)),g(n).bigHour=!0}),ce(\"hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i)),g(n).bigHour=!0}),ce(\"Hmm\",function(e,t,n){var s=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s))}),ce(\"Hmmss\",function(e,t,n){var s=e.length-4,i=e.length-2;t[ge]=D(e.substr(0,s)),t[ve]=D(e.substr(s,2)),t[pe]=D(e.substr(i))});var tt,nt=Te(\"Hours\",!0),st={calendar:{sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"},longDateFormat:{LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},invalidDate:\"Invalid date\",ordinal:\"%d\",dayOfMonthOrdinalParse:/\\d{1,2}/,relativeTime:{future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"},months:Ce,monthsShort:He,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\\.?m?\\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace(\"_\",\"-\"):e}function ot(e){var t=null;if(!it[e]&&\"undefined\"!=typeof module&&module&&module.exports)try{t=tt._abbr,require(\"./locale/\"+e),ut(t)}catch(e){}return it[e]}function ut(e,t){var n;return e&&((n=l(t)?ht(e):lt(e,t))?tt=n:\"undefined\"!=typeof console&&console.warn&&console.warn(\"Locale \"+e+\" not found. Did you forget to load it?\")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])T(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\"),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new P(x(s,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r=t&&a(i,n,!0)>=t-1)break;t--}r++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11Pe(n[me],n[_e])?ye:n[ge]<0||24Ae(n,r,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[me]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=ct(e._a[me],s[me]),(e._dayOfYear>Se(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ge(r,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ge]&&0===e._a[ve]&&0===e._a[pe]&&0===e._a[we]&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?Ge:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}var mt=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d/],[\"HH\",/\\d\\d/]],pt=/^\\/?Date\\((\\-?\\d+)/i;function wt(e){var t,n,s,i,r,a,o=e._i,u=mt.exec(o)||_t.exec(o);if(u){for(g(e).iso=!0,t=0,n=gt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},mn.isUtc=Et,mn.isUTC=Et,mn.zoneAbbr=function(){return this._isUTC?\"UTC\":\"\"},mn.zoneName=function(){return this._isUTC?\"Coordinated Universal Time\":\"\"},mn.dates=n(\"dates accessor is deprecated. Use date instead.\",un),mn.months=n(\"months accessor is deprecated. Use month instead\",Ue),mn.years=n(\"years accessor is deprecated. Use year instead\",Oe),mn.zone=n(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",function(e,t){return null!=e?(\"string\"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),mn.isDSTShifted=n(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),(e=Ot(e))._a){var t=e._isUTC?y(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&0 true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n" - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "index": 697, - "index2": 725, - "size": 895, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "4:19-45" - }, - { - "moduleId": 285, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "module": "./node_modules/lodash/_createFind.js", - "moduleName": "./node_modules/lodash/_createFind.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "1:19-45" - }, - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "3:19-45" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseIteratee", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n" - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "index": 790, - "index2": 858, - "size": 1329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 136, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/dagre.js", - "module": "./node_modules/dagre-d3/lib/dagre.js", - "moduleName": "./node_modules/dagre-d3/lib/dagre.js", - "type": "cjs require", - "userRequest": "dagre", - "loc": "7:12-28" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "1:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "5:0-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "91:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "98:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "201:2-7" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "243:2-7" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/*\nCopyright (c) 2012-2014 Chris Pettitt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\nmodule.exports = {\n graphlib: require(\"./lib/graphlib\"),\n\n layout: require(\"./lib/layout\"),\n debug: require(\"./lib/debug\"),\n util: {\n time: require(\"./lib/util\").time,\n notime: require(\"./lib/util\").notime\n },\n version: require(\"./lib/version\")\n};\n" - }, - { - "id": 22, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "index": 554, - "index2": 552, - "size": 57072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "23:0-58" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "82:15-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "88:15-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "275:17-21" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "293:15-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "295:15-19" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "316:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,3],$V2=[1,5],$V3=[1,8,9,10,11,26,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,22],$Va=[1,46],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,40],$Vh=[1,35],$Vi=[1,37],$Vj=[1,32],$Vk=[1,36],$Vl=[1,39],$Vm=[1,43],$Vn=[1,44],$Vo=[1,45],$Vp=[1,34],$Vq=[1,38],$Vr=[1,41],$Vs=[1,42],$Vt=[1,33],$Vu=[1,51],$Vv=[1,8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vw=[1,55],$Vx=[1,54],$Vy=[1,56],$Vz=[8,9,11,57,58],$VA=[8,9,10,11,57,58],$VB=[8,9,10,11,35,57,58],$VC=[8,9,10,11,28,34,35,37,39,41,43,45,47,49,50,52,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VD=[8,9,11,34,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VE=[34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VF=[1,101],$VG=[1,122],$VH=[1,123],$VI=[1,124],$VJ=[1,125],$VK=[1,105],$VL=[1,96],$VM=[1,97],$VN=[1,93],$VO=[1,117],$VP=[1,118],$VQ=[1,119],$VR=[1,120],$VS=[1,121],$VT=[1,126],$VU=[1,127],$VV=[1,99],$VW=[1,107],$VX=[1,110],$VY=[1,108],$VZ=[1,109],$V_=[1,102],$V$=[1,115],$V01=[1,114],$V11=[1,98],$V21=[1,95],$V31=[1,104],$V41=[1,106],$V51=[1,111],$V61=[1,112],$V71=[1,113],$V81=[1,116],$V91=[8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Va1=[1,130],$Vb1=[1,134],$Vc1=[1,136],$Vd1=[1,137],$Ve1=[8,9,10,11,12,13,26,28,29,30,34,38,40,42,44,46,48,49,51,53,57,58,59,63,64,65,66,67,68,69,72,78,79,82,83,84,86,87,88,89,93,94,95,96,97,98],$Vf1=[8,9,10,11,13,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vg1=[10,79],$Vh1=[1,204],$Vi1=[1,208],$Vj1=[1,205],$Vk1=[1,202],$Vl1=[1,199],$Vm1=[1,200],$Vn1=[1,201],$Vo1=[1,203],$Vp1=[1,206],$Vq1=[1,207],$Vr1=[1,209],$Vs1=[8,9,11],$Vt1=[1,225],$Vu1=[8,9,11,79],$Vv1=[8,9,10,11,63,75,78,79,82,83,84,85,86,87,88];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"line\":6,\"statement\":7,\"SEMI\":8,\"NEWLINE\":9,\"SPACE\":10,\"EOF\":11,\"GRAPH\":12,\"DIR\":13,\"FirstStmtSeperator\":14,\"ending\":15,\"endToken\":16,\"spaceList\":17,\"spaceListNewline\":18,\"verticeStatement\":19,\"separator\":20,\"styleStatement\":21,\"linkStyleStatement\":22,\"classDefStatement\":23,\"classStatement\":24,\"clickStatement\":25,\"subgraph\":26,\"text\":27,\"SQS\":28,\"SQE\":29,\"end\":30,\"link\":31,\"node\":32,\"vertex\":33,\"AMP\":34,\"STYLE_SEPARATOR\":35,\"idString\":36,\"PS\":37,\"PE\":38,\"(-\":39,\"-)\":40,\"STADIUMSTART\":41,\"STADIUMEND\":42,\"SUBROUTINESTART\":43,\"SUBROUTINEEND\":44,\"CYLINDERSTART\":45,\"CYLINDEREND\":46,\"DIAMOND_START\":47,\"DIAMOND_STOP\":48,\"TAGEND\":49,\"TRAPSTART\":50,\"TRAPEND\":51,\"INVTRAPSTART\":52,\"INVTRAPEND\":53,\"linkStatement\":54,\"arrowText\":55,\"TESTSTR\":56,\"START_LINK\":57,\"LINK\":58,\"PIPE\":59,\"textToken\":60,\"STR\":61,\"keywords\":62,\"STYLE\":63,\"LINKSTYLE\":64,\"CLASSDEF\":65,\"CLASS\":66,\"CLICK\":67,\"DOWN\":68,\"UP\":69,\"textNoTags\":70,\"textNoTagsToken\":71,\"DEFAULT\":72,\"stylesOpt\":73,\"alphaNum\":74,\"HEX\":75,\"numList\":76,\"INTERPOLATE\":77,\"NUM\":78,\"COMMA\":79,\"style\":80,\"styleComponent\":81,\"ALPHA\":82,\"COLON\":83,\"MINUS\":84,\"UNIT\":85,\"BRKT\":86,\"DOT\":87,\"PCT\":88,\"TAGSTART\":89,\"alphaNumToken\":90,\"idStringToken\":91,\"alphaNumStatement\":92,\"PUNCTUATION\":93,\"UNICODE_TEXT\":94,\"PLUS\":95,\"EQUALS\":96,\"MULT\":97,\"UNDERSCORE\":98,\"graphCodeTokens\":99,\"ARROW_CROSS\":100,\"ARROW_POINT\":101,\"ARROW_CIRCLE\":102,\"ARROW_OPEN\":103,\"QUOTE\":104,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",26:\"subgraph\",28:\"SQS\",29:\"SQE\",30:\"end\",34:\"AMP\",35:\"STYLE_SEPARATOR\",37:\"PS\",38:\"PE\",39:\"(-\",40:\"-)\",41:\"STADIUMSTART\",42:\"STADIUMEND\",43:\"SUBROUTINESTART\",44:\"SUBROUTINEEND\",45:\"CYLINDERSTART\",46:\"CYLINDEREND\",47:\"DIAMOND_START\",48:\"DIAMOND_STOP\",49:\"TAGEND\",50:\"TRAPSTART\",51:\"TRAPEND\",52:\"INVTRAPSTART\",53:\"INVTRAPEND\",56:\"TESTSTR\",57:\"START_LINK\",58:\"LINK\",59:\"PIPE\",61:\"STR\",63:\"STYLE\",64:\"LINKSTYLE\",65:\"CLASSDEF\",66:\"CLASS\",67:\"CLICK\",68:\"DOWN\",69:\"UP\",72:\"DEFAULT\",75:\"HEX\",77:\"INTERPOLATE\",78:\"NUM\",79:\"COMMA\",82:\"ALPHA\",83:\"COLON\",84:\"MINUS\",85:\"UNIT\",86:\"BRKT\",87:\"DOT\",88:\"PCT\",89:\"TAGSTART\",93:\"PUNCTUATION\",94:\"UNICODE_TEXT\",95:\"PLUS\",96:\"EQUALS\",97:\"MULT\",98:\"UNDERSCORE\",100:\"ARROW_CROSS\",101:\"ARROW_POINT\",102:\"ARROW_CIRCLE\",103:\"ARROW_OPEN\",104:\"QUOTE\"},\nproductions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,3],[15,2],[15,1],[16,1],[16,1],[16,1],[14,1],[14,1],[14,2],[18,2],[18,2],[18,1],[18,1],[17,2],[17,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[20,1],[20,1],[20,1],[19,3],[19,4],[19,2],[19,1],[32,1],[32,5],[32,3],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,1],[31,2],[31,3],[31,3],[31,1],[31,3],[54,1],[55,3],[27,1],[27,2],[27,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[70,1],[70,2],[23,5],[23,5],[24,5],[25,5],[25,7],[25,5],[25,7],[21,5],[21,5],[22,5],[22,5],[22,9],[22,9],[22,7],[22,7],[76,1],[76,3],[73,1],[73,3],[80,1],[80,2],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[60,1],[60,1],[60,1],[60,1],[60,1],[60,1],[71,1],[71,1],[71,1],[71,1],[36,1],[36,2],[74,1],[74,2],[92,1],[92,1],[92,1],[92,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n this.$ = [];\nbreak;\ncase 3:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 4: case 67: case 69: case 81: case 127: case 129: case 130:\nthis.$=$$[$0];\nbreak;\ncase 11:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 26:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 27: case 28: case 29: case 30: case 31:\nthis.$=[];\nbreak;\ncase 32:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 33:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 34:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 38:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 39:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 40:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 41:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 42:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 43:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 44:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 45:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 46:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 47:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 48:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 50:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 53:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 59:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 60:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 61: case 62:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 63:\nthis.$ = $$[$0];\nbreak;\ncase 64:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 65:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 66:\nthis.$ = $$[$0-1];\nbreak;\ncase 68: case 82: case 128:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 83: case 84:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 85:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 86:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 87:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 89:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 90:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 91: case 93:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 92:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 98: case 100:\nthis.$ = [$$[$0]]\nbreak;\ncase 99: case 101:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 103:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 125:\nthis.$=$$[$0]\nbreak;\ncase 126:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 131:\nthis.$='v';\nbreak;\ncase 132:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,9:$V0,10:$V1,12:$V2},{1:[3]},o($V3,$V4,{5:6}),{4:7,9:$V0,10:$V1,12:$V2},{4:8,9:$V0,10:$V1,12:$V2},{13:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($V3,[2,9]),o($V3,[2,10]),{8:[1,48],9:[1,49],10:$Vu,14:47,17:50},o($Vv,[2,3]),o($Vv,[2,4]),o($Vv,[2,5]),o($Vv,[2,6]),o($Vv,[2,7]),o($Vv,[2,8]),{8:$Vw,9:$Vx,11:$Vy,20:52,31:53,54:57,57:[1,58],58:[1,59]},{8:$Vw,9:$Vx,11:$Vy,20:60},{8:$Vw,9:$Vx,11:$Vy,20:61},{8:$Vw,9:$Vx,11:$Vy,20:62},{8:$Vw,9:$Vx,11:$Vy,20:63},{8:$Vw,9:$Vx,11:$Vy,20:64},{8:$Vw,9:$Vx,10:[1,65],11:$Vy,20:66},o($Vz,[2,41],{17:67,10:$Vu}),{10:[1,68]},{10:[1,69]},{10:[1,70]},{10:[1,71]},{10:[1,72]},o($VA,[2,42],{35:[1,73]}),o($VB,[2,59],{91:84,28:[1,74],34:$Va,37:[1,75],39:[1,76],41:[1,77],43:[1,78],45:[1,79],47:[1,80],49:[1,81],50:[1,82],52:[1,83],68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),o($VC,[2,125]),o($VC,[2,146]),o($VC,[2,147]),o($VC,[2,148]),o($VC,[2,149]),o($VC,[2,150]),o($VC,[2,151]),o($VC,[2,152]),o($VC,[2,153]),o($VC,[2,154]),o($VC,[2,155]),o($VC,[2,156]),o($VC,[2,157]),o($VC,[2,158]),o($VC,[2,159]),o($VC,[2,160]),o($V3,[2,11]),o($V3,[2,17]),o($V3,[2,18]),{9:[1,85]},o($VD,[2,25],{17:86,10:$Vu}),o($Vv,[2,26]),{32:87,33:29,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($Vv,[2,35]),o($Vv,[2,36]),o($Vv,[2,37]),o($VE,[2,63],{55:88,56:[1,89],59:[1,90]}),{10:$VF,12:$VG,13:$VH,26:$VI,27:91,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o([34,56,59,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,65]),o($Vv,[2,27]),o($Vv,[2,28]),o($Vv,[2,29]),o($Vv,[2,30]),o($Vv,[2,31]),{10:$VF,12:$VG,13:$VH,26:$VI,27:128,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:129}),o($Vz,[2,40],{34:$Va1}),{13:$Vb1,34:$VK,68:$Vc1,74:131,75:[1,132],78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{72:[1,138],76:139,78:[1,140]},{13:$Vb1,34:$VK,68:$Vc1,72:[1,141],74:142,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:143,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:144,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{34:$Va,36:145,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$VF,12:$VG,13:$VH,26:$VI,27:146,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:148,30:$VJ,34:$VK,37:[1,147],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:149,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:150,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:151,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:152,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:153,30:$VJ,34:$VK,47:[1,154],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:155,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:156,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:157,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VC,[2,126]),o($V3,[2,19]),o($VD,[2,24]),o($Vz,[2,38],{17:158,10:$Vu}),o($VE,[2,60],{10:[1,159]}),{10:[1,160]},{10:$VF,12:$VG,13:$VH,26:$VI,27:161,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,58:[1,162],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Ve1,[2,67]),o($Ve1,[2,69]),o($Ve1,[2,115]),o($Ve1,[2,116]),o($Ve1,[2,117]),o($Ve1,[2,118]),o($Ve1,[2,119]),o($Ve1,[2,120]),o($Ve1,[2,121]),o($Ve1,[2,122]),o($Ve1,[2,123]),o($Ve1,[2,124]),o($Ve1,[2,133]),o($Ve1,[2,134]),o($Ve1,[2,135]),o($Ve1,[2,136]),o($Ve1,[2,137]),o($Ve1,[2,138]),o($Ve1,[2,139]),o($Ve1,[2,140]),o($Ve1,[2,141]),o($Ve1,[2,142]),o($Ve1,[2,143]),o($Ve1,[2,144]),o($Ve1,[2,145]),o($Ve1,[2,70]),o($Ve1,[2,71]),o($Ve1,[2,72]),o($Ve1,[2,73]),o($Ve1,[2,74]),o($Ve1,[2,75]),o($Ve1,[2,76]),o($Ve1,[2,77]),o($Ve1,[2,78]),o($Ve1,[2,79]),o($Ve1,[2,80]),{8:$Vw,9:$Vx,10:$VF,11:$Vy,12:$VG,13:$VH,20:165,26:$VI,28:[1,164],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,166],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vu,17:167},{10:[1,168],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,170]},o($Vf1,[2,127]),o($Vf1,[2,129]),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),{10:[1,171]},{10:[1,172],79:[1,173]},o($Vg1,[2,98]),{10:[1,174]},{10:[1,175],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,176],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,177],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VA,[2,44],{91:84,34:$Va,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,178],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:179,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,180],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,40:[1,181],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,42:[1,182],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,44:[1,183],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,46:[1,184],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,185],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:186,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,187],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,188],53:[1,189],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,191],53:[1,190],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Vz,[2,39],{34:$Va1}),o($VE,[2,62]),o($VE,[2,61]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,59:[1,192],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VE,[2,64]),o($Ve1,[2,68]),{10:$VF,12:$VG,13:$VH,26:$VI,27:193,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:194}),o($Vv,[2,34]),{33:195,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:196,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vf1,[2,128]),{10:$Vh1,63:$Vi1,73:210,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:211,75:$Vj1,77:[1,212],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:213,75:$Vj1,77:[1,214],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{78:[1,215]},{10:$Vh1,63:$Vi1,73:216,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:217,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{13:$Vb1,34:$VK,68:$Vc1,74:218,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,61:[1,220],68:$Vc1,74:219,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,45]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,221],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,51]),o($VB,[2,47]),o($VB,[2,48]),o($VB,[2,49]),o($VB,[2,50]),o($VB,[2,52]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,222],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,54]),o($VB,[2,55]),o($VB,[2,57]),o($VB,[2,56]),o($VB,[2,58]),o([10,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,66]),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,223],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,224],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($VA,[2,43]),o($Vs1,[2,90],{79:$Vt1}),o($Vu1,[2,100],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vv1,[2,102]),o($Vv1,[2,104]),o($Vv1,[2,105]),o($Vv1,[2,106]),o($Vv1,[2,107]),o($Vv1,[2,108]),o($Vv1,[2,109]),o($Vv1,[2,110]),o($Vv1,[2,111]),o($Vv1,[2,112]),o($Vv1,[2,113]),o($Vv1,[2,114]),o($Vs1,[2,91],{79:$Vt1}),o($Vs1,[2,92],{79:$Vt1}),{10:[1,227]},o($Vs1,[2,93],{79:$Vt1}),{10:[1,228]},o($Vg1,[2,99]),o($Vs1,[2,83],{79:$Vt1}),o($Vs1,[2,84],{79:$Vt1}),o($Vs1,[2,85],{90:135,92:169,13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,86],{90:135,92:169,10:[1,229],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,88],{10:[1,230]}),{38:[1,231]},{48:[1,232]},{8:$Vw,9:$Vx,11:$Vy,20:233},o($Vv,[2,33]),{10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,80:234,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv1,[2,103]),{13:$Vb1,34:$VK,68:$Vc1,74:235,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:236,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{61:[1,237]},{61:[1,238]},o($VB,[2,46]),o($VB,[2,53]),o($V91,$V4,{5:239}),o($Vu1,[2,101],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vs1,[2,96],{90:135,92:169,10:[1,240],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,97],{90:135,92:169,10:[1,241],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,87]),o($Vs1,[2,89]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,242],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:243,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:244,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv,[2,32]),o($Vs1,[2,94],{79:$Vt1}),o($Vs1,[2,95],{79:$Vt1})],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:this.begin(\"string\");\nbreak;\ncase 2:this.popState();\nbreak;\ncase 3:return \"STR\";\nbreak;\ncase 4:return 63;\nbreak;\ncase 5:return 72;\nbreak;\ncase 6:return 64;\nbreak;\ncase 7:return 77;\nbreak;\ncase 8:return 65;\nbreak;\ncase 9:return 66;\nbreak;\ncase 10:return 67;\nbreak;\ncase 11:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 12:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 13:return 26;\nbreak;\ncase 14:return 30;\nbreak;\ncase 15: this.popState(); return 13; \nbreak;\ncase 16: this.popState(); return 13; \nbreak;\ncase 17: this.popState(); return 13; \nbreak;\ncase 18: this.popState(); return 13; \nbreak;\ncase 19: this.popState(); return 13; \nbreak;\ncase 20: this.popState(); return 13; \nbreak;\ncase 21: this.popState(); return 13; \nbreak;\ncase 22: this.popState(); return 13; \nbreak;\ncase 23: this.popState(); return 13; \nbreak;\ncase 24: this.popState(); return 13; \nbreak;\ncase 25: return 78;\nbreak;\ncase 26:return 86;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 83;\nbreak;\ncase 29:return 34;\nbreak;\ncase 30:return 8;\nbreak;\ncase 31:return 79;\nbreak;\ncase 32:return 97;\nbreak;\ncase 33:return 58;\nbreak;\ncase 34:return 58;\nbreak;\ncase 35:return 58;\nbreak;\ncase 36:return 58;\nbreak;\ncase 37:return 58;\nbreak;\ncase 38:return 58;\nbreak;\ncase 39:return 58;\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 58;\nbreak;\ncase 42:return 58;\nbreak;\ncase 43:return 58;\nbreak;\ncase 44:return 58;\nbreak;\ncase 45:return 58;\nbreak;\ncase 46:return 58;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 58;\nbreak;\ncase 49:return 58;\nbreak;\ncase 50:return 58;\nbreak;\ncase 51:return 58;\nbreak;\ncase 52:return 58;\nbreak;\ncase 53:return 58;\nbreak;\ncase 54:return 58;\nbreak;\ncase 55:return 58;\nbreak;\ncase 56:return 58;\nbreak;\ncase 57:return 58;\nbreak;\ncase 58:return 58;\nbreak;\ncase 59:return 58;\nbreak;\ncase 60:return 58;\nbreak;\ncase 61:return 57;\nbreak;\ncase 62:return 57;\nbreak;\ncase 63:return 57;\nbreak;\ncase 64:return 57;\nbreak;\ncase 65:return 57;\nbreak;\ncase 66:return 57;\nbreak;\ncase 67:return 57;\nbreak;\ncase 68:return 57;\nbreak;\ncase 69:return 57;\nbreak;\ncase 70:return 57;\nbreak;\ncase 71:return 57;\nbreak;\ncase 72:return 57;\nbreak;\ncase 73:return 39;\nbreak;\ncase 74:return 40;\nbreak;\ncase 75:return 41;\nbreak;\ncase 76:return 42;\nbreak;\ncase 77:return 43;\nbreak;\ncase 78:return 44;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 84;\nbreak;\ncase 82:return 87;\nbreak;\ncase 83:return 98;\nbreak;\ncase 84:return 95;\nbreak;\ncase 85:return 88;\nbreak;\ncase 86:return 96;\nbreak;\ncase 87:return 96;\nbreak;\ncase 88:return 89;\nbreak;\ncase 89:return 49;\nbreak;\ncase 90:return 69;\nbreak;\ncase 91:return 'SEP';\nbreak;\ncase 92:return 68;\nbreak;\ncase 93:return 82;\nbreak;\ncase 94:return 51;\nbreak;\ncase 95:return 50;\nbreak;\ncase 96:return 53;\nbreak;\ncase 97:return 52;\nbreak;\ncase 98:return 93;\nbreak;\ncase 99:return 94;\nbreak;\ncase 100:return 59;\nbreak;\ncase 101:return 37;\nbreak;\ncase 102:return 38;\nbreak;\ncase 103:return 28;\nbreak;\ncase 104:return 29;\nbreak;\ncase 105:return 47\nbreak;\ncase 106:return 48\nbreak;\ncase 107:return 104;\nbreak;\ncase 108:return 9;\nbreak;\ncase 109:return 10;\nbreak;\ncase 110:return 11;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/,/^(?:\\s*--[x]\\s*)/,/^(?:\\s*-->\\s*)/,/^(?:\\s*<-->\\s*)/,/^(?:\\s*[x]--[x]\\s*)/,/^(?:\\s*[o]--[o]\\s*)/,/^(?:\\s*[o]\\.-[o]\\s*)/,/^(?:\\s*<==>\\s*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_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[15,16,17,18,19,20,21,22,23,24],\"inclusive\":false},\"string\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,4,5,6,7,8,9,10,11,12,13,14,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 23, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "name": "./src/diagrams/gantt/parser/gantt.jison", - "index": 557, - "index2": 555, - "size": 25297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gantt", - "loc": "2:0-40" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "5:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "25:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "26:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "29:0-56" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "38:18-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "84:26-32" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "98:15-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "281:113-119" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 24, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "name": "./src/diagrams/user-journey/parser/journey.jison", - "index": 569, - "index2": 567, - "size": 21995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/journey", - "loc": "2:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "5:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "51:0-67" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "71:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "72:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "77:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "78:14-20" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "79:19-25" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "137:15-28" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13],$V1=[1,9],$V2=[1,10],$V3=[1,11];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"title\":11,\"section\":12,\"taskName\":13,\"taskData\":14,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"title\",12:\"section\",13:\"taskName\",14:\"taskData\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 9:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 10:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:12,11:$V1,12:$V2,13:$V3},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),{14:[1,13]},o($V0,[2,4]),o($V0,[2,10])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 11;\nbreak;\ncase 6:return 12;\nbreak;\ncase 7:return 13;\nbreak;\ncase 8:return 14;\nbreak;\ncase 9:return ':';\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 25, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "name": "./node_modules/lodash/keys.js", - "index": 629, - "index2": 638, - "size": 884, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/keys", - "loc": "17:12-34" - }, - { - "moduleId": 80, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "module": "./node_modules/lodash/_baseForOwn.js", - "moduleName": "./node_modules/lodash/_baseForOwn.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "21:11-28" - }, - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "3:11-28" - }, - { - "moduleId": 130, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "module": "./node_modules/lodash/values.js", - "moduleName": "./node_modules/lodash/values.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 199, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "module": "./node_modules/lodash/_baseAssign.js", - "moduleName": "./node_modules/lodash/_baseAssign.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 235, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "module": "./node_modules/lodash/_getMatchData.js", - "moduleName": "./node_modules/lodash/_getMatchData.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "2:11-28" - }, - { - "moduleId": 285, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "module": "./node_modules/lodash/_createFind.js", - "moduleName": "./node_modules/lodash/_createFind.js", - "type": "cjs require", - "userRequest": "./keys", - "loc": "3:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n" - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/d3.js", - "name": "./node_modules/dagre-d3/lib/d3.js", - "index": 873, - "index2": 868, - "size": 280, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "2:9-24" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "2:9-24" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "6:9-24" - }, - { - "moduleId": 347, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "module": "./node_modules/dagre-d3/lib/position-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/position-nodes.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - }, - { - "moduleId": 349, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "module": "./node_modules/dagre-d3/lib/position-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/position-clusters.js", - "type": "cjs require", - "userRequest": "./d3", - "loc": "4:9-24" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "// Stub to get D3 either via NPM or from the global object\nvar d3;\n\nif (!d3) {\n if (typeof require === \"function\") {\n try {\n d3 = require(\"d3\");\n }\n catch (e) {\n // continue regardless of error\n }\n }\n}\n\nif (!d3) {\n d3 = window.d3;\n}\n\nmodule.exports = d3;\n" - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "index": 593, - "index2": 595, - "size": 483, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "issuerId": 94, - "issuerName": "./node_modules/lodash/_defineProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - } - ], - "profile": { - "factory": 64, - "building": 40 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 49, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeCreate.js", - "module": "./node_modules/lodash/_nativeCreate.js", - "moduleName": "./node_modules/lodash/_nativeCreate.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 69, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "module": "./node_modules/lodash/_Map.js", - "moduleName": "./node_modules/lodash/_Map.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 94, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "module": "./node_modules/lodash/_defineProperty.js", - "moduleName": "./node_modules/lodash/_defineProperty.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 104, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "module": "./node_modules/lodash/_Set.js", - "moduleName": "./node_modules/lodash/_Set.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 211, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "module": "./node_modules/lodash/_DataView.js", - "moduleName": "./node_modules/lodash/_DataView.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 212, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "module": "./node_modules/lodash/_Promise.js", - "moduleName": "./node_modules/lodash/_Promise.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - }, - { - "moduleId": 213, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "module": "./node_modules/lodash/_WeakMap.js", - "moduleName": "./node_modules/lodash/_WeakMap.js", - "type": "cjs require", - "userRequest": "./_getNative", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n" - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "index": 596, - "index2": 587, - "size": 792, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "module": "./node_modules/lodash/isFunction.js", - "moduleName": "./node_modules/lodash/isFunction.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "6:17-41" - }, - { - "moduleId": 37, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "module": "./node_modules/lodash/isSymbol.js", - "moduleName": "./node_modules/lodash/isSymbol.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 201, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "module": "./node_modules/lodash/_baseIsArguments.js", - "moduleName": "./node_modules/lodash/_baseIsArguments.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - }, - { - "moduleId": 250, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "module": "./node_modules/lodash/isString.js", - "moduleName": "./node_modules/lodash/isString.js", - "type": "cjs require", - "userRequest": "./_baseGetTag", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n" - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/identity.js", - "name": "./node_modules/lodash/identity.js", - "index": 694, - "index2": 684, - "size": 370, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "issuerId": 292, - "issuerName": "./node_modules/lodash/max.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "1:15-36" - }, - { - "moduleId": 110, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castFunction.js", - "module": "./node_modules/lodash/_castFunction.js", - "moduleName": "./node_modules/lodash/_castFunction.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "1:15-36" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "3:15-36" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./identity", - "loc": "7:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n" - }, - { - "id": 30, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/package.json", - "name": "./package.json", - "index": 918, - "index2": 916, - "size": 3186, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "../package.json", - "loc": "17:0-34" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "365:35-38" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "371:34-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "376:33-36" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "381:38-41" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "386:27-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "543:50-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "name", - "version", - "description", - "main", - "keywords", - "scripts", - "repository", - "author", - "license", - "standard", - "dependencies", - "devDependencies", - "files", - "yarn-upgrade-all", - "sideEffects", - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "{\n \"name\": \"mermaid\",\n \"version\": \"8.6.0\",\n \"description\": \"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\n \"main\": \"dist/mermaid.core.js\",\n \"keywords\": [\n \"diagram\",\n \"markdown\",\n \"flowchart\",\n \"sequence diagram\",\n \"gantt\",\n \"class diagram\",\n \"git graph\"\n ],\n \"scripts\": {\n \"build:development\": \"webpack --progress --colors\",\n \"build:production\": \"yarn build:development -p --config webpack.config.prod.babel.js\",\n \"build\": \"yarn build:development && yarn build:production\",\n \"postbuild\": \"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\n \"build:watch\": \"yarn build --watch\",\n \"minify\": \"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\n \"release\": \"yarn build\",\n \"lint\": \"eslint src\",\n \"e2e:depr\": \"yarn lint && jest e2e --config e2e/jest.config.js\",\n \"cypress\": \"percy exec -- cypress run\",\n \"e2e\": \"start-server-and-test dev http://localhost:9000/ cypress\",\n \"e2e-upd\": \"yarn lint && jest e2e -u --config e2e/jest.config.js\",\n \"dev\": \"webpack-dev-server --config webpack.config.e2e.js\",\n \"test\": \"yarn lint && jest src/.*\",\n \"test:watch\": \"jest --watch src\",\n \"prepublishOnly\": \"yarn build && yarn test && yarn e2e\",\n \"prepush\": \"yarn test\",\n \"prepare\": \"yarn build\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/knsv/mermaid\"\n },\n \"author\": \"Knut Sveidqvist\",\n \"license\": \"MIT\",\n \"standard\": {\n \"ignore\": [\n \"**/parser/*.js\",\n \"dist/**/*.js\",\n \"cypress/**/*.js\"\n ],\n \"globals\": [\n \"page\"\n ]\n },\n \"dependencies\": {\n \"@braintree/sanitize-url\": \"^3.1.0\",\n \"crypto-random-string\": \"^3.0.1\",\n \"d3\": \"^5.7.0\",\n \"dagre\": \"^0.8.4\",\n \"dagre-d3\": \"^0.6.4\",\n \"entity-decode\": \"^2.0.2\",\n \"graphlib\": \"^2.1.7\",\n \"he\": \"^1.2.0\",\n \"minify\": \"^4.1.1\",\n \"moment-mini\": \"^2.22.1\",\n \"scope-css\": \"^1.2.1\"\n },\n \"devDependencies\": {\n \"@babel/core\": \"^7.2.2\",\n \"@babel/preset-env\": \"^7.8.4\",\n \"@babel/register\": \"^7.0.0\",\n \"@percy/cypress\": \"*\",\n \"babel-core\": \"7.0.0-bridge.0\",\n \"babel-jest\": \"^24.9.0\",\n \"babel-loader\": \"^8.0.4\",\n \"coveralls\": \"^3.0.2\",\n \"css-loader\": \"^2.0.1\",\n \"css-to-string-loader\": \"^0.1.3\",\n \"cypress\": \"4.0.1\",\n \"documentation\": \"^12.0.1\",\n \"eslint\": \"^6.3.0\",\n \"eslint-config-prettier\": \"^6.3.0\",\n \"eslint-plugin-prettier\": \"^3.1.0\",\n \"husky\": \"^1.2.1\",\n \"identity-obj-proxy\": \"^3.0.0\",\n \"jest\": \"^24.9.0\",\n \"jison\": \"^0.4.18\",\n \"moment\": \"^2.23.0\",\n \"node-sass\": \"^4.12.0\",\n \"prettier\": \"^1.18.2\",\n \"puppeteer\": \"^1.17.0\",\n \"sass-loader\": \"^7.1.0\",\n \"start-server-and-test\": \"^1.10.6\",\n \"terser-webpack-plugin\": \"^2.2.2\",\n \"webpack\": \"^4.41.2\",\n \"webpack-bundle-analyzer\": \"^3.7.0\",\n \"webpack-cli\": \"^3.1.2\",\n \"webpack-dev-server\": \"^3.4.1\",\n \"webpack-node-externals\": \"^1.7.2\",\n \"yarn-upgrade-all\": \"^0.5.0\"\n },\n \"files\": [\n \"dist\"\n ],\n \"yarn-upgrade-all\": {\n \"ignore\": [\n \"babel-core\"\n ]\n },\n \"sideEffects\": [\n \"**/*.css\",\n \"**/*.scss\"\n ]\n}\n" - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/eq.js", - "name": "./node_modules/lodash/eq.js", - "index": 583, - "index2": 570, - "size": 799, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 48, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assocIndexOf.js", - "module": "./node_modules/lodash/_assocIndexOf.js", - "moduleName": "./node_modules/lodash/_assocIndexOf.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "1:9-24" - }, - { - "moduleId": 51, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "module": "./node_modules/lodash/_assignValue.js", - "moduleName": "./node_modules/lodash/_assignValue.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "1:9-24" - }, - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 140, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "module": "./node_modules/lodash/_assignMergeValue.js", - "moduleName": "./node_modules/lodash/_assignMergeValue.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "2:9-24" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./eq", - "loc": "3:9-24" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n" - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isFunction.js", - "name": "./node_modules/lodash/isFunction.js", - "index": 595, - "index2": 589, - "size": 993, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isFunction", - "loc": "15:18-46" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLike.js", - "module": "./node_modules/lodash/isArrayLike.js", - "moduleName": "./node_modules/lodash/isArrayLike.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "1:17-40" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isFunction", - "loc": "10:18-46" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "1:17-40" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "8:17-40" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isFunction", - "loc": "10:17-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n" - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Symbol.js", - "name": "./node_modules/lodash/_Symbol.js", - "index": 597, - "index2": 584, - "size": 118, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 182, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getRawTag.js", - "module": "./node_modules/lodash/_getRawTag.js", - "moduleName": "./node_modules/lodash/_getRawTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 218, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneSymbol.js", - "module": "./node_modules/lodash/_cloneSymbol.js", - "moduleName": "./node_modules/lodash/_cloneSymbol.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./_Symbol", - "loc": "1:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n" - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "name": "./node_modules/lodash/isBuffer.js", - "index": 636, - "index2": 625, - "size": 1114, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "17:15-36" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "4:15-36" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "7:15-36" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "6:15-36" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "7:15-36" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isBuffer", - "loc": "9:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n" - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "index": 650, - "index2": 642, - "size": 778, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "4:13-32" - }, - { - "moduleId": 205, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "module": "./node_modules/lodash/_baseAssignIn.js", - "moduleName": "./node_modules/lodash/_baseAssignIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "2:13-32" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "3:13-32" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "3:13-32" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "6:13-32" - }, - { - "moduleId": 297, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "module": "./node_modules/lodash/toPlainObject.js", - "moduleName": "./node_modules/lodash/toPlainObject.js", - "type": "cjs require", - "userRequest": "./keysIn", - "loc": "2:13-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n" - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "index": 666, - "index2": 661, - "size": 1838, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "12:13-33" - }, - { - "moduleId": 220, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "module": "./node_modules/lodash/_baseIsMap.js", - "moduleName": "./node_modules/lodash/_baseIsMap.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "1:13-33" - }, - { - "moduleId": 222, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "module": "./node_modules/lodash/_baseIsSet.js", - "moduleName": "./node_modules/lodash/_baseIsSet.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "1:13-33" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "5:13-33" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "2:13-33" - }, - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_getTag", - "loc": "2:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n" - }, - { - "id": 37, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSymbol.js", - "name": "./node_modules/lodash/isSymbol.js", - "index": 720, - "index2": 706, - "size": 682, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "issuerId": 87, - "issuerName": "./node_modules/lodash/_baseExtremum.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 87, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "name": "./node_modules/lodash/_baseExtremum.js", - "profile": { - "factory": 75, - "building": 26 - } - } - ], - "profile": { - "factory": 57, - "building": 29, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 43, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toKey.js", - "module": "./node_modules/lodash/_toKey.js", - "moduleName": "./node_modules/lodash/_toKey.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - }, - { - "moduleId": 84, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "module": "./node_modules/lodash/_isKey.js", - "moduleName": "./node_modules/lodash/_isKey.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "2:15-36" - }, - { - "moduleId": 87, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "module": "./node_modules/lodash/_baseExtremum.js", - "moduleName": "./node_modules/lodash/_baseExtremum.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "4:15-36" - }, - { - "moduleId": 288, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "module": "./node_modules/lodash/toNumber.js", - "moduleName": "./node_modules/lodash/toNumber.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "2:15-36" - }, - { - "moduleId": 312, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareAscending.js", - "module": "./node_modules/lodash/_compareAscending.js", - "moduleName": "./node_modules/lodash/_compareAscending.js", - "type": "cjs require", - "userRequest": "./isSymbol", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n" - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "index": 872, - "index2": 867, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "issuerId": 10, - "issuerName": "./node_modules/dagre-d3/lib/util.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - } - ], - "profile": { - "factory": 56, - "building": 103 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "module": "./node_modules/dagre-d3/lib/util.js", - "moduleName": "./node_modules/dagre-d3/lib/util.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "1:8-27" - }, - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "3:8-27" - }, - { - "moduleId": 348, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "type": "cjs require", - "userRequest": "./lodash", - "loc": "5:8-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* global window */\n\nvar lodash;\n\nif (typeof require === \"function\") {\n try {\n lodash = {\n defaults: require(\"lodash/defaults\"),\n each: require(\"lodash/each\"),\n isFunction: require(\"lodash/isFunction\"),\n isPlainObject: require(\"lodash/isPlainObject\"),\n pick: require(\"lodash/pick\"),\n has: require(\"lodash/has\"),\n range: require(\"lodash/range\"),\n uniqueId: require(\"lodash/uniqueId\")\n };\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!lodash) {\n lodash = window._;\n}\n\nmodule.exports = lodash;\n" - }, - { - "id": 39, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "name": "./src/diagrams/class/parser/classDiagram.jison", - "index": 559, - "index2": 557, - "size": 32826, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/classDiagram", - "loc": "6:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "32:0-63" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "59:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "60:2-8" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "103:15-26" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,13],$V1=[1,16],$V2=[1,14],$V3=[1,15],$V4=[1,17],$V5=[1,18],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[6,8],$Va=[1,31],$Vb=[1,32],$Vc=[1,33],$Vd=[1,34],$Ve=[1,35],$Vf=[1,36],$Vg=[6,8,14,20,28,31,32,33,34,35,36],$Vh=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],$Vi=[28,52,53,54],$Vj=[28,35,36,52,53,54],$Vk=[28,31,32,33,34,52,53,54],$Vl=[6,8,14],$Vm=[1,59];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"CLASS_DIAGRAM\":5,\"NEWLINE\":6,\"statements\":7,\"EOF\":8,\"statement\":9,\"className\":10,\"alphaNumToken\":11,\"GENERICTYPE\":12,\"relationStatement\":13,\"LABEL\":14,\"classStatement\":15,\"methodStatement\":16,\"annotationStatement\":17,\"clickStatement\":18,\"CLASS\":19,\"STRUCT_START\":20,\"members\":21,\"STRUCT_STOP\":22,\"ANNOTATION_START\":23,\"ANNOTATION_END\":24,\"MEMBER\":25,\"SEPARATOR\":26,\"relation\":27,\"STR\":28,\"relationType\":29,\"lineType\":30,\"AGGREGATION\":31,\"EXTENSION\":32,\"COMPOSITION\":33,\"DEPENDENCY\":34,\"LINE\":35,\"DOTTED_LINE\":36,\"CALLBACK\":37,\"LINK\":38,\"commentToken\":39,\"textToken\":40,\"graphCodeTokens\":41,\"textNoTagsToken\":42,\"TAGSTART\":43,\"TAGEND\":44,\"==\":45,\"--\":46,\"PCT\":47,\"DEFAULT\":48,\"SPACE\":49,\"MINUS\":50,\"keywords\":51,\"UNICODE_TEXT\":52,\"NUM\":53,\"ALPHA\":54,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",12:\"GENERICTYPE\",14:\"LABEL\",19:\"CLASS\",20:\"STRUCT_START\",22:\"STRUCT_STOP\",23:\"ANNOTATION_START\",24:\"ANNOTATION_END\",25:\"MEMBER\",26:\"SEPARATOR\",28:\"STR\",31:\"AGGREGATION\",32:\"EXTENSION\",33:\"COMPOSITION\",34:\"DEPENDENCY\",35:\"LINE\",36:\"DOTTED_LINE\",37:\"CALLBACK\",38:\"LINK\",41:\"graphCodeTokens\",43:\"TAGSTART\",44:\"TAGEND\",45:\"==\",46:\"--\",47:\"PCT\",48:\"DEFAULT\",49:\"SPACE\",50:\"MINUS\",51:\"keywords\",52:\"UNICODE_TEXT\",53:\"NUM\",54:\"ALPHA\"},\nproductions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 7:\n this.$=$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 10:\n yy.addRelation($$[$0]); \nbreak;\ncase 11:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 16:\nyy.addClass($$[$0]);\nbreak;\ncase 17:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 18:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 19:\n this.$ = [$$[$0]]; \nbreak;\ncase 20:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 21:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 22:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 23:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 24:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 25:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 26:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 27:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 28:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 29:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 30:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 31:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 32:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 33:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 34:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 35:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 36:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 37:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 38:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 39:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 40:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 41:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 42:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},{8:[1,23]},{6:[1,24],8:[2,3]},o($V9,[2,10],{14:[1,25]}),o($V9,[2,12]),o($V9,[2,13]),o($V9,[2,14]),o($V9,[2,15]),o($V9,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf}),{10:37,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,23]),o($V9,[2,24]),{11:38,52:$V6,53:$V7,54:$V8},{10:39,11:19,52:$V6,53:$V7,54:$V8},{10:40,11:19,52:$V6,53:$V7,54:$V8},o($Vg,[2,7],{11:19,10:41,12:[1,42],52:$V6,53:$V7,54:$V8}),o($Vh,[2,56]),o($Vh,[2,57]),o($Vh,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},o($V9,[2,11]),{10:44,11:19,28:[1,45],52:$V6,53:$V7,54:$V8},{27:46,29:29,30:30,31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf},o($V9,[2,22]),{30:47,35:$Ve,36:$Vf},o($Vi,[2,32],{29:48,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vj,[2,33]),o($Vj,[2,34]),o($Vj,[2,35]),o($Vj,[2,36]),o($Vk,[2,37]),o($Vk,[2,38]),o($V9,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},o($Vg,[2,6]),o($Vg,[2,9],{11:19,10:53,52:$V6,53:$V7,54:$V8}),{8:[2,5]},o($Vl,[2,25]),{10:54,11:19,52:$V6,53:$V7,54:$V8},{10:55,11:19,28:[1,56],52:$V6,53:$V7,54:$V8},o($Vi,[2,31],{29:57,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vi,[2,30]),{21:58,25:$Vm},{10:60,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,39],{28:[1,61]}),o($V9,[2,41],{28:[1,62]}),o($Vg,[2,8]),o($Vl,[2,27]),o($Vl,[2,26]),{10:63,11:19,52:$V6,53:$V7,54:$V8},o($Vi,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:$Vm},o($V9,[2,18]),o($V9,[2,40]),o($V9,[2,42]),o($Vl,[2,28]),o($V9,[2,17]),{22:[2,20]}],\ndefaultActions: {2:[2,1],23:[2,2],43:[2,5],65:[2,20]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:return 6;\nbreak;\ncase 2:/* skip whitespace */\nbreak;\ncase 3:return 5;\nbreak;\ncase 4: this.begin(\"struct\"); /*console.log('Starting struct');*/return 20;\nbreak;\ncase 5:return \"EOF_IN_STRUCT\";\nbreak;\ncase 6:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 7: /*console.log('Ending struct');*/this.popState(); return 22;\nbreak;\ncase 8:/* nothing */\nbreak;\ncase 9: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 10:return 19;\nbreak;\ncase 11:return 37;\nbreak;\ncase 12:return 38;\nbreak;\ncase 13:return 23;\nbreak;\ncase 14:return 24;\nbreak;\ncase 15:this.begin(\"generic\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:return \"GENERICTYPE\";\nbreak;\ncase 18:this.begin(\"string\");\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return \"STR\";\nbreak;\ncase 21:return 32;\nbreak;\ncase 22:return 32;\nbreak;\ncase 23:return 34;\nbreak;\ncase 24:return 34;\nbreak;\ncase 25:return 33;\nbreak;\ncase 26:return 31;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 36;\nbreak;\ncase 29:return 14;\nbreak;\ncase 30:return 50;\nbreak;\ncase 31:return 'DOT';\nbreak;\ncase 32:return 'PLUS';\nbreak;\ncase 33:return 47;\nbreak;\ncase 34:return 'EQUALS';\nbreak;\ncase 35:return 'EQUALS';\nbreak;\ncase 36:return 54;\nbreak;\ncase 37:return 'PUNCTUATION';\nbreak;\ncase 38:return 53;\nbreak;\ncase 39:return 52;\nbreak;\ncase 40:return 49;\nbreak;\ncase 41:return 8;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[19,20],\"inclusive\":false},\"generic\":{\"rules\":[16,17],\"inclusive\":false},\"struct\":{\"rules\":[5,6,7,8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,10,11,12,13,14,15,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 40, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "name": "./node_modules/lodash/_copyObject.js", - "index": 628, - "index2": 618, - "size": 1044, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "issuerId": 209, - "issuerName": "./node_modules/lodash/_copySymbolsIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 40, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 199, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "module": "./node_modules/lodash/_baseAssign.js", - "moduleName": "./node_modules/lodash/_baseAssign.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 205, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "module": "./node_modules/lodash/_baseAssignIn.js", - "moduleName": "./node_modules/lodash/_baseAssignIn.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 208, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "module": "./node_modules/lodash/_copySymbols.js", - "moduleName": "./node_modules/lodash/_copySymbols.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 209, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "module": "./node_modules/lodash/_copySymbolsIn.js", - "moduleName": "./node_modules/lodash/_copySymbolsIn.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - }, - { - "moduleId": 297, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "module": "./node_modules/lodash/toPlainObject.js", - "moduleName": "./node_modules/lodash/toPlainObject.js", - "type": "cjs require", - "userRequest": "./_copyObject", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n" - }, - { - "id": 41, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "name": "./node_modules/lodash/isArguments.js", - "index": 632, - "index2": 622, - "size": 1026, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "3:18-42" - }, - { - "moduleId": 257, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "module": "./node_modules/lodash/_isFlattenable.js", - "moduleName": "./node_modules/lodash/_isFlattenable.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "2:18-42" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArguments", - "loc": "6:18-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n" - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "index": 639, - "index2": 631, - "size": 695, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "6:19-44" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "8:19-44" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "8:19-44" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "10:19-44" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isTypedArray", - "loc": "13:19-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n" - }, - { - "id": 43, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toKey.js", - "name": "./node_modules/lodash/_toKey.js", - "index": 727, - "index2": 715, - "size": 523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 83, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "module": "./node_modules/lodash/_baseGet.js", - "moduleName": "./node_modules/lodash/_baseGet.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "2:12-31" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "6:12-31" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "7:12-31" - }, - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "4:12-31" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_toKey", - "loc": "5:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n" - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "index": 878, - "index2": 871, - "size": 814, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-html-label", - "loc": "2:19-46" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "55:19-31" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "56:19-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "var util = require(\"../util\");\n\nmodule.exports = addHtmlLabel;\n\nfunction addHtmlLabel(root, node) {\n var fo = root\n .append(\"foreignObject\")\n .attr(\"width\", \"100000\");\n\n var div = fo\n .append(\"xhtml:div\");\n div.attr(\"xmlns\", \"http://www.w3.org/1999/xhtml\");\n\n var label = node.label;\n switch(typeof label) {\n case \"function\":\n div.insert(label);\n break;\n case \"object\":\n // Currently we assume this is a DOM object.\n div.insert(function() { return label; });\n break;\n default: div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style(\"display\", \"inline-block\");\n // Fix for firefox\n div.style(\"white-space\", \"nowrap\");\n\n var client = div.node().getBoundingClientRect();\n fo\n .attr(\"width\", client.width)\n .attr(\"height\", client.height); \n\n return fo;\n}\n" - }, - { - "id": 45, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/runtime/api.js", - "name": "./node_modules/css-loader/dist/runtime/api.js", - "index": 532, - "index2": 527, - "size": 2406, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 164, - "issuerName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - }, - { - "id": 164, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "profile": { - "factory": 1, - "building": 3929 - } - } - ], - "profile": { - "factory": 28, - "building": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 160, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 162, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 164, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 166, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}" - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "index": 578, - "index2": 613, - "size": 734, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 227, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "module": "./node_modules/lodash/_baseIsMatch.js", - "moduleName": "./node_modules/lodash/_baseIsMatch.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_Stack", - "loc": "1:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n" - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "index": 579, - "index2": 576, - "size": 869, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 175, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackClear.js", - "module": "./node_modules/lodash/_stackClear.js", - "moduleName": "./node_modules/lodash/_stackClear.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "1:16-39" - }, - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_ListCache", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n" - }, - { - "id": 48, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assocIndexOf.js", - "name": "./node_modules/lodash/_assocIndexOf.js", - "index": 582, - "index2": 571, - "size": 487, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "issuerId": 174, - "issuerName": "./node_modules/lodash/_listCacheSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - }, - { - "id": 174, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "name": "./node_modules/lodash/_listCacheSet.js", - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - } - } - ], - "profile": { - "factory": 92, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 171, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheDelete.js", - "module": "./node_modules/lodash/_listCacheDelete.js", - "moduleName": "./node_modules/lodash/_listCacheDelete.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 172, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheGet.js", - "module": "./node_modules/lodash/_listCacheGet.js", - "moduleName": "./node_modules/lodash/_listCacheGet.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 173, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheHas.js", - "module": "./node_modules/lodash/_listCacheHas.js", - "moduleName": "./node_modules/lodash/_listCacheHas.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - }, - { - "moduleId": 174, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "module": "./node_modules/lodash/_listCacheSet.js", - "moduleName": "./node_modules/lodash/_listCacheSet.js", - "type": "cjs require", - "userRequest": "./_assocIndexOf", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n" - }, - { - "id": 49, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeCreate.js", - "name": "./node_modules/lodash/_nativeCreate.js", - "index": 612, - "index2": 597, - "size": 187, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "issuerId": 189, - "issuerName": "./node_modules/lodash/_hashClear.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - }, - { - "id": 189, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "name": "./node_modules/lodash/_hashClear.js", - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 3, - "building": 0, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 189, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "module": "./node_modules/lodash/_hashClear.js", - "moduleName": "./node_modules/lodash/_hashClear.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 191, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashGet.js", - "module": "./node_modules/lodash/_hashGet.js", - "moduleName": "./node_modules/lodash/_hashGet.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 192, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashHas.js", - "module": "./node_modules/lodash/_hashHas.js", - "moduleName": "./node_modules/lodash/_hashHas.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - }, - { - "moduleId": 193, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashSet.js", - "module": "./node_modules/lodash/_hashSet.js", - "moduleName": "./node_modules/lodash/_hashSet.js", - "type": "cjs require", - "userRequest": "./_nativeCreate", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 13, - "source": "var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n" - }, - { - "id": 50, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "name": "./node_modules/lodash/_getMapData.js", - "index": 618, - "index2": 606, - "size": 400, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "issuerId": 198, - "issuerName": "./node_modules/lodash/_mapCacheSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 194, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheDelete.js", - "module": "./node_modules/lodash/_mapCacheDelete.js", - "moduleName": "./node_modules/lodash/_mapCacheDelete.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 196, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheGet.js", - "module": "./node_modules/lodash/_mapCacheGet.js", - "moduleName": "./node_modules/lodash/_mapCacheGet.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 197, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheHas.js", - "module": "./node_modules/lodash/_mapCacheHas.js", - "moduleName": "./node_modules/lodash/_mapCacheHas.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - }, - { - "moduleId": 198, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "module": "./node_modules/lodash/_mapCacheSet.js", - "moduleName": "./node_modules/lodash/_mapCacheSet.js", - "type": "cjs require", - "userRequest": "./_getMapData", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n" - }, - { - "id": 51, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "name": "./node_modules/lodash/_assignValue.js", - "index": 624, - "index2": 617, - "size": 899, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "issuerId": 313, - "issuerName": "./node_modules/lodash/zipObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 129, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 40, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "module": "./node_modules/lodash/_copyObject.js", - "moduleName": "./node_modules/lodash/_copyObject.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - }, - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "3:18-43" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - }, - { - "moduleId": 313, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "module": "./node_modules/lodash/zipObject.js", - "moduleName": "./node_modules/lodash/zipObject.js", - "type": "cjs require", - "userRequest": "./_assignValue", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n" - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "index": 625, - "index2": 616, - "size": 625, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "issuerId": 291, - "issuerName": "./node_modules/lodash/mapValues.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 40, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyObject.js", - "module": "./node_modules/lodash/_copyObject.js", - "moduleName": "./node_modules/lodash/_copyObject.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "2:22-51" - }, - { - "moduleId": 51, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignValue.js", - "module": "./node_modules/lodash/_assignValue.js", - "moduleName": "./node_modules/lodash/_assignValue.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - }, - { - "moduleId": 140, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "module": "./node_modules/lodash/_assignMergeValue.js", - "moduleName": "./node_modules/lodash/_assignMergeValue.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseAssignValue", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n" - }, - { - "id": 53, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIndex.js", - "name": "./node_modules/lodash/_isIndex.js", - "index": 638, - "index2": 626, - "size": 759, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "issuerId": 61, - "issuerName": "./node_modules/lodash/_isIterateeCall.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 61, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "name": "./node_modules/lodash/_isIterateeCall.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 75, - "building": 34, - "dependencies": 24 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 61, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "module": "./node_modules/lodash/_isIterateeCall.js", - "moduleName": "./node_modules/lodash/_isIterateeCall.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "3:14-35" - }, - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "5:14-35" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "4:14-35" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_isIndex", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n" - }, - { - "id": 54, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUnary.js", - "name": "./node_modules/lodash/_baseUnary.js", - "index": 642, - "index2": 629, - "size": 332, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "2:16-39" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseUnary", - "loc": "5:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n" - }, - { - "id": 55, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isPrototype.js", - "name": "./node_modules/lodash/_isPrototype.js", - "index": 645, - "index2": 633, - "size": 480, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "issuerId": 246, - "issuerName": "./node_modules/lodash/isEmpty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 74, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "module": "./node_modules/lodash/_baseKeys.js", - "moduleName": "./node_modules/lodash/_baseKeys.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "1:18-43" - }, - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "3:18-43" - }, - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "2:18-43" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_isPrototype", - "loc": "7:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n" - }, - { - "id": 56, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "name": "./node_modules/lodash/_getPrototype.js", - "index": 662, - "index2": 651, - "size": 163, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "issuerId": 141, - "issuerName": "./node_modules/lodash/isPlainObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 67, - "building": 39 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 141, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "module": "./node_modules/lodash/isPlainObject.js", - "moduleName": "./node_modules/lodash/isPlainObject.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "2:19-45" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_getPrototype", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n" - }, - { - "id": 57, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "name": "./node_modules/lodash/_baseEach.js", - "index": 688, - "index2": 683, - "size": 455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "2:15-37" - }, - { - "moduleId": 124, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMap.js", - "module": "./node_modules/lodash/_baseMap.js", - "moduleName": "./node_modules/lodash/_baseMap.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "1:15-37" - }, - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "2:15-37" - }, - { - "moduleId": 225, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFilter.js", - "module": "./node_modules/lodash/_baseFilter.js", - "moduleName": "./node_modules/lodash/_baseFilter.js", - "type": "cjs require", - "userRequest": "./_baseEach", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n" - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "index": 718, - "index2": 714, - "size": 569, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 83, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "module": "./node_modules/lodash/_baseGet.js", - "moduleName": "./node_modules/lodash/_baseGet.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "1:15-37" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "1:15-37" - }, - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "3:15-37" - }, - { - "moduleId": 304, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "module": "./node_modules/lodash/_baseSet.js", - "moduleName": "./node_modules/lodash/_baseSet.js", - "type": "cjs require", - "userRequest": "./_castPath", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n" - }, - { - "id": 59, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayMap.js", - "name": "./node_modules/lodash/_arrayMap.js", - "index": 726, - "index2": 711, - "size": 556, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "issuerId": 123, - "issuerName": "./node_modules/lodash/map.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - }, - { - "moduleId": 241, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "module": "./node_modules/lodash/_baseToString.js", - "moduleName": "./node_modules/lodash/_baseToString.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "2:15-37" - }, - { - "moduleId": 269, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseValues.js", - "module": "./node_modules/lodash/_baseValues.js", - "moduleName": "./node_modules/lodash/_baseValues.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_arrayMap", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n" - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "index": 753, - "index2": 750, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "1:15-37" - }, - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "2:15-37" - }, - { - "moduleId": 298, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "module": "./node_modules/lodash/_createAssigner.js", - "moduleName": "./node_modules/lodash/_createAssigner.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "1:15-37" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseRest", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n" - }, - { - "id": 61, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isIterateeCall.js", - "name": "./node_modules/lodash/_isIterateeCall.js", - "index": 796, - "index2": 787, - "size": 877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "issuerId": 137, - "issuerName": "./node_modules/lodash/defaults.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 137, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "module": "./node_modules/lodash/defaults.js", - "moduleName": "./node_modules/lodash/defaults.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "3:21-49" - }, - { - "moduleId": 298, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "module": "./node_modules/lodash/_createAssigner.js", - "moduleName": "./node_modules/lodash/_createAssigner.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "2:21-49" - }, - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "2:21-49" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_isIterateeCall", - "loc": "4:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n" - }, - { - "id": 62, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/util.js", - "name": "./node_modules/dagre/lib/rank/util.js", - "index": 844, - "index2": 836, - "size": 1769, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 147, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "module": "./node_modules/dagre/lib/rank/feasible-tree.js", - "moduleName": "./node_modules/dagre/lib/rank/feasible-tree.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:12-29" - }, - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "3:15-32" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "5:12-29" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./util", - "loc": "6:15-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = {\n longestPath: longestPath,\n slack: slack\n};\n\n/*\n * Initializes ranks for the input graph using the longest path algorithm. This\n * algorithm scales well and is fast in practice, it yields rather poor\n * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom\n * ranks wide and leaving edges longer than necessary. However, due to its\n * speed, this algorithm is good for getting an initial ranking that can be fed\n * into other algorithms.\n *\n * This algorithm does not normalize layers because it will be used by other\n * algorithms in most cases. If using this algorithm directly, be sure to\n * run normalize at the end.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG.\n * 2. Input graph node labels can be assigned properties.\n *\n * Post-conditions:\n *\n * 1. Each node will be assign an (unnormalized) \"rank\" property.\n */\nfunction longestPath(g) {\n var visited = {};\n\n function dfs(v) {\n var label = g.node(v);\n if (_.has(visited, v)) {\n return label.rank;\n }\n visited[v] = true;\n\n var rank = _.min(_.map(g.outEdges(v), function(e) {\n return dfs(e.w) - g.edge(e).minlen;\n }));\n\n if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3\n rank === undefined || // return value of _.map([]) for Lodash 4\n rank === null) { // return value of _.map([null])\n rank = 0;\n }\n\n return (label.rank = rank);\n }\n\n _.forEach(g.sources(), dfs);\n}\n\n/*\n * Returns the amount of slack for the given edge. The slack is defined as the\n * difference between the length of the edge and its minimum length.\n */\nfunction slack(g, e) {\n return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;\n}\n" - }, - { - "id": 63, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/@braintree/sanitize-url/index.js", - "name": "./node_modules/@braintree/sanitize-url/index.js", - "index": 540, - "index2": 537, - "size": 854, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1707, - "building": 708 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "10:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "15:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "278:13-24" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "479:14-25" - } - ], - "usedExports": [ - "sanitizeUrl" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "'use strict';\n\nvar invalidPrototcolRegex = /^(%20|\\s)*(javascript|data)/im;\nvar ctrlCharactersRegex = /[^\\x20-\\x7E]/gmi;\nvar urlSchemeRegex = /^([^:]+):/gm;\nvar relativeFirstCharacters = ['.', '/']\n\nfunction isRelativeUrl(url) {\n return relativeFirstCharacters.indexOf(url[0]) > -1;\n}\n\nfunction sanitizeUrl(url) {\n if (!url) {\n return 'about:blank';\n }\n\n var urlScheme, urlSchemeParseResults;\n var sanitizedUrl = url.replace(ctrlCharactersRegex, '').trim();\n\n if (isRelativeUrl(sanitizedUrl)) {\n return sanitizedUrl;\n }\n\n urlSchemeParseResults = sanitizedUrl.match(urlSchemeRegex);\n\n if (!urlSchemeParseResults) {\n return 'about:blank';\n }\n\n urlScheme = urlSchemeParseResults[0];\n\n if (invalidPrototcolRegex.test(urlScheme)) {\n return 'about:blank';\n }\n\n return sanitizedUrl;\n}\n\nmodule.exports = {\n sanitizeUrl: sanitizeUrl\n};\n" - }, - { - "id": 64, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "name": "./src/diagrams/git/parser/gitGraph.jison", - "index": 547, - "index2": 548, - "size": 23638, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gitGraph", - "loc": "3:0-47" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "39:0-60" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "76:15-29" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gitGraph", - "loc": "237:17-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 65, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "name": "./src/diagrams/info/parser/info.jison", - "index": 563, - "index2": 561, - "size": 21150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/info", - "loc": "6:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/info", - "loc": "23:17-27" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/parser/info", - "loc": "43:0-53" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/parser/info", - "loc": "119:15-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 66, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "name": "./src/diagrams/pie/parser/pie.jison", - "index": 565, - "index2": 563, - "size": 21750, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/pie", - "loc": "6:0-37" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/pie", - "loc": "24:17-26" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "46:0-50" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "125:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 67, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "name": "./src/diagrams/er/parser/erDiagram.jison", - "index": 567, - "index2": 565, - "size": 23211, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/erDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "49:0-54" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "131:15-23" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./parser/erDiagram", - "loc": "190:15-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,12],$V1=[1,7],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[12,19,20],$V7=[15,16,17,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"statement\":7,\"entityName\":8,\"relSpec\":9,\":\":10,\"role\":11,\"ALPHANUM\":12,\"cardinality\":13,\"relType\":14,\"ZERO_OR_ONE\":15,\"ZERO_OR_MORE\":16,\"ONE_OR_MORE\":17,\"ONLY_ONE\":18,\"NON_IDENTIFYING\":19,\"IDENTIFYING\":20,\"WORD\":21,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",10:\":\",12:\"ALPHANUM\",15:\"ZERO_OR_ONE\",16:\"ZERO_OR_MORE\",17:\"ONE_OR_MORE\",18:\"ONLY_ONE\",19:\"NON_IDENTIFYING\",20:\"IDENTIFYING\",21:\"WORD\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,5],[8,1],[9,3],[13,1],[13,1],[13,1],[13,1],[14,1],[14,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 4:\n\n yy.addEntity($$[$0-4]); \n yy.addEntity($$[$0-2]); \n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 5:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 6:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 7:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 8:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 9:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 10:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 11:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 12:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 13:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 14:\n this.$ = $$[$0]; \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,12:$V1},{1:[2,1]},o($V0,[2,3]),{9:8,13:9,15:$V2,16:$V3,17:$V4,18:$V5},o([10,15,16,17,18],[2,5]),{8:14,12:$V1},{14:15,19:[1,16],20:[1,17]},o($V6,[2,7]),o($V6,[2,8]),o($V6,[2,9]),o($V6,[2,10]),{10:[1,18]},{13:19,15:$V2,16:$V3,17:$V4,18:$V5},o($V7,[2,11]),o($V7,[2,12]),{11:20,12:[1,22],21:[1,21]},{12:[2,6]},o($V0,[2,4]),o($V0,[2,13]),o($V0,[2,14])],\ndefaultActions: {4:[2,1],19:[2,6]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* skip whitespace */\nbreak;\ncase 1:return 'SPACE';\nbreak;\ncase 2:return 21;\nbreak;\ncase 3:return 4;\nbreak;\ncase 4:return 15;\nbreak;\ncase 5:return 16;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 18;\nbreak;\ncase 8:return 15;\nbreak;\ncase 9:return 16;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11:return 19;\nbreak;\ncase 12:return 20;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 19;\nbreak;\ncase 15:return 12;\nbreak;\ncase 16:return yy_.yytext[0];\nbreak;\ncase 17:return 6;\nbreak;\n}\n},\nrules: [/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 68, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/graph.js", - "name": "./node_modules/graphlib/lib/graph.js", - "index": 574, - "index2": 765, - "size": 12028, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "issuerId": 271, - "issuerName": "./node_modules/graphlib/lib/json.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 168, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "module": "./node_modules/graphlib/lib/index.js", - "moduleName": "./node_modules/graphlib/lib/index.js", - "type": "cjs require", - "userRequest": "./graph", - "loc": "3:9-27" - }, - { - "moduleId": 271, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "module": "./node_modules/graphlib/lib/json.js", - "moduleName": "./node_modules/graphlib/lib/json.js", - "type": "cjs require", - "userRequest": "./graph", - "loc": "2:12-30" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../graph", - "loc": "2:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = Graph;\n\nvar DEFAULT_EDGE_NAME = \"\\x00\";\nvar GRAPH_NODE = \"\\x00\";\nvar EDGE_KEY_DELIM = \"\\x01\";\n\n// Implementation notes:\n//\n// * Node id query functions should return string ids for the nodes\n// * Edge id query functions should return an \"edgeObj\", edge object, that is\n// composed of enough information to uniquely identify an edge: {v, w, name}.\n// * Internally we use an \"edgeId\", a stringified form of the edgeObj, to\n// reference edges. This is because we need a performant way to look these\n// edges up and, object properties, which have string keys, are the closest\n// we're going to get to a performant hashtable in JavaScript.\n\nfunction Graph(opts) {\n this._isDirected = _.has(opts, \"directed\") ? opts.directed : true;\n this._isMultigraph = _.has(opts, \"multigraph\") ? opts.multigraph : false;\n this._isCompound = _.has(opts, \"compound\") ? opts.compound : false;\n\n // Label for the graph itself\n this._label = undefined;\n\n // Defaults to be set when creating a new node\n this._defaultNodeLabelFn = _.constant(undefined);\n\n // Defaults to be set when creating a new edge\n this._defaultEdgeLabelFn = _.constant(undefined);\n\n // v -> label\n this._nodes = {};\n\n if (this._isCompound) {\n // v -> parent\n this._parent = {};\n\n // v -> children\n this._children = {};\n this._children[GRAPH_NODE] = {};\n }\n\n // v -> edgeObj\n this._in = {};\n\n // u -> v -> Number\n this._preds = {};\n\n // v -> edgeObj\n this._out = {};\n\n // v -> w -> Number\n this._sucs = {};\n\n // e -> edgeObj\n this._edgeObjs = {};\n\n // e -> label\n this._edgeLabels = {};\n}\n\n/* Number of nodes in the graph. Should only be changed by the implementation. */\nGraph.prototype._nodeCount = 0;\n\n/* Number of edges in the graph. Should only be changed by the implementation. */\nGraph.prototype._edgeCount = 0;\n\n\n/* === Graph functions ========= */\n\nGraph.prototype.isDirected = function() {\n return this._isDirected;\n};\n\nGraph.prototype.isMultigraph = function() {\n return this._isMultigraph;\n};\n\nGraph.prototype.isCompound = function() {\n return this._isCompound;\n};\n\nGraph.prototype.setGraph = function(label) {\n this._label = label;\n return this;\n};\n\nGraph.prototype.graph = function() {\n return this._label;\n};\n\n\n/* === Node functions ========== */\n\nGraph.prototype.setDefaultNodeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultNodeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.nodeCount = function() {\n return this._nodeCount;\n};\n\nGraph.prototype.nodes = function() {\n return _.keys(this._nodes);\n};\n\nGraph.prototype.sources = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._in[v]);\n });\n};\n\nGraph.prototype.sinks = function() {\n var self = this;\n return _.filter(this.nodes(), function(v) {\n return _.isEmpty(self._out[v]);\n });\n};\n\nGraph.prototype.setNodes = function(vs, value) {\n var args = arguments;\n var self = this;\n _.each(vs, function(v) {\n if (args.length > 1) {\n self.setNode(v, value);\n } else {\n self.setNode(v);\n }\n });\n return this;\n};\n\nGraph.prototype.setNode = function(v, value) {\n if (_.has(this._nodes, v)) {\n if (arguments.length > 1) {\n this._nodes[v] = value;\n }\n return this;\n }\n\n this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);\n if (this._isCompound) {\n this._parent[v] = GRAPH_NODE;\n this._children[v] = {};\n this._children[GRAPH_NODE][v] = true;\n }\n this._in[v] = {};\n this._preds[v] = {};\n this._out[v] = {};\n this._sucs[v] = {};\n ++this._nodeCount;\n return this;\n};\n\nGraph.prototype.node = function(v) {\n return this._nodes[v];\n};\n\nGraph.prototype.hasNode = function(v) {\n return _.has(this._nodes, v);\n};\n\nGraph.prototype.removeNode = function(v) {\n var self = this;\n if (_.has(this._nodes, v)) {\n var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };\n delete this._nodes[v];\n if (this._isCompound) {\n this._removeFromParentsChildList(v);\n delete this._parent[v];\n _.each(this.children(v), function(child) {\n self.setParent(child);\n });\n delete this._children[v];\n }\n _.each(_.keys(this._in[v]), removeEdge);\n delete this._in[v];\n delete this._preds[v];\n _.each(_.keys(this._out[v]), removeEdge);\n delete this._out[v];\n delete this._sucs[v];\n --this._nodeCount;\n }\n return this;\n};\n\nGraph.prototype.setParent = function(v, parent) {\n if (!this._isCompound) {\n throw new Error(\"Cannot set parent in a non-compound graph\");\n }\n\n if (_.isUndefined(parent)) {\n parent = GRAPH_NODE;\n } else {\n // Coerce parent to string\n parent += \"\";\n for (var ancestor = parent;\n !_.isUndefined(ancestor);\n ancestor = this.parent(ancestor)) {\n if (ancestor === v) {\n throw new Error(\"Setting \" + parent+ \" as parent of \" + v +\n \" would create a cycle\");\n }\n }\n\n this.setNode(parent);\n }\n\n this.setNode(v);\n this._removeFromParentsChildList(v);\n this._parent[v] = parent;\n this._children[parent][v] = true;\n return this;\n};\n\nGraph.prototype._removeFromParentsChildList = function(v) {\n delete this._children[this._parent[v]][v];\n};\n\nGraph.prototype.parent = function(v) {\n if (this._isCompound) {\n var parent = this._parent[v];\n if (parent !== GRAPH_NODE) {\n return parent;\n }\n }\n};\n\nGraph.prototype.children = function(v) {\n if (_.isUndefined(v)) {\n v = GRAPH_NODE;\n }\n\n if (this._isCompound) {\n var children = this._children[v];\n if (children) {\n return _.keys(children);\n }\n } else if (v === GRAPH_NODE) {\n return this.nodes();\n } else if (this.hasNode(v)) {\n return [];\n }\n};\n\nGraph.prototype.predecessors = function(v) {\n var predsV = this._preds[v];\n if (predsV) {\n return _.keys(predsV);\n }\n};\n\nGraph.prototype.successors = function(v) {\n var sucsV = this._sucs[v];\n if (sucsV) {\n return _.keys(sucsV);\n }\n};\n\nGraph.prototype.neighbors = function(v) {\n var preds = this.predecessors(v);\n if (preds) {\n return _.union(preds, this.successors(v));\n }\n};\n\nGraph.prototype.isLeaf = function (v) {\n var neighbors;\n if (this.isDirected()) {\n neighbors = this.successors(v);\n } else {\n neighbors = this.neighbors(v);\n }\n return neighbors.length === 0;\n};\n\nGraph.prototype.filterNodes = function(filter) {\n var copy = new this.constructor({\n directed: this._isDirected,\n multigraph: this._isMultigraph,\n compound: this._isCompound\n });\n\n copy.setGraph(this.graph());\n\n var self = this;\n _.each(this._nodes, function(value, v) {\n if (filter(v)) {\n copy.setNode(v, value);\n }\n });\n\n _.each(this._edgeObjs, function(e) {\n if (copy.hasNode(e.v) && copy.hasNode(e.w)) {\n copy.setEdge(e, self.edge(e));\n }\n });\n\n var parents = {};\n function findParent(v) {\n var parent = self.parent(v);\n if (parent === undefined || copy.hasNode(parent)) {\n parents[v] = parent;\n return parent;\n } else if (parent in parents) {\n return parents[parent];\n } else {\n return findParent(parent);\n }\n }\n\n if (this._isCompound) {\n _.each(copy.nodes(), function(v) {\n copy.setParent(v, findParent(v));\n });\n }\n\n return copy;\n};\n\n/* === Edge functions ========== */\n\nGraph.prototype.setDefaultEdgeLabel = function(newDefault) {\n if (!_.isFunction(newDefault)) {\n newDefault = _.constant(newDefault);\n }\n this._defaultEdgeLabelFn = newDefault;\n return this;\n};\n\nGraph.prototype.edgeCount = function() {\n return this._edgeCount;\n};\n\nGraph.prototype.edges = function() {\n return _.values(this._edgeObjs);\n};\n\nGraph.prototype.setPath = function(vs, value) {\n var self = this;\n var args = arguments;\n _.reduce(vs, function(v, w) {\n if (args.length > 1) {\n self.setEdge(v, w, value);\n } else {\n self.setEdge(v, w);\n }\n return w;\n });\n return this;\n};\n\n/*\n * setEdge(v, w, [value, [name]])\n * setEdge({ v, w, [name] }, [value])\n */\nGraph.prototype.setEdge = function() {\n var v, w, name, value;\n var valueSpecified = false;\n var arg0 = arguments[0];\n\n if (typeof arg0 === \"object\" && arg0 !== null && \"v\" in arg0) {\n v = arg0.v;\n w = arg0.w;\n name = arg0.name;\n if (arguments.length === 2) {\n value = arguments[1];\n valueSpecified = true;\n }\n } else {\n v = arg0;\n w = arguments[1];\n name = arguments[3];\n if (arguments.length > 2) {\n value = arguments[2];\n valueSpecified = true;\n }\n }\n\n v = \"\" + v;\n w = \"\" + w;\n if (!_.isUndefined(name)) {\n name = \"\" + name;\n }\n\n var e = edgeArgsToId(this._isDirected, v, w, name);\n if (_.has(this._edgeLabels, e)) {\n if (valueSpecified) {\n this._edgeLabels[e] = value;\n }\n return this;\n }\n\n if (!_.isUndefined(name) && !this._isMultigraph) {\n throw new Error(\"Cannot set a named edge when isMultigraph = false\");\n }\n\n // It didn't exist, so we need to create it.\n // First ensure the nodes exist.\n this.setNode(v);\n this.setNode(w);\n\n this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);\n\n var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);\n // Ensure we add undirected edges in a consistent way.\n v = edgeObj.v;\n w = edgeObj.w;\n\n Object.freeze(edgeObj);\n this._edgeObjs[e] = edgeObj;\n incrementOrInitEntry(this._preds[w], v);\n incrementOrInitEntry(this._sucs[v], w);\n this._in[w][e] = edgeObj;\n this._out[v][e] = edgeObj;\n this._edgeCount++;\n return this;\n};\n\nGraph.prototype.edge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return this._edgeLabels[e];\n};\n\nGraph.prototype.hasEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n return _.has(this._edgeLabels, e);\n};\n\nGraph.prototype.removeEdge = function(v, w, name) {\n var e = (arguments.length === 1\n ? edgeObjToId(this._isDirected, arguments[0])\n : edgeArgsToId(this._isDirected, v, w, name));\n var edge = this._edgeObjs[e];\n if (edge) {\n v = edge.v;\n w = edge.w;\n delete this._edgeLabels[e];\n delete this._edgeObjs[e];\n decrementOrRemoveEntry(this._preds[w], v);\n decrementOrRemoveEntry(this._sucs[v], w);\n delete this._in[w][e];\n delete this._out[v][e];\n this._edgeCount--;\n }\n return this;\n};\n\nGraph.prototype.inEdges = function(v, u) {\n var inV = this._in[v];\n if (inV) {\n var edges = _.values(inV);\n if (!u) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.v === u; });\n }\n};\n\nGraph.prototype.outEdges = function(v, w) {\n var outV = this._out[v];\n if (outV) {\n var edges = _.values(outV);\n if (!w) {\n return edges;\n }\n return _.filter(edges, function(edge) { return edge.w === w; });\n }\n};\n\nGraph.prototype.nodeEdges = function(v, w) {\n var inEdges = this.inEdges(v, w);\n if (inEdges) {\n return inEdges.concat(this.outEdges(v, w));\n }\n};\n\nfunction incrementOrInitEntry(map, k) {\n if (map[k]) {\n map[k]++;\n } else {\n map[k] = 1;\n }\n}\n\nfunction decrementOrRemoveEntry(map, k) {\n if (!--map[k]) { delete map[k]; }\n}\n\nfunction edgeArgsToId(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +\n (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);\n}\n\nfunction edgeArgsToObj(isDirected, v_, w_, name) {\n var v = \"\" + v_;\n var w = \"\" + w_;\n if (!isDirected && v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n var edgeObj = { v: v, w: w };\n if (name) {\n edgeObj.name = name;\n }\n return edgeObj;\n}\n\nfunction edgeObjToId(isDirected, edgeObj) {\n return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);\n}\n" - }, - { - "id": 69, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Map.js", - "name": "./node_modules/lodash/_Map.js", - "index": 592, - "index2": 596, - "size": 195, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "2:10-27" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "2:10-27" - }, - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_Map", - "loc": "3:10-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n" - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "index": 608, - "index2": 611, - "size": 869, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "1:15-37" - }, - { - "moduleId": 179, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "module": "./node_modules/lodash/_stackSet.js", - "moduleName": "./node_modules/lodash/_stackSet.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "3:15-37" - }, - { - "moduleId": 240, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/memoize.js", - "module": "./node_modules/lodash/memoize.js", - "moduleName": "./node_modules/lodash/memoize.js", - "type": "cjs require", - "userRequest": "./_MapCache", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n" - }, - { - "id": 71, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayEach.js", - "name": "./node_modules/lodash/_arrayEach.js", - "index": 623, - "index2": 614, - "size": 537, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "issuerId": 109, - "issuerName": "./node_modules/lodash/forEach.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 109, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "name": "./node_modules/lodash/forEach.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 63, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "2:16-39" - }, - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "1:16-39" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_arrayEach", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n" - }, - { - "id": 72, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isLength.js", - "name": "./node_modules/lodash/isLength.js", - "index": 641, - "index2": 627, - "size": 802, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "issuerId": 120, - "issuerName": "./node_modules/lodash/_hasPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - } - ], - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLike.js", - "module": "./node_modules/lodash/isArrayLike.js", - "moduleName": "./node_modules/lodash/isArrayLike.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "2:15-36" - }, - { - "moduleId": 120, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "module": "./node_modules/lodash/_hasPath.js", - "moduleName": "./node_modules/lodash/_hasPath.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "5:15-36" - }, - { - "moduleId": 203, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "module": "./node_modules/lodash/_baseIsTypedArray.js", - "moduleName": "./node_modules/lodash/_baseIsTypedArray.js", - "type": "cjs require", - "userRequest": "./isLength", - "loc": "2:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n" - }, - { - "id": 73, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "name": "./node_modules/lodash/_nodeUtil.js", - "index": 643, - "index2": 630, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "issuerId": 42, - "issuerName": "./node_modules/lodash/isTypedArray.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 59, - "building": 37, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - }, - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - }, - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_nodeUtil", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n" - }, - { - "id": 74, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "name": "./node_modules/lodash/_baseKeys.js", - "index": 644, - "index2": 636, - "size": 776, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 25, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "module": "./node_modules/lodash/keys.js", - "moduleName": "./node_modules/lodash/keys.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "2:15-37" - }, - { - "moduleId": 246, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "module": "./node_modules/lodash/isEmpty.js", - "moduleName": "./node_modules/lodash/isEmpty.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "1:15-37" - }, - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_baseKeys", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n" - }, - { - "id": 75, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "name": "./node_modules/lodash/_getSymbols.js", - "index": 656, - "index2": 648, - "size": 886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "issuerId": 208, - "issuerName": "./node_modules/lodash/_copySymbols.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "3:17-41" - }, - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "2:17-41" - }, - { - "moduleId": 208, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "module": "./node_modules/lodash/_copySymbols.js", - "moduleName": "./node_modules/lodash/_copySymbols.js", - "type": "cjs require", - "userRequest": "./_getSymbols", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n" - }, - { - "id": 76, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayPush.js", - "name": "./node_modules/lodash/_arrayPush.js", - "index": 661, - "index2": 650, - "size": 437, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "issuerId": 86, - "issuerName": "./node_modules/lodash/_baseFlatten.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 62, - "building": 25, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 86, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "module": "./node_modules/lodash/_baseFlatten.js", - "moduleName": "./node_modules/lodash/_baseFlatten.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - }, - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - }, - { - "moduleId": 103, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "module": "./node_modules/lodash/_baseGetAllKeys.js", - "moduleName": "./node_modules/lodash/_baseGetAllKeys.js", - "type": "cjs require", - "userRequest": "./_arrayPush", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n" - }, - { - "id": 77, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "name": "./node_modules/lodash/_cloneArrayBuffer.js", - "index": 673, - "index2": 664, - "size": 449, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 106, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneTypedArray.js", - "module": "./node_modules/lodash/_cloneTypedArray.js", - "moduleName": "./node_modules/lodash/_cloneTypedArray.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - }, - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - }, - { - "moduleId": 216, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneDataView.js", - "module": "./node_modules/lodash/_cloneDataView.js", - "moduleName": "./node_modules/lodash/_cloneDataView.js", - "type": "cjs require", - "userRequest": "./_cloneArrayBuffer", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n" - }, - { - "id": 78, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/constant.js", - "name": "./node_modules/lodash/constant.js", - "index": 685, - "index2": 678, - "size": 528, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/constant", - "loc": "9:16-42" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/constant", - "loc": "9:16-42" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./constant", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n" - }, - { - "id": 79, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/each.js", - "name": "./node_modules/lodash/each.js", - "index": 686, - "index2": 687, - "size": 39, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "11:12-34" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "10:12-34" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/each", - "loc": "9:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = require('./forEach');\n" - }, - { - "id": 80, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "name": "./node_modules/lodash/_baseForOwn.js", - "index": 689, - "index2": 681, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "issuerId": 291, - "issuerName": "./node_modules/lodash/mapValues.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 57, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "module": "./node_modules/lodash/_baseEach.js", - "moduleName": "./node_modules/lodash/_baseEach.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "1:17-41" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "3:17-41" - }, - { - "moduleId": 291, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "module": "./node_modules/lodash/mapValues.js", - "moduleName": "./node_modules/lodash/mapValues.js", - "type": "cjs require", - "userRequest": "./_baseForOwn", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n" - }, - { - "id": 81, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "name": "./node_modules/lodash/_baseFor.js", - "index": 690, - "index2": 680, - "size": 593, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "issuerId": 289, - "issuerName": "./node_modules/lodash/forIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 80, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseForOwn.js", - "module": "./node_modules/lodash/_baseForOwn.js", - "moduleName": "./node_modules/lodash/_baseForOwn.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "1:14-35" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "1:14-35" - }, - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_baseFor", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n" - }, - { - "id": 82, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToArray.js", - "name": "./node_modules/lodash/_setToArray.js", - "index": 710, - "index2": 696, - "size": 345, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "6:17-41" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "6:17-41" - }, - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./_setToArray", - "loc": "3:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n" - }, - { - "id": 83, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGet.js", - "name": "./node_modules/lodash/_baseGet.js", - "index": 717, - "index2": 716, - "size": 616, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "issuerId": 303, - "issuerName": "./node_modules/lodash/_basePickBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 63, - "building": 25, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 237, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/get.js", - "module": "./node_modules/lodash/get.js", - "moduleName": "./node_modules/lodash/get.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - }, - { - "moduleId": 244, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePropertyDeep.js", - "module": "./node_modules/lodash/_basePropertyDeep.js", - "moduleName": "./node_modules/lodash/_basePropertyDeep.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - }, - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_baseGet", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n" - }, - { - "id": 84, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKey.js", - "name": "./node_modules/lodash/_isKey.js", - "index": 719, - "index2": 707, - "size": 880, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "issuerId": 58, - "issuerName": "./node_modules/lodash/_castPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "2:12-31" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "4:12-31" - }, - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_isKey", - "loc": "3:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n" - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "index": 734, - "index2": 728, - "size": 757, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "17:12-33" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "12:12-33" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/has", - "loc": "13:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseHas = require('./_baseHas'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\nfunction has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n}\n\nmodule.exports = has;\n" - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "index": 751, - "index2": 744, - "size": 1201, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "issuerId": 308, - "issuerName": "./node_modules/lodash/sortBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 139, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/flatten.js", - "module": "./node_modules/lodash/flatten.js", - "moduleName": "./node_modules/lodash/flatten.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - }, - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - }, - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseFlatten", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n" - }, - { - "id": 87, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseExtremum.js", - "name": "./node_modules/lodash/_baseExtremum.js", - "index": 808, - "index2": 799, - "size": 897, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "issuerId": 300, - "issuerName": "./node_modules/lodash/minBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 75, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - }, - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseExtremum", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isSymbol = require('./isSymbol');\n\n/**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\nfunction baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseExtremum;\n" - }, - { - "id": 88, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-ellipse.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-ellipse.js", - "index": 867, - "index2": 861, - "size": 519, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 149, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "module": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "type": "cjs require", - "userRequest": "./intersect-ellipse", - "loc": "1:23-53" - }, - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-ellipse", - "loc": "4:11-41" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-ellipse", - "loc": "4:23-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectEllipse;\n\nfunction intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n\n var cx = node.x;\n var cy = node.y;\n\n var px = cx - point.x;\n var py = cy - point.y;\n\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n\n var dx = Math.abs(rx * ry * px / det);\n if (point.x < cx) {\n dx = -dx;\n }\n var dy = Math.abs(rx * ry * py / det);\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {x: cx + dx, y: cy + dy};\n}\n\n" - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "index": 875, - "index2": 873, - "size": 970, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "issuerId": 345, - "issuerName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 341, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "module": "./node_modules/dagre-d3/lib/create-nodes.js", - "moduleName": "./node_modules/dagre-d3/lib/create-nodes.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "4:15-43" - }, - { - "moduleId": 344, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "module": "./node_modules/dagre-d3/lib/create-clusters.js", - "moduleName": "./node_modules/dagre-d3/lib/create-clusters.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "3:15-43" - }, - { - "moduleId": 345, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "module": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "type": "cjs require", - "userRequest": "./label/add-label", - "loc": "4:15-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var addTextLabel = require(\"./add-text-label\");\nvar addHtmlLabel = require(\"./add-html-label\");\nvar addSVGLabel = require(\"./add-svg-label\");\n\nmodule.exports = addLabel;\n\nfunction addLabel(root, node, location) {\n var label = node.label;\n var labelSvg = root.append(\"g\");\n\n // Allow the label to be a string, a function that returns a DOM element, or\n // a DOM element itself.\n if (node.labelType === \"svg\") {\n addSVGLabel(labelSvg, node);\n } else if (typeof label !== \"string\" || node.labelType === \"html\") {\n addHtmlLabel(labelSvg, node);\n } else {\n addTextLabel(labelSvg, node);\n }\n\n var labelBBox = labelSvg.node().getBBox();\n var y;\n switch(location) {\n case \"top\":\n y = (-node.height / 2);\n break;\n case \"bottom\":\n y = (node.height / 2) - labelBBox.height;\n break;\n default:\n y = (-labelBBox.height / 2);\n }\n labelSvg.attr(\n \"transform\",\n \"translate(\" + (-labelBBox.width / 2) + \",\" + y + \")\");\n\n return labelSvg;\n}\n" - }, - { - "id": 90, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale/locale.js", - "name": "./node_modules/moment-mini/locale/locale.js", - "index": 545, - "index2": 539, - "size": 0, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "issuerId": 167, - "issuerName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - }, - { - "id": 167, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "name": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - } - } - ], - "profile": { - "factory": 476, - "building": 23 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 167, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "module": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "moduleName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "type": "context element", - "userRequest": "./locale", - "loc": "./locale" - }, - { - "moduleId": 167, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "module": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "moduleName": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "type": "context element", - "userRequest": "./locale.js", - "loc": "./locale.js" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "" - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "index": 577, - "index2": 676, - "size": 5575, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "issuerId": 169, - "issuerName": "./node_modules/lodash/clone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 169, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "module": "./node_modules/lodash/clone.js", - "moduleName": "./node_modules/lodash/clone.js", - "type": "cjs require", - "userRequest": "./_baseClone", - "loc": "1:16-39" - }, - { - "moduleId": 283, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/cloneDeep.js", - "module": "./node_modules/lodash/cloneDeep.js", - "moduleName": "./node_modules/lodash/cloneDeep.js", - "type": "cjs require", - "userRequest": "./_baseClone", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n" - }, - { - "id": 92, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "name": "./node_modules/lodash/_freeGlobal.js", - "index": 599, - "index2": 582, - "size": 173, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "issuerId": 12, - "issuerName": "./node_modules/lodash/_root.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "profile": { - "factory": 76, - "building": 25 - } - } - ], - "profile": { - "factory": 57, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "module": "./node_modules/lodash/_root.js", - "moduleName": "./node_modules/lodash/_root.js", - "type": "cjs require", - "userRequest": "./_freeGlobal", - "loc": "1:17-41" - }, - { - "moduleId": 73, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nodeUtil.js", - "module": "./node_modules/lodash/_nodeUtil.js", - "moduleName": "./node_modules/lodash/_nodeUtil.js", - "type": "cjs require", - "userRequest": "./_freeGlobal", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n" - }, - { - "id": 93, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_toSource.js", - "name": "./node_modules/lodash/_toSource.js", - "index": 606, - "index2": 592, - "size": 556, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_toSource", - "loc": "7:15-37" - }, - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./_toSource", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n" - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "index": 626, - "index2": 615, - "size": 233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "issuerId": 52, - "issuerName": "./node_modules/lodash/_baseAssignValue.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 58, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 52, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "module": "./node_modules/lodash/_baseAssignValue.js", - "moduleName": "./node_modules/lodash/_baseAssignValue.js", - "type": "cjs require", - "userRequest": "./_defineProperty", - "loc": "1:21-49" - }, - { - "moduleId": 259, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "module": "./node_modules/lodash/_baseSetToString.js", - "moduleName": "./node_modules/lodash/_baseSetToString.js", - "type": "cjs require", - "userRequest": "./_defineProperty", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n" - }, - { - "id": 95, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "name": "./node_modules/lodash/_arrayLikeKeys.js", - "index": 630, - "index2": 632, - "size": 1778, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "issuerId": 35, - "issuerName": "./node_modules/lodash/keysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 25, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keys.js", - "module": "./node_modules/lodash/keys.js", - "moduleName": "./node_modules/lodash/keys.js", - "type": "cjs require", - "userRequest": "./_arrayLikeKeys", - "loc": "1:20-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "module": "./node_modules/lodash/keysIn.js", - "moduleName": "./node_modules/lodash/keysIn.js", - "type": "cjs require", - "userRequest": "./_arrayLikeKeys", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n" - }, - { - "id": 96, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overArg.js", - "name": "./node_modules/lodash/_overArg.js", - "index": 647, - "index2": 634, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "issuerId": 56, - "issuerName": "./node_modules/lodash/_getPrototype.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 56, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "name": "./node_modules/lodash/_getPrototype.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 60, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 56, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getPrototype.js", - "module": "./node_modules/lodash/_getPrototype.js", - "moduleName": "./node_modules/lodash/_getPrototype.js", - "type": "cjs require", - "userRequest": "./_overArg", - "loc": "1:14-35" - }, - { - "moduleId": 204, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeys.js", - "module": "./node_modules/lodash/_nativeKeys.js", - "moduleName": "./node_modules/lodash/_nativeKeys.js", - "type": "cjs require", - "userRequest": "./_overArg", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n" - }, - { - "id": 97, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneBuffer.js", - "name": "./node_modules/lodash/_cloneBuffer.js", - "index": 653, - "index2": 644, - "size": 1056, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_cloneBuffer", - "loc": "6:18-43" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_cloneBuffer", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n" - }, - { - "id": 98, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copyArray.js", - "name": "./node_modules/lodash/_copyArray.js", - "index": 654, - "index2": 645, - "size": 454, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copyArray", - "loc": "7:16-39" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_copyArray", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n" - }, - { - "id": 99, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayFilter.js", - "name": "./node_modules/lodash/_arrayFilter.js", - "index": 657, - "index2": 646, - "size": 632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "issuerId": 111, - "issuerName": "./node_modules/lodash/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 75, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "module": "./node_modules/lodash/_getSymbols.js", - "moduleName": "./node_modules/lodash/_getSymbols.js", - "type": "cjs require", - "userRequest": "./_arrayFilter", - "loc": "1:18-43" - }, - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_arrayFilter", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n" - }, - { - "id": 100, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/stubArray.js", - "name": "./node_modules/lodash/stubArray.js", - "index": 658, - "index2": 647, - "size": 390, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "issuerId": 75, - "issuerName": "./node_modules/lodash/_getSymbols.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 75, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "name": "./node_modules/lodash/_getSymbols.js", - "profile": { - "factory": 68, - "building": 39, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 66, - "building": 24 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 75, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbols.js", - "module": "./node_modules/lodash/_getSymbols.js", - "moduleName": "./node_modules/lodash/_getSymbols.js", - "type": "cjs require", - "userRequest": "./stubArray", - "loc": "2:16-38" - }, - { - "moduleId": 101, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "module": "./node_modules/lodash/_getSymbolsIn.js", - "moduleName": "./node_modules/lodash/_getSymbolsIn.js", - "type": "cjs require", - "userRequest": "./stubArray", - "loc": "4:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n" - }, - { - "id": 101, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getSymbolsIn.js", - "name": "./node_modules/lodash/_getSymbolsIn.js", - "index": 660, - "index2": 652, - "size": 754, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "issuerId": 209, - "issuerName": "./node_modules/lodash/_copySymbolsIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 40, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 209, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "module": "./node_modules/lodash/_copySymbolsIn.js", - "moduleName": "./node_modules/lodash/_copySymbolsIn.js", - "type": "cjs require", - "userRequest": "./_getSymbolsIn", - "loc": "2:19-45" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./_getSymbolsIn", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n" - }, - { - "id": 102, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "name": "./node_modules/lodash/_getAllKeys.js", - "index": 663, - "index2": 655, - "size": 455, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getAllKeys", - "loc": "10:17-41" - }, - { - "moduleId": 234, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalObjects.js", - "module": "./node_modules/lodash/_equalObjects.js", - "moduleName": "./node_modules/lodash/_equalObjects.js", - "type": "cjs require", - "userRequest": "./_getAllKeys", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n" - }, - { - "id": 103, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetAllKeys.js", - "name": "./node_modules/lodash/_baseGetAllKeys.js", - "index": 664, - "index2": 654, - "size": 739, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "issuerId": 210, - "issuerName": "./node_modules/lodash/_getAllKeysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 210, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "name": "./node_modules/lodash/_getAllKeysIn.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 102, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeys.js", - "module": "./node_modules/lodash/_getAllKeys.js", - "moduleName": "./node_modules/lodash/_getAllKeys.js", - "type": "cjs require", - "userRequest": "./_baseGetAllKeys", - "loc": "1:21-49" - }, - { - "moduleId": 210, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "module": "./node_modules/lodash/_getAllKeysIn.js", - "moduleName": "./node_modules/lodash/_getAllKeysIn.js", - "type": "cjs require", - "userRequest": "./_baseGetAllKeys", - "loc": "1:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n" - }, - { - "id": 104, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Set.js", - "name": "./node_modules/lodash/_Set.js", - "index": 669, - "index2": 659, - "size": 195, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Set", - "loc": "4:10-27" - }, - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./_Set", - "loc": "1:10-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n" - }, - { - "id": 105, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Uint8Array.js", - "name": "./node_modules/lodash/_Uint8Array.js", - "index": 674, - "index2": 663, - "size": 130, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "issuerId": 77, - "issuerName": "./node_modules/lodash/_cloneArrayBuffer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 77, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "name": "./node_modules/lodash/_cloneArrayBuffer.js", - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 70, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 77, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneArrayBuffer.js", - "module": "./node_modules/lodash/_cloneArrayBuffer.js", - "moduleName": "./node_modules/lodash/_cloneArrayBuffer.js", - "type": "cjs require", - "userRequest": "./_Uint8Array", - "loc": "1:17-41" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_Uint8Array", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n" - }, - { - "id": 106, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneTypedArray.js", - "name": "./node_modules/lodash/_cloneTypedArray.js", - "index": 678, - "index2": 668, - "size": 527, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "issuerId": 296, - "issuerName": "./node_modules/lodash/_baseMergeDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - } - } - ], - "profile": { - "factory": 66, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneTypedArray", - "loc": "5:22-51" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_cloneTypedArray", - "loc": "3:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n" - }, - { - "id": 107, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "name": "./node_modules/lodash/_initCloneObject.js", - "index": 679, - "index2": 671, - "size": 486, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneObject", - "loc": "15:22-51" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_initCloneObject", - "loc": "5:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n" - }, - { - "id": 108, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseCreate.js", - "name": "./node_modules/lodash/_baseCreate.js", - "index": 680, - "index2": 670, - "size": 686, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "issuerId": 255, - "issuerName": "./node_modules/lodash/transform.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 255, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "name": "./node_modules/lodash/transform.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 140, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 107, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneObject.js", - "module": "./node_modules/lodash/_initCloneObject.js", - "moduleName": "./node_modules/lodash/_initCloneObject.js", - "type": "cjs require", - "userRequest": "./_baseCreate", - "loc": "1:17-41" - }, - { - "moduleId": 255, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "module": "./node_modules/lodash/transform.js", - "moduleName": "./node_modules/lodash/transform.js", - "type": "cjs require", - "userRequest": "./_baseCreate", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n" - }, - { - "id": 109, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "name": "./node_modules/lodash/forEach.js", - "index": 687, - "index2": 686, - "size": 1355, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/forEach", - "loc": "15:15-40" - }, - { - "moduleId": 79, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/each.js", - "module": "./node_modules/lodash/each.js", - "moduleName": "./node_modules/lodash/each.js", - "type": "cjs require", - "userRequest": "./forEach", - "loc": "1:17-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayEach = require('./_arrayEach'),\n baseEach = require('./_baseEach'),\n castFunction = require('./_castFunction'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\nfunction forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, castFunction(iteratee));\n}\n\nmodule.exports = forEach;\n" - }, - { - "id": 110, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castFunction.js", - "name": "./node_modules/lodash/_castFunction.js", - "index": 693, - "index2": 685, - "size": 326, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "issuerId": 289, - "issuerName": "./node_modules/lodash/forIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 109, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forEach.js", - "module": "./node_modules/lodash/forEach.js", - "moduleName": "./node_modules/lodash/forEach.js", - "type": "cjs require", - "userRequest": "./_castFunction", - "loc": "3:19-45" - }, - { - "moduleId": 289, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "module": "./node_modules/lodash/forIn.js", - "moduleName": "./node_modules/lodash/forIn.js", - "type": "cjs require", - "userRequest": "./_castFunction", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var identity = require('./identity');\n\n/**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\nfunction castFunction(value) {\n return typeof value == 'function' ? value : identity;\n}\n\nmodule.exports = castFunction;\n" - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "index": 695, - "index2": 726, - "size": 1506, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/filter", - "loc": "12:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/filter", - "loc": "11:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayFilter = require('./_arrayFilter'),\n baseFilter = require('./_baseFilter'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\nfunction filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, baseIteratee(predicate, 3));\n}\n\nmodule.exports = filter;\n" - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "index": 700, - "index2": 700, - "size": 1019, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 227, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "module": "./node_modules/lodash/_baseIsMatch.js", - "moduleName": "./node_modules/lodash/_baseIsMatch.js", - "type": "cjs require", - "userRequest": "./_baseIsEqual", - "loc": "2:18-43" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_baseIsEqual", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n" - }, - { - "id": 113, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "name": "./node_modules/lodash/_equalArrays.js", - "index": 702, - "index2": 694, - "size": 2595, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalArrays", - "loc": "2:18-43" - }, - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_equalArrays", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n" - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "index": 703, - "index2": 691, - "size": 632, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_SetCache", - "loc": "1:15-37" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_SetCache", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n" - }, - { - "id": 115, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cacheHas.js", - "name": "./node_modules/lodash/_cacheHas.js", - "index": 707, - "index2": 693, - "size": 337, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_cacheHas", - "loc": "3:15-37" - }, - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_cacheHas", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n" - }, - { - "id": 116, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isStrictComparable.js", - "name": "./node_modules/lodash/_isStrictComparable.js", - "index": 713, - "index2": 702, - "size": 414, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 235, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "module": "./node_modules/lodash/_getMatchData.js", - "moduleName": "./node_modules/lodash/_getMatchData.js", - "type": "cjs require", - "userRequest": "./_isStrictComparable", - "loc": "1:25-57" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_isStrictComparable", - "loc": "5:25-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n" - }, - { - "id": 117, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_matchesStrictComparable.js", - "name": "./node_modules/lodash/_matchesStrictComparable.js", - "index": 714, - "index2": 704, - "size": 574, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_matchesStrictComparable", - "loc": "3:30-67" - }, - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./_matchesStrictComparable", - "loc": "6:30-67" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n" - }, - { - "id": 118, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "name": "./node_modules/lodash/toString.js", - "index": 724, - "index2": 713, - "size": 580, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "issuerId": 146, - "issuerName": "./node_modules/lodash/uniqueId.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 78, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./toString", - "loc": "4:15-36" - }, - { - "moduleId": 146, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "module": "./node_modules/lodash/uniqueId.js", - "moduleName": "./node_modules/lodash/uniqueId.js", - "type": "cjs require", - "userRequest": "./toString", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n" - }, - { - "id": 119, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "name": "./node_modules/lodash/hasIn.js", - "index": 728, - "index2": 720, - "size": 753, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "issuerId": 302, - "issuerName": "./node_modules/lodash/_basePick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./hasIn", - "loc": "3:12-30" - }, - { - "moduleId": 302, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "module": "./node_modules/lodash/_basePick.js", - "moduleName": "./node_modules/lodash/_basePick.js", - "type": "cjs require", - "userRequest": "./hasIn", - "loc": "2:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n" - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "index": 730, - "index2": 719, - "size": 1085, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "issuerId": 85, - "issuerName": "./node_modules/lodash/has.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 85, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "module": "./node_modules/lodash/has.js", - "moduleName": "./node_modules/lodash/has.js", - "type": "cjs require", - "userRequest": "./_hasPath", - "loc": "2:14-35" - }, - { - "moduleId": 119, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "module": "./node_modules/lodash/hasIn.js", - "moduleName": "./node_modules/lodash/hasIn.js", - "type": "cjs require", - "userRequest": "./_hasPath", - "loc": "2:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n" - }, - { - "id": 121, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseProperty.js", - "name": "./node_modules/lodash/_baseProperty.js", - "index": 732, - "index2": 722, - "size": 360, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "issuerId": 243, - "issuerName": "./node_modules/lodash/property.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 66, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_baseProperty", - "loc": "1:19-45" - }, - { - "moduleId": 252, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_asciiSize.js", - "module": "./node_modules/lodash/_asciiSize.js", - "moduleName": "./node_modules/lodash/_asciiSize.js", - "type": "cjs require", - "userRequest": "./_baseProperty", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n" - }, - { - "id": 122, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isUndefined.js", - "name": "./node_modules/lodash/isUndefined.js", - "index": 737, - "index2": 730, - "size": 416, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isUndefined", - "loc": "18:19-48" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isUndefined", - "loc": "16:19-48" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n return value === undefined;\n}\n\nmodule.exports = isUndefined;\n" - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "index": 738, - "index2": 732, - "size": 1621, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/map", - "loc": "20:11-32" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/map", - "loc": "18:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n" - }, - { - "id": 124, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMap.js", - "name": "./node_modules/lodash/_baseMap.js", - "index": 739, - "index2": 731, - "size": 668, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "issuerId": 123, - "issuerName": "./node_modules/lodash/map.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 123, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "name": "./node_modules/lodash/map.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 123, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/map.js", - "module": "./node_modules/lodash/map.js", - "moduleName": "./node_modules/lodash/map.js", - "type": "cjs require", - "userRequest": "./_baseMap", - "loc": "3:14-35" - }, - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseMap", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n" - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "index": 740, - "index2": 735, - "size": 1806, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/reduce", - "loc": "29:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/reduce", - "loc": "19:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayReduce = require('./_arrayReduce'),\n baseEach = require('./_baseEach'),\n baseIteratee = require('./_baseIteratee'),\n baseReduce = require('./_baseReduce'),\n isArray = require('./isArray');\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\nfunction reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n}\n\nmodule.exports = reduce;\n" - }, - { - "id": 126, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "name": "./node_modules/lodash/_overRest.js", - "index": 754, - "index2": 746, - "size": 1096, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "issuerId": 60, - "issuerName": "./node_modules/lodash/_baseRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 103, - "building": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./_overRest", - "loc": "2:15-37" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./_overRest", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n" - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "index": 756, - "index2": 749, - "size": 392, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "issuerId": 60, - "issuerName": "./node_modules/lodash/_baseRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 103, - "building": 19 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 60, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "module": "./node_modules/lodash/_baseRest.js", - "moduleName": "./node_modules/lodash/_baseRest.js", - "type": "cjs require", - "userRequest": "./_setToString", - "loc": "3:18-43" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./_setToString", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n" - }, - { - "id": 128, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFindIndex.js", - "name": "./node_modules/lodash/_baseFindIndex.js", - "index": 762, - "index2": 751, - "size": 766, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "issuerId": 286, - "issuerName": "./node_modules/lodash/findIndex.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 55, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_baseFindIndex", - "loc": "1:20-47" - }, - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./_baseFindIndex", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n" - }, - { - "id": 129, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArrayLikeObject.js", - "name": "./node_modules/lodash/isArrayLikeObject.js", - "index": 768, - "index2": 760, - "size": 742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "issuerId": 256, - "issuerName": "./node_modules/lodash/union.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./isArrayLikeObject", - "loc": "4:24-54" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isArrayLikeObject", - "loc": "8:24-54" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n" - }, - { - "id": 130, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "name": "./node_modules/lodash/values.js", - "index": 769, - "index2": 763, - "size": 733, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/values", - "loc": "32:14-38" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/values", - "loc": "23:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseValues = require('./_baseValues'),\n keys = require('./keys');\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\nfunction values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n}\n\nmodule.exports = values;\n" - }, - { - "id": 131, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "name": "./node_modules/graphlib/lib/alg/dijkstra.js", - "index": 775, - "index2": 771, - "size": 1357, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./dijkstra", - "loc": "3:12-33" - }, - { - "moduleId": 274, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "type": "cjs require", - "userRequest": "./dijkstra", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = dijkstra;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction dijkstra(g, source, weightFn, edgeFn) {\n return runDijkstra(g, String(source),\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runDijkstra(g, source, weightFn, edgeFn) {\n var results = {};\n var pq = new PriorityQueue();\n var v, vEntry;\n\n var updateNeighbors = function(edge) {\n var w = edge.v !== v ? edge.v : edge.w;\n var wEntry = results[w];\n var weight = weightFn(edge);\n var distance = vEntry.distance + weight;\n\n if (weight < 0) {\n throw new Error(\"dijkstra does not allow negative edge weights. \" +\n \"Bad edge: \" + edge + \" Weight: \" + weight);\n }\n\n if (distance < wEntry.distance) {\n wEntry.distance = distance;\n wEntry.predecessor = v;\n pq.decrease(w, distance);\n }\n };\n\n g.nodes().forEach(function(v) {\n var distance = v === source ? 0 : Number.POSITIVE_INFINITY;\n results[v] = { distance: distance };\n pq.add(v, distance);\n });\n\n while (pq.size() > 0) {\n v = pq.removeMin();\n vEntry = results[v];\n if (vEntry.distance === Number.POSITIVE_INFINITY) {\n break;\n }\n\n edgeFn(v).forEach(updateNeighbors);\n }\n\n return results;\n}\n" - }, - { - "id": 132, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/data/priority-queue.js", - "name": "./node_modules/graphlib/lib/data/priority-queue.js", - "index": 776, - "index2": 770, - "size": 4150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "issuerId": 280, - "issuerName": "./node_modules/graphlib/lib/alg/prim.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 280, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "name": "./node_modules/graphlib/lib/alg/prim.js", - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 69, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 131, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra.js", - "module": "./node_modules/graphlib/lib/alg/dijkstra.js", - "moduleName": "./node_modules/graphlib/lib/alg/dijkstra.js", - "type": "cjs require", - "userRequest": "../data/priority-queue", - "loc": "2:20-53" - }, - { - "moduleId": 280, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "module": "./node_modules/graphlib/lib/alg/prim.js", - "moduleName": "./node_modules/graphlib/lib/alg/prim.js", - "type": "cjs require", - "userRequest": "../data/priority-queue", - "loc": "3:20-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = PriorityQueue;\n\n/**\n * A min-priority queue data structure. This algorithm is derived from Cormen,\n * et al., \"Introduction to Algorithms\". The basic idea of a min-priority\n * queue is that you can efficiently (in O(1) time) get the smallest key in\n * the queue. Adding and removing elements takes O(log n) time. A key can\n * have its priority decreased in O(log n) time.\n */\nfunction PriorityQueue() {\n this._arr = [];\n this._keyIndices = {};\n}\n\n/**\n * Returns the number of elements in the queue. Takes `O(1)` time.\n */\nPriorityQueue.prototype.size = function() {\n return this._arr.length;\n};\n\n/**\n * Returns the keys that are in the queue. Takes `O(n)` time.\n */\nPriorityQueue.prototype.keys = function() {\n return this._arr.map(function(x) { return x.key; });\n};\n\n/**\n * Returns `true` if **key** is in the queue and `false` if not.\n */\nPriorityQueue.prototype.has = function(key) {\n return _.has(this._keyIndices, key);\n};\n\n/**\n * Returns the priority for **key**. If **key** is not present in the queue\n * then this function returns `undefined`. Takes `O(1)` time.\n *\n * @param {Object} key\n */\nPriorityQueue.prototype.priority = function(key) {\n var index = this._keyIndices[key];\n if (index !== undefined) {\n return this._arr[index].priority;\n }\n};\n\n/**\n * Returns the key for the minimum element in this queue. If the queue is\n * empty this function throws an Error. Takes `O(1)` time.\n */\nPriorityQueue.prototype.min = function() {\n if (this.size() === 0) {\n throw new Error(\"Queue underflow\");\n }\n return this._arr[0].key;\n};\n\n/**\n * Inserts a new key into the priority queue. If the key already exists in\n * the queue this function returns `false`; otherwise it will return `true`.\n * Takes `O(n)` time.\n *\n * @param {Object} key the key to add\n * @param {Number} priority the initial priority for the key\n */\nPriorityQueue.prototype.add = function(key, priority) {\n var keyIndices = this._keyIndices;\n key = String(key);\n if (!_.has(keyIndices, key)) {\n var arr = this._arr;\n var index = arr.length;\n keyIndices[key] = index;\n arr.push({key: key, priority: priority});\n this._decrease(index);\n return true;\n }\n return false;\n};\n\n/**\n * Removes and returns the smallest key in the queue. Takes `O(log n)` time.\n */\nPriorityQueue.prototype.removeMin = function() {\n this._swap(0, this._arr.length - 1);\n var min = this._arr.pop();\n delete this._keyIndices[min.key];\n this._heapify(0);\n return min.key;\n};\n\n/**\n * Decreases the priority for **key** to **priority**. If the new priority is\n * greater than the previous priority, this function will throw an Error.\n *\n * @param {Object} key the key for which to raise priority\n * @param {Number} priority the new priority for the key\n */\nPriorityQueue.prototype.decrease = function(key, priority) {\n var index = this._keyIndices[key];\n if (priority > this._arr[index].priority) {\n throw new Error(\"New priority is greater than current priority. \" +\n \"Key: \" + key + \" Old: \" + this._arr[index].priority + \" New: \" + priority);\n }\n this._arr[index].priority = priority;\n this._decrease(index);\n};\n\nPriorityQueue.prototype._heapify = function(i) {\n var arr = this._arr;\n var l = 2 * i;\n var r = l + 1;\n var largest = i;\n if (l < arr.length) {\n largest = arr[l].priority < arr[largest].priority ? l : largest;\n if (r < arr.length) {\n largest = arr[r].priority < arr[largest].priority ? r : largest;\n }\n if (largest !== i) {\n this._swap(i, largest);\n this._heapify(largest);\n }\n }\n};\n\nPriorityQueue.prototype._decrease = function(index) {\n var arr = this._arr;\n var priority = arr[index].priority;\n var parent;\n while (index !== 0) {\n parent = index >> 1;\n if (arr[parent].priority < priority) {\n break;\n }\n this._swap(index, parent);\n index = parent;\n }\n};\n\nPriorityQueue.prototype._swap = function(i, j) {\n var arr = this._arr;\n var keyIndices = this._keyIndices;\n var origArrI = arr[i];\n var origArrJ = arr[j];\n arr[i] = origArrJ;\n arr[j] = origArrI;\n keyIndices[origArrJ.key] = i;\n keyIndices[origArrI.key] = j;\n};\n" - }, - { - "id": 133, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/tarjan.js", - "name": "./node_modules/graphlib/lib/alg/tarjan.js", - "index": 779, - "index2": 773, - "size": 962, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./tarjan", - "loc": "11:10-29" - }, - { - "moduleId": 275, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "module": "./node_modules/graphlib/lib/alg/find-cycles.js", - "moduleName": "./node_modules/graphlib/lib/alg/find-cycles.js", - "type": "cjs require", - "userRequest": "./tarjan", - "loc": "2:13-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = tarjan;\n\nfunction tarjan(g) {\n var index = 0;\n var stack = [];\n var visited = {}; // node id -> { onStack, lowlink, index }\n var results = [];\n\n function dfs(v) {\n var entry = visited[v] = {\n onStack: true,\n lowlink: index,\n index: index++\n };\n stack.push(v);\n\n g.successors(v).forEach(function(w) {\n if (!_.has(visited, w)) {\n dfs(w);\n entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);\n } else if (visited[w].onStack) {\n entry.lowlink = Math.min(entry.lowlink, visited[w].index);\n }\n });\n\n if (entry.lowlink === entry.index) {\n var cmpt = [];\n var w;\n do {\n w = stack.pop();\n visited[w].onStack = false;\n cmpt.push(w);\n } while (v !== w);\n results.push(cmpt);\n }\n }\n\n g.nodes().forEach(function(v) {\n if (!_.has(visited, v)) {\n dfs(v);\n }\n });\n\n return results;\n}\n" - }, - { - "id": 134, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/topsort.js", - "name": "./node_modules/graphlib/lib/alg/topsort.js", - "index": 782, - "index2": 776, - "size": 715, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./topsort", - "loc": "12:11-31" - }, - { - "moduleId": 277, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/is-acyclic.js", - "module": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "moduleName": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "type": "cjs require", - "userRequest": "./topsort", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = topsort;\ntopsort.CycleException = CycleException;\n\nfunction topsort(g) {\n var visited = {};\n var stack = {};\n var results = [];\n\n function visit(node) {\n if (_.has(stack, node)) {\n throw new CycleException();\n }\n\n if (!_.has(visited, node)) {\n stack[node] = true;\n visited[node] = true;\n _.each(g.predecessors(node), visit);\n delete stack[node];\n results.push(node);\n }\n }\n\n _.each(g.sinks(), visit);\n\n if (_.size(visited) !== g.nodeCount()) {\n throw new CycleException();\n }\n\n return results;\n}\n\nfunction CycleException() {}\nCycleException.prototype = new Error(); // must be an instance of Error to pass testing" - }, - { - "id": 135, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dfs.js", - "name": "./node_modules/graphlib/lib/alg/dfs.js", - "index": 784, - "index2": 778, - "size": 1078, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "issuerId": 279, - "issuerName": "./node_modules/graphlib/lib/alg/preorder.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 279, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "name": "./node_modules/graphlib/lib/alg/preorder.js", - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 63, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 278, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/postorder.js", - "module": "./node_modules/graphlib/lib/alg/postorder.js", - "moduleName": "./node_modules/graphlib/lib/alg/postorder.js", - "type": "cjs require", - "userRequest": "./dfs", - "loc": "1:10-26" - }, - { - "moduleId": 279, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "module": "./node_modules/graphlib/lib/alg/preorder.js", - "moduleName": "./node_modules/graphlib/lib/alg/preorder.js", - "type": "cjs require", - "userRequest": "./dfs", - "loc": "1:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = dfs;\n\n/*\n * A helper that preforms a pre- or post-order traversal on the input graph\n * and returns the nodes in the order they were visited. If the graph is\n * undirected then this algorithm will navigate using neighbors. If the graph\n * is directed then this algorithm will navigate using successors.\n *\n * Order must be one of \"pre\" or \"post\".\n */\nfunction dfs(g, vs, order) {\n if (!_.isArray(vs)) {\n vs = [vs];\n }\n\n var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);\n\n var acc = [];\n var visited = {};\n _.each(vs, function(v) {\n if (!g.hasNode(v)) {\n throw new Error(\"Graph does not have node: \" + v);\n }\n\n doDfs(g, v, order === \"post\", visited, navigation, acc);\n });\n return acc;\n}\n\nfunction doDfs(g, v, postorder, visited, navigation, acc) {\n if (!_.has(visited, v)) {\n visited[v] = true;\n\n if (!postorder) { acc.push(v); }\n _.each(navigation(v), function(w) {\n doDfs(g, w, postorder, visited, navigation, acc);\n });\n if (postorder) { acc.push(v); }\n }\n}\n" - }, - { - "id": 136, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/dagre.js", - "name": "./node_modules/dagre-d3/lib/dagre.js", - "index": 789, - "index2": 859, - "size": 232, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/dagre", - "loc": "25:9-31" - }, - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./dagre", - "loc": "3:13-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar dagre;\n\nif (typeof require === \"function\") {\n try {\n dagre = require(\"dagre\");\n } catch (e) {\n // continue regardless of error\n }\n}\n\nif (!dagre) {\n dagre = window.dagre;\n}\n\nmodule.exports = dagre;\n" - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "index": 795, - "index2": 788, - "size": 1754, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/defaults", - "loc": "10:16-42" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/defaults", - "loc": "8:16-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseRest = require('./_baseRest'),\n eq = require('./eq'),\n isIterateeCall = require('./_isIterateeCall'),\n keysIn = require('./keysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\nvar defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n});\n\nmodule.exports = defaults;\n" - }, - { - "id": 138, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "name": "./node_modules/lodash/toFinite.js", - "index": 801, - "index2": 791, - "size": 868, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "issuerId": 306, - "issuerName": "./node_modules/lodash/_createRange.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 81, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 287, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toInteger.js", - "module": "./node_modules/lodash/toInteger.js", - "moduleName": "./node_modules/lodash/toInteger.js", - "type": "cjs require", - "userRequest": "./toFinite", - "loc": "1:15-36" - }, - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./toFinite", - "loc": "3:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n" - }, - { - "id": 139, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/flatten.js", - "name": "./node_modules/lodash/flatten.js", - "index": 803, - "index2": 795, - "size": 489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/flatten", - "loc": "14:15-40" - }, - { - "moduleId": 305, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "module": "./node_modules/lodash/_flatRest.js", - "moduleName": "./node_modules/lodash/_flatRest.js", - "type": "cjs require", - "userRequest": "./flatten", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n" - }, - { - "id": 140, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_assignMergeValue.js", - "name": "./node_modules/lodash/_assignMergeValue.js", - "index": 812, - "index2": 802, - "size": 582, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_assignMergeValue", - "loc": "2:23-53" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_assignMergeValue", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n" - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "index": 814, - "index2": 803, - "size": 1650, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isPlainObject", - "loc": "11:21-52" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./isPlainObject", - "loc": "12:20-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n" - }, - { - "id": 142, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_safeGet.js", - "name": "./node_modules/lodash/_safeGet.js", - "index": 815, - "index2": 804, - "size": 456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_safeGet", - "loc": "7:14-35" - }, - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./_safeGet", - "loc": "14:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n" - }, - { - "id": 143, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseLt.js", - "name": "./node_modules/lodash/_baseLt.js", - "index": 819, - "index2": 810, - "size": 354, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "issuerId": 300, - "issuerName": "./node_modules/lodash/minBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 75, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 299, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "module": "./node_modules/lodash/min.js", - "moduleName": "./node_modules/lodash/min.js", - "type": "cjs require", - "userRequest": "./_baseLt", - "loc": "2:13-33" - }, - { - "moduleId": 300, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "module": "./node_modules/lodash/minBy.js", - "moduleName": "./node_modules/lodash/minBy.js", - "type": "cjs require", - "userRequest": "./_baseLt", - "loc": "3:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\nfunction baseLt(value, other) {\n return value < other;\n}\n\nmodule.exports = baseLt;\n" - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "index": 822, - "index2": 818, - "size": 629, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/pick", - "loc": "27:12-34" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/pick", - "loc": "12:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n" - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "index": 827, - "index2": 821, - "size": 1151, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/range", - "loc": "28:13-36" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/range", - "loc": "14:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var createRange = require('./_createRange');\n\n/**\n * Creates an array of numbers (positive and/or negative) progressing from\n * `start` up to, but not including, `end`. A step of `-1` is used if a negative\n * `start` is specified without an `end` or `step`. If `end` is not specified,\n * it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @param {number} [step=1] The value to increment or decrement by.\n * @returns {Array} Returns the range of numbers.\n * @see _.inRange, _.rangeRight\n * @example\n *\n * _.range(4);\n * // => [0, 1, 2, 3]\n *\n * _.range(-4);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 5);\n * // => [1, 2, 3, 4]\n *\n * _.range(0, 20, 5);\n * // => [0, 5, 10, 15]\n *\n * _.range(0, -4, -1);\n * // => [0, -1, -2, -3]\n *\n * _.range(1, 4, 0);\n * // => [1, 1, 1]\n *\n * _.range(0);\n * // => []\n */\nvar range = createRange();\n\nmodule.exports = range;\n" - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "index": 835, - "index2": 827, - "size": 562, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "issuerId": 38, - "issuerName": "./node_modules/dagre-d3/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - } - ], - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/uniqueId", - "loc": "31:16-42" - }, - { - "moduleId": 38, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "module": "./node_modules/dagre-d3/lib/lodash.js", - "moduleName": "./node_modules/dagre-d3/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/uniqueId", - "loc": "15:16-42" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var toString = require('./toString');\n\n/** Used to generate unique IDs. */\nvar idCounter = 0;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {string} [prefix=''] The value to prefix the ID with.\n * @returns {string} Returns the unique ID.\n * @example\n *\n * _.uniqueId('contact_');\n * // => 'contact_104'\n *\n * _.uniqueId();\n * // => '105'\n */\nfunction uniqueId(prefix) {\n var id = ++idCounter;\n return toString(prefix) + id;\n}\n\nmodule.exports = uniqueId;\n" - }, - { - "id": 147, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/feasible-tree.js", - "name": "./node_modules/dagre/lib/rank/feasible-tree.js", - "index": 845, - "index2": 837, - "size": 2218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./feasible-tree", - "loc": "5:19-45" - }, - { - "moduleId": 320, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "module": "./node_modules/dagre/lib/rank/network-simplex.js", - "moduleName": "./node_modules/dagre/lib/rank/network-simplex.js", - "type": "cjs require", - "userRequest": "./feasible-tree", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar slack = require(\"./util\").slack;\n\nmodule.exports = feasibleTree;\n\n/*\n * Constructs a spanning tree with tight edges and adjusted the input node's\n * ranks to achieve this. A tight edge is one that is has a length that matches\n * its \"minlen\" attribute.\n *\n * The basic structure for this function is derived from Gansner, et al., \"A\n * Technique for Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a DAG.\n * 2. Graph must be connected.\n * 3. Graph must have at least one node.\n * 5. Graph nodes must have been previously assigned a \"rank\" property that\n * respects the \"minlen\" property of incident edges.\n * 6. Graph edges must have a \"minlen\" property.\n *\n * Post-conditions:\n *\n * - Graph nodes will have their rank adjusted to ensure that all edges are\n * tight.\n *\n * Returns a tree (undirected graph) that is constructed using only \"tight\"\n * edges.\n */\nfunction feasibleTree(g) {\n var t = new Graph({ directed: false });\n\n // Choose arbitrary node from which to start our tree\n var start = g.nodes()[0];\n var size = g.nodeCount();\n t.setNode(start, {});\n\n var edge, delta;\n while (tightTree(t, g) < size) {\n edge = findMinSlackEdge(t, g);\n delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);\n shiftRanks(t, g, delta);\n }\n\n return t;\n}\n\n/*\n * Finds a maximal tree of tight edges and returns the number of nodes in the\n * tree.\n */\nfunction tightTree(t, g) {\n function dfs(v) {\n _.forEach(g.nodeEdges(v), function(e) {\n var edgeV = e.v,\n w = (v === edgeV) ? e.w : edgeV;\n if (!t.hasNode(w) && !slack(g, e)) {\n t.setNode(w, {});\n t.setEdge(v, w, {});\n dfs(w);\n }\n });\n }\n\n _.forEach(t.nodes(), dfs);\n return t.nodeCount();\n}\n\n/*\n * Finds the edge with the smallest slack that is incident on tree and returns\n * it.\n */\nfunction findMinSlackEdge(t, g) {\n return _.minBy(g.edges(), function(e) {\n if (t.hasNode(e.v) !== t.hasNode(e.w)) {\n return slack(g, e);\n }\n });\n}\n\nfunction shiftRanks(t, g, delta) {\n _.forEach(t.nodes(), function(v) {\n g.node(v).rank += delta;\n });\n}\n" - }, - { - "id": 148, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-node.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-node.js", - "index": 865, - "index2": 860, - "size": 105, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "issuerId": 338, - "issuerName": "./node_modules/dagre-d3/lib/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-node", - "loc": "2:8-35" - }, - { - "moduleId": 346, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "module": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "moduleName": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-node", - "loc": "4:20-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n return node.intersect(point);\n}\n" - }, - { - "id": 149, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-circle.js", - "index": 866, - "index2": 862, - "size": 185, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-circle", - "loc": "3:10-39" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-circle", - "loc": "5:22-61" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var intersectEllipse = require(\"./intersect-ellipse\");\n\nmodule.exports = intersectCircle;\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n" - }, - { - "id": 150, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "index": 868, - "index2": 864, - "size": 1596, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "issuerId": 350, - "issuerName": "./node_modules/dagre-d3/lib/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-polygon", - "loc": "5:11-41" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-polygon", - "loc": "6:23-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "/* eslint \"no-console\": off */\n\nvar intersectLine = require(\"./intersect-line\");\n\nmodule.exports = intersectPolygon;\n\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n\n var intersections = [];\n\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function(entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point,\n {x: left + p1.x, y: top + p1.y}, {x: left + p2.x, y: top + p2.y});\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log(\"NO INTERSECTION FOUND, RETURN NODE CENTER\", node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function(p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n\n return (distp < distq) ? -1 : (distp === distq ? 0 : 1);\n });\n }\n return intersections[0];\n}\n" - }, - { - "id": 151, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-rect.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-rect.js", - "index": 870, - "index2": 865, - "size": 710, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "issuerId": 338, - "issuerName": "./node_modules/dagre-d3/lib/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 79, - "building": 34 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 338, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "module": "./node_modules/dagre-d3/lib/intersect/index.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/index.js", - "type": "cjs require", - "userRequest": "./intersect-rect", - "loc": "6:8-35" - }, - { - "moduleId": 350, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "module": "./node_modules/dagre-d3/lib/shapes.js", - "moduleName": "./node_modules/dagre-d3/lib/shapes.js", - "type": "cjs require", - "userRequest": "./intersect/intersect-rect", - "loc": "3:20-57" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = intersectRect;\n\nfunction intersectRect(node, point) {\n var x = node.x;\n var y = node.y;\n\n // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n\n var sx, sy;\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {x: x + sx, y: y + sy};\n}\n" - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "index": 524, - "index2": 526, - "size": 2197, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "scope-css", - "loc": "16:0-30" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "scope-css", - "loc": "292:21-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "'use strict'\r\n\r\nvar slugify = require('slugify')\r\nvar escaper = require('escaper')\r\nvar stripComments = require('strip-css-comments')\r\n\r\nmodule.exports = scope\r\nscope.replace = replace\r\n\r\nfunction scope (css, parent, o) {\r\n\tif (!css) return css\r\n\r\n\tif (!parent) return css\r\n\r\n\tif (typeof o === 'string') o = {keyframes: o}\r\n\tif (!o) o = {keyframes: false}\r\n\r\n\tcss = replace(css, parent + ' $1$2')\r\n\r\n\t//regexp.escape\r\n\tvar parentRe = parent.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&')\r\n\r\n\t//replace self-selectors\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*\\\\1(?=[\\\\s\\\\r\\\\n,{])', 'g'), '$1')\r\n\r\n\t//replace `:host` with parent\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*:host', 'g'), '$1')\r\n\r\n\t//revoke wrongly replaced @ statements, like @supports, @import, @media etc.\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*@', 'g'), '@')\r\n\r\n\t//revoke wrongly replaced :root blocks\r\n\tcss = css.replace(new RegExp('(' + parentRe + ')\\\\s*:root', 'g'), ':root')\r\n\r\n\t//animations: prefix animation anmes\r\n\tvar animations = [],\r\n\t animationNameRe = /@keyframes\\s+([a-zA-Z0-9_-]+)\\s*{/g,\r\n\t match\r\n\twhile ((match = animationNameRe.exec(css)) !== null) {\r\n\t\tif (animations.indexOf(match[1]) < 0)\r\n\t\t\tanimations.push(match[1])\r\n\t}\r\n\r\n\tvar slug = slugify(parent)\r\n\r\n\tanimations.forEach(function (name) {\r\n\t\tvar newName = (o.keyframes === true ? slug + '-' : typeof o.keyframes === 'string' ? o.keyframes : '') + name\r\n\t\tcss = css.replace(new RegExp('(@keyframes\\\\s+)' + name + '(\\\\s*{)', 'g'),\r\n\t\t\t\t '$1' + newName + '$2')\r\n\t\tcss = css.replace(new RegExp('(animation(?:-name)?\\\\s*:[^;]*\\\\s*)' + name + '([\\\\s;}])', 'g'),\r\n\t\t\t\t '$1' + newName + '$2')\r\n\t})\r\n \t//animation: revoke wrongly replaced keyframes\r\n\tcss = css.replace(new RegExp('(' + parentRe + ' )(\\\\s*(?:to|from|[+-]?(?:(?:\\\\.\\\\d+)|(?:\\\\d+(?:\\\\.\\\\d*)?))%))(?=[\\\\s\\\\r\\\\n,{])', 'g'), '$2')\r\n\r\n\treturn css\r\n}\r\n\r\nfunction replace (css, replacer) {\r\n\tvar arr = []\r\n\r\n\tcss = stripComments(css)\r\n\r\n\t// escape strings etc.\r\n\tcss = escaper.replace(css, true, arr)\r\n\r\n\tcss = css.replace(/([^\\r\\n,{}]+)(,(?=[^}]*{)|\\s*{)/g, replacer)\r\n\r\n\t// insert comments, strings etc. back\r\n\tcss = escaper.paste(css, arr)\r\n\r\n\treturn css\r\n}\r\n\r\n" - }, - { - "id": 153, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-node.js", - "name": "./src/dagre-wrapper/intersect/intersect-node.js", - "index": 897, - "index2": 891, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-node.js", - "loc": "4:0-39" - }, - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "harmony import specifier", - "userRequest": "./intersect-node.js", - "loc": "10:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}" - }, - { - "id": 154, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/slugify/slugify.js", - "name": "./node_modules/slugify/slugify.js", - "index": 525, - "index2": 522, - "size": 6427, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "slugify", - "loc": "3:14-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "\n;(function (name, root, factory) {\n if (typeof exports === 'object') {\n module.exports = factory()\n module.exports['default'] = factory()\n }\n /* istanbul ignore next */\n else if (typeof define === 'function' && define.amd) {\n define(factory)\n }\n else {\n root[name] = factory()\n }\n}('slugify', this, function () {\n var charMap = JSON.parse('{\"$\":\"dollar\",\"%\":\"percent\",\"&\":\"and\",\"<\":\"less\",\">\":\"greater\",\"|\":\"or\",\"¢\":\"cent\",\"£\":\"pound\",\"¤\":\"currency\",\"¥\":\"yen\",\"©\":\"(c)\",\"ª\":\"a\",\"®\":\"(r)\",\"º\":\"o\",\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"Æ\":\"AE\",\"Ç\":\"C\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"Ð\":\"D\",\"Ñ\":\"N\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"Ý\":\"Y\",\"Þ\":\"TH\",\"ß\":\"ss\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"æ\":\"ae\",\"ç\":\"c\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"ð\":\"d\",\"ñ\":\"n\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"ý\":\"y\",\"þ\":\"th\",\"ÿ\":\"y\",\"Ā\":\"A\",\"ā\":\"a\",\"Ă\":\"A\",\"ă\":\"a\",\"Ą\":\"A\",\"ą\":\"a\",\"Ć\":\"C\",\"ć\":\"c\",\"Č\":\"C\",\"č\":\"c\",\"Ď\":\"D\",\"ď\":\"d\",\"Đ\":\"DJ\",\"đ\":\"dj\",\"Ē\":\"E\",\"ē\":\"e\",\"Ė\":\"E\",\"ė\":\"e\",\"Ę\":\"e\",\"ę\":\"e\",\"Ě\":\"E\",\"ě\":\"e\",\"Ğ\":\"G\",\"ğ\":\"g\",\"Ģ\":\"G\",\"ģ\":\"g\",\"Ĩ\":\"I\",\"ĩ\":\"i\",\"Ī\":\"i\",\"ī\":\"i\",\"Į\":\"I\",\"į\":\"i\",\"İ\":\"I\",\"ı\":\"i\",\"Ķ\":\"k\",\"ķ\":\"k\",\"Ļ\":\"L\",\"ļ\":\"l\",\"Ľ\":\"L\",\"ľ\":\"l\",\"Ł\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ρ\":\"R\",\"Σ\":\"S\",\"Τ\":\"T\",\"Υ\":\"Y\",\"Φ\":\"F\",\"Χ\":\"X\",\"Ψ\":\"PS\",\"Ω\":\"W\",\"Ϊ\":\"I\",\"Ϋ\":\"Y\",\"ά\":\"a\",\"έ\":\"e\",\"ή\":\"h\",\"ί\":\"i\",\"ΰ\":\"y\",\"α\":\"a\",\"β\":\"b\",\"γ\":\"g\",\"δ\":\"d\",\"ε\":\"e\",\"ζ\":\"z\",\"η\":\"h\",\"θ\":\"8\",\"ι\":\"i\",\"κ\":\"k\",\"λ\":\"l\",\"μ\":\"m\",\"ν\":\"n\",\"ξ\":\"3\",\"ο\":\"o\",\"π\":\"p\",\"ρ\":\"r\",\"ς\":\"s\",\"σ\":\"s\",\"τ\":\"t\",\"υ\":\"y\",\"φ\":\"f\",\"χ\":\"x\",\"ψ\":\"ps\",\"ω\":\"w\",\"ϊ\":\"i\",\"ϋ\":\"y\",\"ό\":\"o\",\"ύ\":\"y\",\"ώ\":\"w\",\"Ё\":\"Yo\",\"Ђ\":\"DJ\",\"Є\":\"Ye\",\"І\":\"I\",\"Ї\":\"Yi\",\"Ј\":\"J\",\"Љ\":\"LJ\",\"Њ\":\"NJ\",\"Ћ\":\"C\",\"Џ\":\"DZ\",\"А\":\"A\",\"Б\":\"B\",\"В\":\"V\",\"Г\":\"G\",\"Д\":\"D\",\"Е\":\"E\",\"Ж\":\"Zh\",\"З\":\"Z\",\"И\":\"I\",\"Й\":\"J\",\"К\":\"K\",\"Л\":\"L\",\"М\":\"M\",\"Н\":\"N\",\"О\":\"O\",\"П\":\"P\",\"Р\":\"R\",\"С\":\"S\",\"Т\":\"T\",\"У\":\"U\",\"Ф\":\"F\",\"Х\":\"H\",\"Ц\":\"C\",\"Ч\":\"Ch\",\"Ш\":\"Sh\",\"Щ\":\"Sh\",\"Ъ\":\"U\",\"Ы\":\"Y\",\"Ь\":\"\",\"Э\":\"E\",\"Ю\":\"Yu\",\"Я\":\"Ya\",\"а\":\"a\",\"б\":\"b\",\"в\":\"v\",\"г\":\"g\",\"д\":\"d\",\"е\":\"e\",\"ж\":\"zh\",\"з\":\"z\",\"и\":\"i\",\"й\":\"j\",\"к\":\"k\",\"л\":\"l\",\"м\":\"m\",\"н\":\"n\",\"о\":\"o\",\"п\":\"p\",\"р\":\"r\",\"с\":\"s\",\"т\":\"t\",\"у\":\"u\",\"ф\":\"f\",\"х\":\"h\",\"ц\":\"c\",\"ч\":\"ch\",\"ш\":\"sh\",\"щ\":\"sh\",\"ъ\":\"u\",\"ы\":\"y\",\"ь\":\"\",\"э\":\"e\",\"ю\":\"yu\",\"я\":\"ya\",\"ё\":\"yo\",\"ђ\":\"dj\",\"є\":\"ye\",\"і\":\"i\",\"ї\":\"yi\",\"ј\":\"j\",\"љ\":\"lj\",\"њ\":\"nj\",\"ћ\":\"c\",\"ѝ\":\"u\",\"џ\":\"dz\",\"Ґ\":\"G\",\"ґ\":\"g\",\"Ғ\":\"GH\",\"ғ\":\"gh\",\"Қ\":\"KH\",\"қ\":\"kh\",\"Ң\":\"NG\",\"ң\":\"ng\",\"Ү\":\"UE\",\"ү\":\"ue\",\"Ұ\":\"U\",\"ұ\":\"u\",\"Һ\":\"H\",\"һ\":\"h\",\"Ә\":\"AE\",\"ә\":\"ae\",\"Ө\":\"OE\",\"ө\":\"oe\",\"฿\":\"baht\",\"ა\":\"a\",\"ბ\":\"b\",\"გ\":\"g\",\"დ\":\"d\",\"ე\":\"e\",\"ვ\":\"v\",\"ზ\":\"z\",\"თ\":\"t\",\"ი\":\"i\",\"კ\":\"k\",\"ლ\":\"l\",\"მ\":\"m\",\"ნ\":\"n\",\"ო\":\"o\",\"პ\":\"p\",\"ჟ\":\"zh\",\"რ\":\"r\",\"ს\":\"s\",\"ტ\":\"t\",\"უ\":\"u\",\"ფ\":\"f\",\"ქ\":\"k\",\"ღ\":\"gh\",\"ყ\":\"q\",\"შ\":\"sh\",\"ჩ\":\"ch\",\"ც\":\"ts\",\"ძ\":\"dz\",\"წ\":\"ts\",\"ჭ\":\"ch\",\"ხ\":\"kh\",\"ჯ\":\"j\",\"ჰ\":\"h\",\"Ẁ\":\"W\",\"ẁ\":\"w\",\"Ẃ\":\"W\",\"ẃ\":\"w\",\"Ẅ\":\"W\",\"ẅ\":\"w\",\"ẞ\":\"SS\",\"Ạ\":\"A\",\"ạ\":\"a\",\"Ả\":\"A\",\"ả\":\"a\",\"Ấ\":\"A\",\"ấ\":\"a\",\"Ầ\":\"A\",\"ầ\":\"a\",\"Ẩ\":\"A\",\"ẩ\":\"a\",\"Ẫ\":\"A\",\"ẫ\":\"a\",\"Ậ\":\"A\",\"ậ\":\"a\",\"Ắ\":\"A\",\"ắ\":\"a\",\"Ằ\":\"A\",\"ằ\":\"a\",\"Ẳ\":\"A\",\"ẳ\":\"a\",\"Ẵ\":\"A\",\"ẵ\":\"a\",\"Ặ\":\"A\",\"ặ\":\"a\",\"Ẹ\":\"E\",\"ẹ\":\"e\",\"Ẻ\":\"E\",\"ẻ\":\"e\",\"Ẽ\":\"E\",\"ẽ\":\"e\",\"Ế\":\"E\",\"ế\":\"e\",\"Ề\":\"E\",\"ề\":\"e\",\"Ể\":\"E\",\"ể\":\"e\",\"Ễ\":\"E\",\"ễ\":\"e\",\"Ệ\":\"E\",\"ệ\":\"e\",\"Ỉ\":\"I\",\"ỉ\":\"i\",\"Ị\":\"I\",\"ị\":\"i\",\"Ọ\":\"O\",\"ọ\":\"o\",\"Ỏ\":\"O\",\"ỏ\":\"o\",\"Ố\":\"O\",\"ố\":\"o\",\"Ồ\":\"O\",\"ồ\":\"o\",\"Ổ\":\"O\",\"ổ\":\"o\",\"Ỗ\":\"O\",\"ỗ\":\"o\",\"Ộ\":\"O\",\"ộ\":\"o\",\"Ớ\":\"O\",\"ớ\":\"o\",\"Ờ\":\"O\",\"ờ\":\"o\",\"Ở\":\"O\",\"ở\":\"o\",\"Ỡ\":\"O\",\"ỡ\":\"o\",\"Ợ\":\"O\",\"ợ\":\"o\",\"Ụ\":\"U\",\"ụ\":\"u\",\"Ủ\":\"U\",\"ủ\":\"u\",\"Ứ\":\"U\",\"ứ\":\"u\",\"Ừ\":\"U\",\"ừ\":\"u\",\"Ử\":\"U\",\"ử\":\"u\",\"Ữ\":\"U\",\"ữ\":\"u\",\"Ự\":\"U\",\"ự\":\"u\",\"Ỳ\":\"Y\",\"ỳ\":\"y\",\"Ỵ\":\"Y\",\"ỵ\":\"y\",\"Ỷ\":\"Y\",\"ỷ\":\"y\",\"Ỹ\":\"Y\",\"ỹ\":\"y\",\"‘\":\"\\'\",\"’\":\"\\'\",\"“\":\"\\\\\\\"\",\"”\":\"\\\\\\\"\",\"†\":\"+\",\"•\":\"*\",\"…\":\"...\",\"₠\":\"ecu\",\"₢\":\"cruzeiro\",\"₣\":\"french franc\",\"₤\":\"lira\",\"₥\":\"mill\",\"₦\":\"naira\",\"₧\":\"peseta\",\"₨\":\"rupee\",\"₩\":\"won\",\"₪\":\"new shequel\",\"₫\":\"dong\",\"€\":\"euro\",\"₭\":\"kip\",\"₮\":\"tugrik\",\"₯\":\"drachma\",\"₰\":\"penny\",\"₱\":\"peso\",\"₲\":\"guarani\",\"₳\":\"austral\",\"₴\":\"hryvnia\",\"₵\":\"cedi\",\"₸\":\"kazakhstani tenge\",\"₹\":\"indian rupee\",\"₽\":\"russian ruble\",\"₿\":\"bitcoin\",\"℠\":\"sm\",\"™\":\"tm\",\"∂\":\"d\",\"∆\":\"delta\",\"∑\":\"sum\",\"∞\":\"infinity\",\"♥\":\"love\",\"元\":\"yuan\",\"円\":\"yen\",\"﷼\":\"rial\"}')\n var locales = JSON.parse('{\"vi\":{\"Đ\":\"D\",\"đ\":\"d\"}}')\n\n function replace (string, options) {\n if (typeof string !== 'string') {\n throw new Error('slugify: string argument expected')\n }\n\n options = (typeof options === 'string')\n ? { replacement: options }\n : options || {}\n\n var locale = locales[options.locale] || {}\n\n var slug = string.split('')\n .reduce(function (result, ch) {\n return result + (locale[ch] || charMap[ch] || ch)\n // allowed\n .replace(options.remove || /[^\\w\\s$*_+~.()'\"!\\-:@]/g, '')\n }, '')\n // trim leading/trailing spaces\n .trim()\n // convert spaces\n .replace(/[-\\s]+/g, options.replacement || '-')\n\n return options.lower ? slug.toLowerCase() : slug\n }\n\n replace.extend = function (customMap) {\n for (var key in customMap) {\n charMap[key] = customMap[key]\n }\n }\n\n return replace\n}))\n" - }, - { - "id": 155, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/escaper/dist/escaper.js", - "name": "./node_modules/escaper/dist/escaper.js", - "index": 526, - "index2": 523, - "size": 9818, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "escaper", - "loc": "4:14-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "/*!\n * Escaper v2.5.3\n * https://github.com/kobezzza/Escaper\n *\n * Released under the MIT license\n * https://github.com/kobezzza/Escaper/blob/master/LICENSE\n *\n * Date: Tue, 23 Jan 2018 15:58:45 GMT\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define('Escaper', ['exports'], factory) :\n\t(factory((global.Escaper = {})));\n}(this, (function (exports) { 'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar Escaper = void 0;\nvar escaper = Escaper = {\n\tVERSION: [2, 5, 3],\n\tcontent: [],\n\tcache: {},\n\tsnakeskinRgxp: null,\n\tsymbols: null,\n\treplace: replace,\n\tpaste: paste\n};\n\nvar stringLiterals = {\n\t'\"': true,\n\t'\\'': true,\n\t'`': true\n};\n\nvar literals = {\n\t'/': true\n};\n\nfor (var key in stringLiterals) {\n\tif (!stringLiterals.hasOwnProperty(key)) {\n\t\tbreak;\n\t}\n\n\tliterals[key] = true;\n}\n\nvar singleComments = {\n\t'//': true,\n\t'//*': true,\n\t'//!': true,\n\t'//#': true,\n\t'//@': true,\n\t'//$': true\n};\n\nvar multComments = {\n\t'/*': true,\n\t'/**': true,\n\t'/*!': true,\n\t'/*#': true,\n\t'/*@': true,\n\t'/*$': true\n};\n\nvar keyArr = [];\nvar finalMap = {};\n\nfor (var _key in literals) {\n\tif (!literals.hasOwnProperty(_key)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key);\n\tfinalMap[_key] = true;\n}\n\nfor (var _key2 in singleComments) {\n\tif (!singleComments.hasOwnProperty(_key2)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key2);\n\tfinalMap[_key2] = true;\n}\n\nfor (var _key3 in multComments) {\n\tif (!multComments.hasOwnProperty(_key3)) {\n\t\tbreak;\n\t}\n\n\tkeyArr.push(_key3);\n\tfinalMap[_key3] = true;\n}\n\nvar rgxpFlags = [];\nvar rgxpFlagsMap = {\n\t'g': true,\n\t'm': true,\n\t'i': true,\n\t'y': true,\n\t'u': true\n};\n\nfor (var _key4 in rgxpFlagsMap) {\n\tif (!rgxpFlagsMap.hasOwnProperty(_key4)) {\n\t\tbreak;\n\t}\n\n\trgxpFlags.push(_key4);\n}\n\nvar escapeEndMap = {\n\t'-': true,\n\t'+': true,\n\t'*': true,\n\t'%': true,\n\t'~': true,\n\t'>': true,\n\t'<': true,\n\t'^': true,\n\t',': true,\n\t';': true,\n\t'=': true,\n\t'|': true,\n\t'&': true,\n\t'!': true,\n\t'?': true,\n\t':': true,\n\t'(': true,\n\t'{': true,\n\t'[': true\n};\n\nvar escapeEndWordMap = {\n\t'return': true,\n\t'yield': true,\n\t'await': true,\n\t'typeof': true,\n\t'void': true,\n\t'instanceof': true,\n\t'delete': true,\n\t'in': true,\n\t'new': true,\n\t'of': true\n};\n\n/**\n * @param {!Object} obj\n * @param {!Object} p\n * @param {(boolean|number)} val\n */\nfunction mix(obj, p, val) {\n\tfor (var _key5 in obj) {\n\t\tif (!obj.hasOwnProperty(_key5)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (_key5 in p === false) {\n\t\t\tp[_key5] = val;\n\t\t}\n\t}\n}\n\nvar symbols = void 0;\nvar snakeskinRgxp = void 0;\n\nvar uSRgxp = /[^\\s/]/;\nvar wRgxp = /[a-z]/;\nvar sRgxp = /\\s/;\nvar nRgxp = /[\\r\\n]/;\nvar posRgxp = /\\${pos}/g;\n\nvar objMap = {\n\t'object': true,\n\t'function': true\n};\n\n/**\n * Replaces all found blocks ' ... ', \" ... \", ` ... `, / ... /, // ..., /* ... *\\/ to\n * __ESCAPER_QUOT__number_ in a string and returns a new string\n *\n * @param {string} str - source string\n * @param {(Object|boolean)=} [opt_withCommentsOrParams=false] - parameters:\n *\n * (if a parameter value is set to -1, then all found matches will be removed from the final string,\n * or if the value will be set to true/false they will be included/excluded)\n *\n * *) @label - template for replacement, e.g. __ESCAPER_QUOT__${pos}_\n * *) @all - replaces all found matches\n * *) @comments - replaces all kinds of comments\n * *) @strings - replaces all kinds of string literals\n * *) @literals - replaces all kinds of string literals and regular expressions\n * *) `\n * *) '\n * *) \"\n * *) /\n * *) //\n * *) //*\n * *) //!\n * *) //#\n * *) //@\n * *) //$\n * *) /*\n * *) /**\n * *) /*!\n * *) /*#\n * *) /*@\n * *) /*$\n *\n * OR if the value is boolean, then will be replaced all found comments (true) / literals (false)\n *\n * @param {Array=} [opt_content=Escaper.content] - array for matches\n * @param {?boolean=} [opt_snakeskin] - private parameter for using with Snakeskin\n * @return {string}\n */\nfunction replace(str, opt_withCommentsOrParams, opt_content, opt_snakeskin) {\n\tsymbols = symbols || Escaper.symbols || 'a-z';\n\tsnakeskinRgxp = snakeskinRgxp || Escaper.snakeskinRgxp || new RegExp('[!$' + symbols + '_]', 'i');\n\n\tvar _Escaper = Escaper,\n\t cache = _Escaper.cache,\n\t content = _Escaper.content;\n\n\n\tvar isObj = Boolean(opt_withCommentsOrParams && objMap[typeof opt_withCommentsOrParams === 'undefined' ? 'undefined' : _typeof(opt_withCommentsOrParams)]);\n\n\tvar p = isObj ? Object(opt_withCommentsOrParams) : {};\n\n\tfunction mark(pos) {\n\t\tif (p['@label']) {\n\t\t\treturn p['@label'].replace(posRgxp, pos);\n\t\t}\n\n\t\treturn '__ESCAPER_QUOT__' + pos + '_';\n\t}\n\n\tvar withComments = false;\n\tif (typeof opt_withCommentsOrParams === 'boolean') {\n\t\twithComments = Boolean(opt_withCommentsOrParams);\n\t}\n\n\tif ('@comments' in p) {\n\t\tmix(multComments, p, p['@comments']);\n\t\tmix(singleComments, p, p['@comments']);\n\t\tdelete p['@comments'];\n\t}\n\n\tif ('@strings' in p) {\n\t\tmix(stringLiterals, p, p['@strings']);\n\t\tdelete p['@strings'];\n\t}\n\n\tif ('@literals' in p) {\n\t\tmix(literals, p, p['@literals']);\n\t\tdelete p['@literals'];\n\t}\n\n\tif ('@all' in p) {\n\t\tmix(finalMap, p, p['@all']);\n\t\tdelete p['@all'];\n\t}\n\n\tvar cacheKey = '';\n\tfor (var i = -1; ++i < keyArr.length;) {\n\t\tvar el = keyArr[i];\n\n\t\tif (multComments[el] || singleComments[el]) {\n\t\t\tp[el] = withComments || p[el];\n\t\t} else {\n\t\t\tp[el] = p[el] || !isObj;\n\t\t}\n\n\t\tcacheKey += p[el] + ',';\n\t}\n\n\tvar initStr = str,\n\t stack = opt_content || content;\n\n\tif (stack === content && cache[cacheKey] && cache[cacheKey][initStr]) {\n\t\treturn cache[cacheKey][initStr];\n\t}\n\n\tvar begin = false,\n\t end = true;\n\n\tvar escape = false,\n\t comment = false;\n\n\tvar selectionStart = 0,\n\t block = false;\n\n\tvar templateVar = 0,\n\t filterStart = false;\n\n\tvar cut = void 0,\n\t label = void 0;\n\n\tvar part = '',\n\t rPart = '';\n\n\tfor (var _i = -1; ++_i < str.length;) {\n\t\tvar _el = str.charAt(_i);\n\n\t\tvar next = str.charAt(_i + 1),\n\t\t word = str.substr(_i, 2),\n\t\t extWord = str.substr(_i, 3);\n\n\t\tif (!comment) {\n\t\t\tif (!begin) {\n\t\t\t\tif (_el === '/') {\n\t\t\t\t\tif (singleComments[word] || multComments[word]) {\n\t\t\t\t\t\tif (singleComments[extWord] || multComments[extWord]) {\n\t\t\t\t\t\t\tcomment = extWord;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcomment = word;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (comment) {\n\t\t\t\t\t\tselectionStart = _i;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (escapeEndMap[_el] || escapeEndWordMap[rPart]) {\n\t\t\t\t\tend = true;\n\t\t\t\t\trPart = '';\n\t\t\t\t} else if (uSRgxp.test(_el)) {\n\t\t\t\t\tend = false;\n\t\t\t\t}\n\n\t\t\t\tif (wRgxp.test(_el)) {\n\t\t\t\t\tpart += _el;\n\t\t\t\t} else {\n\t\t\t\t\trPart = part;\n\t\t\t\t\tpart = '';\n\t\t\t\t}\n\n\t\t\t\tvar skip = false;\n\t\t\t\tif (opt_snakeskin) {\n\t\t\t\t\tif (_el === '|' && snakeskinRgxp.test(next)) {\n\t\t\t\t\t\tfilterStart = true;\n\t\t\t\t\t\tend = false;\n\t\t\t\t\t\tskip = true;\n\t\t\t\t\t} else if (filterStart && sRgxp.test(_el)) {\n\t\t\t\t\t\tfilterStart = false;\n\t\t\t\t\t\tend = true;\n\t\t\t\t\t\tskip = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!skip) {\n\t\t\t\t\tif (escapeEndMap[_el]) {\n\t\t\t\t\t\tend = true;\n\t\t\t\t\t} else if (uSRgxp.test(_el)) {\n\t\t\t\t\t\tend = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// [] inside RegExp\n\t\t\tif (begin === '/' && !escape) {\n\t\t\t\tif (_el === '[') {\n\t\t\t\t\tblock = true;\n\t\t\t\t} else if (_el === ']') {\n\t\t\t\t\tblock = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!begin && templateVar) {\n\t\t\t\tif (_el === '}') {\n\t\t\t\t\ttemplateVar--;\n\t\t\t\t} else if (_el === '{') {\n\t\t\t\t\ttemplateVar++;\n\t\t\t\t}\n\n\t\t\t\tif (!templateVar) {\n\t\t\t\t\t_el = '`';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (begin === '`' && !escape && word === '${') {\n\t\t\t\t_el = '`';\n\t\t\t\t_i++;\n\t\t\t\ttemplateVar++;\n\t\t\t}\n\n\t\t\tif (finalMap[_el] && (_el !== '/' || end) && !begin) {\n\t\t\t\tbegin = _el;\n\t\t\t\tselectionStart = _i;\n\t\t\t} else if (begin && (_el === '\\\\' || escape)) {\n\t\t\t\tescape = !escape;\n\t\t\t} else if (finalMap[_el] && begin === _el && !escape && (begin !== '/' || !block)) {\n\t\t\t\tif (_el === '/') {\n\t\t\t\t\tfor (var j = -1; ++j < rgxpFlags.length;) {\n\t\t\t\t\t\tif (rgxpFlagsMap[str.charAt(_i + 1)]) {\n\t\t\t\t\t\t\t_i++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbegin = false;\n\t\t\t\tend = false;\n\n\t\t\t\tif (p[_el]) {\n\t\t\t\t\tcut = str.substring(selectionStart, _i + 1);\n\n\t\t\t\t\tif (p[_el] === -1) {\n\t\t\t\t\t\tlabel = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlabel = mark(stack.length);\n\t\t\t\t\t\tstack.push(cut);\n\t\t\t\t\t}\n\n\t\t\t\t\tstr = str.substring(0, selectionStart) + label + str.substring(_i + 1);\n\t\t\t\t\t_i += label.length - cut.length;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (nRgxp.test(next) && singleComments[comment] || multComments[_el + str.charAt(_i - 1)] && _i - selectionStart > 2 && multComments[comment]) {\n\t\t\tif (p[comment]) {\n\t\t\t\tcut = str.substring(selectionStart, _i + 1);\n\n\t\t\t\tif (p[comment] === -1) {\n\t\t\t\t\tlabel = '';\n\t\t\t\t} else {\n\t\t\t\t\tlabel = mark(stack.length);\n\t\t\t\t\tstack.push(cut);\n\t\t\t\t}\n\n\t\t\t\tstr = str.substring(0, selectionStart) + label + str.substring(_i + 1);\n\t\t\t\t_i += label.length - cut.length;\n\t\t\t}\n\n\t\t\tcomment = false;\n\t\t}\n\t}\n\n\tif (stack === content) {\n\t\tcache[cacheKey] = cache[cacheKey] || {};\n\t\tcache[cacheKey][initStr] = str;\n\t}\n\n\treturn str;\n}\n\nvar pasteRgxp = /__ESCAPER_QUOT__(\\d+)_/g;\n\n/**\n * Replaces all found blocks __ESCAPER_QUOT__number_ to real content in a string\n * and returns a new string\n *\n * @param {string} str - source string\n * @param {Array=} [opt_content=Escaper.content] - array of matches\n * @param {RegExp=} [opt_rgxp] - RegExp for searching, e.g. /__ESCAPER_QUOT__(\\d+)_/g\n * @return {string}\n */\nfunction paste(str, opt_content, opt_rgxp) {\n\treturn str.replace(opt_rgxp || pasteRgxp, function (str, pos) {\n\t\treturn (opt_content || Escaper.content)[pos];\n\t});\n}\n\nexports['default'] = escaper;\nexports.replace = replace;\nexports.paste = paste;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n" - }, - { - "id": 156, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "name": "./node_modules/strip-css-comments/index.js", - "index": 527, - "index2": 525, - "size": 1789, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "issuerId": 152, - "issuerName": "./node_modules/scope-css/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1973, - "building": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 152, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "module": "./node_modules/scope-css/index.js", - "moduleName": "./node_modules/scope-css/index.js", - "type": "cjs require", - "userRequest": "strip-css-comments", - "loc": "5:20-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "'use strict';\nvar isRegExp = require('is-regexp');\n\nmodule.exports = function (str, opts) {\n\tstr = str.toString();\n\topts = opts || {};\n\n\tvar preserveFilter;\n\tvar comment = '';\n\tvar currentChar = '';\n\tvar insideString = false;\n\tvar preserveImportant = !(opts.preserve === false || opts.all === true);\n\tvar ret = '';\n\n\tif (typeof opts.preserve === 'function') {\n\t\tpreserveImportant = false;\n\t\tpreserveFilter = opts.preserve;\n\t} else if (isRegExp(opts.preserve)) {\n\t\tpreserveImportant = false;\n\t\tpreserveFilter = function (comment) {\n\t\t\treturn opts.preserve.test(comment);\n\t\t};\n\t}\n\n\tfor (var i = 0; i < str.length; i++) {\n\t\tcurrentChar = str[i];\n\n\t\tif (str[i - 1] !== '\\\\') {\n\t\t\tif (currentChar === '\"' || currentChar === '\\'') {\n\t\t\t\tif (insideString === currentChar) {\n\t\t\t\t\tinsideString = false;\n\t\t\t\t} else if (!insideString) {\n\t\t\t\t\tinsideString = currentChar;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// find beginning of /* type comment\n\t\tif (!insideString && currentChar === '/' && str[i + 1] === '*') {\n\t\t\t// ignore important comment when configured to preserve comments using important syntax: /*!\n\t\t\tif (!(preserveImportant && str[i + 2] === '!')) {\n\t\t\t\tvar j = i + 2;\n\n\t\t\t\t// iterate over comment\n\t\t\t\tfor (; j < str.length; j++) {\n\t\t\t\t\t// find end of comment\n\t\t\t\t\tif (str[j] === '*' && str[j + 1] === '/') {\n\t\t\t\t\t\tif (preserveFilter) {\n\t\t\t\t\t\t\t// evaluate comment text\n\t\t\t\t\t\t\tret = preserveFilter(comment) ? ret + ('/*' + comment + '*/') : ret;\n\t\t\t\t\t\t\tcomment = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// store comment text to be evaluated by the filter when the end of the comment is reached\n\t\t\t\t\tif (preserveFilter) {\n\t\t\t\t\t\tcomment += str[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// resume iteration over CSS string from the end of the comment\n\t\t\t\ti = j + 1;\n\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tret += currentChar;\n\t}\n\n\treturn ret;\n};\n" - }, - { - "id": 157, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/is-regexp/index.js", - "name": "./node_modules/is-regexp/index.js", - "index": 528, - "index2": 524, - "size": 116, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "issuerId": 156, - "issuerName": "./node_modules/strip-css-comments/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 152, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/scope-css/index.js", - "name": "./node_modules/scope-css/index.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 156, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "name": "./node_modules/strip-css-comments/index.js", - "profile": { - "factory": 1973, - "building": 98 - } - } - ], - "profile": { - "factory": 272, - "building": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 156, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/strip-css-comments/index.js", - "module": "./node_modules/strip-css-comments/index.js", - "moduleName": "./node_modules/strip-css-comments/index.js", - "type": "cjs require", - "userRequest": "is-regexp", - "loc": "2:15-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "'use strict';\nmodule.exports = function (re) {\n\treturn Object.prototype.toString.call(re) === '[object RegExp]';\n};\n" - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "index": 529, - "index2": 536, - "size": 256, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 353, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "module": "./src/mermaid.js + 51 modules", - "moduleName": "./src/mermaid.js + 51 modules", - "type": "cjs require context", - "userRequest": "./themes", - "loc": "59:22-75" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 159, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "index": 530, - "index2": 529, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./dark/index.scss", - "loc": "./dark/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 160, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "index": 531, - "index2": 528, - "size": 8104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "issuerId": 159, - "issuerName": "./src/themes/dark/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 159, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3947, - "dependencies": 10 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 159, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./src/themes/dark/index.scss", - "moduleName": "./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#d3d3d3}.edgePath .path{stroke:#d3d3d3;stroke-width:1.5px}.flowchart-link{stroke:#d3d3d3;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#474949;stroke:rgba(255,255,255,0.25);stroke-width:1px}.cluster text{fill:#F9FFFE}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#474949;border:1px solid rgba(255,255,255,0.25);border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#81B1DB;fill:#1f2020}text.actor>tspan{fill:#d3d3d3;stroke:none}.actor-line{stroke:#d3d3d3}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#d3d3d3}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#d3d3d3}#arrowhead path{fill:#d3d3d3;stroke:#d3d3d3}.sequenceNumber{fill:#000}#sequencenumber{fill:#d3d3d3}#crosshead path{fill:#d3d3d3;stroke:#d3d3d3}.messageText{fill:#d3d3d3;stroke:#d3d3d3}.labelBox{stroke:#81B1DB;fill:#1f2020}.labelText,.labelText>tspan{fill:#d3d3d3;stroke:none}.loopText,.loopText>tspan{fill:#d3d3d3;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#81B1DB;fill:#81B1DB}.note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.noteText,.noteText>tspan{fill:#1f2020;stroke:none}.activation0{fill:#474949;stroke:#81B1DB}.activation1{fill:#474949;stroke:#81B1DB}.activation2{fill:#474949;stroke:#81B1DB}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(255,255,255,0.3)}.section2{fill:#EAE8B9}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#F9FFFE}.sectionTitle1{fill:#F9FFFE}.sectionTitle2{fill:#F9FFFE}.sectionTitle3{fill:#F9FFFE}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#DB5757;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#323D47;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#323D47;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#323D47}.task0,.task1,.task2,.task3{fill:#1f2020;stroke:rgba(255,255,255,0.5)}.taskTextOutside0,.taskTextOutside2{fill:#d3d3d3}.taskTextOutside1,.taskTextOutside3{fill:#d3d3d3}.active0,.active1,.active2,.active3{fill:#81B1DB;stroke:rgba(255,255,255,0.5)}.activeText0,.activeText1,.activeText2,.activeText3{fill:#323D47 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#323D47 !important}.crit0,.crit1,.crit2,.crit3{stroke:#E83737;fill:#E83737;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#E83737;fill:#81B1DB;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#E83737;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#323D47 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#323D47 !important}.titleText{text-anchor:middle;font-size:18px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#81B1DB;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#1f2020;stroke:#81B1DB}g.classGroup line{stroke:#81B1DB;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.classLabel .label{fill:#81B1DB;font-size:10px}.relation{stroke:#81B1DB;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#compositionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#aggregationStart{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#aggregationEnd{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#dependencyStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#dependencyEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#1f2020;stroke:#81B1DB}g.stateGroup line{stroke:#81B1DB;stroke-width:1}.transition{stroke:#81B1DB;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#81B1DB}.statediagram-cluster rect{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#81B1DB}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:rgba(255,255,255,0.25);stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#a44141}.error-text{fill:#ddd;stroke:#ddd}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#d3d3d3}.marker.cross{stroke:#d3d3d3}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 161, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "index": 533, - "index2": 531, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./default/index.scss", - "loc": "./default/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 162, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "index": 534, - "index2": 530, - "size": 7841, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "issuerId": 161, - "issuerName": "./src/themes/default/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 161, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3955, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 161, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./src/themes/default/index.scss", - "moduleName": "./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#333;stroke-width:1.5px}.flowchart-link{stroke:#333;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#ccf;fill:#ECECFF}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#ccf;fill:#ECECFF}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}.note{stroke:#aa3;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(102,102,255,0.49)}.section2{fill:#fff400}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#8a90dd;stroke:#534fbc}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#bfc7ff;stroke:#534fbc}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#ECECFF;stroke:#9370db}g.classGroup line{stroke:#9370db;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.classLabel .label{fill:#9370db;font-size:10px}.relation{stroke:#9370db;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#ECECFF;stroke:#9370db}g.stateGroup line{stroke:#9370db;stroke-width:1}.transition{stroke:#9370db;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#aa3;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#9370db}.statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#9370db}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#333}.marker.cross{stroke:#333}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "index": 535, - "index2": 533, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./forest/index.scss", - "loc": "./forest/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 164, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "index": 536, - "index2": 532, - "size": 7858, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 163, - "issuerName": "./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 163, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 1, - "building": 3929 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 163, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./src/themes/forest/index.scss", - "moduleName": "./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#cde498;stroke:#13540c;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:green}.edgePath .path{stroke:green;stroke-width:1.5px}.flowchart-link{stroke:green;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#cdffb2;stroke:#6eaa49;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#cdffb2;border:1px solid #6eaa49;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#13540c;fill:#cde498}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#326932;fill:#cde498}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#326932;fill:#326932}.note{stroke:#6eaa49;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#6eaa49}.section2{fill:#6eaa49}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#487e3a;stroke:#13540c}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#cde498;stroke:#13540c}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#cde498;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#13540c;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#cde498;stroke:#13540c}g.classGroup line{stroke:#13540c;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.classLabel .label{fill:#13540c;font-size:10px}.relation{stroke:#13540c;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#compositionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#aggregationStart{fill:#cde498;stroke:#13540c;stroke-width:1}#aggregationEnd{fill:#cde498;stroke:#13540c;stroke-width:1}#dependencyStart{fill:#13540c;stroke:#13540c;stroke-width:1}#dependencyEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#cde498;stroke:#13540c}g.stateGroup line{stroke:#13540c;stroke-width:1}.transition{stroke:#13540c;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#6eaa49;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#13540c}.statediagram-cluster rect{fill:#cde498;stroke:#13540c;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#13540c}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#6eaa49;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:green}.marker.cross{stroke:green}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 165, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "index": 537, - "index2": 535, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 158, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1847, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 158, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./neutral/index.scss", - "loc": "./neutral/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 166, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "index": 538, - "index2": 534, - "size": 7696, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "issuerId": 165, - "issuerName": "./src/themes/neutral/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 158, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 165, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "profile": { - "factory": 1847, - "building": 0 - } - } - ], - "profile": { - "factory": 1, - "building": 3982, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 165, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./src/themes/neutral/index.scss", - "moduleName": "./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#eee;stroke:#999;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#666;stroke-width:1.5px}.flowchart-link{stroke:#666;fill:none}.edgeLabel{background-color:#fff;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#eaf2fb;stroke:#26a;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#eaf2fb;border:1px solid #26a;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#999;fill:#eee}text.actor>tspan{fill:#333;stroke:none}.actor-line{stroke:#666}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#999;fill:#eee}.labelText,.labelText>tspan{fill:#333;stroke:none}.loopText,.loopText>tspan{fill:#333;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#999;fill:#999}.note{stroke:#770;fill:#ffa}.noteText,.noteText>tspan{fill:#333;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#80b3e6}.section2{fill:#80b3e6}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#e6e6e6;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#d42;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#333;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#333;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#26a;stroke:#1a4d80}.taskTextOutside0,.taskTextOutside2{fill:#333}.taskTextOutside1,.taskTextOutside3{fill:#333}.active0,.active1,.active2,.active3{fill:#eee;stroke:#1a4d80}.activeText0,.activeText1,.activeText2,.activeText3{fill:#333 !important}.done0,.done1,.done2,.done3{stroke:#666;fill:#bbb;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#333 !important}.crit0,.crit1,.crit2,.crit3{stroke:#b1361b;fill:#d42;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#b1361b;fill:#eee;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#b1361b;fill:#bbb;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#333 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#333 !important}.titleText{text-anchor:middle;font-size:18px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#999;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#eee;stroke:#999}g.classGroup line{stroke:#999;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.classLabel .label{fill:#999;font-size:10px}.relation{stroke:#999;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#999;stroke:#999;stroke-width:1}#compositionEnd{fill:#999;stroke:#999;stroke-width:1}#aggregationStart{fill:#eee;stroke:#999;stroke-width:1}#aggregationEnd{fill:#eee;stroke:#999;stroke-width:1}#dependencyStart{fill:#999;stroke:#999;stroke-width:1}#dependencyEnd{fill:#999;stroke:#999;stroke-width:1}#extensionStart{fill:#999;stroke:#999;stroke-width:1}#extensionEnd{fill:#999;stroke:#999;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#999;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#999;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#eee;stroke:#999}g.stateGroup line{stroke:#999;stroke-width:1}.transition{stroke:#999;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#770;fill:#ffa}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#999}.statediagram-cluster rect{fill:#eee;stroke:#999;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#999}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#ffa;stroke:#770;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#666}.marker.cross{stroke:#666}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 167, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/locale sync /^\\.\\/.*$/", - "name": "./node_modules/moment-mini/locale sync ^\\.\\/.*$", - "index": 544, - "index2": 540, - "size": 189, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "issuerId": 18, - "issuerName": "./node_modules/moment-mini/moment.min.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "name": "./node_modules/moment-mini/moment.min.js", - "profile": { - "factory": 1976, - "building": 181 - } - } - ], - "profile": { - "factory": 1415, - "building": 30, - "dependencies": 476 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/moment-mini/moment.min.js", - "module": "./node_modules/moment-mini/moment.min.js", - "moduleName": "./node_modules/moment-mini/moment.min.js", - "type": "cjs require context", - "userRequest": "./locale", - "loc": "1:14248-14270" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 168, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "name": "./node_modules/graphlib/lib/index.js", - "index": 573, - "index2": 767, - "size": 123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib", - "loc": "31:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "// Includes only the \"core\" of graphlib\nmodule.exports = {\n Graph: require(\"./graph\"),\n version: require(\"./version\")\n};\n" - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "index": 576, - "index2": 677, - "size": 1065, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/clone", - "loc": "8:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = clone;\n" - }, - { - "id": 170, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheClear.js", - "name": "./node_modules/lodash/_listCacheClear.js", - "index": 580, - "index2": 569, - "size": 218, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheClear", - "loc": "1:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n" - }, - { - "id": 171, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheDelete.js", - "name": "./node_modules/lodash/_listCacheDelete.js", - "index": 581, - "index2": 572, - "size": 775, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheDelete", - "loc": "2:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n" - }, - { - "id": 172, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheGet.js", - "name": "./node_modules/lodash/_listCacheGet.js", - "index": 584, - "index2": 573, - "size": 420, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheGet", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n" - }, - { - "id": 173, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheHas.js", - "name": "./node_modules/lodash/_listCacheHas.js", - "index": 585, - "index2": 574, - "size": 403, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheHas", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n" - }, - { - "id": 174, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_listCacheSet.js", - "name": "./node_modules/lodash/_listCacheSet.js", - "index": 586, - "index2": 575, - "size": 553, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "issuerId": 47, - "issuerName": "./node_modules/lodash/_ListCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - }, - { - "id": 47, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "name": "./node_modules/lodash/_ListCache.js", - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - } - } - ], - "profile": { - "factory": 81, - "building": 26, - "dependencies": 89 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 47, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_ListCache.js", - "module": "./node_modules/lodash/_ListCache.js", - "moduleName": "./node_modules/lodash/_ListCache.js", - "type": "cjs require", - "userRequest": "./_listCacheSet", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n" - }, - { - "id": 175, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackClear.js", - "name": "./node_modules/lodash/_stackClear.js", - "index": 587, - "index2": 577, - "size": 254, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackClear", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n" - }, - { - "id": 176, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackDelete.js", - "name": "./node_modules/lodash/_stackDelete.js", - "index": 588, - "index2": 578, - "size": 405, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackDelete", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n" - }, - { - "id": 177, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackGet.js", - "name": "./node_modules/lodash/_stackGet.js", - "index": 589, - "index2": 579, - "size": 271, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackGet", - "loc": "4:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n" - }, - { - "id": 178, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackHas.js", - "name": "./node_modules/lodash/_stackHas.js", - "index": 590, - "index2": 580, - "size": 323, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackHas", - "loc": "5:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n" - }, - { - "id": 179, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stackSet.js", - "name": "./node_modules/lodash/_stackSet.js", - "index": 591, - "index2": 612, - "size": 853, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "issuerId": 46, - "issuerName": "./node_modules/lodash/_Stack.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 46, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "name": "./node_modules/lodash/_Stack.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 71, - "building": 34, - "dependencies": 48 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 46, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Stack.js", - "module": "./node_modules/lodash/_Stack.js", - "moduleName": "./node_modules/lodash/_Stack.js", - "type": "cjs require", - "userRequest": "./_stackSet", - "loc": "6:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n" - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "index": 594, - "index2": 593, - "size": 1417, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "issuerId": 27, - "issuerName": "./node_modules/lodash/_getNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - } - ], - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "module": "./node_modules/lodash/_getNative.js", - "moduleName": "./node_modules/lodash/_getNative.js", - "type": "cjs require", - "userRequest": "./_baseIsNative", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n" - }, - { - "id": 181, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/global.js", - "name": "(webpack)/buildin/global.js", - "index": 600, - "index2": 581, - "size": 472, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "issuerId": 92, - "issuerName": "./node_modules/lodash/_freeGlobal.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_root.js", - "name": "./node_modules/lodash/_root.js", - "profile": { - "factory": 76, - "building": 25 - } - }, - { - "id": 92, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "name": "./node_modules/lodash/_freeGlobal.js", - "profile": { - "factory": 57, - "building": 29 - } - } - ], - "profile": { - "factory": 20, - "building": 29 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 92, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_freeGlobal.js", - "module": "./node_modules/lodash/_freeGlobal.js", - "moduleName": "./node_modules/lodash/_freeGlobal.js", - "type": "cjs require", - "userRequest": "global", - "loc": "1:0-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n" - }, - { - "id": 182, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getRawTag.js", - "name": "./node_modules/lodash/_getRawTag.js", - "index": 601, - "index2": 585, - "size": 1139, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_getRawTag", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n" - }, - { - "id": 183, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_objectToString.js", - "name": "./node_modules/lodash/_objectToString.js", - "index": 602, - "index2": 586, - "size": 565, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "issuerId": 28, - "issuerName": "./node_modules/lodash/_baseGetTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 141, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isPlainObject.js", - "name": "./node_modules/lodash/isPlainObject.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "name": "./node_modules/lodash/_baseGetTag.js", - "profile": { - "factory": 67, - "building": 39 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGetTag.js", - "module": "./node_modules/lodash/_baseGetTag.js", - "moduleName": "./node_modules/lodash/_baseGetTag.js", - "type": "cjs require", - "userRequest": "./_objectToString", - "loc": "3:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n" - }, - { - "id": 184, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "name": "./node_modules/lodash/_isMasked.js", - "index": 604, - "index2": 591, - "size": 564, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "issuerId": 180, - "issuerName": "./node_modules/lodash/_baseIsNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 180, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "module": "./node_modules/lodash/_baseIsNative.js", - "moduleName": "./node_modules/lodash/_baseIsNative.js", - "type": "cjs require", - "userRequest": "./_isMasked", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n" - }, - { - "id": 185, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_coreJsData.js", - "name": "./node_modules/lodash/_coreJsData.js", - "index": 605, - "index2": 590, - "size": 157, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "issuerId": 184, - "issuerName": "./node_modules/lodash/_isMasked.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - }, - { - "id": 180, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNative.js", - "name": "./node_modules/lodash/_baseIsNative.js", - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - } - }, - { - "id": 184, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "name": "./node_modules/lodash/_isMasked.js", - "profile": { - "factory": 90, - "building": 22 - } - } - ], - "profile": { - "factory": 16, - "building": 6, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 184, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isMasked.js", - "module": "./node_modules/lodash/_isMasked.js", - "moduleName": "./node_modules/lodash/_isMasked.js", - "type": "cjs require", - "userRequest": "./_coreJsData", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n" - }, - { - "id": 186, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getValue.js", - "name": "./node_modules/lodash/_getValue.js", - "index": 607, - "index2": 594, - "size": 325, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "issuerId": 27, - "issuerName": "./node_modules/lodash/_getNative.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 52, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignValue.js", - "name": "./node_modules/lodash/_baseAssignValue.js", - "profile": { - "factory": 73, - "building": 26, - "dependencies": 0 - } - }, - { - "id": 94, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_defineProperty.js", - "name": "./node_modules/lodash/_defineProperty.js", - "profile": { - "factory": 58, - "building": 29 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "name": "./node_modules/lodash/_getNative.js", - "profile": { - "factory": 64, - "building": 40 - } - } - ], - "profile": { - "factory": 69, - "building": 22, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getNative.js", - "module": "./node_modules/lodash/_getNative.js", - "moduleName": "./node_modules/lodash/_getNative.js", - "type": "cjs require", - "userRequest": "./_getValue", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n" - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "index": 609, - "index2": 604, - "size": 393, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheClear", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n" - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "index": 610, - "index2": 603, - "size": 747, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "issuerId": 187, - "issuerName": "./node_modules/lodash/_mapCacheClear.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - } - ], - "profile": { - "factory": 39, - "building": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 187, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "module": "./node_modules/lodash/_mapCacheClear.js", - "moduleName": "./node_modules/lodash/_mapCacheClear.js", - "type": "cjs require", - "userRequest": "./_Hash", - "loc": "1:11-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n" - }, - { - "id": 189, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashClear.js", - "name": "./node_modules/lodash/_hashClear.js", - "index": 611, - "index2": 598, - "size": 281, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashClear", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n" - }, - { - "id": 190, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashDelete.js", - "name": "./node_modules/lodash/_hashDelete.js", - "index": 613, - "index2": 599, - "size": 445, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashDelete", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n" - }, - { - "id": 191, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashGet.js", - "name": "./node_modules/lodash/_hashGet.js", - "index": 614, - "index2": 600, - "size": 772, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashGet", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n" - }, - { - "id": 192, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashHas.js", - "name": "./node_modules/lodash/_hashHas.js", - "index": 615, - "index2": 601, - "size": 626, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashHas", - "loc": "4:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n" - }, - { - "id": 193, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hashSet.js", - "name": "./node_modules/lodash/_hashSet.js", - "index": 616, - "index2": 602, - "size": 598, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "issuerId": 188, - "issuerName": "./node_modules/lodash/_Hash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 187, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheClear.js", - "name": "./node_modules/lodash/_mapCacheClear.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 188, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "name": "./node_modules/lodash/_Hash.js", - "profile": { - "factory": 39, - "building": 2 - } - } - ], - "profile": { - "factory": 9, - "building": 1, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 188, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Hash.js", - "module": "./node_modules/lodash/_Hash.js", - "moduleName": "./node_modules/lodash/_Hash.js", - "type": "cjs require", - "userRequest": "./_hashSet", - "loc": "5:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n" - }, - { - "id": 194, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheDelete.js", - "name": "./node_modules/lodash/_mapCacheDelete.js", - "index": 617, - "index2": 607, - "size": 450, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheDelete", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n" - }, - { - "id": 195, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isKeyable.js", - "name": "./node_modules/lodash/_isKeyable.js", - "index": 619, - "index2": 605, - "size": 430, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "issuerId": 50, - "issuerName": "./node_modules/lodash/_getMapData.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - } - }, - { - "id": 50, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "name": "./node_modules/lodash/_getMapData.js", - "profile": { - "factory": 39, - "building": 3 - } - } - ], - "profile": { - "factory": 8, - "building": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 50, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMapData.js", - "module": "./node_modules/lodash/_getMapData.js", - "moduleName": "./node_modules/lodash/_getMapData.js", - "type": "cjs require", - "userRequest": "./_isKeyable", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n" - }, - { - "id": 196, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheGet.js", - "name": "./node_modules/lodash/_mapCacheGet.js", - "index": 620, - "index2": 608, - "size": 330, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheGet", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n" - }, - { - "id": 197, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheHas.js", - "name": "./node_modules/lodash/_mapCacheHas.js", - "index": 621, - "index2": 609, - "size": 382, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheHas", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n" - }, - { - "id": 198, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapCacheSet.js", - "name": "./node_modules/lodash/_mapCacheSet.js", - "index": 622, - "index2": 610, - "size": 489, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "issuerId": 70, - "issuerName": "./node_modules/lodash/_MapCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 70, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "name": "./node_modules/lodash/_MapCache.js", - "profile": { - "factory": 83, - "building": 32 - } - } - ], - "profile": { - "factory": 100, - "building": 21, - "dependencies": 38 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 70, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_MapCache.js", - "module": "./node_modules/lodash/_MapCache.js", - "moduleName": "./node_modules/lodash/_MapCache.js", - "type": "cjs require", - "userRequest": "./_mapCacheSet", - "loc": "5:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n" - }, - { - "id": 199, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssign.js", - "name": "./node_modules/lodash/_baseAssign.js", - "index": 627, - "index2": 639, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_baseAssign", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n" - }, - { - "id": 200, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseTimes.js", - "name": "./node_modules/lodash/_baseTimes.js", - "index": 631, - "index2": 619, - "size": 504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "issuerId": 95, - "issuerName": "./node_modules/lodash/_arrayLikeKeys.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 95, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "name": "./node_modules/lodash/_arrayLikeKeys.js", - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - } - } - ], - "profile": { - "factory": 54, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 95, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayLikeKeys.js", - "module": "./node_modules/lodash/_arrayLikeKeys.js", - "moduleName": "./node_modules/lodash/_arrayLikeKeys.js", - "type": "cjs require", - "userRequest": "./_baseTimes", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n" - }, - { - "id": 201, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsArguments.js", - "name": "./node_modules/lodash/_baseIsArguments.js", - "index": 633, - "index2": 621, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "issuerId": 41, - "issuerName": "./node_modules/lodash/isArguments.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 41, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "name": "./node_modules/lodash/isArguments.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 62, - "building": 31, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 41, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isArguments.js", - "module": "./node_modules/lodash/isArguments.js", - "moduleName": "./node_modules/lodash/isArguments.js", - "type": "cjs require", - "userRequest": "./_baseIsArguments", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n" - }, - { - "id": 202, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/stubFalse.js", - "name": "./node_modules/lodash/stubFalse.js", - "index": 637, - "index2": 624, - "size": 280, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "issuerId": 34, - "issuerName": "./node_modules/lodash/isBuffer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "name": "./node_modules/lodash/isBuffer.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 58, - "building": 35 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isBuffer.js", - "module": "./node_modules/lodash/isBuffer.js", - "moduleName": "./node_modules/lodash/isBuffer.js", - "type": "cjs require", - "userRequest": "./stubFalse", - "loc": "2:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n" - }, - { - "id": 203, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsTypedArray.js", - "name": "./node_modules/lodash/_baseIsTypedArray.js", - "index": 640, - "index2": 628, - "size": 2222, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "issuerId": 42, - "issuerName": "./node_modules/lodash/isTypedArray.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 42, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "name": "./node_modules/lodash/isTypedArray.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 6 - } - } - ], - "profile": { - "factory": 59, - "building": 37, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 42, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isTypedArray.js", - "module": "./node_modules/lodash/isTypedArray.js", - "moduleName": "./node_modules/lodash/isTypedArray.js", - "type": "cjs require", - "userRequest": "./_baseIsTypedArray", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n" - }, - { - "id": 204, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeys.js", - "name": "./node_modules/lodash/_nativeKeys.js", - "index": 646, - "index2": 635, - "size": 204, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "issuerId": 74, - "issuerName": "./node_modules/lodash/_baseKeys.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 74, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "name": "./node_modules/lodash/_baseKeys.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 58, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 74, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeys.js", - "module": "./node_modules/lodash/_baseKeys.js", - "moduleName": "./node_modules/lodash/_baseKeys.js", - "type": "cjs require", - "userRequest": "./_nativeKeys", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n" - }, - { - "id": 205, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseAssignIn.js", - "name": "./node_modules/lodash/_baseAssignIn.js", - "index": 649, - "index2": 643, - "size": 482, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_baseAssignIn", - "loc": "5:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n" - }, - { - "id": 206, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "name": "./node_modules/lodash/_baseKeysIn.js", - "index": 651, - "index2": 641, - "size": 870, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "issuerId": 35, - "issuerName": "./node_modules/lodash/keysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - } - ], - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "module": "./node_modules/lodash/keysIn.js", - "moduleName": "./node_modules/lodash/keysIn.js", - "type": "cjs require", - "userRequest": "./_baseKeysIn", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n" - }, - { - "id": 207, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_nativeKeysIn.js", - "name": "./node_modules/lodash/_nativeKeysIn.js", - "index": 652, - "index2": 640, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "issuerId": 206, - "issuerName": "./node_modules/lodash/_baseKeysIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/keysIn.js", - "name": "./node_modules/lodash/keysIn.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 206, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "name": "./node_modules/lodash/_baseKeysIn.js", - "profile": { - "factory": 94, - "building": 22, - "dependencies": 31 - } - } - ], - "profile": { - "factory": 60, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 206, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseKeysIn.js", - "module": "./node_modules/lodash/_baseKeysIn.js", - "moduleName": "./node_modules/lodash/_baseKeysIn.js", - "type": "cjs require", - "userRequest": "./_nativeKeysIn", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n" - }, - { - "id": 208, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbols.js", - "name": "./node_modules/lodash/_copySymbols.js", - "index": 655, - "index2": 649, - "size": 446, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copySymbols", - "loc": "8:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n" - }, - { - "id": 209, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_copySymbolsIn.js", - "name": "./node_modules/lodash/_copySymbolsIn.js", - "index": 659, - "index2": 653, - "size": 470, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_copySymbolsIn", - "loc": "9:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n" - }, - { - "id": 210, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getAllKeysIn.js", - "name": "./node_modules/lodash/_getAllKeysIn.js", - "index": 665, - "index2": 656, - "size": 488, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_getAllKeysIn", - "loc": "11:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n" - }, - { - "id": 211, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_DataView.js", - "name": "./node_modules/lodash/_DataView.js", - "index": 667, - "index2": 657, - "size": 210, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_DataView", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n" - }, - { - "id": 212, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_Promise.js", - "name": "./node_modules/lodash/_Promise.js", - "index": 668, - "index2": 658, - "size": 207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_Promise", - "loc": "3:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n" - }, - { - "id": 213, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_WeakMap.js", - "name": "./node_modules/lodash/_WeakMap.js", - "index": 670, - "index2": 660, - "size": 207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "issuerId": 36, - "issuerName": "./node_modules/lodash/_getTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 36, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "name": "./node_modules/lodash/_getTag.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 62, - "building": 37, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 36, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getTag.js", - "module": "./node_modules/lodash/_getTag.js", - "moduleName": "./node_modules/lodash/_getTag.js", - "type": "cjs require", - "userRequest": "./_WeakMap", - "loc": "5:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n" - }, - { - "id": 214, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneArray.js", - "name": "./node_modules/lodash/_initCloneArray.js", - "index": 671, - "index2": 662, - "size": 692, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneArray", - "loc": "13:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n" - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "index": 672, - "index2": 669, - "size": 2261, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./_initCloneByTag", - "loc": "14:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n" - }, - { - "id": 216, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneDataView.js", - "name": "./node_modules/lodash/_cloneDataView.js", - "index": 675, - "index2": 665, - "size": 507, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneDataView", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n" - }, - { - "id": 217, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneRegExp.js", - "name": "./node_modules/lodash/_cloneRegExp.js", - "index": 676, - "index2": 666, - "size": 439, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneRegExp", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n" - }, - { - "id": 218, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_cloneSymbol.js", - "name": "./node_modules/lodash/_cloneSymbol.js", - "index": 677, - "index2": 667, - "size": 524, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "issuerId": 215, - "issuerName": "./node_modules/lodash/_initCloneByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 215, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "name": "./node_modules/lodash/_initCloneByTag.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 88, - "building": 41, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 215, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_initCloneByTag.js", - "module": "./node_modules/lodash/_initCloneByTag.js", - "moduleName": "./node_modules/lodash/_initCloneByTag.js", - "type": "cjs require", - "userRequest": "./_cloneSymbol", - "loc": "4:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n" - }, - { - "id": 219, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "name": "./node_modules/lodash/isMap.js", - "index": 681, - "index2": 673, - "size": 613, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isMap", - "loc": "18:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n" - }, - { - "id": 220, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMap.js", - "name": "./node_modules/lodash/_baseIsMap.js", - "index": 682, - "index2": 672, - "size": 478, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "issuerId": 219, - "issuerName": "./node_modules/lodash/isMap.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 219, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "name": "./node_modules/lodash/isMap.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 59, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 219, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isMap.js", - "module": "./node_modules/lodash/isMap.js", - "moduleName": "./node_modules/lodash/isMap.js", - "type": "cjs require", - "userRequest": "./_baseIsMap", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n" - }, - { - "id": 221, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "name": "./node_modules/lodash/isSet.js", - "index": 683, - "index2": 675, - "size": 613, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "issuerId": 91, - "issuerName": "./node_modules/lodash/_baseClone.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - } - ], - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 91, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "module": "./node_modules/lodash/_baseClone.js", - "moduleName": "./node_modules/lodash/_baseClone.js", - "type": "cjs require", - "userRequest": "./isSet", - "loc": "20:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n" - }, - { - "id": 222, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsSet.js", - "name": "./node_modules/lodash/_baseIsSet.js", - "index": 684, - "index2": 674, - "size": 478, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "issuerId": 221, - "issuerName": "./node_modules/lodash/isSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 169, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/clone.js", - "name": "./node_modules/lodash/clone.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 91, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseClone.js", - "name": "./node_modules/lodash/_baseClone.js", - "profile": { - "factory": 60, - "building": 41, - "dependencies": 63 - } - }, - { - "id": 221, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "name": "./node_modules/lodash/isSet.js", - "profile": { - "factory": 99, - "building": 24, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 60, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 221, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isSet.js", - "module": "./node_modules/lodash/isSet.js", - "moduleName": "./node_modules/lodash/isSet.js", - "type": "cjs require", - "userRequest": "./_baseIsSet", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n" - }, - { - "id": 223, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createBaseFor.js", - "name": "./node_modules/lodash/_createBaseFor.js", - "index": 691, - "index2": 679, - "size": 648, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "issuerId": 81, - "issuerName": "./node_modules/lodash/_baseFor.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 81, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "name": "./node_modules/lodash/_baseFor.js", - "profile": { - "factory": 65, - "building": 27, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 64, - "building": 25 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 81, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFor.js", - "module": "./node_modules/lodash/_baseFor.js", - "moduleName": "./node_modules/lodash/_baseFor.js", - "type": "cjs require", - "userRequest": "./_createBaseFor", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n" - }, - { - "id": 224, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createBaseEach.js", - "name": "./node_modules/lodash/_createBaseEach.js", - "index": 692, - "index2": 682, - "size": 886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "issuerId": 57, - "issuerName": "./node_modules/lodash/_baseEach.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 57, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "name": "./node_modules/lodash/_baseEach.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 59, - "building": 29, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 57, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseEach.js", - "module": "./node_modules/lodash/_baseEach.js", - "moduleName": "./node_modules/lodash/_baseEach.js", - "type": "cjs require", - "userRequest": "./_createBaseEach", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n" - }, - { - "id": 225, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFilter.js", - "name": "./node_modules/lodash/_baseFilter.js", - "index": 696, - "index2": 688, - "size": 590, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "issuerId": 111, - "issuerName": "./node_modules/lodash/filter.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 111, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "name": "./node_modules/lodash/filter.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 111, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/filter.js", - "module": "./node_modules/lodash/filter.js", - "moduleName": "./node_modules/lodash/filter.js", - "type": "cjs require", - "userRequest": "./_baseFilter", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseEach = require('./_baseEach');\n\n/**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n" - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "index": 698, - "index2": 705, - "size": 710, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./_baseMatches", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n" - }, - { - "id": 227, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsMatch.js", - "name": "./node_modules/lodash/_baseIsMatch.js", - "index": 699, - "index2": 701, - "size": 1765, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_baseIsMatch", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n" - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "index": 701, - "index2": 699, - "size": 3010, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "issuerId": 112, - "issuerName": "./node_modules/lodash/_baseIsEqual.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 112, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "module": "./node_modules/lodash/_baseIsEqual.js", - "moduleName": "./node_modules/lodash/_baseIsEqual.js", - "type": "cjs require", - "userRequest": "./_baseIsEqualDeep", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n" - }, - { - "id": 229, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setCacheAdd.js", - "name": "./node_modules/lodash/_setCacheAdd.js", - "index": 704, - "index2": 689, - "size": 424, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_setCacheAdd", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n" - }, - { - "id": 230, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setCacheHas.js", - "name": "./node_modules/lodash/_setCacheHas.js", - "index": 705, - "index2": 690, - "size": 316, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "issuerId": 114, - "issuerName": "./node_modules/lodash/_SetCache.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 114, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "name": "./node_modules/lodash/_SetCache.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 83, - "building": 32 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 114, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_SetCache.js", - "module": "./node_modules/lodash/_SetCache.js", - "moduleName": "./node_modules/lodash/_SetCache.js", - "type": "cjs require", - "userRequest": "./_setCacheHas", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n" - }, - { - "id": 231, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arraySome.js", - "name": "./node_modules/lodash/_arraySome.js", - "index": 706, - "index2": 692, - "size": 594, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "issuerId": 113, - "issuerName": "./node_modules/lodash/_equalArrays.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - }, - { - "id": 113, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "name": "./node_modules/lodash/_equalArrays.js", - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 13, - "building": 6 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 113, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalArrays.js", - "module": "./node_modules/lodash/_equalArrays.js", - "moduleName": "./node_modules/lodash/_equalArrays.js", - "type": "cjs require", - "userRequest": "./_arraySome", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n" - }, - { - "id": 232, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "name": "./node_modules/lodash/_equalByTag.js", - "index": 708, - "index2": 697, - "size": 3746, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalByTag", - "loc": "3:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n" - }, - { - "id": 233, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_mapToArray.js", - "name": "./node_modules/lodash/_mapToArray.js", - "index": 709, - "index2": 695, - "size": 363, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "issuerId": 232, - "issuerName": "./node_modules/lodash/_equalByTag.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - }, - { - "id": 232, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "name": "./node_modules/lodash/_equalByTag.js", - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 14, - "building": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 232, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalByTag.js", - "module": "./node_modules/lodash/_equalByTag.js", - "moduleName": "./node_modules/lodash/_equalByTag.js", - "type": "cjs require", - "userRequest": "./_mapToArray", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 12, - "source": "/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n" - }, - { - "id": 234, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_equalObjects.js", - "name": "./node_modules/lodash/_equalObjects.js", - "index": 711, - "index2": 698, - "size": 2903, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "issuerId": 228, - "issuerName": "./node_modules/lodash/_baseIsEqualDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - }, - { - "id": 112, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqual.js", - "name": "./node_modules/lodash/_baseIsEqual.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - } - }, - { - "id": 228, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "name": "./node_modules/lodash/_baseIsEqualDeep.js", - "profile": { - "factory": 68, - "building": 26, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 90, - "building": 20, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 228, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsEqualDeep.js", - "module": "./node_modules/lodash/_baseIsEqualDeep.js", - "moduleName": "./node_modules/lodash/_baseIsEqualDeep.js", - "type": "cjs require", - "userRequest": "./_equalObjects", - "loc": "4:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n" - }, - { - "id": 235, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_getMatchData.js", - "name": "./node_modules/lodash/_getMatchData.js", - "index": 712, - "index2": 703, - "size": 573, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "issuerId": 226, - "issuerName": "./node_modules/lodash/_baseMatches.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 226, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "name": "./node_modules/lodash/_baseMatches.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 88, - "building": 40, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 226, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatches.js", - "module": "./node_modules/lodash/_baseMatches.js", - "moduleName": "./node_modules/lodash/_baseMatches.js", - "type": "cjs require", - "userRequest": "./_getMatchData", - "loc": "2:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n" - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "index": 715, - "index2": 721, - "size": 1129, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./_baseMatchesProperty", - "loc": "2:26-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n" - }, - { - "id": 237, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/get.js", - "name": "./node_modules/lodash/get.js", - "index": 716, - "index2": 717, - "size": 884, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "issuerId": 236, - "issuerName": "./node_modules/lodash/_baseMatchesProperty.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 236, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "name": "./node_modules/lodash/_baseMatchesProperty.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 82, - "building": 38, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 236, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMatchesProperty.js", - "module": "./node_modules/lodash/_baseMatchesProperty.js", - "moduleName": "./node_modules/lodash/_baseMatchesProperty.js", - "type": "cjs require", - "userRequest": "./get", - "loc": "2:10-26" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n" - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "index": 721, - "index2": 710, - "size": 840, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "issuerId": 58, - "issuerName": "./node_modules/lodash/_castPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 58, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "module": "./node_modules/lodash/_castPath.js", - "moduleName": "./node_modules/lodash/_castPath.js", - "type": "cjs require", - "userRequest": "./_stringToPath", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n" - }, - { - "id": 239, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "name": "./node_modules/lodash/_memoizeCapped.js", - "index": 722, - "index2": 709, - "size": 633, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "issuerId": 238, - "issuerName": "./node_modules/lodash/_stringToPath.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 76, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 238, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "module": "./node_modules/lodash/_stringToPath.js", - "moduleName": "./node_modules/lodash/_stringToPath.js", - "type": "cjs require", - "userRequest": "./_memoizeCapped", - "loc": "1:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n" - }, - { - "id": 240, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/memoize.js", - "name": "./node_modules/lodash/memoize.js", - "index": 723, - "index2": 708, - "size": 2224, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "issuerId": 239, - "issuerName": "./node_modules/lodash/_memoizeCapped.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 120, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasPath.js", - "name": "./node_modules/lodash/_hasPath.js", - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - } - }, - { - "id": 58, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_castPath.js", - "name": "./node_modules/lodash/_castPath.js", - "profile": { - "factory": 72, - "building": 28, - "dependencies": 0 - } - }, - { - "id": 238, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringToPath.js", - "name": "./node_modules/lodash/_stringToPath.js", - "profile": { - "factory": 69, - "building": 33, - "dependencies": 0 - } - }, - { - "id": 239, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "name": "./node_modules/lodash/_memoizeCapped.js", - "profile": { - "factory": 76, - "building": 28 - } - } - ], - "profile": { - "factory": 92, - "building": 22, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 239, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_memoizeCapped.js", - "module": "./node_modules/lodash/_memoizeCapped.js", - "moduleName": "./node_modules/lodash/_memoizeCapped.js", - "type": "cjs require", - "userRequest": "./memoize", - "loc": "1:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 11, - "source": "var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n" - }, - { - "id": 241, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseToString.js", - "name": "./node_modules/lodash/_baseToString.js", - "index": 725, - "index2": 712, - "size": 1154, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "issuerId": 118, - "issuerName": "./node_modules/lodash/toString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 146, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/uniqueId.js", - "name": "./node_modules/lodash/uniqueId.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 118, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "name": "./node_modules/lodash/toString.js", - "profile": { - "factory": 78, - "building": 38 - } - } - ], - "profile": { - "factory": 63, - "building": 27, - "dependencies": 52 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 118, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toString.js", - "module": "./node_modules/lodash/toString.js", - "moduleName": "./node_modules/lodash/toString.js", - "type": "cjs require", - "userRequest": "./_baseToString", - "loc": "1:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n" - }, - { - "id": 242, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseHasIn.js", - "name": "./node_modules/lodash/_baseHasIn.js", - "index": 729, - "index2": 718, - "size": 374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "issuerId": 119, - "issuerName": "./node_modules/lodash/hasIn.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 119, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "name": "./node_modules/lodash/hasIn.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 62, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 119, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/hasIn.js", - "module": "./node_modules/lodash/hasIn.js", - "moduleName": "./node_modules/lodash/hasIn.js", - "type": "cjs require", - "userRequest": "./_baseHasIn", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n" - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "index": 731, - "index2": 724, - "size": 793, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "issuerId": 20, - "issuerName": "./node_modules/lodash/_baseIteratee.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - } - ], - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "module": "./node_modules/lodash/_baseIteratee.js", - "moduleName": "./node_modules/lodash/_baseIteratee.js", - "type": "cjs require", - "userRequest": "./property", - "loc": "5:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n" - }, - { - "id": 244, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePropertyDeep.js", - "name": "./node_modules/lodash/_basePropertyDeep.js", - "index": 733, - "index2": 723, - "size": 391, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "issuerId": 243, - "issuerName": "./node_modules/lodash/property.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIteratee.js", - "name": "./node_modules/lodash/_baseIteratee.js", - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - } - }, - { - "id": 243, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "name": "./node_modules/lodash/property.js", - "profile": { - "factory": 67, - "building": 25, - "dependencies": 59 - } - } - ], - "profile": { - "factory": 66, - "building": 39, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 243, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/property.js", - "module": "./node_modules/lodash/property.js", - "moduleName": "./node_modules/lodash/property.js", - "type": "cjs require", - "userRequest": "./_basePropertyDeep", - "loc": "2:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\nmodule.exports = basePropertyDeep;\n" - }, - { - "id": 245, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseHas.js", - "name": "./node_modules/lodash/_baseHas.js", - "index": 735, - "index2": 727, - "size": 559, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "issuerId": 85, - "issuerName": "./node_modules/lodash/has.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 85, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "name": "./node_modules/lodash/has.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 69, - "building": 41, - "dependencies": 68 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 85, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/has.js", - "module": "./node_modules/lodash/has.js", - "moduleName": "./node_modules/lodash/has.js", - "type": "cjs require", - "userRequest": "./_baseHas", - "loc": "1:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n" - }, - { - "id": 246, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isEmpty.js", - "name": "./node_modules/lodash/isEmpty.js", - "index": 736, - "index2": 729, - "size": 2000, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/isEmpty", - "loc": "14:15-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n" - }, - { - "id": 247, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayReduce.js", - "name": "./node_modules/lodash/_arrayReduce.js", - "index": 741, - "index2": 733, - "size": 787, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_arrayReduce", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayReduce;\n" - }, - { - "id": 248, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseReduce.js", - "name": "./node_modules/lodash/_baseReduce.js", - "index": 742, - "index2": 734, - "size": 909, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "issuerId": 125, - "issuerName": "./node_modules/lodash/reduce.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 125, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "name": "./node_modules/lodash/reduce.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 83, - "building": 25, - "dependencies": 4 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 125, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/reduce.js", - "module": "./node_modules/lodash/reduce.js", - "moduleName": "./node_modules/lodash/reduce.js", - "type": "cjs require", - "userRequest": "./_baseReduce", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\nfunction baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseReduce;\n" - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "index": 743, - "index2": 741, - "size": 1137, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/size", - "loc": "20:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArrayLike = require('./isArrayLike'),\n isString = require('./isString'),\n stringSize = require('./_stringSize');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\nfunction size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n}\n\nmodule.exports = size;\n" - }, - { - "id": 250, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/isString.js", - "name": "./node_modules/lodash/isString.js", - "index": 744, - "index2": 736, - "size": 723, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./isString", - "loc": "4:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n" - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "index": 745, - "index2": 740, - "size": 432, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "issuerId": 249, - "issuerName": "./node_modules/lodash/size.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 249, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "module": "./node_modules/lodash/size.js", - "moduleName": "./node_modules/lodash/size.js", - "type": "cjs require", - "userRequest": "./_stringSize", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var asciiSize = require('./_asciiSize'),\n hasUnicode = require('./_hasUnicode'),\n unicodeSize = require('./_unicodeSize');\n\n/**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\nfunction stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n}\n\nmodule.exports = stringSize;\n" - }, - { - "id": 252, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_asciiSize.js", - "name": "./node_modules/lodash/_asciiSize.js", - "index": 746, - "index2": 737, - "size": 271, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_asciiSize", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseProperty = require('./_baseProperty');\n\n/**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nvar asciiSize = baseProperty('length');\n\nmodule.exports = asciiSize;\n" - }, - { - "id": 253, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_hasUnicode.js", - "name": "./node_modules/lodash/_hasUnicode.js", - "index": 747, - "index2": 738, - "size": 949, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_hasUnicode", - "loc": "2:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n" - }, - { - "id": 254, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_unicodeSize.js", - "name": "./node_modules/lodash/_unicodeSize.js", - "index": 748, - "index2": 739, - "size": 1642, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "issuerId": 251, - "issuerName": "./node_modules/lodash/_stringSize.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 249, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/size.js", - "name": "./node_modules/lodash/size.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 251, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "name": "./node_modules/lodash/_stringSize.js", - "profile": { - "factory": 64, - "building": 25, - "dependencies": 7 - } - } - ], - "profile": { - "factory": 66, - "building": 36, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 251, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_stringSize.js", - "module": "./node_modules/lodash/_stringSize.js", - "moduleName": "./node_modules/lodash/_stringSize.js", - "type": "cjs require", - "userRequest": "./_unicodeSize", - "loc": "3:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\nfunction unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n}\n\nmodule.exports = unicodeSize;\n" - }, - { - "id": 255, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/transform.js", - "name": "./node_modules/lodash/transform.js", - "index": 749, - "index2": 742, - "size": 2280, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/transform", - "loc": "21:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var arrayEach = require('./_arrayEach'),\n baseCreate = require('./_baseCreate'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee'),\n getPrototype = require('./_getPrototype'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isTypedArray = require('./isTypedArray');\n\n/**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\nfunction transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = baseIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n}\n\nmodule.exports = transform;\n" - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "index": 750, - "index2": 761, - "size": 749, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "issuerId": 8, - "issuerName": "./node_modules/graphlib/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - } - ], - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "module": "./node_modules/graphlib/lib/lodash.js", - "moduleName": "./node_modules/graphlib/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/union", - "loc": "22:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n baseUniq = require('./_baseUniq'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\nvar union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n});\n\nmodule.exports = union;\n" - }, - { - "id": 257, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_isFlattenable.js", - "name": "./node_modules/lodash/_isFlattenable.js", - "index": 752, - "index2": 743, - "size": 608, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "issuerId": 86, - "issuerName": "./node_modules/lodash/_baseFlatten.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 86, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "name": "./node_modules/lodash/_baseFlatten.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 62, - "building": 25, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 86, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseFlatten.js", - "module": "./node_modules/lodash/_baseFlatten.js", - "moduleName": "./node_modules/lodash/_baseFlatten.js", - "type": "cjs require", - "userRequest": "./_isFlattenable", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n" - }, - { - "id": 258, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_apply.js", - "name": "./node_modules/lodash/_apply.js", - "index": 755, - "index2": 745, - "size": 714, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "issuerId": 126, - "issuerName": "./node_modules/lodash/_overRest.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 126, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "name": "./node_modules/lodash/_overRest.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 60, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 126, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_overRest.js", - "module": "./node_modules/lodash/_overRest.js", - "moduleName": "./node_modules/lodash/_overRest.js", - "type": "cjs require", - "userRequest": "./_apply", - "loc": "1:12-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n" - }, - { - "id": 259, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSetToString.js", - "name": "./node_modules/lodash/_baseSetToString.js", - "index": 757, - "index2": 747, - "size": 641, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "issuerId": 127, - "issuerName": "./node_modules/lodash/_setToString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 61, - "building": 27, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 127, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "module": "./node_modules/lodash/_setToString.js", - "moduleName": "./node_modules/lodash/_setToString.js", - "type": "cjs require", - "userRequest": "./_baseSetToString", - "loc": "1:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n" - }, - { - "id": 260, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_shortOut.js", - "name": "./node_modules/lodash/_shortOut.js", - "index": 758, - "index2": 748, - "size": 941, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "issuerId": 127, - "issuerName": "./node_modules/lodash/_setToString.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 137, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/defaults.js", - "name": "./node_modules/lodash/defaults.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 60, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRest.js", - "name": "./node_modules/lodash/_baseRest.js", - "profile": { - "factory": 82, - "building": 38, - "dependencies": 76 - } - }, - { - "id": 127, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "name": "./node_modules/lodash/_setToString.js", - "profile": { - "factory": 103, - "building": 19 - } - } - ], - "profile": { - "factory": 61, - "building": 27, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 127, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_setToString.js", - "module": "./node_modules/lodash/_setToString.js", - "moduleName": "./node_modules/lodash/_setToString.js", - "type": "cjs require", - "userRequest": "./_shortOut", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n" - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "index": 759, - "index2": 759, - "size": 1909, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "issuerId": 256, - "issuerName": "./node_modules/lodash/union.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - } - ], - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 256, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "module": "./node_modules/lodash/union.js", - "moduleName": "./node_modules/lodash/union.js", - "type": "cjs require", - "userRequest": "./_baseUniq", - "loc": "3:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n" - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "index": 760, - "index2": 755, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_arrayIncludes", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n" - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "index": 761, - "index2": 754, - "size": 659, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "issuerId": 262, - "issuerName": "./node_modules/lodash/_arrayIncludes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 262, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "module": "./node_modules/lodash/_arrayIncludes.js", - "moduleName": "./node_modules/lodash/_arrayIncludes.js", - "type": "cjs require", - "userRequest": "./_baseIndexOf", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n" - }, - { - "id": 264, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIsNaN.js", - "name": "./node_modules/lodash/_baseIsNaN.js", - "index": 763, - "index2": 752, - "size": 296, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "issuerId": 263, - "issuerName": "./node_modules/lodash/_baseIndexOf.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 95, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_baseIsNaN", - "loc": "2:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n" - }, - { - "id": 265, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_strictIndexOf.js", - "name": "./node_modules/lodash/_strictIndexOf.js", - "index": 764, - "index2": 753, - "size": 600, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "issuerId": 263, - "issuerName": "./node_modules/lodash/_baseIndexOf.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 262, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludes.js", - "name": "./node_modules/lodash/_arrayIncludes.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - }, - { - "id": 263, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "name": "./node_modules/lodash/_baseIndexOf.js", - "profile": { - "factory": 80, - "building": 19, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 95, - "building": 22 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 263, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseIndexOf.js", - "module": "./node_modules/lodash/_baseIndexOf.js", - "moduleName": "./node_modules/lodash/_baseIndexOf.js", - "type": "cjs require", - "userRequest": "./_strictIndexOf", - "loc": "3:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 10, - "source": "/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n" - }, - { - "id": 266, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_arrayIncludesWith.js", - "name": "./node_modules/lodash/_arrayIncludesWith.js", - "index": 765, - "index2": 756, - "size": 615, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_arrayIncludesWith", - "loc": "3:24-55" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n" - }, - { - "id": 267, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "name": "./node_modules/lodash/_createSet.js", - "index": 766, - "index2": 758, - "size": 501, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "issuerId": 261, - "issuerName": "./node_modules/lodash/_baseUniq.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 261, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "module": "./node_modules/lodash/_baseUniq.js", - "moduleName": "./node_modules/lodash/_baseUniq.js", - "type": "cjs require", - "userRequest": "./_createSet", - "loc": "5:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n" - }, - { - "id": 268, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/noop.js", - "name": "./node_modules/lodash/noop.js", - "index": 767, - "index2": 757, - "size": 250, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "issuerId": 267, - "issuerName": "./node_modules/lodash/_createSet.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/lodash.js", - "name": "./node_modules/graphlib/lib/lodash.js", - "profile": { - "factory": 106, - "building": 76, - "dependencies": 123 - } - }, - { - "id": 256, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/union.js", - "name": "./node_modules/lodash/union.js", - "profile": { - "factory": 176, - "building": 41, - "dependencies": 83 - } - }, - { - "id": 261, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseUniq.js", - "name": "./node_modules/lodash/_baseUniq.js", - "profile": { - "factory": 83, - "building": 21, - "dependencies": 1 - } - }, - { - "id": 267, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "name": "./node_modules/lodash/_createSet.js", - "profile": { - "factory": 91, - "building": 34, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 26 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 267, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createSet.js", - "module": "./node_modules/lodash/_createSet.js", - "moduleName": "./node_modules/lodash/_createSet.js", - "type": "cjs require", - "userRequest": "./noop", - "loc": "2:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n" - }, - { - "id": 269, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseValues.js", - "name": "./node_modules/lodash/_baseValues.js", - "index": 770, - "index2": 762, - "size": 534, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "issuerId": 130, - "issuerName": "./node_modules/lodash/values.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 130, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "name": "./node_modules/lodash/values.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 130, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/values.js", - "module": "./node_modules/lodash/values.js", - "moduleName": "./node_modules/lodash/values.js", - "type": "cjs require", - "userRequest": "./_baseValues", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayMap = require('./_arrayMap');\n\n/**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\nfunction baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n}\n\nmodule.exports = baseValues;\n" - }, - { - "id": 270, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/version.js", - "name": "./node_modules/graphlib/lib/version.js", - "index": 771, - "index2": 766, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "issuerId": 168, - "issuerName": "./node_modules/graphlib/lib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 168, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "name": "./node_modules/graphlib/lib/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 72, - "building": 43 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 168, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/index.js", - "module": "./node_modules/graphlib/lib/index.js", - "moduleName": "./node_modules/graphlib/lib/index.js", - "type": "cjs require", - "userRequest": "./version", - "loc": "4:11-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "module.exports = '2.1.8';\n" - }, - { - "id": 271, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/json.js", - "name": "./node_modules/graphlib/lib/json.js", - "index": 772, - "index2": 768, - "size": 1399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib/json", - "loc": "35:8-29" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar Graph = require(\"./graph\");\n\nmodule.exports = {\n write: write,\n read: read\n};\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound()\n },\n nodes: writeNodes(g),\n edges: writeEdges(g)\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function(v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function(e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function(entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function(entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n" - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "index": 773, - "index2": 782, - "size": 424, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "issuerId": 2, - "issuerName": "./node_modules/graphlib/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 2, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "module": "./node_modules/graphlib/index.js", - "moduleName": "./node_modules/graphlib/index.js", - "type": "cjs require", - "userRequest": "./lib/alg", - "loc": "36:7-27" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = {\n components: require(\"./components\"),\n dijkstra: require(\"./dijkstra\"),\n dijkstraAll: require(\"./dijkstra-all\"),\n findCycles: require(\"./find-cycles\"),\n floydWarshall: require(\"./floyd-warshall\"),\n isAcyclic: require(\"./is-acyclic\"),\n postorder: require(\"./postorder\"),\n preorder: require(\"./preorder\"),\n prim: require(\"./prim\"),\n tarjan: require(\"./tarjan\"),\n topsort: require(\"./topsort\")\n};\n" - }, - { - "id": 273, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/components.js", - "name": "./node_modules/graphlib/lib/alg/components.js", - "index": 774, - "index2": 769, - "size": 447, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./components", - "loc": "2:14-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = components;\n\nfunction components(g) {\n var visited = {};\n var cmpts = [];\n var cmpt;\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n cmpt.push(v);\n _.each(g.successors(v), dfs);\n _.each(g.predecessors(v), dfs);\n }\n\n _.each(g.nodes(), function(v) {\n cmpt = [];\n dfs(v);\n if (cmpt.length) {\n cmpts.push(cmpt);\n }\n });\n\n return cmpts;\n}\n" - }, - { - "id": 274, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/dijkstra-all.js", - "name": "./node_modules/graphlib/lib/alg/dijkstra-all.js", - "index": 777, - "index2": 772, - "size": 262, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./dijkstra-all", - "loc": "4:15-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dijkstra = require(\"./dijkstra\");\nvar _ = require(\"../lodash\");\n\nmodule.exports = dijkstraAll;\n\nfunction dijkstraAll(g, weightFunc, edgeFunc) {\n return _.transform(g.nodes(), function(acc, v) {\n acc[v] = dijkstra(g, v, weightFunc, edgeFunc);\n }, {});\n}\n" - }, - { - "id": 275, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/find-cycles.js", - "name": "./node_modules/graphlib/lib/alg/find-cycles.js", - "index": 778, - "index2": 774, - "size": 256, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./find-cycles", - "loc": "5:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar tarjan = require(\"./tarjan\");\n\nmodule.exports = findCycles;\n\nfunction findCycles(g) {\n return _.filter(tarjan(g), function(cmpt) {\n return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));\n });\n}\n" - }, - { - "id": 276, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/floyd-warshall.js", - "name": "./node_modules/graphlib/lib/alg/floyd-warshall.js", - "index": 780, - "index2": 775, - "size": 1235, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./floyd-warshall", - "loc": "6:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = floydWarshall;\n\nvar DEFAULT_WEIGHT_FUNC = _.constant(1);\n\nfunction floydWarshall(g, weightFn, edgeFn) {\n return runFloydWarshall(g,\n weightFn || DEFAULT_WEIGHT_FUNC,\n edgeFn || function(v) { return g.outEdges(v); });\n}\n\nfunction runFloydWarshall(g, weightFn, edgeFn) {\n var results = {};\n var nodes = g.nodes();\n\n nodes.forEach(function(v) {\n results[v] = {};\n results[v][v] = { distance: 0 };\n nodes.forEach(function(w) {\n if (v !== w) {\n results[v][w] = { distance: Number.POSITIVE_INFINITY };\n }\n });\n edgeFn(v).forEach(function(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var d = weightFn(edge);\n results[v][w] = { distance: d, predecessor: v };\n });\n });\n\n nodes.forEach(function(k) {\n var rowK = results[k];\n nodes.forEach(function(i) {\n var rowI = results[i];\n nodes.forEach(function(j) {\n var ik = rowI[k];\n var kj = rowK[j];\n var ij = rowI[j];\n var altDistance = ik.distance + kj.distance;\n if (altDistance < ij.distance) {\n ij.distance = altDistance;\n ij.predecessor = kj.predecessor;\n }\n });\n });\n });\n\n return results;\n}\n" - }, - { - "id": 277, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/is-acyclic.js", - "name": "./node_modules/graphlib/lib/alg/is-acyclic.js", - "index": 781, - "index2": 777, - "size": 237, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./is-acyclic", - "loc": "7:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var topsort = require(\"./topsort\");\n\nmodule.exports = isAcyclic;\n\nfunction isAcyclic(g) {\n try {\n topsort(g);\n } catch (e) {\n if (e instanceof topsort.CycleException) {\n return false;\n }\n throw e;\n }\n return true;\n}\n" - }, - { - "id": 278, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/postorder.js", - "name": "./node_modules/graphlib/lib/alg/postorder.js", - "index": 783, - "index2": 779, - "size": 117, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./postorder", - "loc": "8:13-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dfs = require(\"./dfs\");\n\nmodule.exports = postorder;\n\nfunction postorder(g, vs) {\n return dfs(g, vs, \"post\");\n}\n" - }, - { - "id": 279, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/preorder.js", - "name": "./node_modules/graphlib/lib/alg/preorder.js", - "index": 785, - "index2": 780, - "size": 114, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./preorder", - "loc": "9:12-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var dfs = require(\"./dfs\");\n\nmodule.exports = preorder;\n\nfunction preorder(g, vs) {\n return dfs(g, vs, \"pre\");\n}\n" - }, - { - "id": 280, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/prim.js", - "name": "./node_modules/graphlib/lib/alg/prim.js", - "index": 786, - "index2": 781, - "size": 1105, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "issuerId": 272, - "issuerName": "./node_modules/graphlib/lib/alg/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 2, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/index.js", - "name": "./node_modules/graphlib/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 272, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "name": "./node_modules/graphlib/lib/alg/index.js", - "profile": { - "factory": 266, - "building": 74, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 167, - "building": 34, - "dependencies": 63 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 272, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/graphlib/lib/alg/index.js", - "module": "./node_modules/graphlib/lib/alg/index.js", - "moduleName": "./node_modules/graphlib/lib/alg/index.js", - "type": "cjs require", - "userRequest": "./prim", - "loc": "10:8-25" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"../lodash\");\nvar Graph = require(\"../graph\");\nvar PriorityQueue = require(\"../data/priority-queue\");\n\nmodule.exports = prim;\n\nfunction prim(g, weightFunc) {\n var result = new Graph();\n var parents = {};\n var pq = new PriorityQueue();\n var v;\n\n function updateNeighbors(edge) {\n var w = edge.v === v ? edge.w : edge.v;\n var pri = pq.priority(w);\n if (pri !== undefined) {\n var edgeWeight = weightFunc(edge);\n if (edgeWeight < pri) {\n parents[w] = v;\n pq.decrease(w, edgeWeight);\n }\n }\n }\n\n if (g.nodeCount() === 0) {\n return result;\n }\n\n _.each(g.nodes(), function(v) {\n pq.add(v, Number.POSITIVE_INFINITY);\n result.setNode(v);\n });\n\n // Start from an arbitrary node\n pq.decrease(g.nodes()[0], 0);\n\n var init = false;\n while (pq.size() > 0) {\n v = pq.removeMin();\n if (_.has(parents, v)) {\n result.setEdge(v, parents[v]);\n } else if (init) {\n throw new Error(\"Input graph is not connected: \" + g);\n } else {\n init = true;\n }\n\n g.nodeEdges(v).forEach(updateNeighbors);\n }\n\n return result;\n}\n" - }, - { - "id": 281, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/graphlib.js", - "name": "./node_modules/dagre-d3/lib/graphlib.js", - "index": 788, - "index2": 784, - "size": 255, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/graphlib", - "loc": "24:12-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "/* global window */\n\nvar graphlib;\n\nif (typeof require === \"function\") {\n try {\n graphlib = require(\"graphlib\");\n }\n catch (e) {\n // continue regardless of error\n }\n}\n\nif (!graphlib) {\n graphlib = window.graphlib;\n}\n\nmodule.exports = graphlib;\n" - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "index": 792, - "index2": 855, - "size": 12344, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/layout", - "loc": "26:10-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar acyclic = require(\"./acyclic\");\nvar normalize = require(\"./normalize\");\nvar rank = require(\"./rank\");\nvar normalizeRanks = require(\"./util\").normalizeRanks;\nvar parentDummyChains = require(\"./parent-dummy-chains\");\nvar removeEmptyRanks = require(\"./util\").removeEmptyRanks;\nvar nestingGraph = require(\"./nesting-graph\");\nvar addBorderSegments = require(\"./add-border-segments\");\nvar coordinateSystem = require(\"./coordinate-system\");\nvar order = require(\"./order\");\nvar position = require(\"./position\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = layout;\n\nfunction layout(g, opts) {\n var time = opts && opts.debugTiming ? util.time : util.notime;\n time(\"layout\", function() {\n var layoutGraph = \n time(\" buildLayoutGraph\", function() { return buildLayoutGraph(g); });\n time(\" runLayout\", function() { runLayout(layoutGraph, time); });\n time(\" updateInputGraph\", function() { updateInputGraph(g, layoutGraph); });\n });\n}\n\nfunction runLayout(g, time) {\n time(\" makeSpaceForEdgeLabels\", function() { makeSpaceForEdgeLabels(g); });\n time(\" removeSelfEdges\", function() { removeSelfEdges(g); });\n time(\" acyclic\", function() { acyclic.run(g); });\n time(\" nestingGraph.run\", function() { nestingGraph.run(g); });\n time(\" rank\", function() { rank(util.asNonCompoundGraph(g)); });\n time(\" injectEdgeLabelProxies\", function() { injectEdgeLabelProxies(g); });\n time(\" removeEmptyRanks\", function() { removeEmptyRanks(g); });\n time(\" nestingGraph.cleanup\", function() { nestingGraph.cleanup(g); });\n time(\" normalizeRanks\", function() { normalizeRanks(g); });\n time(\" assignRankMinMax\", function() { assignRankMinMax(g); });\n time(\" removeEdgeLabelProxies\", function() { removeEdgeLabelProxies(g); });\n time(\" normalize.run\", function() { normalize.run(g); });\n time(\" parentDummyChains\", function() { parentDummyChains(g); });\n time(\" addBorderSegments\", function() { addBorderSegments(g); });\n time(\" order\", function() { order(g); });\n time(\" insertSelfEdges\", function() { insertSelfEdges(g); });\n time(\" adjustCoordinateSystem\", function() { coordinateSystem.adjust(g); });\n time(\" position\", function() { position(g); });\n time(\" positionSelfEdges\", function() { positionSelfEdges(g); });\n time(\" removeBorderNodes\", function() { removeBorderNodes(g); });\n time(\" normalize.undo\", function() { normalize.undo(g); });\n time(\" fixupEdgeLabelCoords\", function() { fixupEdgeLabelCoords(g); });\n time(\" undoCoordinateSystem\", function() { coordinateSystem.undo(g); });\n time(\" translateGraph\", function() { translateGraph(g); });\n time(\" assignNodeIntersects\", function() { assignNodeIntersects(g); });\n time(\" reversePoints\", function() { reversePointsForReversedEdges(g); });\n time(\" acyclic.undo\", function() { acyclic.undo(g); });\n}\n\n/*\n * Copies final layout information from the layout graph back to the input\n * graph. This process only copies whitelisted attributes from the layout graph\n * to the input graph, so it serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction updateInputGraph(inputGraph, layoutGraph) {\n _.forEach(inputGraph.nodes(), function(v) {\n var inputLabel = inputGraph.node(v);\n var layoutLabel = layoutGraph.node(v);\n\n if (inputLabel) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n\n if (layoutGraph.children(v).length) {\n inputLabel.width = layoutLabel.width;\n inputLabel.height = layoutLabel.height;\n }\n }\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var inputLabel = inputGraph.edge(e);\n var layoutLabel = layoutGraph.edge(e);\n\n inputLabel.points = layoutLabel.points;\n if (_.has(layoutLabel, \"x\")) {\n inputLabel.x = layoutLabel.x;\n inputLabel.y = layoutLabel.y;\n }\n });\n\n inputGraph.graph().width = layoutGraph.graph().width;\n inputGraph.graph().height = layoutGraph.graph().height;\n}\n\nvar graphNumAttrs = [\"nodesep\", \"edgesep\", \"ranksep\", \"marginx\", \"marginy\"];\nvar graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: \"tb\" };\nvar graphAttrs = [\"acyclicer\", \"ranker\", \"rankdir\", \"align\"];\nvar nodeNumAttrs = [\"width\", \"height\"];\nvar nodeDefaults = { width: 0, height: 0 };\nvar edgeNumAttrs = [\"minlen\", \"weight\", \"width\", \"height\", \"labeloffset\"];\nvar edgeDefaults = {\n minlen: 1, weight: 1, width: 0, height: 0,\n labeloffset: 10, labelpos: \"r\"\n};\nvar edgeAttrs = [\"labelpos\"];\n\n/*\n * Constructs a new graph from the input graph, which can be used for layout.\n * This process copies only whitelisted attributes from the input graph to the\n * layout graph. Thus this function serves as a good place to determine what\n * attributes can influence layout.\n */\nfunction buildLayoutGraph(inputGraph) {\n var g = new Graph({ multigraph: true, compound: true });\n var graph = canonicalize(inputGraph.graph());\n\n g.setGraph(_.merge({},\n graphDefaults,\n selectNumberAttrs(graph, graphNumAttrs),\n _.pick(graph, graphAttrs)));\n\n _.forEach(inputGraph.nodes(), function(v) {\n var node = canonicalize(inputGraph.node(v));\n g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));\n g.setParent(v, inputGraph.parent(v));\n });\n\n _.forEach(inputGraph.edges(), function(e) {\n var edge = canonicalize(inputGraph.edge(e));\n g.setEdge(e, _.merge({},\n edgeDefaults,\n selectNumberAttrs(edge, edgeNumAttrs),\n _.pick(edge, edgeAttrs)));\n });\n\n return g;\n}\n\n/*\n * This idea comes from the Gansner paper: to account for edge labels in our\n * layout we split each rank in half by doubling minlen and halving ranksep.\n * Then we can place labels at these mid-points between nodes.\n *\n * We also add some minimal padding to the width to push the label for the edge\n * away from the edge itself a bit.\n */\nfunction makeSpaceForEdgeLabels(g) {\n var graph = g.graph();\n graph.ranksep /= 2;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n edge.minlen *= 2;\n if (edge.labelpos.toLowerCase() !== \"c\") {\n if (graph.rankdir === \"TB\" || graph.rankdir === \"BT\") {\n edge.width += edge.labeloffset;\n } else {\n edge.height += edge.labeloffset;\n }\n }\n });\n}\n\n/*\n * Creates temporary dummy nodes that capture the rank in which each edge's\n * label is going to, if it has one of non-zero width and height. We do this\n * so that we can safely remove empty ranks while preserving balance for the\n * label's position.\n */\nfunction injectEdgeLabelProxies(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.width && edge.height) {\n var v = g.node(e.v);\n var w = g.node(e.w);\n var label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };\n util.addDummyNode(g, \"edge-proxy\", label, \"_ep\");\n }\n });\n}\n\nfunction assignRankMinMax(g) {\n var maxRank = 0;\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.borderTop) {\n node.minRank = g.node(node.borderTop).rank;\n node.maxRank = g.node(node.borderBottom).rank;\n maxRank = _.max(maxRank, node.maxRank);\n }\n });\n g.graph().maxRank = maxRank;\n}\n\nfunction removeEdgeLabelProxies(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"edge-proxy\") {\n g.edge(node.e).labelRank = node.rank;\n g.removeNode(v);\n }\n });\n}\n\nfunction translateGraph(g) {\n var minX = Number.POSITIVE_INFINITY;\n var maxX = 0;\n var minY = Number.POSITIVE_INFINITY;\n var maxY = 0;\n var graphLabel = g.graph();\n var marginX = graphLabel.marginx || 0;\n var marginY = graphLabel.marginy || 0;\n\n function getExtremes(attrs) {\n var x = attrs.x;\n var y = attrs.y;\n var w = attrs.width;\n var h = attrs.height;\n minX = Math.min(minX, x - w / 2);\n maxX = Math.max(maxX, x + w / 2);\n minY = Math.min(minY, y - h / 2);\n maxY = Math.max(maxY, y + h / 2);\n }\n\n _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n getExtremes(edge);\n }\n });\n\n minX -= marginX;\n minY -= marginY;\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n node.x -= minX;\n node.y -= minY;\n });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, function(p) {\n p.x -= minX;\n p.y -= minY;\n });\n if (_.has(edge, \"x\")) { edge.x -= minX; }\n if (_.has(edge, \"y\")) { edge.y -= minY; }\n });\n\n graphLabel.width = maxX - minX + marginX;\n graphLabel.height = maxY - minY + marginY;\n}\n\nfunction assignNodeIntersects(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n var nodeV = g.node(e.v);\n var nodeW = g.node(e.w);\n var p1, p2;\n if (!edge.points) {\n edge.points = [];\n p1 = nodeW;\n p2 = nodeV;\n } else {\n p1 = edge.points[0];\n p2 = edge.points[edge.points.length - 1];\n }\n edge.points.unshift(util.intersectRect(nodeV, p1));\n edge.points.push(util.intersectRect(nodeW, p2));\n });\n}\n\nfunction fixupEdgeLabelCoords(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (_.has(edge, \"x\")) {\n if (edge.labelpos === \"l\" || edge.labelpos === \"r\") {\n edge.width -= edge.labeloffset;\n }\n switch (edge.labelpos) {\n case \"l\": edge.x -= edge.width / 2 + edge.labeloffset; break;\n case \"r\": edge.x += edge.width / 2 + edge.labeloffset; break;\n }\n }\n });\n}\n\nfunction reversePointsForReversedEdges(g) {\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.reversed) {\n edge.points.reverse();\n }\n });\n}\n\nfunction removeBorderNodes(g) {\n _.forEach(g.nodes(), function(v) {\n if (g.children(v).length) {\n var node = g.node(v);\n var t = g.node(node.borderTop);\n var b = g.node(node.borderBottom);\n var l = g.node(_.last(node.borderLeft));\n var r = g.node(_.last(node.borderRight));\n\n node.width = Math.abs(r.x - l.x);\n node.height = Math.abs(b.y - t.y);\n node.x = l.x + node.width / 2;\n node.y = t.y + node.height / 2;\n }\n });\n\n _.forEach(g.nodes(), function(v) {\n if (g.node(v).dummy === \"border\") {\n g.removeNode(v);\n }\n });\n}\n\nfunction removeSelfEdges(g) {\n _.forEach(g.edges(), function(e) {\n if (e.v === e.w) {\n var node = g.node(e.v);\n if (!node.selfEdges) {\n node.selfEdges = [];\n }\n node.selfEdges.push({ e: e, label: g.edge(e) });\n g.removeEdge(e);\n }\n });\n}\n\nfunction insertSelfEdges(g) {\n var layers = util.buildLayerMatrix(g);\n _.forEach(layers, function(layer) {\n var orderShift = 0;\n _.forEach(layer, function(v, i) {\n var node = g.node(v);\n node.order = i + orderShift;\n _.forEach(node.selfEdges, function(selfEdge) {\n util.addDummyNode(g, \"selfedge\", {\n width: selfEdge.label.width,\n height: selfEdge.label.height,\n rank: node.rank,\n order: i + (++orderShift),\n e: selfEdge.e,\n label: selfEdge.label\n }, \"_se\");\n });\n delete node.selfEdges;\n });\n });\n}\n\nfunction positionSelfEdges(g) {\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v);\n if (node.dummy === \"selfedge\") {\n var selfNode = g.node(node.e.v);\n var x = selfNode.x + selfNode.width / 2;\n var y = selfNode.y;\n var dx = node.x - x;\n var dy = selfNode.height / 2;\n g.setEdge(node.e, node.label);\n g.removeNode(v);\n node.label.points = [\n { x: x + 2 * dx / 3, y: y - dy },\n { x: x + 5 * dx / 6, y: y - dy },\n { x: x + dx , y: y },\n { x: x + 5 * dx / 6, y: y + dy },\n { x: x + 2 * dx / 3, y: y + dy }\n ];\n node.label.x = node.x;\n node.label.y = node.y;\n }\n });\n}\n\nfunction selectNumberAttrs(obj, attrs) {\n return _.mapValues(_.pick(obj, attrs), Number);\n}\n\nfunction canonicalize(attrs) {\n var newAttrs = {};\n _.forEach(attrs, function(v, k) {\n newAttrs[k.toLowerCase()] = v;\n });\n return newAttrs;\n}\n" - }, - { - "id": 283, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/cloneDeep.js", - "name": "./node_modules/lodash/cloneDeep.js", - "index": 794, - "index2": 786, - "size": 679, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/cloneDeep", - "loc": "8:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n" - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "index": 797, - "index2": 794, - "size": 1304, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/find", - "loc": "13:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var createFind = require('./_createFind'),\n findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n" - }, - { - "id": 285, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createFind.js", - "name": "./node_modules/lodash/_createFind.js", - "index": 798, - "index2": 789, - "size": 853, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "issuerId": 284, - "issuerName": "./node_modules/lodash/find.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 284, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "module": "./node_modules/lodash/find.js", - "moduleName": "./node_modules/lodash/find.js", - "type": "cjs require", - "userRequest": "./_createFind", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseIteratee = require('./_baseIteratee'),\n isArrayLike = require('./isArrayLike'),\n keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = baseIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n}\n\nmodule.exports = createFind;\n" - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "index": 799, - "index2": 793, - "size": 1654, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "issuerId": 284, - "issuerName": "./node_modules/lodash/find.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 284, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "module": "./node_modules/lodash/find.js", - "moduleName": "./node_modules/lodash/find.js", - "type": "cjs require", - "userRequest": "./findIndex", - "loc": "2:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n" - }, - { - "id": 287, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toInteger.js", - "name": "./node_modules/lodash/toInteger.js", - "index": 800, - "index2": 792, - "size": 760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "issuerId": 286, - "issuerName": "./node_modules/lodash/findIndex.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 284, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/find.js", - "name": "./node_modules/lodash/find.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 286, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "name": "./node_modules/lodash/findIndex.js", - "profile": { - "factory": 68, - "building": 33, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 55, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 286, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/findIndex.js", - "module": "./node_modules/lodash/findIndex.js", - "moduleName": "./node_modules/lodash/findIndex.js", - "type": "cjs require", - "userRequest": "./toInteger", - "loc": "3:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n" - }, - { - "id": 288, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toNumber.js", - "name": "./node_modules/lodash/toNumber.js", - "index": 802, - "index2": 790, - "size": 1572, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "issuerId": 138, - "issuerName": "./node_modules/lodash/toFinite.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - }, - { - "id": 138, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "name": "./node_modules/lodash/toFinite.js", - "profile": { - "factory": 81, - "building": 21 - } - } - ], - "profile": { - "factory": 58, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 138, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toFinite.js", - "module": "./node_modules/lodash/toFinite.js", - "moduleName": "./node_modules/lodash/toFinite.js", - "type": "cjs require", - "userRequest": "./toNumber", - "loc": "1:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n" - }, - { - "id": 289, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/forIn.js", - "name": "./node_modules/lodash/forIn.js", - "index": 804, - "index2": 796, - "size": 1065, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/forIn", - "loc": "16:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n" - }, - { - "id": 290, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/last.js", - "name": "./node_modules/lodash/last.js", - "index": 805, - "index2": 797, - "size": 401, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/last", - "loc": "19:12-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n" - }, - { - "id": 291, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/mapValues.js", - "name": "./node_modules/lodash/mapValues.js", - "index": 806, - "index2": 798, - "size": 1338, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/mapValues", - "loc": "21:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\nfunction mapValues(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n}\n\nmodule.exports = mapValues;\n" - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "index": 807, - "index2": 801, - "size": 614, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/max", - "loc": "22:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseGt = require('./_baseGt'),\n identity = require('./identity');\n\n/**\n * Computes the maximum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the maximum value.\n * @example\n *\n * _.max([4, 2, 8, 6]);\n * // => 8\n *\n * _.max([]);\n * // => undefined\n */\nfunction max(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseGt)\n : undefined;\n}\n\nmodule.exports = max;\n" - }, - { - "id": 293, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseGt.js", - "name": "./node_modules/lodash/_baseGt.js", - "index": 809, - "index2": 800, - "size": 357, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "issuerId": 292, - "issuerName": "./node_modules/lodash/max.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 292, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "name": "./node_modules/lodash/max.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 73, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 292, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/max.js", - "module": "./node_modules/lodash/max.js", - "moduleName": "./node_modules/lodash/max.js", - "type": "cjs require", - "userRequest": "./_baseGt", - "loc": "2:13-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\nfunction baseGt(value, other) {\n return value > other;\n}\n\nmodule.exports = baseGt;\n" - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "index": 810, - "index2": 809, - "size": 1220, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/merge", - "loc": "23:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n" - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "index": 811, - "index2": 807, - "size": 1328, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "issuerId": 294, - "issuerName": "./node_modules/lodash/merge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 294, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "module": "./node_modules/lodash/merge.js", - "moduleName": "./node_modules/lodash/merge.js", - "type": "cjs require", - "userRequest": "./_baseMerge", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n" - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "index": 813, - "index2": 806, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "issuerId": 295, - "issuerName": "./node_modules/lodash/_baseMerge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - } - ], - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 295, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "module": "./node_modules/lodash/_baseMerge.js", - "moduleName": "./node_modules/lodash/_baseMerge.js", - "type": "cjs require", - "userRequest": "./_baseMergeDeep", - "loc": "4:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n" - }, - { - "id": 297, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/toPlainObject.js", - "name": "./node_modules/lodash/toPlainObject.js", - "index": 816, - "index2": 805, - "size": 744, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "issuerId": 296, - "issuerName": "./node_modules/lodash/_baseMergeDeep.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 295, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMerge.js", - "name": "./node_modules/lodash/_baseMerge.js", - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - } - }, - { - "id": 296, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "name": "./node_modules/lodash/_baseMergeDeep.js", - "profile": { - "factory": 65, - "building": 23, - "dependencies": 15 - } - } - ], - "profile": { - "factory": 66, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 296, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseMergeDeep.js", - "module": "./node_modules/lodash/_baseMergeDeep.js", - "moduleName": "./node_modules/lodash/_baseMergeDeep.js", - "type": "cjs require", - "userRequest": "./toPlainObject", - "loc": "15:20-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n" - }, - { - "id": 298, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createAssigner.js", - "name": "./node_modules/lodash/_createAssigner.js", - "index": 817, - "index2": 808, - "size": 1042, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "issuerId": 294, - "issuerName": "./node_modules/lodash/merge.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 294, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "name": "./node_modules/lodash/merge.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 37 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 294, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/merge.js", - "module": "./node_modules/lodash/merge.js", - "moduleName": "./node_modules/lodash/merge.js", - "type": "cjs require", - "userRequest": "./_createAssigner", - "loc": "2:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n" - }, - { - "id": 299, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/min.js", - "name": "./node_modules/lodash/min.js", - "index": 818, - "index2": 811, - "size": 614, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/min", - "loc": "24:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseLt = require('./_baseLt'),\n identity = require('./identity');\n\n/**\n * Computes the minimum value of `array`. If `array` is empty or falsey,\n * `undefined` is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Math\n * @param {Array} array The array to iterate over.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * _.min([4, 2, 8, 6]);\n * // => 2\n *\n * _.min([]);\n * // => undefined\n */\nfunction min(array) {\n return (array && array.length)\n ? baseExtremum(array, identity, baseLt)\n : undefined;\n}\n\nmodule.exports = min;\n" - }, - { - "id": 300, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/minBy.js", - "name": "./node_modules/lodash/minBy.js", - "index": 820, - "index2": 812, - "size": 991, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/minBy", - "loc": "25:13-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseExtremum = require('./_baseExtremum'),\n baseIteratee = require('./_baseIteratee'),\n baseLt = require('./_baseLt');\n\n/**\n * This method is like `_.min` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * the value is ranked. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Math\n * @param {Array} array The array to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {*} Returns the minimum value.\n * @example\n *\n * var objects = [{ 'n': 1 }, { 'n': 2 }];\n *\n * _.minBy(objects, function(o) { return o.n; });\n * // => { 'n': 1 }\n *\n * // The `_.property` iteratee shorthand.\n * _.minBy(objects, 'n');\n * // => { 'n': 1 }\n */\nfunction minBy(array, iteratee) {\n return (array && array.length)\n ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)\n : undefined;\n}\n\nmodule.exports = minBy;\n" - }, - { - "id": 301, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/now.js", - "name": "./node_modules/lodash/now.js", - "index": 821, - "index2": 813, - "size": 520, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/now", - "loc": "26:11-32" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n" - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "index": 823, - "index2": 816, - "size": 501, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "issuerId": 144, - "issuerName": "./node_modules/lodash/pick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 144, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "module": "./node_modules/lodash/pick.js", - "moduleName": "./node_modules/lodash/pick.js", - "type": "cjs require", - "userRequest": "./_basePick", - "loc": "1:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n" - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "index": 824, - "index2": 815, - "size": 791, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "issuerId": 302, - "issuerName": "./node_modules/lodash/_basePick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - } - ], - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 302, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "module": "./node_modules/lodash/_basePick.js", - "moduleName": "./node_modules/lodash/_basePick.js", - "type": "cjs require", - "userRequest": "./_basePickBy", - "loc": "1:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n" - }, - { - "id": 304, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSet.js", - "name": "./node_modules/lodash/_baseSet.js", - "index": 825, - "index2": 814, - "size": 1278, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "issuerId": 303, - "issuerName": "./node_modules/lodash/_basePickBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 302, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePick.js", - "name": "./node_modules/lodash/_basePick.js", - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - } - }, - { - "id": 303, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "name": "./node_modules/lodash/_basePickBy.js", - "profile": { - "factory": 62, - "building": 23, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 63, - "building": 25, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 303, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_basePickBy.js", - "module": "./node_modules/lodash/_basePickBy.js", - "moduleName": "./node_modules/lodash/_basePickBy.js", - "type": "cjs require", - "userRequest": "./_baseSet", - "loc": "2:14-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n" - }, - { - "id": 305, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_flatRest.js", - "name": "./node_modules/lodash/_flatRest.js", - "index": 826, - "index2": 817, - "size": 457, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "issuerId": 144, - "issuerName": "./node_modules/lodash/pick.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 144, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "name": "./node_modules/lodash/pick.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 68, - "building": 40, - "dependencies": 46 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 144, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/pick.js", - "module": "./node_modules/lodash/pick.js", - "moduleName": "./node_modules/lodash/pick.js", - "type": "cjs require", - "userRequest": "./_flatRest", - "loc": "2:15-37" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n" - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "index": 828, - "index2": 820, - "size": 864, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "issuerId": 145, - "issuerName": "./node_modules/lodash/range.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - } - ], - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 145, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "module": "./node_modules/lodash/range.js", - "moduleName": "./node_modules/lodash/range.js", - "type": "cjs require", - "userRequest": "./_createRange", - "loc": "1:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var baseRange = require('./_baseRange'),\n isIterateeCall = require('./_isIterateeCall'),\n toFinite = require('./toFinite');\n\n/**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\nfunction createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n}\n\nmodule.exports = createRange;\n" - }, - { - "id": 307, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseRange.js", - "name": "./node_modules/lodash/_baseRange.js", - "index": 829, - "index2": 819, - "size": 850, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "issuerId": 306, - "issuerName": "./node_modules/lodash/_createRange.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 44, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-html-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-html-label.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/util.js", - "name": "./node_modules/dagre-d3/lib/util.js", - "profile": { - "factory": 512, - "building": 394 - } - }, - { - "id": 38, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/lodash.js", - "name": "./node_modules/dagre-d3/lib/lodash.js", - "profile": { - "factory": 56, - "building": 103 - } - }, - { - "id": 145, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/range.js", - "name": "./node_modules/lodash/range.js", - "profile": { - "factory": 250, - "building": 40, - "dependencies": 62 - } - }, - { - "id": 306, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "name": "./node_modules/lodash/_createRange.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 81, - "building": 21 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 306, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_createRange.js", - "module": "./node_modules/lodash/_createRange.js", - "moduleName": "./node_modules/lodash/_createRange.js", - "type": "cjs require", - "userRequest": "./_baseRange", - "loc": "1:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeCeil = Math.ceil,\n nativeMax = Math.max;\n\n/**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\nfunction baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n}\n\nmodule.exports = baseRange;\n" - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "index": 830, - "index2": 826, - "size": 1668, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/sortBy", - "loc": "30:14-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n" - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "index": 831, - "index2": 825, - "size": 1196, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "issuerId": 308, - "issuerName": "./node_modules/lodash/sortBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 308, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "module": "./node_modules/lodash/sortBy.js", - "moduleName": "./node_modules/lodash/sortBy.js", - "type": "cjs require", - "userRequest": "./_baseOrderBy", - "loc": "2:18-43" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n" - }, - { - "id": 310, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseSortBy.js", - "name": "./node_modules/lodash/_baseSortBy.js", - "index": 832, - "index2": 822, - "size": 543, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_baseSortBy", - "loc": "4:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n" - }, - { - "id": 311, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "name": "./node_modules/lodash/_compareMultiple.js", - "index": 833, - "index2": 824, - "size": 1599, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "issuerId": 309, - "issuerName": "./node_modules/lodash/_baseOrderBy.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 61, - "building": 28 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 309, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "module": "./node_modules/lodash/_baseOrderBy.js", - "moduleName": "./node_modules/lodash/_baseOrderBy.js", - "type": "cjs require", - "userRequest": "./_compareMultiple", - "loc": "6:22-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 8, - "source": "var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n" - }, - { - "id": 312, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareAscending.js", - "name": "./node_modules/lodash/_compareAscending.js", - "index": 834, - "index2": 823, - "size": 1343, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "issuerId": 311, - "issuerName": "./node_modules/lodash/_compareMultiple.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 308, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/sortBy.js", - "name": "./node_modules/lodash/sortBy.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - }, - { - "id": 309, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseOrderBy.js", - "name": "./node_modules/lodash/_baseOrderBy.js", - "profile": { - "factory": 76, - "building": 23, - "dependencies": 2 - } - }, - { - "id": 311, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "name": "./node_modules/lodash/_compareMultiple.js", - "profile": { - "factory": 61, - "building": 28 - } - } - ], - "profile": { - "factory": 62, - "building": 33, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 311, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_compareMultiple.js", - "module": "./node_modules/lodash/_compareMultiple.js", - "moduleName": "./node_modules/lodash/_compareMultiple.js", - "type": "cjs require", - "userRequest": "./_compareAscending", - "loc": "1:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 9, - "source": "var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n" - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "index": 836, - "index2": 829, - "size": 664, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "issuerId": 3, - "issuerName": "./node_modules/dagre/lib/lodash.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 3, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "module": "./node_modules/dagre/lib/lodash.js", - "moduleName": "./node_modules/dagre/lib/lodash.js", - "type": "cjs require", - "userRequest": "lodash/zipObject", - "loc": "33:17-44" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var assignValue = require('./_assignValue'),\n baseZipObject = require('./_baseZipObject');\n\n/**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n}\n\nmodule.exports = zipObject;\n" - }, - { - "id": 314, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/_baseZipObject.js", - "name": "./node_modules/lodash/_baseZipObject.js", - "index": 837, - "index2": 828, - "size": 660, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "issuerId": 313, - "issuerName": "./node_modules/lodash/zipObject.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 3, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/lodash.js", - "name": "./node_modules/dagre/lib/lodash.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 313, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "name": "./node_modules/lodash/zipObject.js", - "profile": { - "factory": 108, - "building": 36, - "dependencies": 74 - } - } - ], - "profile": { - "factory": 129, - "building": 19, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 313, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/lodash/zipObject.js", - "module": "./node_modules/lodash/zipObject.js", - "moduleName": "./node_modules/lodash/zipObject.js", - "type": "cjs require", - "userRequest": "./_baseZipObject", - "loc": "2:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\nfunction baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n}\n\nmodule.exports = baseZipObject;\n" - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "index": 838, - "index2": 833, - "size": 1242, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./acyclic", - "loc": "4:14-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar greedyFAS = require(\"./greedy-fas\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\nfunction run(g) {\n var fas = (g.graph().acyclicer === \"greedy\"\n ? greedyFAS(g, weightFn(g))\n : dfsFAS(g));\n _.forEach(fas, function(e) {\n var label = g.edge(e);\n g.removeEdge(e);\n label.forwardName = e.name;\n label.reversed = true;\n g.setEdge(e.w, e.v, label, _.uniqueId(\"rev\"));\n });\n\n function weightFn(g) {\n return function(e) {\n return g.edge(e).weight;\n };\n }\n}\n\nfunction dfsFAS(g) {\n var fas = [];\n var stack = {};\n var visited = {};\n\n function dfs(v) {\n if (_.has(visited, v)) {\n return;\n }\n visited[v] = true;\n stack[v] = true;\n _.forEach(g.outEdges(v), function(e) {\n if (_.has(stack, e.w)) {\n fas.push(e);\n } else {\n dfs(e.w);\n }\n });\n delete stack[v];\n }\n\n _.forEach(g.nodes(), dfs);\n return fas;\n}\n\nfunction undo(g) {\n _.forEach(g.edges(), function(e) {\n var label = g.edge(e);\n if (label.reversed) {\n g.removeEdge(e);\n\n var forwardName = label.forwardName;\n delete label.reversed;\n delete label.forwardName;\n g.setEdge(e.w, e.v, label, forwardName);\n }\n });\n}\n" - }, - { - "id": 316, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "name": "./node_modules/dagre/lib/greedy-fas.js", - "index": 839, - "index2": 832, - "size": 3370, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "issuerId": 315, - "issuerName": "./node_modules/dagre/lib/acyclic.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 315, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "module": "./node_modules/dagre/lib/acyclic.js", - "moduleName": "./node_modules/dagre/lib/acyclic.js", - "type": "cjs require", - "userRequest": "./greedy-fas", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"./lodash\");\nvar Graph = require(\"./graphlib\").Graph;\nvar List = require(\"./data/list\");\n\n/*\n * A greedy heuristic for finding a feedback arc set for a graph. A feedback\n * arc set is a set of edges that can be removed to make a graph acyclic.\n * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, \"A fast and\n * effective heuristic for the feedback arc set problem.\" This implementation\n * adjusts that from the paper to allow for weighted edges.\n */\nmodule.exports = greedyFAS;\n\nvar DEFAULT_WEIGHT_FN = _.constant(1);\n\nfunction greedyFAS(g, weightFn) {\n if (g.nodeCount() <= 1) {\n return [];\n }\n var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);\n var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);\n\n // Expand multi-edges\n return _.flatten(_.map(results, function(e) {\n return g.outEdges(e.v, e.w);\n }), true);\n}\n\nfunction doGreedyFAS(g, buckets, zeroIdx) {\n var results = [];\n var sources = buckets[buckets.length - 1];\n var sinks = buckets[0];\n\n var entry;\n while (g.nodeCount()) {\n while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }\n if (g.nodeCount()) {\n for (var i = buckets.length - 2; i > 0; --i) {\n entry = buckets[i].dequeue();\n if (entry) {\n results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));\n break;\n }\n }\n }\n }\n\n return results;\n}\n\nfunction removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {\n var results = collectPredecessors ? [] : undefined;\n\n _.forEach(g.inEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var uEntry = g.node(edge.v);\n\n if (collectPredecessors) {\n results.push({ v: edge.v, w: edge.w });\n }\n\n uEntry.out -= weight;\n assignBucket(buckets, zeroIdx, uEntry);\n });\n\n _.forEach(g.outEdges(entry.v), function(edge) {\n var weight = g.edge(edge);\n var w = edge.w;\n var wEntry = g.node(w);\n wEntry[\"in\"] -= weight;\n assignBucket(buckets, zeroIdx, wEntry);\n });\n\n g.removeNode(entry.v);\n\n return results;\n}\n\nfunction buildState(g, weightFn) {\n var fasGraph = new Graph();\n var maxIn = 0;\n var maxOut = 0;\n\n _.forEach(g.nodes(), function(v) {\n fasGraph.setNode(v, { v: v, \"in\": 0, out: 0 });\n });\n\n // Aggregate weights on nodes, but also sum the weights across multi-edges\n // into a single edge for the fasGraph.\n _.forEach(g.edges(), function(e) {\n var prevWeight = fasGraph.edge(e.v, e.w) || 0;\n var weight = weightFn(e);\n var edgeWeight = prevWeight + weight;\n fasGraph.setEdge(e.v, e.w, edgeWeight);\n maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);\n maxIn = Math.max(maxIn, fasGraph.node(e.w)[\"in\"] += weight);\n });\n\n var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });\n var zeroIdx = maxIn + 1;\n\n _.forEach(fasGraph.nodes(), function(v) {\n assignBucket(buckets, zeroIdx, fasGraph.node(v));\n });\n\n return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };\n}\n\nfunction assignBucket(buckets, zeroIdx, entry) {\n if (!entry.out) {\n buckets[0].enqueue(entry);\n } else if (!entry[\"in\"]) {\n buckets[buckets.length - 1].enqueue(entry);\n } else {\n buckets[entry.out - entry[\"in\"] + zeroIdx].enqueue(entry);\n }\n}\n" - }, - { - "id": 317, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/data/list.js", - "name": "./node_modules/dagre/lib/data/list.js", - "index": 840, - "index2": 831, - "size": 1188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "issuerId": 316, - "issuerName": "./node_modules/dagre/lib/greedy-fas.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 315, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/acyclic.js", - "name": "./node_modules/dagre/lib/acyclic.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 316, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "name": "./node_modules/dagre/lib/greedy-fas.js", - "profile": { - "factory": 79, - "building": 18, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 86, - "building": 20 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 316, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/greedy-fas.js", - "module": "./node_modules/dagre/lib/greedy-fas.js", - "moduleName": "./node_modules/dagre/lib/greedy-fas.js", - "type": "cjs require", - "userRequest": "./data/list", - "loc": "3:11-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "/*\n * Simple doubly linked list implementation derived from Cormen, et al.,\n * \"Introduction to Algorithms\".\n */\n\nmodule.exports = List;\n\nfunction List() {\n var sentinel = {};\n sentinel._next = sentinel._prev = sentinel;\n this._sentinel = sentinel;\n}\n\nList.prototype.dequeue = function() {\n var sentinel = this._sentinel;\n var entry = sentinel._prev;\n if (entry !== sentinel) {\n unlink(entry);\n return entry;\n }\n};\n\nList.prototype.enqueue = function(entry) {\n var sentinel = this._sentinel;\n if (entry._prev && entry._next) {\n unlink(entry);\n }\n entry._next = sentinel._next;\n sentinel._next._prev = entry;\n sentinel._next = entry;\n entry._prev = sentinel;\n};\n\nList.prototype.toString = function() {\n var strs = [];\n var sentinel = this._sentinel;\n var curr = sentinel._prev;\n while (curr !== sentinel) {\n strs.push(JSON.stringify(curr, filterOutLinks));\n curr = curr._prev;\n }\n return \"[\" + strs.join(\", \") + \"]\";\n};\n\nfunction unlink(entry) {\n entry._prev._next = entry._next;\n entry._next._prev = entry._prev;\n delete entry._next;\n delete entry._prev;\n}\n\nfunction filterOutLinks(k, v) {\n if (k !== \"_next\" && k !== \"_prev\") {\n return v;\n }\n}\n" - }, - { - "id": 318, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/normalize.js", - "name": "./node_modules/dagre/lib/normalize.js", - "index": 841, - "index2": 835, - "size": 2279, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./normalize", - "loc": "5:16-38" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n undo: undo\n};\n\n/*\n * Breaks any long edges in the graph into short segments that span 1 layer\n * each. This operation is undoable with the denormalize function.\n *\n * Pre-conditions:\n *\n * 1. The input graph is a DAG.\n * 2. Each node in the graph has a \"rank\" property.\n *\n * Post-condition:\n *\n * 1. All edges in the graph have a length of 1.\n * 2. Dummy nodes are added where edges have been split into segments.\n * 3. The graph is augmented with a \"dummyChains\" attribute which contains\n * the first dummy in each chain of dummy nodes produced.\n */\nfunction run(g) {\n g.graph().dummyChains = [];\n _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });\n}\n\nfunction normalizeEdge(g, e) {\n var v = e.v;\n var vRank = g.node(v).rank;\n var w = e.w;\n var wRank = g.node(w).rank;\n var name = e.name;\n var edgeLabel = g.edge(e);\n var labelRank = edgeLabel.labelRank;\n\n if (wRank === vRank + 1) return;\n\n g.removeEdge(e);\n\n var dummy, attrs, i;\n for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {\n edgeLabel.points = [];\n attrs = {\n width: 0, height: 0,\n edgeLabel: edgeLabel, edgeObj: e,\n rank: vRank\n };\n dummy = util.addDummyNode(g, \"edge\", attrs, \"_d\");\n if (vRank === labelRank) {\n attrs.width = edgeLabel.width;\n attrs.height = edgeLabel.height;\n attrs.dummy = \"edge-label\";\n attrs.labelpos = edgeLabel.labelpos;\n }\n g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);\n if (i === 0) {\n g.graph().dummyChains.push(dummy);\n }\n v = dummy;\n }\n\n g.setEdge(v, w, { weight: edgeLabel.weight }, name);\n}\n\nfunction undo(g) {\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var origLabel = node.edgeLabel;\n var w;\n g.setEdge(node.edgeObj, origLabel);\n while (node.dummy) {\n w = g.successors(v)[0];\n g.removeNode(v);\n origLabel.points.push({ x: node.x, y: node.y });\n if (node.dummy === \"edge-label\") {\n origLabel.x = node.x;\n origLabel.y = node.y;\n origLabel.width = node.width;\n origLabel.height = node.height;\n }\n v = w;\n node = g.node(v);\n }\n });\n}\n" - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "index": 843, - "index2": 839, - "size": 1302, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./rank", - "loc": "6:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar rankUtil = require(\"./util\");\nvar longestPath = rankUtil.longestPath;\nvar feasibleTree = require(\"./feasible-tree\");\nvar networkSimplex = require(\"./network-simplex\");\n\nmodule.exports = rank;\n\n/*\n * Assigns a rank to each node in the input graph that respects the \"minlen\"\n * constraint specified on edges between nodes.\n *\n * This basic structure is derived from Gansner, et al., \"A Technique for\n * Drawing Directed Graphs.\"\n *\n * Pre-conditions:\n *\n * 1. Graph must be a connected DAG\n * 2. Graph nodes must be objects\n * 3. Graph edges must have \"weight\" and \"minlen\" attributes\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have a \"rank\" attribute based on the results of the\n * algorithm. Ranks can start at any index (including negative), we'll\n * fix them up later.\n */\nfunction rank(g) {\n switch(g.graph().ranker) {\n case \"network-simplex\": networkSimplexRanker(g); break;\n case \"tight-tree\": tightTreeRanker(g); break;\n case \"longest-path\": longestPathRanker(g); break;\n default: networkSimplexRanker(g);\n }\n}\n\n// A fast and simple ranker, but results are far from optimal.\nvar longestPathRanker = longestPath;\n\nfunction tightTreeRanker(g) {\n longestPath(g);\n feasibleTree(g);\n}\n\nfunction networkSimplexRanker(g) {\n networkSimplex(g);\n}\n" - }, - { - "id": 320, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/network-simplex.js", - "name": "./node_modules/dagre/lib/rank/network-simplex.js", - "index": 846, - "index2": 838, - "size": 6706, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "issuerId": 319, - "issuerName": "./node_modules/dagre/lib/rank/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 319, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "name": "./node_modules/dagre/lib/rank/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 85, - "building": 21, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 319, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/rank/index.js", - "module": "./node_modules/dagre/lib/rank/index.js", - "moduleName": "./node_modules/dagre/lib/rank/index.js", - "type": "cjs require", - "userRequest": "./network-simplex", - "loc": "6:21-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar feasibleTree = require(\"./feasible-tree\");\nvar slack = require(\"./util\").slack;\nvar initRank = require(\"./util\").longestPath;\nvar preorder = require(\"../graphlib\").alg.preorder;\nvar postorder = require(\"../graphlib\").alg.postorder;\nvar simplify = require(\"../util\").simplify;\n\nmodule.exports = networkSimplex;\n\n// Expose some internals for testing purposes\nnetworkSimplex.initLowLimValues = initLowLimValues;\nnetworkSimplex.initCutValues = initCutValues;\nnetworkSimplex.calcCutValue = calcCutValue;\nnetworkSimplex.leaveEdge = leaveEdge;\nnetworkSimplex.enterEdge = enterEdge;\nnetworkSimplex.exchangeEdges = exchangeEdges;\n\n/*\n * The network simplex algorithm assigns ranks to each node in the input graph\n * and iteratively improves the ranking to reduce the length of edges.\n *\n * Preconditions:\n *\n * 1. The input graph must be a DAG.\n * 2. All nodes in the graph must have an object value.\n * 3. All edges in the graph must have \"minlen\" and \"weight\" attributes.\n *\n * Postconditions:\n *\n * 1. All nodes in the graph will have an assigned \"rank\" attribute that has\n * been optimized by the network simplex algorithm. Ranks start at 0.\n *\n *\n * A rough sketch of the algorithm is as follows:\n *\n * 1. Assign initial ranks to each node. We use the longest path algorithm,\n * which assigns ranks to the lowest position possible. In general this\n * leads to very wide bottom ranks and unnecessarily long edges.\n * 2. Construct a feasible tight tree. A tight tree is one such that all\n * edges in the tree have no slack (difference between length of edge\n * and minlen for the edge). This by itself greatly improves the assigned\n * rankings by shorting edges.\n * 3. Iteratively find edges that have negative cut values. Generally a\n * negative cut value indicates that the edge could be removed and a new\n * tree edge could be added to produce a more compact graph.\n *\n * Much of the algorithms here are derived from Gansner, et al., \"A Technique\n * for Drawing Directed Graphs.\" The structure of the file roughly follows the\n * structure of the overall algorithm.\n */\nfunction networkSimplex(g) {\n g = simplify(g);\n initRank(g);\n var t = feasibleTree(g);\n initLowLimValues(t);\n initCutValues(t, g);\n\n var e, f;\n while ((e = leaveEdge(t))) {\n f = enterEdge(t, g, e);\n exchangeEdges(t, g, e, f);\n }\n}\n\n/*\n * Initializes cut values for all edges in the tree.\n */\nfunction initCutValues(t, g) {\n var vs = postorder(t, t.nodes());\n vs = vs.slice(0, vs.length - 1);\n _.forEach(vs, function(v) {\n assignCutValue(t, g, v);\n });\n}\n\nfunction assignCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n t.edge(child, parent).cutvalue = calcCutValue(t, g, child);\n}\n\n/*\n * Given the tight tree, its graph, and a child in the graph calculate and\n * return the cut value for the edge between the child and its parent.\n */\nfunction calcCutValue(t, g, child) {\n var childLab = t.node(child);\n var parent = childLab.parent;\n // True if the child is on the tail end of the edge in the directed graph\n var childIsTail = true;\n // The graph's view of the tree edge we're inspecting\n var graphEdge = g.edge(child, parent);\n // The accumulated cut value for the edge between this node and its parent\n var cutValue = 0;\n\n if (!graphEdge) {\n childIsTail = false;\n graphEdge = g.edge(parent, child);\n }\n\n cutValue = graphEdge.weight;\n\n _.forEach(g.nodeEdges(child), function(e) {\n var isOutEdge = e.v === child,\n other = isOutEdge ? e.w : e.v;\n\n if (other !== parent) {\n var pointsToHead = isOutEdge === childIsTail,\n otherWeight = g.edge(e).weight;\n\n cutValue += pointsToHead ? otherWeight : -otherWeight;\n if (isTreeEdge(t, child, other)) {\n var otherCutValue = t.edge(child, other).cutvalue;\n cutValue += pointsToHead ? -otherCutValue : otherCutValue;\n }\n }\n });\n\n return cutValue;\n}\n\nfunction initLowLimValues(tree, root) {\n if (arguments.length < 2) {\n root = tree.nodes()[0];\n }\n dfsAssignLowLim(tree, {}, 1, root);\n}\n\nfunction dfsAssignLowLim(tree, visited, nextLim, v, parent) {\n var low = nextLim;\n var label = tree.node(v);\n\n visited[v] = true;\n _.forEach(tree.neighbors(v), function(w) {\n if (!_.has(visited, w)) {\n nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);\n }\n });\n\n label.low = low;\n label.lim = nextLim++;\n if (parent) {\n label.parent = parent;\n } else {\n // TODO should be able to remove this when we incrementally update low lim\n delete label.parent;\n }\n\n return nextLim;\n}\n\nfunction leaveEdge(tree) {\n return _.find(tree.edges(), function(e) {\n return tree.edge(e).cutvalue < 0;\n });\n}\n\nfunction enterEdge(t, g, edge) {\n var v = edge.v;\n var w = edge.w;\n\n // For the rest of this function we assume that v is the tail and w is the\n // head, so if we don't have this edge in the graph we should flip it to\n // match the correct orientation.\n if (!g.hasEdge(v, w)) {\n v = edge.w;\n w = edge.v;\n }\n\n var vLabel = t.node(v);\n var wLabel = t.node(w);\n var tailLabel = vLabel;\n var flip = false;\n\n // If the root is in the tail of the edge then we need to flip the logic that\n // checks for the head and tail nodes in the candidates function below.\n if (vLabel.lim > wLabel.lim) {\n tailLabel = wLabel;\n flip = true;\n }\n\n var candidates = _.filter(g.edges(), function(edge) {\n return flip === isDescendant(t, t.node(edge.v), tailLabel) &&\n flip !== isDescendant(t, t.node(edge.w), tailLabel);\n });\n\n return _.minBy(candidates, function(edge) { return slack(g, edge); });\n}\n\nfunction exchangeEdges(t, g, e, f) {\n var v = e.v;\n var w = e.w;\n t.removeEdge(v, w);\n t.setEdge(f.v, f.w, {});\n initLowLimValues(t);\n initCutValues(t, g);\n updateRanks(t, g);\n}\n\nfunction updateRanks(t, g) {\n var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; });\n var vs = preorder(t, root);\n vs = vs.slice(1);\n _.forEach(vs, function(v) {\n var parent = t.node(v).parent,\n edge = g.edge(v, parent),\n flipped = false;\n\n if (!edge) {\n edge = g.edge(parent, v);\n flipped = true;\n }\n\n g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);\n });\n}\n\n/*\n * Returns true if the edge is in the tree.\n */\nfunction isTreeEdge(tree, u, v) {\n return tree.hasEdge(u, v);\n}\n\n/*\n * Returns true if the specified node is descendant of the root node per the\n * assigned low and lim attributes in the tree.\n */\nfunction isDescendant(tree, vLabel, rootLabel) {\n return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;\n}\n" - }, - { - "id": 321, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/parent-dummy-chains.js", - "name": "./node_modules/dagre/lib/parent-dummy-chains.js", - "index": 847, - "index2": 840, - "size": 2017, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./parent-dummy-chains", - "loc": "8:24-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\n\nmodule.exports = parentDummyChains;\n\nfunction parentDummyChains(g) {\n var postorderNums = postorder(g);\n\n _.forEach(g.graph().dummyChains, function(v) {\n var node = g.node(v);\n var edgeObj = node.edgeObj;\n var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);\n var path = pathData.path;\n var lca = pathData.lca;\n var pathIdx = 0;\n var pathV = path[pathIdx];\n var ascending = true;\n\n while (v !== edgeObj.w) {\n node = g.node(v);\n\n if (ascending) {\n while ((pathV = path[pathIdx]) !== lca &&\n g.node(pathV).maxRank < node.rank) {\n pathIdx++;\n }\n\n if (pathV === lca) {\n ascending = false;\n }\n }\n\n if (!ascending) {\n while (pathIdx < path.length - 1 &&\n g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {\n pathIdx++;\n }\n pathV = path[pathIdx];\n }\n\n g.setParent(v, pathV);\n v = g.successors(v)[0];\n }\n });\n}\n\n// Find a path from v to w through the lowest common ancestor (LCA). Return the\n// full path and the LCA.\nfunction findPath(g, postorderNums, v, w) {\n var vPath = [];\n var wPath = [];\n var low = Math.min(postorderNums[v].low, postorderNums[w].low);\n var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);\n var parent;\n var lca;\n\n // Traverse up from v to find the LCA\n parent = v;\n do {\n parent = g.parent(parent);\n vPath.push(parent);\n } while (parent &&\n (postorderNums[parent].low > low || lim > postorderNums[parent].lim));\n lca = parent;\n\n // Traverse from w to LCA\n parent = w;\n while ((parent = g.parent(parent)) !== lca) {\n wPath.push(parent);\n }\n\n return { path: vPath.concat(wPath.reverse()), lca: lca };\n}\n\nfunction postorder(g) {\n var result = {};\n var lim = 0;\n\n function dfs(v) {\n var low = lim;\n _.forEach(g.children(v), dfs);\n result[v] = { low: low, lim: lim++ };\n }\n _.forEach(g.children(), dfs);\n\n return result;\n}\n" - }, - { - "id": 322, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/nesting-graph.js", - "name": "./node_modules/dagre/lib/nesting-graph.js", - "index": 848, - "index2": 841, - "size": 3641, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./nesting-graph", - "loc": "10:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = {\n run: run,\n cleanup: cleanup\n};\n\n/*\n * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,\n * adds appropriate edges to ensure that all cluster nodes are placed between\n * these boundries, and ensures that the graph is connected.\n *\n * In addition we ensure, through the use of the minlen property, that nodes\n * and subgraph border nodes to not end up on the same rank.\n *\n * Preconditions:\n *\n * 1. Input graph is a DAG\n * 2. Nodes in the input graph has a minlen attribute\n *\n * Postconditions:\n *\n * 1. Input graph is connected.\n * 2. Dummy nodes are added for the tops and bottoms of subgraphs.\n * 3. The minlen attribute for nodes is adjusted to ensure nodes do not\n * get placed on the same rank as subgraph border nodes.\n *\n * The nesting graph idea comes from Sander, \"Layout of Compound Directed\n * Graphs.\"\n */\nfunction run(g) {\n var root = util.addDummyNode(g, \"root\", {}, \"_root\");\n var depths = treeDepths(g);\n var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array\n var nodeSep = 2 * height + 1;\n\n g.graph().nestingRoot = root;\n\n // Multiply minlen by nodeSep to align nodes on non-border ranks.\n _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });\n\n // Calculate a weight that is sufficient to keep subgraphs vertically compact\n var weight = sumWeights(g) + 1;\n\n // Create border nodes and link them up\n _.forEach(g.children(), function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n });\n\n // Save the multiplier for node layers for later removal of empty border\n // layers.\n g.graph().nodeRankFactor = nodeSep;\n}\n\nfunction dfs(g, root, nodeSep, weight, height, depths, v) {\n var children = g.children(v);\n if (!children.length) {\n if (v !== root) {\n g.setEdge(root, v, { weight: 0, minlen: nodeSep });\n }\n return;\n }\n\n var top = util.addBorderNode(g, \"_bt\");\n var bottom = util.addBorderNode(g, \"_bb\");\n var label = g.node(v);\n\n g.setParent(top, v);\n label.borderTop = top;\n g.setParent(bottom, v);\n label.borderBottom = bottom;\n\n _.forEach(children, function(child) {\n dfs(g, root, nodeSep, weight, height, depths, child);\n\n var childNode = g.node(child);\n var childTop = childNode.borderTop ? childNode.borderTop : child;\n var childBottom = childNode.borderBottom ? childNode.borderBottom : child;\n var thisWeight = childNode.borderTop ? weight : 2 * weight;\n var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;\n\n g.setEdge(top, childTop, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n\n g.setEdge(childBottom, bottom, {\n weight: thisWeight,\n minlen: minlen,\n nestingEdge: true\n });\n });\n\n if (!g.parent(v)) {\n g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });\n }\n}\n\nfunction treeDepths(g) {\n var depths = {};\n function dfs(v, depth) {\n var children = g.children(v);\n if (children && children.length) {\n _.forEach(children, function(child) {\n dfs(child, depth + 1);\n });\n }\n depths[v] = depth;\n }\n _.forEach(g.children(), function(v) { dfs(v, 1); });\n return depths;\n}\n\nfunction sumWeights(g) {\n return _.reduce(g.edges(), function(acc, e) {\n return acc + g.edge(e).weight;\n }, 0);\n}\n\nfunction cleanup(g) {\n var graphLabel = g.graph();\n g.removeNode(graphLabel.nestingRoot);\n delete graphLabel.nestingRoot;\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n if (edge.nestingEdge) {\n g.removeEdge(e);\n }\n });\n}\n" - }, - { - "id": 323, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/add-border-segments.js", - "name": "./node_modules/dagre/lib/add-border-segments.js", - "index": 849, - "index2": 842, - "size": 993, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./add-border-segments", - "loc": "11:24-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\n\nmodule.exports = addBorderSegments;\n\nfunction addBorderSegments(g) {\n function dfs(v) {\n var children = g.children(v);\n var node = g.node(v);\n if (children.length) {\n _.forEach(children, dfs);\n }\n\n if (_.has(node, \"minRank\")) {\n node.borderLeft = [];\n node.borderRight = [];\n for (var rank = node.minRank, maxRank = node.maxRank + 1;\n rank < maxRank;\n ++rank) {\n addBorderNode(g, \"borderLeft\", \"_bl\", v, node, rank);\n addBorderNode(g, \"borderRight\", \"_br\", v, node, rank);\n }\n }\n }\n\n _.forEach(g.children(), dfs);\n}\n\nfunction addBorderNode(g, prop, prefix, sg, sgNode, rank) {\n var label = { width: 0, height: 0, rank: rank, borderType: prop };\n var prev = sgNode[prop][rank - 1];\n var curr = util.addDummyNode(g, \"border\", label, prefix);\n sgNode[prop][rank] = curr;\n g.setParent(curr, sg);\n if (prev) {\n g.setEdge(prev, curr, { weight: 1 });\n }\n}\n" - }, - { - "id": 324, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/coordinate-system.js", - "name": "./node_modules/dagre/lib/coordinate-system.js", - "index": 850, - "index2": 843, - "size": 1418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./coordinate-system", - "loc": "12:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\n\nmodule.exports = {\n adjust: adjust,\n undo: undo\n};\n\nfunction adjust(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapWidthHeight(g);\n }\n}\n\nfunction undo(g) {\n var rankDir = g.graph().rankdir.toLowerCase();\n if (rankDir === \"bt\" || rankDir === \"rl\") {\n reverseY(g);\n }\n\n if (rankDir === \"lr\" || rankDir === \"rl\") {\n swapXY(g);\n swapWidthHeight(g);\n }\n}\n\nfunction swapWidthHeight(g) {\n _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });\n _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });\n}\n\nfunction swapWidthHeightOne(attrs) {\n var w = attrs.width;\n attrs.width = attrs.height;\n attrs.height = w;\n}\n\nfunction reverseY(g) {\n _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, reverseYOne);\n if (_.has(edge, \"y\")) {\n reverseYOne(edge);\n }\n });\n}\n\nfunction reverseYOne(attrs) {\n attrs.y = -attrs.y;\n}\n\nfunction swapXY(g) {\n _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });\n\n _.forEach(g.edges(), function(e) {\n var edge = g.edge(e);\n _.forEach(edge.points, swapXYOne);\n if (_.has(edge, \"x\")) {\n swapXYOne(edge);\n }\n });\n}\n\nfunction swapXYOne(attrs) {\n var x = attrs.x;\n attrs.x = attrs.y;\n attrs.y = x;\n}\n" - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "index": 851, - "index2": 852, - "size": 2161, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./order", - "loc": "13:12-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar initOrder = require(\"./init-order\");\nvar crossCount = require(\"./cross-count\");\nvar sortSubgraph = require(\"./sort-subgraph\");\nvar buildLayerGraph = require(\"./build-layer-graph\");\nvar addSubgraphConstraints = require(\"./add-subgraph-constraints\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\nmodule.exports = order;\n\n/*\n * Applies heuristics to minimize edge crossings in the graph and sets the best\n * order solution as an order attribute on each node.\n *\n * Pre-conditions:\n *\n * 1. Graph must be DAG\n * 2. Graph nodes must be objects with a \"rank\" attribute\n * 3. Graph edges must have the \"weight\" attribute\n *\n * Post-conditions:\n *\n * 1. Graph nodes will have an \"order\" attribute based on the results of the\n * algorithm.\n */\nfunction order(g) {\n var maxRank = util.maxRank(g),\n downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), \"inEdges\"),\n upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), \"outEdges\");\n\n var layering = initOrder(g);\n assignOrder(g, layering);\n\n var bestCC = Number.POSITIVE_INFINITY,\n best;\n\n for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {\n sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);\n\n layering = util.buildLayerMatrix(g);\n var cc = crossCount(g, layering);\n if (cc < bestCC) {\n lastBest = 0;\n best = _.cloneDeep(layering);\n bestCC = cc;\n }\n }\n\n assignOrder(g, best);\n}\n\nfunction buildLayerGraphs(g, ranks, relationship) {\n return _.map(ranks, function(rank) {\n return buildLayerGraph(g, rank, relationship);\n });\n}\n\nfunction sweepLayerGraphs(layerGraphs, biasRight) {\n var cg = new Graph();\n _.forEach(layerGraphs, function(lg) {\n var root = lg.graph().root;\n var sorted = sortSubgraph(lg, root, cg, biasRight);\n _.forEach(sorted.vs, function(v, i) {\n lg.node(v).order = i;\n });\n addSubgraphConstraints(lg, cg, sorted.vs);\n });\n}\n\nfunction assignOrder(g, layering) {\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, i) {\n g.node(v).order = i;\n });\n });\n}\n" - }, - { - "id": 326, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/init-order.js", - "name": "./node_modules/dagre/lib/order/init-order.js", - "index": 852, - "index2": 844, - "size": 1073, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./init-order", - "loc": "4:16-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = initOrder;\n\n/*\n * Assigns an initial order value for each node by performing a DFS search\n * starting from nodes in the first rank. Nodes are assigned an order in their\n * rank as they are first visited.\n *\n * This approach comes from Gansner, et al., \"A Technique for Drawing Directed\n * Graphs.\"\n *\n * Returns a layering matrix with an array per layer and each layer sorted by\n * the order of its nodes.\n */\nfunction initOrder(g) {\n var visited = {};\n var simpleNodes = _.filter(g.nodes(), function(v) {\n return !g.children(v).length;\n });\n var maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; }));\n var layers = _.map(_.range(maxRank + 1), function() { return []; });\n\n function dfs(v) {\n if (_.has(visited, v)) return;\n visited[v] = true;\n var node = g.node(v);\n layers[node.rank].push(v);\n _.forEach(g.successors(v), dfs);\n }\n\n var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });\n _.forEach(orderedVs, dfs);\n\n return layers;\n}\n" - }, - { - "id": 327, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/cross-count.js", - "name": "./node_modules/dagre/lib/order/cross-count.js", - "index": 853, - "index2": 845, - "size": 1984, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./cross-count", - "loc": "5:17-41" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = crossCount;\n\n/*\n * A function that takes a layering (an array of layers, each with an array of\n * ordererd nodes) and a graph and returns a weighted crossing count.\n *\n * Pre-conditions:\n *\n * 1. Input graph must be simple (not a multigraph), directed, and include\n * only simple edges.\n * 2. Edges in the input graph must have assigned weights.\n *\n * Post-conditions:\n *\n * 1. The graph and layering matrix are left unchanged.\n *\n * This algorithm is derived from Barth, et al., \"Bilayer Cross Counting.\"\n */\nfunction crossCount(g, layering) {\n var cc = 0;\n for (var i = 1; i < layering.length; ++i) {\n cc += twoLayerCrossCount(g, layering[i-1], layering[i]);\n }\n return cc;\n}\n\nfunction twoLayerCrossCount(g, northLayer, southLayer) {\n // Sort all of the edges between the north and south layers by their position\n // in the north layer and then the south. Map these edges to the position of\n // their head in the south layer.\n var southPos = _.zipObject(southLayer,\n _.map(southLayer, function (v, i) { return i; }));\n var southEntries = _.flatten(_.map(northLayer, function(v) {\n return _.sortBy(_.map(g.outEdges(v), function(e) {\n return { pos: southPos[e.w], weight: g.edge(e).weight };\n }), \"pos\");\n }), true);\n\n // Build the accumulator tree\n var firstIndex = 1;\n while (firstIndex < southLayer.length) firstIndex <<= 1;\n var treeSize = 2 * firstIndex - 1;\n firstIndex -= 1;\n var tree = _.map(new Array(treeSize), function() { return 0; });\n\n // Calculate the weighted crossings\n var cc = 0;\n _.forEach(southEntries.forEach(function(entry) {\n var index = entry.pos + firstIndex;\n tree[index] += entry.weight;\n var weightSum = 0;\n while (index > 0) {\n if (index % 2) {\n weightSum += tree[index + 1];\n }\n index = (index - 1) >> 1;\n tree[index] += entry.weight;\n }\n cc += entry.weight * weightSum;\n }));\n\n return cc;\n}\n" - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "index": 854, - "index2": 849, - "size": 2144, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./sort-subgraph", - "loc": "6:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\nvar barycenter = require(\"./barycenter\");\nvar resolveConflicts = require(\"./resolve-conflicts\");\nvar sort = require(\"./sort\");\n\nmodule.exports = sortSubgraph;\n\nfunction sortSubgraph(g, v, cg, biasRight) {\n var movable = g.children(v);\n var node = g.node(v);\n var bl = node ? node.borderLeft : undefined;\n var br = node ? node.borderRight: undefined;\n var subgraphs = {};\n\n if (bl) {\n movable = _.filter(movable, function(w) {\n return w !== bl && w !== br;\n });\n }\n\n var barycenters = barycenter(g, movable);\n _.forEach(barycenters, function(entry) {\n if (g.children(entry.v).length) {\n var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);\n subgraphs[entry.v] = subgraphResult;\n if (_.has(subgraphResult, \"barycenter\")) {\n mergeBarycenters(entry, subgraphResult);\n }\n }\n });\n\n var entries = resolveConflicts(barycenters, cg);\n expandSubgraphs(entries, subgraphs);\n\n var result = sort(entries, biasRight);\n\n if (bl) {\n result.vs = _.flatten([bl, result.vs, br], true);\n if (g.predecessors(bl).length) {\n var blPred = g.node(g.predecessors(bl)[0]),\n brPred = g.node(g.predecessors(br)[0]);\n if (!_.has(result, \"barycenter\")) {\n result.barycenter = 0;\n result.weight = 0;\n }\n result.barycenter = (result.barycenter * result.weight +\n blPred.order + brPred.order) / (result.weight + 2);\n result.weight += 2;\n }\n }\n\n return result;\n}\n\nfunction expandSubgraphs(entries, subgraphs) {\n _.forEach(entries, function(entry) {\n entry.vs = _.flatten(entry.vs.map(function(v) {\n if (subgraphs[v]) {\n return subgraphs[v].vs;\n }\n return v;\n }), true);\n });\n}\n\nfunction mergeBarycenters(target, other) {\n if (!_.isUndefined(target.barycenter)) {\n target.barycenter = (target.barycenter * target.weight +\n other.barycenter * other.weight) /\n (target.weight + other.weight);\n target.weight += other.weight;\n } else {\n target.barycenter = other.barycenter;\n target.weight = other.weight;\n }\n}\n" - }, - { - "id": 329, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/barycenter.js", - "name": "./node_modules/dagre/lib/order/barycenter.js", - "index": 855, - "index2": 846, - "size": 623, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./barycenter", - "loc": "2:17-40" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = barycenter;\n\nfunction barycenter(g, movable) {\n return _.map(movable, function(v) {\n var inV = g.inEdges(v);\n if (!inV.length) {\n return { v: v };\n } else {\n var result = _.reduce(inV, function(acc, e) {\n var edge = g.edge(e),\n nodeU = g.node(e.v);\n return {\n sum: acc.sum + (edge.weight * nodeU.order),\n weight: acc.weight + edge.weight\n };\n }, { sum: 0, weight: 0 });\n\n return {\n v: v,\n barycenter: result.sum / result.weight,\n weight: result.weight\n };\n }\n });\n}\n\n" - }, - { - "id": 330, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/resolve-conflicts.js", - "name": "./node_modules/dagre/lib/order/resolve-conflicts.js", - "index": 856, - "index2": 847, - "size": 3329, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./resolve-conflicts", - "loc": "3:23-53" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\n\nmodule.exports = resolveConflicts;\n\n/*\n * Given a list of entries of the form {v, barycenter, weight} and a\n * constraint graph this function will resolve any conflicts between the\n * constraint graph and the barycenters for the entries. If the barycenters for\n * an entry would violate a constraint in the constraint graph then we coalesce\n * the nodes in the conflict into a new node that respects the contraint and\n * aggregates barycenter and weight information.\n *\n * This implementation is based on the description in Forster, \"A Fast and\n * Simple Hueristic for Constrained Two-Level Crossing Reduction,\" thought it\n * differs in some specific details.\n *\n * Pre-conditions:\n *\n * 1. Each entry has the form {v, barycenter, weight}, or if the node has\n * no barycenter, then {v}.\n *\n * Returns:\n *\n * A new list of entries of the form {vs, i, barycenter, weight}. The list\n * `vs` may either be a singleton or it may be an aggregation of nodes\n * ordered such that they do not violate constraints from the constraint\n * graph. The property `i` is the lowest original index of any of the\n * elements in `vs`.\n */\nfunction resolveConflicts(entries, cg) {\n var mappedEntries = {};\n _.forEach(entries, function(entry, i) {\n var tmp = mappedEntries[entry.v] = {\n indegree: 0,\n \"in\": [],\n out: [],\n vs: [entry.v],\n i: i\n };\n if (!_.isUndefined(entry.barycenter)) {\n tmp.barycenter = entry.barycenter;\n tmp.weight = entry.weight;\n }\n });\n\n _.forEach(cg.edges(), function(e) {\n var entryV = mappedEntries[e.v];\n var entryW = mappedEntries[e.w];\n if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {\n entryW.indegree++;\n entryV.out.push(mappedEntries[e.w]);\n }\n });\n\n var sourceSet = _.filter(mappedEntries, function(entry) {\n return !entry.indegree;\n });\n\n return doResolveConflicts(sourceSet);\n}\n\nfunction doResolveConflicts(sourceSet) {\n var entries = [];\n\n function handleIn(vEntry) {\n return function(uEntry) {\n if (uEntry.merged) {\n return;\n }\n if (_.isUndefined(uEntry.barycenter) ||\n _.isUndefined(vEntry.barycenter) ||\n uEntry.barycenter >= vEntry.barycenter) {\n mergeEntries(vEntry, uEntry);\n }\n };\n }\n\n function handleOut(vEntry) {\n return function(wEntry) {\n wEntry[\"in\"].push(vEntry);\n if (--wEntry.indegree === 0) {\n sourceSet.push(wEntry);\n }\n };\n }\n\n while (sourceSet.length) {\n var entry = sourceSet.pop();\n entries.push(entry);\n _.forEach(entry[\"in\"].reverse(), handleIn(entry));\n _.forEach(entry.out, handleOut(entry));\n }\n\n return _.map(_.filter(entries, function(entry) { return !entry.merged; }),\n function(entry) {\n return _.pick(entry, [\"vs\", \"i\", \"barycenter\", \"weight\"]);\n });\n\n}\n\nfunction mergeEntries(target, source) {\n var sum = 0;\n var weight = 0;\n\n if (target.weight) {\n sum += target.barycenter * target.weight;\n weight += target.weight;\n }\n\n if (source.weight) {\n sum += source.barycenter * source.weight;\n weight += source.weight;\n }\n\n target.vs = source.vs.concat(target.vs);\n target.barycenter = sum / weight;\n target.weight = weight;\n target.i = Math.min(source.i, target.i);\n source.merged = true;\n}\n" - }, - { - "id": 331, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort.js", - "name": "./node_modules/dagre/lib/order/sort.js", - "index": 857, - "index2": 848, - "size": 1374, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "issuerId": 328, - "issuerName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - }, - { - "id": 328, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "name": "./node_modules/dagre/lib/order/sort-subgraph.js", - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 59, - "building": 30, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 328, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/sort-subgraph.js", - "module": "./node_modules/dagre/lib/order/sort-subgraph.js", - "moduleName": "./node_modules/dagre/lib/order/sort-subgraph.js", - "type": "cjs require", - "userRequest": "./sort", - "loc": "4:11-28" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var _ = require(\"../lodash\");\nvar util = require(\"../util\");\n\nmodule.exports = sort;\n\nfunction sort(entries, biasRight) {\n var parts = util.partition(entries, function(entry) {\n return _.has(entry, \"barycenter\");\n });\n var sortable = parts.lhs,\n unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),\n vs = [],\n sum = 0,\n weight = 0,\n vsIndex = 0;\n\n sortable.sort(compareWithBias(!!biasRight));\n\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n\n _.forEach(sortable, function (entry) {\n vsIndex += entry.vs.length;\n vs.push(entry.vs);\n sum += entry.barycenter * entry.weight;\n weight += entry.weight;\n vsIndex = consumeUnsortable(vs, unsortable, vsIndex);\n });\n\n var result = { vs: _.flatten(vs, true) };\n if (weight) {\n result.barycenter = sum / weight;\n result.weight = weight;\n }\n return result;\n}\n\nfunction consumeUnsortable(vs, unsortable, index) {\n var last;\n while (unsortable.length && (last = _.last(unsortable)).i <= index) {\n unsortable.pop();\n vs.push(last.vs);\n index++;\n }\n return index;\n}\n\nfunction compareWithBias(bias) {\n return function(entryV, entryW) {\n if (entryV.barycenter < entryW.barycenter) {\n return -1;\n } else if (entryV.barycenter > entryW.barycenter) {\n return 1;\n }\n\n return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;\n };\n}\n" - }, - { - "id": 332, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/build-layer-graph.js", - "name": "./node_modules/dagre/lib/order/build-layer-graph.js", - "index": 858, - "index2": 850, - "size": 2568, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./build-layer-graph", - "loc": "7:22-52" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\n\nmodule.exports = buildLayerGraph;\n\n/*\n * Constructs a graph that can be used to sort a layer of nodes. The graph will\n * contain all base and subgraph nodes from the request layer in their original\n * hierarchy and any edges that are incident on these nodes and are of the type\n * requested by the \"relationship\" parameter.\n *\n * Nodes from the requested rank that do not have parents are assigned a root\n * node in the output graph, which is set in the root graph attribute. This\n * makes it easy to walk the hierarchy of movable nodes during ordering.\n *\n * Pre-conditions:\n *\n * 1. Input graph is a DAG\n * 2. Base nodes in the input graph have a rank attribute\n * 3. Subgraph nodes in the input graph has minRank and maxRank attributes\n * 4. Edges have an assigned weight\n *\n * Post-conditions:\n *\n * 1. Output graph has all nodes in the movable rank with preserved\n * hierarchy.\n * 2. Root nodes in the movable layer are made children of the node\n * indicated by the root attribute of the graph.\n * 3. Non-movable nodes incident on movable nodes, selected by the\n * relationship parameter, are included in the graph (without hierarchy).\n * 4. Edges incident on movable nodes, selected by the relationship\n * parameter, are added to the output graph.\n * 5. The weights for copied edges are aggregated as need, since the output\n * graph is not a multi-graph.\n */\nfunction buildLayerGraph(g, rank, relationship) {\n var root = createRootNode(g),\n result = new Graph({ compound: true }).setGraph({ root: root })\n .setDefaultNodeLabel(function(v) { return g.node(v); });\n\n _.forEach(g.nodes(), function(v) {\n var node = g.node(v),\n parent = g.parent(v);\n\n if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {\n result.setNode(v);\n result.setParent(v, parent || root);\n\n // This assumes we have only short edges!\n _.forEach(g[relationship](v), function(e) {\n var u = e.v === v ? e.w : e.v,\n edge = result.edge(u, v),\n weight = !_.isUndefined(edge) ? edge.weight : 0;\n result.setEdge(u, v, { weight: g.edge(e).weight + weight });\n });\n\n if (_.has(node, \"minRank\")) {\n result.setNode(v, {\n borderLeft: node.borderLeft[rank],\n borderRight: node.borderRight[rank]\n });\n }\n }\n });\n\n return result;\n}\n\nfunction createRootNode(g) {\n var v;\n while (g.hasNode((v = _.uniqueId(\"_root\"))));\n return v;\n}\n" - }, - { - "id": 333, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/add-subgraph-constraints.js", - "name": "./node_modules/dagre/lib/order/add-subgraph-constraints.js", - "index": 859, - "index2": 851, - "size": 1219, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "issuerId": 325, - "issuerName": "./node_modules/dagre/lib/order/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 325, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "name": "./node_modules/dagre/lib/order/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 80, - "building": 24, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 325, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/order/index.js", - "module": "./node_modules/dagre/lib/order/index.js", - "moduleName": "./node_modules/dagre/lib/order/index.js", - "type": "cjs require", - "userRequest": "./add-subgraph-constraints", - "loc": "8:29-66" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "var _ = require(\"../lodash\");\n\nmodule.exports = addSubgraphConstraints;\n\nfunction addSubgraphConstraints(g, cg, vs) {\n var prev = {},\n rootPrev;\n\n _.forEach(vs, function(v) {\n var child = g.parent(v),\n parent,\n prevChild;\n while (child) {\n parent = g.parent(child);\n if (parent) {\n prevChild = prev[parent];\n prev[parent] = child;\n } else {\n prevChild = rootPrev;\n rootPrev = child;\n }\n if (prevChild && prevChild !== child) {\n cg.setEdge(prevChild, child);\n return;\n }\n child = parent;\n }\n });\n\n /*\n function dfs(v) {\n var children = v ? g.children(v) : g.children();\n if (children.length) {\n var min = Number.POSITIVE_INFINITY,\n subgraphs = [];\n _.each(children, function(child) {\n var childMin = dfs(child);\n if (g.children(child).length) {\n subgraphs.push({ v: child, order: childMin });\n }\n min = Math.min(min, childMin);\n });\n _.reduce(_.sortBy(subgraphs, \"order\"), function(prev, curr) {\n cg.setEdge(prev.v, curr.v);\n return curr;\n });\n return min;\n }\n return g.node(v).order;\n }\n dfs(undefined);\n */\n}\n" - }, - { - "id": 334, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "name": "./node_modules/dagre/lib/position/index.js", - "index": 860, - "index2": 854, - "size": 666, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "issuerId": 282, - "issuerName": "./node_modules/dagre/lib/layout.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - } - ], - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 282, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "module": "./node_modules/dagre/lib/layout.js", - "moduleName": "./node_modules/dagre/lib/layout.js", - "type": "cjs require", - "userRequest": "./position", - "loc": "14:15-36" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar util = require(\"../util\");\nvar positionX = require(\"./bk\").positionX;\n\nmodule.exports = position;\n\nfunction position(g) {\n g = util.asNonCompoundGraph(g);\n\n positionY(g);\n _.forEach(positionX(g), function(x, v) {\n g.node(v).x = x;\n });\n}\n\nfunction positionY(g) {\n var layering = util.buildLayerMatrix(g);\n var rankSep = g.graph().ranksep;\n var prevY = 0;\n _.forEach(layering, function(layer) {\n var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));\n _.forEach(layer, function(v) {\n g.node(v).y = prevY + maxHeight / 2;\n });\n prevY += maxHeight + rankSep;\n });\n}\n\n" - }, - { - "id": 335, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/bk.js", - "name": "./node_modules/dagre/lib/position/bk.js", - "index": 861, - "index2": 853, - "size": 11912, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "issuerId": 334, - "issuerName": "./node_modules/dagre/lib/position/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - }, - { - "id": 282, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/layout.js", - "name": "./node_modules/dagre/lib/layout.js", - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - } - }, - { - "id": 334, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "name": "./node_modules/dagre/lib/position/index.js", - "profile": { - "factory": 322, - "building": 17, - "dependencies": 54 - } - } - ], - "profile": { - "factory": 64, - "building": 38, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 334, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/position/index.js", - "module": "./node_modules/dagre/lib/position/index.js", - "moduleName": "./node_modules/dagre/lib/position/index.js", - "type": "cjs require", - "userRequest": "./bk", - "loc": "5:16-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "\"use strict\";\n\nvar _ = require(\"../lodash\");\nvar Graph = require(\"../graphlib\").Graph;\nvar util = require(\"../util\");\n\n/*\n * This module provides coordinate assignment based on Brandes and Köpf, \"Fast\n * and Simple Horizontal Coordinate Assignment.\"\n */\n\nmodule.exports = {\n positionX: positionX,\n findType1Conflicts: findType1Conflicts,\n findType2Conflicts: findType2Conflicts,\n addConflict: addConflict,\n hasConflict: hasConflict,\n verticalAlignment: verticalAlignment,\n horizontalCompaction: horizontalCompaction,\n alignCoordinates: alignCoordinates,\n findSmallestWidthAlignment: findSmallestWidthAlignment,\n balance: balance\n};\n\n/*\n * Marks all edges in the graph with a type-1 conflict with the \"type1Conflict\"\n * property. A type-1 conflict is one where a non-inner segment crosses an\n * inner segment. An inner segment is an edge with both incident nodes marked\n * with the \"dummy\" property.\n *\n * This algorithm scans layer by layer, starting with the second, for type-1\n * conflicts between the current layer and the previous layer. For each layer\n * it scans the nodes from left to right until it reaches one that is incident\n * on an inner segment. It then scans predecessors to determine if they have\n * edges that cross that inner segment. At the end a final scan is done for all\n * nodes on the current rank to see if they cross the last visited inner\n * segment.\n *\n * This algorithm (safely) assumes that a dummy node will only be incident on a\n * single node in the layers being scanned.\n */\nfunction findType1Conflicts(g, layering) {\n var conflicts = {};\n\n function visitLayer(prevLayer, layer) {\n var\n // last visited node in the previous layer that is incident on an inner\n // segment.\n k0 = 0,\n // Tracks the last node in this layer scanned for crossings with a type-1\n // segment.\n scanPos = 0,\n prevLayerLength = prevLayer.length,\n lastNode = _.last(layer);\n\n _.forEach(layer, function(v, i) {\n var w = findOtherInnerSegmentNode(g, v),\n k1 = w ? g.node(w).order : prevLayerLength;\n\n if (w || v === lastNode) {\n _.forEach(layer.slice(scanPos, i +1), function(scanNode) {\n _.forEach(g.predecessors(scanNode), function(u) {\n var uLabel = g.node(u),\n uPos = uLabel.order;\n if ((uPos < k0 || k1 < uPos) &&\n !(uLabel.dummy && g.node(scanNode).dummy)) {\n addConflict(conflicts, u, scanNode);\n }\n });\n });\n scanPos = i + 1;\n k0 = k1;\n }\n });\n\n return layer;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findType2Conflicts(g, layering) {\n var conflicts = {};\n\n function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {\n var v;\n _.forEach(_.range(southPos, southEnd), function(i) {\n v = south[i];\n if (g.node(v).dummy) {\n _.forEach(g.predecessors(v), function(u) {\n var uNode = g.node(u);\n if (uNode.dummy &&\n (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {\n addConflict(conflicts, u, v);\n }\n });\n }\n });\n }\n\n\n function visitLayer(north, south) {\n var prevNorthPos = -1,\n nextNorthPos,\n southPos = 0;\n\n _.forEach(south, function(v, southLookahead) {\n if (g.node(v).dummy === \"border\") {\n var predecessors = g.predecessors(v);\n if (predecessors.length) {\n nextNorthPos = g.node(predecessors[0]).order;\n scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);\n southPos = southLookahead;\n prevNorthPos = nextNorthPos;\n }\n }\n scan(south, southPos, south.length, nextNorthPos, north.length);\n });\n\n return south;\n }\n\n _.reduce(layering, visitLayer);\n return conflicts;\n}\n\nfunction findOtherInnerSegmentNode(g, v) {\n if (g.node(v).dummy) {\n return _.find(g.predecessors(v), function(u) {\n return g.node(u).dummy;\n });\n }\n}\n\nfunction addConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n\n var conflictsV = conflicts[v];\n if (!conflictsV) {\n conflicts[v] = conflictsV = {};\n }\n conflictsV[w] = true;\n}\n\nfunction hasConflict(conflicts, v, w) {\n if (v > w) {\n var tmp = v;\n v = w;\n w = tmp;\n }\n return _.has(conflicts[v], w);\n}\n\n/*\n * Try to align nodes into vertical \"blocks\" where possible. This algorithm\n * attempts to align a node with one of its median neighbors. If the edge\n * connecting a neighbor is a type-1 conflict then we ignore that possibility.\n * If a previous node has already formed a block with a node after the node\n * we're trying to form a block with, we also ignore that possibility - our\n * blocks would be split in that scenario.\n */\nfunction verticalAlignment(g, layering, conflicts, neighborFn) {\n var root = {},\n align = {},\n pos = {};\n\n // We cache the position here based on the layering because the graph and\n // layering may be out of sync. The layering matrix is manipulated to\n // generate different extreme alignments.\n _.forEach(layering, function(layer) {\n _.forEach(layer, function(v, order) {\n root[v] = v;\n align[v] = v;\n pos[v] = order;\n });\n });\n\n _.forEach(layering, function(layer) {\n var prevIdx = -1;\n _.forEach(layer, function(v) {\n var ws = neighborFn(v);\n if (ws.length) {\n ws = _.sortBy(ws, function(w) { return pos[w]; });\n var mp = (ws.length - 1) / 2;\n for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {\n var w = ws[i];\n if (align[v] === v &&\n prevIdx < pos[w] &&\n !hasConflict(conflicts, v, w)) {\n align[w] = v;\n align[v] = root[v] = root[w];\n prevIdx = pos[w];\n }\n }\n }\n });\n });\n\n return { root: root, align: align };\n}\n\nfunction horizontalCompaction(g, layering, root, align, reverseSep) {\n // This portion of the algorithm differs from BK due to a number of problems.\n // Instead of their algorithm we construct a new block graph and do two\n // sweeps. The first sweep places blocks with the smallest possible\n // coordinates. The second sweep removes unused space by moving blocks to the\n // greatest coordinates without violating separation.\n var xs = {},\n blockG = buildBlockGraph(g, layering, root, reverseSep),\n borderType = reverseSep ? \"borderLeft\" : \"borderRight\";\n\n function iterate(setXsFunc, nextNodesFunc) {\n var stack = blockG.nodes();\n var elem = stack.pop();\n var visited = {};\n while (elem) {\n if (visited[elem]) {\n setXsFunc(elem);\n } else {\n visited[elem] = true;\n stack.push(elem);\n stack = stack.concat(nextNodesFunc(elem));\n }\n\n elem = stack.pop();\n }\n }\n\n // First pass, assign smallest coordinates\n function pass1(elem) {\n xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {\n return Math.max(acc, xs[e.v] + blockG.edge(e));\n }, 0);\n }\n\n // Second pass, assign greatest coordinates\n function pass2(elem) {\n var min = blockG.outEdges(elem).reduce(function(acc, e) {\n return Math.min(acc, xs[e.w] - blockG.edge(e));\n }, Number.POSITIVE_INFINITY);\n\n var node = g.node(elem);\n if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {\n xs[elem] = Math.max(xs[elem], min);\n }\n }\n\n iterate(pass1, blockG.predecessors.bind(blockG));\n iterate(pass2, blockG.successors.bind(blockG));\n\n // Assign x coordinates to all nodes\n _.forEach(align, function(v) {\n xs[v] = xs[root[v]];\n });\n\n return xs;\n}\n\n\nfunction buildBlockGraph(g, layering, root, reverseSep) {\n var blockGraph = new Graph(),\n graphLabel = g.graph(),\n sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);\n\n _.forEach(layering, function(layer) {\n var u;\n _.forEach(layer, function(v) {\n var vRoot = root[v];\n blockGraph.setNode(vRoot);\n if (u) {\n var uRoot = root[u],\n prevMax = blockGraph.edge(uRoot, vRoot);\n blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));\n }\n u = v;\n });\n });\n\n return blockGraph;\n}\n\n/*\n * Returns the alignment that has the smallest width of the given alignments.\n */\nfunction findSmallestWidthAlignment(g, xss) {\n return _.minBy(_.values(xss), function (xs) {\n var max = Number.NEGATIVE_INFINITY;\n var min = Number.POSITIVE_INFINITY;\n\n _.forIn(xs, function (x, v) {\n var halfWidth = width(g, v) / 2;\n\n max = Math.max(x + halfWidth, max);\n min = Math.min(x - halfWidth, min);\n });\n\n return max - min;\n });\n}\n\n/*\n * Align the coordinates of each of the layout alignments such that\n * left-biased alignments have their minimum coordinate at the same point as\n * the minimum coordinate of the smallest width alignment and right-biased\n * alignments have their maximum coordinate at the same point as the maximum\n * coordinate of the smallest width alignment.\n */\nfunction alignCoordinates(xss, alignTo) {\n var alignToVals = _.values(alignTo),\n alignToMin = _.min(alignToVals),\n alignToMax = _.max(alignToVals);\n\n _.forEach([\"u\", \"d\"], function(vert) {\n _.forEach([\"l\", \"r\"], function(horiz) {\n var alignment = vert + horiz,\n xs = xss[alignment],\n delta;\n if (xs === alignTo) return;\n\n var xsVals = _.values(xs);\n delta = horiz === \"l\" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);\n\n if (delta) {\n xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });\n }\n });\n });\n}\n\nfunction balance(xss, align) {\n return _.mapValues(xss.ul, function(ignore, v) {\n if (align) {\n return xss[align.toLowerCase()][v];\n } else {\n var xs = _.sortBy(_.map(xss, v));\n return (xs[1] + xs[2]) / 2;\n }\n });\n}\n\nfunction positionX(g) {\n var layering = util.buildLayerMatrix(g);\n var conflicts = _.merge(\n findType1Conflicts(g, layering),\n findType2Conflicts(g, layering));\n\n var xss = {};\n var adjustedLayering;\n _.forEach([\"u\", \"d\"], function(vert) {\n adjustedLayering = vert === \"u\" ? layering : _.values(layering).reverse();\n _.forEach([\"l\", \"r\"], function(horiz) {\n if (horiz === \"r\") {\n adjustedLayering = _.map(adjustedLayering, function(inner) {\n return _.values(inner).reverse();\n });\n }\n\n var neighborFn = (vert === \"u\" ? g.predecessors : g.successors).bind(g);\n var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);\n var xs = horizontalCompaction(g, adjustedLayering,\n align.root, align.align, horiz === \"r\");\n if (horiz === \"r\") {\n xs = _.mapValues(xs, function(x) { return -x; });\n }\n xss[vert + horiz] = xs;\n });\n });\n\n var smallestWidth = findSmallestWidthAlignment(g, xss);\n alignCoordinates(xss, smallestWidth);\n return balance(xss, g.graph().align);\n}\n\nfunction sep(nodeSep, edgeSep, reverseSep) {\n return function(g, v, w) {\n var vLabel = g.node(v);\n var wLabel = g.node(w);\n var sum = 0;\n var delta;\n\n sum += vLabel.width / 2;\n if (_.has(vLabel, \"labelpos\")) {\n switch (vLabel.labelpos.toLowerCase()) {\n case \"l\": delta = -vLabel.width / 2; break;\n case \"r\": delta = vLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;\n sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;\n\n sum += wLabel.width / 2;\n if (_.has(wLabel, \"labelpos\")) {\n switch (wLabel.labelpos.toLowerCase()) {\n case \"l\": delta = wLabel.width / 2; break;\n case \"r\": delta = -wLabel.width / 2; break;\n }\n }\n if (delta) {\n sum += reverseSep ? delta : -delta;\n }\n delta = 0;\n\n return sum;\n };\n}\n\nfunction width(g, v) {\n return g.node(v).width;\n}\n" - }, - { - "id": 336, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/debug.js", - "name": "./node_modules/dagre/lib/debug.js", - "index": 862, - "index2": 856, - "size": 775, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/debug", - "loc": "27:9-31" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar util = require(\"./util\");\nvar Graph = require(\"./graphlib\").Graph;\n\nmodule.exports = {\n debugOrdering: debugOrdering\n};\n\n/* istanbul ignore next */\nfunction debugOrdering(g) {\n var layerMatrix = util.buildLayerMatrix(g);\n\n var h = new Graph({ compound: true, multigraph: true }).setGraph({});\n\n _.forEach(g.nodes(), function(v) {\n h.setNode(v, { label: v });\n h.setParent(v, \"layer\" + g.node(v).rank);\n });\n\n _.forEach(g.edges(), function(e) {\n h.setEdge(e.v, e.w, {}, e.name);\n });\n\n _.forEach(layerMatrix, function(layer, i) {\n var layerV = \"layer\" + i;\n h.setNode(layerV, { rank: \"same\" });\n _.reduce(layer, function(u, v) {\n h.setEdge(u, v, { style: \"invis\" });\n return v;\n });\n });\n\n return h;\n}\n" - }, - { - "id": 337, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/lib/version.js", - "name": "./node_modules/dagre/lib/version.js", - "index": 863, - "index2": 857, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "issuerId": 21, - "issuerName": "./node_modules/dagre/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "name": "./node_modules/dagre/index.js", - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 84, - "building": 98, - "dependencies": 119 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre/index.js", - "module": "./node_modules/dagre/index.js", - "moduleName": "./node_modules/dagre/index.js", - "type": "cjs require", - "userRequest": "./lib/version", - "loc": "32:11-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = \"0.8.5\";\n" - }, - { - "id": 338, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/index.js", - "name": "./node_modules/dagre-d3/lib/intersect/index.js", - "index": 864, - "index2": 866, - "size": 222, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/intersect", - "loc": "26:13-39" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = {\n node: require(\"./intersect-node\"),\n circle: require(\"./intersect-circle\"),\n ellipse: require(\"./intersect-ellipse\"),\n polygon: require(\"./intersect-polygon\"),\n rect: require(\"./intersect-rect\")\n};\n" - }, - { - "id": 339, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-line.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-line.js", - "index": 869, - "index2": 863, - "size": 2010, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "issuerId": 150, - "issuerName": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 150, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "name": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "profile": { - "factory": 78, - "building": 33, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 64, - "building": 36 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 150, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "module": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "moduleName": "./node_modules/dagre-d3/lib/intersect/intersect-polygon.js", - "type": "cjs require", - "userRequest": "./intersect-line", - "loc": "3:20-47" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectLine;\n\n/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n\n var a1, a2, b1, b2, c1, c2;\n var r1, r2 , r3, r4;\n var denom, offset, num;\n var x, y;\n\n // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = (p2.x * p1.y) - (p1.x * p2.y);\n\n // Compute r3 and r4.\n r3 = ((a1 * q1.x) + (b1 * q1.y) + c1);\n r4 = ((a1 * q2.x) + (b1 * q2.y) + c1);\n\n // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n if ((r3 !== 0) && (r4 !== 0) && sameSign(r3, r4)) {\n return /*DONT_INTERSECT*/;\n }\n\n // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = (q2.x * q1.y) - (q1.x * q2.y);\n\n // Compute r1 and r2\n r1 = (a2 * p1.x) + (b2 * p1.y) + c2;\n r2 = (a2 * p2.x) + (b2 * p2.y) + c2;\n\n // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n if ((r1 !== 0) && (r2 !== 0) && (sameSign(r1, r2))) {\n return /*DONT_INTERSECT*/;\n }\n\n // Line segments intersect: compute intersection point.\n denom = (a1 * b2) - (a2 * b1);\n if (denom === 0) {\n return /*COLLINEAR*/;\n }\n\n offset = Math.abs(denom / 2);\n\n // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n num = (b1 * c2) - (b2 * c1);\n x = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n num = (a2 * c1) - (a1 * c2);\n y = (num < 0) ? ((num - offset) / denom) : ((num + offset) / denom);\n\n return { x: x, y: y };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n" - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "index": 871, - "index2": 883, - "size": 4207, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/render", - "loc": "27:10-33" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "var _ = require(\"./lodash\");\nvar d3 = require(\"./d3\");\nvar layout = require(\"./dagre\").layout;\n\nmodule.exports = render;\n\n// This design is based on http://bost.ocks.org/mike/chart/.\nfunction render() {\n var createNodes = require(\"./create-nodes\");\n var createClusters = require(\"./create-clusters\");\n var createEdgeLabels = require(\"./create-edge-labels\");\n var createEdgePaths = require(\"./create-edge-paths\");\n var positionNodes = require(\"./position-nodes\");\n var positionEdgeLabels = require(\"./position-edge-labels\");\n var positionClusters = require(\"./position-clusters\");\n var shapes = require(\"./shapes\");\n var arrows = require(\"./arrows\");\n\n var fn = function(svg, g) {\n preProcessGraph(g);\n\n var outputGroup = createOrSelectGroup(svg, \"output\");\n var clustersGroup = createOrSelectGroup(outputGroup, \"clusters\");\n var edgePathsGroup = createOrSelectGroup(outputGroup, \"edgePaths\");\n var edgeLabels = createEdgeLabels(createOrSelectGroup(outputGroup, \"edgeLabels\"), g);\n var nodes = createNodes(createOrSelectGroup(outputGroup, \"nodes\"), g, shapes);\n\n layout(g);\n\n positionNodes(nodes, g);\n positionEdgeLabels(edgeLabels, g);\n createEdgePaths(edgePathsGroup, g, arrows);\n\n var clusters = createClusters(clustersGroup, g);\n positionClusters(clusters, g);\n\n postProcessGraph(g);\n };\n\n fn.createNodes = function(value) {\n if (!arguments.length) return createNodes;\n createNodes = value;\n return fn;\n };\n\n fn.createClusters = function(value) {\n if (!arguments.length) return createClusters;\n createClusters = value;\n return fn;\n };\n\n fn.createEdgeLabels = function(value) {\n if (!arguments.length) return createEdgeLabels;\n createEdgeLabels = value;\n return fn;\n };\n\n fn.createEdgePaths = function(value) {\n if (!arguments.length) return createEdgePaths;\n createEdgePaths = value;\n return fn;\n };\n\n fn.shapes = function(value) {\n if (!arguments.length) return shapes;\n shapes = value;\n return fn;\n };\n\n fn.arrows = function(value) {\n if (!arguments.length) return arrows;\n arrows = value;\n return fn;\n };\n\n return fn;\n}\n\nvar NODE_DEFAULT_ATTRS = {\n paddingLeft: 10,\n paddingRight: 10,\n paddingTop: 10,\n paddingBottom: 10,\n rx: 0,\n ry: 0,\n shape: \"rect\"\n};\n\nvar EDGE_DEFAULT_ATTRS = {\n arrowhead: \"normal\",\n curve: d3.curveLinear\n};\n\nfunction preProcessGraph(g) {\n g.nodes().forEach(function(v) {\n var node = g.node(v);\n if (!_.has(node, \"label\") && !g.children(v).length) { node.label = v; }\n\n if (_.has(node, \"paddingX\")) {\n _.defaults(node, {\n paddingLeft: node.paddingX,\n paddingRight: node.paddingX\n });\n }\n\n if (_.has(node, \"paddingY\")) {\n _.defaults(node, {\n paddingTop: node.paddingY,\n paddingBottom: node.paddingY\n });\n }\n\n if (_.has(node, \"padding\")) {\n _.defaults(node, {\n paddingLeft: node.padding,\n paddingRight: node.padding,\n paddingTop: node.padding,\n paddingBottom: node.padding\n });\n }\n\n _.defaults(node, NODE_DEFAULT_ATTRS);\n\n _.each([\"paddingLeft\", \"paddingRight\", \"paddingTop\", \"paddingBottom\"], function(k) {\n node[k] = Number(node[k]);\n });\n\n // Save dimensions for restore during post-processing\n if (_.has(node, \"width\")) { node._prevWidth = node.width; }\n if (_.has(node, \"height\")) { node._prevHeight = node.height; }\n });\n\n g.edges().forEach(function(e) {\n var edge = g.edge(e);\n if (!_.has(edge, \"label\")) { edge.label = \"\"; }\n _.defaults(edge, EDGE_DEFAULT_ATTRS);\n });\n}\n\nfunction postProcessGraph(g) {\n _.each(g.nodes(), function(v) {\n var node = g.node(v);\n\n // Restore original dimensions\n if (_.has(node, \"_prevWidth\")) {\n node.width = node._prevWidth;\n } else {\n delete node.width;\n }\n\n if (_.has(node, \"_prevHeight\")) {\n node.height = node._prevHeight;\n } else {\n delete node.height;\n }\n\n delete node._prevWidth;\n delete node._prevHeight;\n });\n}\n\nfunction createOrSelectGroup(root, name) {\n var selection = root.select(\"g.\" + name);\n if (selection.empty()) {\n selection = root.append(\"g\").attr(\"class\", name);\n }\n return selection;\n}\n" - }, - { - "id": 341, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-nodes.js", - "name": "./node_modules/dagre-d3/lib/create-nodes.js", - "index": 874, - "index2": 874, - "size": 2192, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-nodes", - "loc": "9:20-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createNodes;\n\nfunction createNodes(selection, g, shapes) {\n var simpleNodes = g.nodes().filter(function(v) { return !util.isSubgraph(g, v); });\n var svgNodes = selection.selectAll(\"g.node\")\n .data(simpleNodes, function(v) { return v; })\n .classed(\"update\", true);\n\n svgNodes.exit().remove();\n\n svgNodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .style(\"opacity\", 0);\n\n svgNodes = selection.selectAll(\"g.node\"); \n\n svgNodes.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n util.applyClass(thisGroup, node[\"class\"],\n (thisGroup.classed(\"update\") ? \"update \" : \"\") + \"node\");\n\n thisGroup.select(\"g.label\").remove();\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n var labelDom = addLabel(labelGroup, node);\n var shape = shapes[node.shape];\n var bbox = _.pick(labelDom.node().getBBox(), \"width\", \"height\");\n\n node.elem = this;\n\n if (node.id) { thisGroup.attr(\"id\", node.id); }\n if (node.labelId) { labelGroup.attr(\"id\", node.labelId); }\n\n if (_.has(node, \"width\")) { bbox.width = node.width; }\n if (_.has(node, \"height\")) { bbox.height = node.height; }\n\n bbox.width += node.paddingLeft + node.paddingRight;\n bbox.height += node.paddingTop + node.paddingBottom;\n labelGroup.attr(\"transform\", \"translate(\" +\n ((node.paddingLeft - node.paddingRight) / 2) + \",\" +\n ((node.paddingTop - node.paddingBottom) / 2) + \")\");\n\n var root = d3.select(this);\n root.select(\".label-container\").remove();\n var shapeSvg = shape(root, bbox, node).classed(\"label-container\", true);\n util.applyStyle(shapeSvg, node.style);\n\n var shapeBBox = shapeSvg.node().getBBox();\n node.width = shapeBBox.width;\n node.height = shapeBBox.height;\n });\n\n var exitSelection;\n\n if (svgNodes.exit) {\n exitSelection = svgNodes.exit();\n } else {\n exitSelection = svgNodes.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgNodes;\n}\n" - }, - { - "id": 342, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-text-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-text-label.js", - "index": 876, - "index2": 870, - "size": 939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "issuerId": 89, - "issuerName": "./node_modules/dagre-d3/lib/label/add-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-text-label", - "loc": "1:19-46" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var util = require(\"../util\");\n\nmodule.exports = addTextLabel;\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append(\"text\");\n\n var lines = processEscapeSequences(node.label).split(\"\\n\");\n for (var i = 0; i < lines.length; i++) {\n domNode.append(\"tspan\")\n .attr(\"xml:space\", \"preserve\")\n .attr(\"dy\", \"1em\")\n .attr(\"x\", \"1\")\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) {\n var newText = \"\";\n var escaped = false;\n var ch;\n for (var i = 0; i < text.length; ++i) {\n ch = text[i];\n if (escaped) {\n switch(ch) {\n case \"n\": newText += \"\\n\"; break;\n default: newText += ch;\n }\n escaped = false;\n } else if (ch === \"\\\\\") {\n escaped = true;\n } else {\n newText += ch;\n }\n }\n return newText;\n}\n" - }, - { - "id": 343, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-svg-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-svg-label.js", - "index": 879, - "index2": 872, - "size": 230, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "issuerId": 89, - "issuerName": "./node_modules/dagre-d3/lib/label/add-label.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - } - }, - { - "id": 89, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "name": "./node_modules/dagre-d3/lib/label/add-label.js", - "profile": { - "factory": 69, - "building": 34, - "dependencies": 58 - } - } - ], - "profile": { - "factory": 74, - "building": 27, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 89, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/label/add-label.js", - "module": "./node_modules/dagre-d3/lib/label/add-label.js", - "moduleName": "./node_modules/dagre-d3/lib/label/add-label.js", - "type": "cjs require", - "userRequest": "./add-svg-label", - "loc": "3:19-45" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 7, - "source": "var util = require(\"../util\");\n\nmodule.exports = addSVGLabel;\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n" - }, - { - "id": 344, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-clusters.js", - "name": "./node_modules/dagre-d3/lib/create-clusters.js", - "index": 880, - "index2": 875, - "size": 1399, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-clusters", - "loc": "10:23-51" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar addLabel = require(\"./label/add-label\");\n\nmodule.exports = createClusters;\n\nfunction createClusters(selection, g) {\n var clusters = g.nodes().filter(function(v) { return util.isSubgraph(g, v); });\n var svgClusters = selection.selectAll(\"g.cluster\")\n .data(clusters, function(v) { return v; });\n\n svgClusters.selectAll(\"*\").remove();\n svgClusters.enter().append(\"g\")\n .attr(\"class\", \"cluster\")\n .attr(\"id\",function(v){\n var node = g.node(v);\n return node.id;\n })\n .style(\"opacity\", 0);\n \n svgClusters = selection.selectAll(\"g.cluster\");\n\n util.applyTransition(svgClusters, g)\n .style(\"opacity\", 1);\n\n svgClusters.each(function(v) {\n var node = g.node(v);\n var thisGroup = d3.select(this);\n d3.select(this).append(\"rect\");\n var labelGroup = thisGroup.append(\"g\").attr(\"class\", \"label\");\n addLabel(labelGroup, node, node.clusterLabelPos);\n });\n\n svgClusters.selectAll(\"rect\").each(function(c) {\n var node = g.node(c);\n var domCluster = d3.select(this);\n util.applyStyle(domCluster, node.style);\n });\n\n var exitSelection;\n\n if (svgClusters.exit) {\n exitSelection = svgClusters.exit();\n } else {\n exitSelection = svgClusters.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgClusters;\n}\n" - }, - { - "id": 345, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/create-edge-labels.js", - "index": 881, - "index2": 876, - "size": 1273, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-edge-labels", - "loc": "11:25-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar addLabel = require(\"./label/add-label\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = createEdgeLabels;\n\nfunction createEdgeLabels(selection, g) {\n var svgEdgeLabels = selection.selectAll(\"g.edgeLabel\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n svgEdgeLabels.exit().remove();\n svgEdgeLabels.enter().append(\"g\")\n .classed(\"edgeLabel\", true)\n .style(\"opacity\", 0);\n\n svgEdgeLabels = selection.selectAll(\"g.edgeLabel\");\n\n svgEdgeLabels.each(function(e) {\n var root = d3.select(this);\n root.select(\".label\").remove();\n var edge = g.edge(e);\n var label = addLabel(root, g.edge(e), 0, 0).classed(\"label\", true);\n var bbox = label.node().getBBox();\n\n if (edge.labelId) { label.attr(\"id\", edge.labelId); }\n if (!_.has(edge, \"width\")) { edge.width = bbox.width; }\n if (!_.has(edge, \"height\")) { edge.height = bbox.height; }\n });\n\n var exitSelection;\n\n if (svgEdgeLabels.exit) {\n exitSelection = svgEdgeLabels.exit();\n } else {\n exitSelection = svgEdgeLabels.selectAll(null); // empty selection\n }\n\n util.applyTransition(exitSelection, g)\n .style(\"opacity\", 0)\n .remove();\n\n return svgEdgeLabels;\n}\n" - }, - { - "id": 346, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/create-edge-paths.js", - "name": "./node_modules/dagre-d3/lib/create-edge-paths.js", - "index": 882, - "index2": 877, - "size": 3300, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./create-edge-paths", - "loc": "12:24-54" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar _ = require(\"./lodash\");\nvar intersectNode = require(\"./intersect/intersect-node\");\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nmodule.exports = createEdgePaths;\n\nfunction createEdgePaths(selection, g, arrows) {\n var previousPaths = selection.selectAll(\"g.edgePath\")\n .data(g.edges(), function(e) { return util.edgeToId(e); })\n .classed(\"update\", true);\n\n var newPaths = enter(previousPaths, g);\n exit(previousPaths, g);\n\n var svgPaths = previousPaths.merge !== undefined ? previousPaths.merge(newPaths) : previousPaths;\n util.applyTransition(svgPaths, g)\n .style(\"opacity\", 1);\n\n // Save DOM element in the path group, and set ID and class\n svgPaths.each(function(e) {\n var domEdge = d3.select(this);\n var edge = g.edge(e);\n edge.elem = this;\n\n if (edge.id) {\n domEdge.attr(\"id\", edge.id);\n }\n\n util.applyClass(domEdge, edge[\"class\"],\n (domEdge.classed(\"update\") ? \"update \" : \"\") + \"edgePath\");\n });\n\n svgPaths.selectAll(\"path.path\")\n .each(function(e) {\n var edge = g.edge(e);\n edge.arrowheadId = _.uniqueId(\"arrowhead\");\n\n var domEdge = d3.select(this)\n .attr(\"marker-end\", function() {\n return \"url(\" + makeFragmentRef(location.href, edge.arrowheadId) + \")\";\n })\n .style(\"fill\", \"none\");\n\n util.applyTransition(domEdge, g)\n .attr(\"d\", function(e) { return calcPoints(g, e); });\n\n util.applyStyle(domEdge, edge.style);\n });\n\n svgPaths.selectAll(\"defs *\").remove();\n svgPaths.selectAll(\"defs\")\n .each(function(e) {\n var edge = g.edge(e);\n var arrowhead = arrows[edge.arrowhead];\n arrowhead(d3.select(this), edge.arrowheadId, edge, \"arrowhead\");\n });\n\n return svgPaths;\n}\n\nfunction makeFragmentRef(url, fragmentId) {\n var baseUrl = url.split(\"#\")[0];\n return baseUrl + \"#\" + fragmentId;\n}\n\nfunction calcPoints(g, e) {\n var edge = g.edge(e);\n var tail = g.node(e.v);\n var head = g.node(e.w);\n var points = edge.points.slice(1, edge.points.length - 1);\n points.unshift(intersectNode(tail, points[0]));\n points.push(intersectNode(head, points[points.length - 1]));\n\n return createLine(edge, points);\n}\n\nfunction createLine(edge, points) {\n var line = (d3.line || d3.svg.line)()\n .x(function(d) { return d.x; })\n .y(function(d) { return d.y; });\n \n (line.curve || line.interpolate)(edge.curve);\n\n return line(points);\n}\n\nfunction getCoords(elem) {\n var bbox = elem.getBBox();\n var matrix = elem.ownerSVGElement.getScreenCTM()\n .inverse()\n .multiply(elem.getScreenCTM())\n .translate(bbox.width / 2, bbox.height / 2);\n return { x: matrix.e, y: matrix.f };\n}\n\nfunction enter(svgPaths, g) {\n var svgPathsEnter = svgPaths.enter().append(\"g\")\n .attr(\"class\", \"edgePath\")\n .style(\"opacity\", 0);\n svgPathsEnter.append(\"path\")\n .attr(\"class\", \"path\")\n .attr(\"d\", function(e) {\n var edge = g.edge(e);\n var sourceElem = g.node(e.v).elem;\n var points = _.range(edge.points.length).map(function() { return getCoords(sourceElem); });\n return createLine(edge, points);\n });\n svgPathsEnter.append(\"defs\");\n return svgPathsEnter;\n}\n\nfunction exit(svgPaths, g) {\n var svgPathExit = svgPaths.exit();\n util.applyTransition(svgPathExit, g)\n .style(\"opacity\", 0)\n .remove();\n}\n" - }, - { - "id": 347, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-nodes.js", - "name": "./node_modules/dagre-d3/lib/position-nodes.js", - "index": 883, - "index2": 878, - "size": 490, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-nodes", - "loc": "13:22-49" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionNodes;\n\nfunction positionNodes(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n" - }, - { - "id": 348, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-edge-labels.js", - "name": "./node_modules/dagre-d3/lib/position-edge-labels.js", - "index": 884, - "index2": 879, - "size": 553, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-edge-labels", - "loc": "14:27-60" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\nvar _ = require(\"./lodash\");\n\nmodule.exports = positionEdgeLabels;\n\nfunction positionEdgeLabels(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(e) {\n var edge = g.edge(e);\n return _.has(edge, \"x\") ? \"translate(\" + edge.x + \",\" + edge.y + \")\" : \"\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n}\n" - }, - { - "id": 349, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/position-clusters.js", - "name": "./node_modules/dagre-d3/lib/position-clusters.js", - "index": 885, - "index2": 880, - "size": 862, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./position-clusters", - "loc": "15:25-55" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar util = require(\"./util\");\nvar d3 = require(\"./d3\");\n\nmodule.exports = positionClusters;\n\nfunction positionClusters(selection, g) {\n var created = selection.filter(function() { return !d3.select(this).classed(\"update\"); });\n\n function translate(v) {\n var node = g.node(v);\n return \"translate(\" + node.x + \",\" + node.y + \")\";\n }\n\n created.attr(\"transform\", translate);\n\n util.applyTransition(selection, g)\n .style(\"opacity\", 1)\n .attr(\"transform\", translate);\n\n util.applyTransition(created.selectAll(\"rect\"), g)\n .attr(\"width\", function(v) { return g.node(v).width; })\n .attr(\"height\", function(v) { return g.node(v).height; })\n .attr(\"x\", function(v) {\n var node = g.node(v);\n return -node.width / 2;\n })\n .attr(\"y\", function(v) {\n var node = g.node(v);\n return -node.height / 2;\n });\n}\n" - }, - { - "id": 350, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/shapes.js", - "name": "./node_modules/dagre-d3/lib/shapes.js", - "index": 886, - "index2": 881, - "size": 2121, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./shapes", - "loc": "16:15-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\nvar intersectRect = require(\"./intersect/intersect-rect\");\nvar intersectEllipse = require(\"./intersect/intersect-ellipse\");\nvar intersectCircle = require(\"./intersect/intersect-circle\");\nvar intersectPolygon = require(\"./intersect/intersect-polygon\");\n\nmodule.exports = {\n rect: rect,\n ellipse: ellipse,\n circle: circle,\n diamond: diamond\n};\n\nfunction rect(parent, bbox, node) {\n var shapeSvg = parent.insert(\"rect\", \":first-child\")\n .attr(\"rx\", node.rx)\n .attr(\"ry\", node.ry)\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"width\", bbox.width)\n .attr(\"height\", bbox.height);\n\n node.intersect = function(point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction ellipse(parent, bbox, node) {\n var rx = bbox.width / 2;\n var ry = bbox.height / 2;\n var shapeSvg = parent.insert(\"ellipse\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"rx\", rx)\n .attr(\"ry\", ry);\n\n node.intersect = function(point) {\n return intersectEllipse(node, rx, ry, point);\n };\n\n return shapeSvg;\n}\n\nfunction circle(parent, bbox, node) {\n var r = Math.max(bbox.width, bbox.height) / 2;\n var shapeSvg = parent.insert(\"circle\", \":first-child\")\n .attr(\"x\", -bbox.width / 2)\n .attr(\"y\", -bbox.height / 2)\n .attr(\"r\", r);\n\n node.intersect = function(point) {\n return intersectCircle(node, r, point);\n };\n\n return shapeSvg;\n}\n\n// Circumscribe an ellipse for the bounding box with a diamond shape. I derived\n// the function to calculate the diamond shape from:\n// http://mathforum.org/kb/message.jspa?messageID=3750236\nfunction diamond(parent, bbox, node) {\n var w = (bbox.width * Math.SQRT2) / 2;\n var h = (bbox.height * Math.SQRT2) / 2;\n var points = [\n { x: 0, y: -h },\n { x: -w, y: 0 },\n { x: 0, y: h },\n { x: w, y: 0 }\n ];\n var shapeSvg = parent.insert(\"polygon\", \":first-child\")\n .attr(\"points\", points.map(function(p) { return p.x + \",\" + p.y; }).join(\" \"));\n\n node.intersect = function(p) {\n return intersectPolygon(node, points, p);\n };\n\n return shapeSvg;\n}\n" - }, - { - "id": 351, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/arrows.js", - "name": "./node_modules/dagre-d3/lib/arrows.js", - "index": 887, - "index2": 882, - "size": 1867, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "issuerId": 340, - "issuerName": "./node_modules/dagre-d3/lib/render.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - }, - { - "id": 340, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "name": "./node_modules/dagre-d3/lib/render.js", - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - } - } - ], - "profile": { - "factory": 131, - "building": 28, - "dependencies": 74 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 340, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/render.js", - "module": "./node_modules/dagre-d3/lib/render.js", - "moduleName": "./node_modules/dagre-d3/lib/render.js", - "type": "cjs require", - "userRequest": "./arrows", - "loc": "17:15-34" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "var util = require(\"./util\");\n\nmodule.exports = {\n \"default\": normal,\n \"normal\": normal,\n \"vee\": vee,\n \"undirected\": undirected\n};\n\nfunction normal(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 0 L 10 5 L 0 10 L 4 5 z\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent.append(\"marker\")\n .attr(\"id\", id)\n .attr(\"viewBox\", \"0 0 10 10\")\n .attr(\"refX\", 9)\n .attr(\"refY\", 5)\n .attr(\"markerUnits\", \"strokeWidth\")\n .attr(\"markerWidth\", 8)\n .attr(\"markerHeight\", 6)\n .attr(\"orient\", \"auto\");\n\n var path = marker.append(\"path\")\n .attr(\"d\", \"M 0 5 L 10 5\")\n .style(\"stroke-width\", 1)\n .style(\"stroke-dasharray\", \"1,0\");\n util.applyStyle(path, edge[type + \"Style\"]);\n if (edge[type + \"Class\"]) {\n path.attr(\"class\", edge[type + \"Class\"]);\n }\n}\n" - }, - { - "id": 352, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/lib/version.js", - "name": "./node_modules/dagre-d3/lib/version.js", - "index": 888, - "index2": 884, - "size": 26, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "issuerId": 5, - "issuerName": "./node_modules/dagre-d3/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "name": "./node_modules/dagre-d3/index.js", - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - } - } - ], - "profile": { - "factory": 313, - "building": 36, - "dependencies": 79 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 5, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/dagre-d3/index.js", - "module": "./node_modules/dagre-d3/index.js", - "moduleName": "./node_modules/dagre-d3/index.js", - "type": "cjs require", - "userRequest": "./lib/version", - "loc": "29:11-35" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "module.exports = \"0.6.4\";\n" - }, - { - "id": 353, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js aa275ae208fe2c04a77a04e16778cf3d", - "name": "./src/mermaid.js + 51 modules", - "index": 0, - "index2": 924, - "size": 420362, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/class/parser/classDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/er/parser/erDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/flowchart/parser/flow.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/gantt/parser/gantt.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/git/parser/gitGraph.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/info/parser/info.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/pie/parser/pie.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/sequence/parser/sequenceDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/state/parser/stateDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/user-journey/parser/journey.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/@braintree/sanitize-url/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/dagre-wrapper/intersect/intersect-node.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/d3/index.js (<- Module is referenced from these modules with unsupported syntax: ./node_modules/dagre-d3/lib/d3.js (referenced with cjs require))", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre-d3/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre-d3/lib/label/add-html-label.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/dagre/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/graphlib/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/moment-mini/moment.min.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./node_modules/scope-css/index.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./package.json (<- Module is not an ECMAScript module)" - ], - "depth": 0, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "index": 0, - "index2": 924, - "size": 5291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "profile": { - "factory": 54, - "building": 197 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is an entry point" - ], - "depth": 0, - "source": "/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\n\nvar init = function init() {\n var _this = this;\n\n var conf = mermaidAPI.getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init');\n\n var nodes;\n\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n } // if last argument is a function this is the callback function\n\n\n var callback;\n\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n\n nodes = nodes === undefined ? document.querySelectorAll('.mermaid') : typeof nodes === 'string' ? document.querySelectorAll(nodes) : nodes instanceof window.Node ? [nodes] : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({\n startOnLoad: mermaid.startOnLoad\n });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({\n gantt: mermaid.ganttConfig\n });\n }\n\n var txt;\n\n var _loop = function _loop(i) {\n var element = nodes[i];\n /*! Check if previously processed */\n\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n return \"continue\";\n }\n\n var id = \"mermaid-\".concat(Date.now()); // Fetch the graph definition including tags\n\n txt = element.innerHTML; // transforms the html to pure text\n\n txt = decode(txt).trim().replace(//gi, '
');\n var init = utils.detectInit(txt);\n\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(id, txt, function (svgCode, bindFunctions) {\n element.innerHTML = svgCode;\n\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n\n if (bindFunctions) bindFunctions(element);\n }, element);\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n\n if (_this.parseError) {\n _this.parseError(e);\n }\n }\n };\n\n for (var i = 0; i < nodes.length; i++) {\n var _ret = _loop(i);\n\n if (_ret === \"continue\") continue;\n }\n};\n\nvar initialize = function initialize(config) {\n mermaidAPI.reset();\n\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n\n mermaidAPI.initialize(config);\n};\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\n\n\nvar contentLoaded = function contentLoaded() {\n var config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener('load', function () {\n contentLoaded();\n }, false);\n}\n\nvar mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n mermaidAPI: mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n init: init,\n initialize: initialize,\n contentLoaded: contentLoaded\n};\nexport default mermaid;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/entity-decode/browser.js", - "name": "./node_modules/entity-decode/browser.js", - "index": 1, - "index2": 0, - "size": 523, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "entity-decode/browser", - "loc": "6:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "entity-decode/browser", - "loc": "100:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "/**\n * @see https://github.com/vuejs/vue/commit/a855dd0564a657a73b7249469490d39817f27cf7#diff-c0a2623ea5896a83e3b630f236b47b52\n * @see https://stackoverflow.com/a/13091266/4936667\n */\n\nvar decoder;\n\nexport default function decode(html) {\n decoder = decoder || document.createElement('div');\n // Escape HTML before decoding for HTML Entities\n html = escape(html).replace(/%26/g,'&').replace(/%23/g,'#').replace(/%3B/g,';');\n // decoding\n decoder.innerHTML = html;\n\n return unescape(decoder.textContent);\n}\n" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "index": 541, - "index2": 542, - "size": 1937, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "8:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "9:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "9:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "11:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "11:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "12:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "14:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "14:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "17:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "20:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "21:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "22:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "22:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "23:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "23:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "24:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "25:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "26:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "26:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "30:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "31:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "34:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "36:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "37:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "39:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "42:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "42:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "43:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "46:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "47:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "50:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "51:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "55:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "56:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "59:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "60:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "60:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "60:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "61:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "61:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "62:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "62:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "66:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "67:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "68:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "69:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "69:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "70:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "74:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "76:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "77:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "79:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "79:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "81:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "81:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "83:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "83:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "86:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "88:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "88:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "89:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "92:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "93:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "94:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "95:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "96:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "97:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "98:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "99:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "101:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "104:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "106:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "107:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "119:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "120:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "123:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "124:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "125:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "126:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "127:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "129:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "130:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "130:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "130:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "132:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "136:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "136:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "137:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "140:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "144:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "148:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "148:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "151:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "152:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "152:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "156:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "158:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "161:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "167:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "168:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "170:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "171:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "179:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "182:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "182:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "184:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "185:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "188:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "188:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "189:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "193:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "194:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "196:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "196:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "197:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "202:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "205:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "208:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "209:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "211:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "214:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "222:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "223:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "223:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "228:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "234:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "235:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "236:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "240:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "240:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "242:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "243:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "244:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "247:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "249:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "249:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "251:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "253:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "254:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "262:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "265:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "272:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "275:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "282:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "288:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "291:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "292:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "293:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "297:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "299:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "303:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "306:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "314:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "314:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "323:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "324:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "326:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "327:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "332:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "358:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "360:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "376:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "403:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "416:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "420:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "430:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "444:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "462:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "469:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "470:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "475:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "516:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "547:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "548:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "556:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "557:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "559:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "584:0-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "595:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "616:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "642:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "715:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "800:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "912:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "944:2-8" - } - ], - "usedExports": [ - "logger", - "setLogLevel" - ], - "providedExports": [ - "LEVELS", - "logger", - "setLogLevel" - ], - "optimizationBailout": [], - "depth": 1, - "source": "import moment from 'moment-mini'; //\n\nexport var LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\nexport var logger = {\n debug: function debug() {},\n info: function info() {},\n warn: function warn() {},\n error: function error() {},\n fatal: function fatal() {}\n};\nexport var setLogLevel = function setLogLevel() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fatal';\n\n if (isNaN(level)) {\n level = level.toLowerCase();\n\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n\n logger.trace = function () {};\n\n logger.debug = function () {};\n\n logger.info = function () {};\n\n logger.warn = function () {};\n\n logger.error = function () {};\n\n logger.fatal = function () {};\n\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error ? console.error.bind(console, format('FATAL'), 'color: orange') : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n\n if (level <= LEVELS.error) {\n logger.error = console.error ? console.error.bind(console, format('ERROR'), 'color: orange') : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n\n if (level <= LEVELS.warn) {\n logger.warn = console.warn ? console.warn.bind(console, format('WARN'), 'color: orange') : console.log.bind(console, \"\\x1B[33m\", format('WARN'));\n }\n\n if (level <= LEVELS.info) {\n logger.info = console.info ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue') : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n\n if (level <= LEVELS.debug) {\n logger.debug = console.debug ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen') : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nvar format = function format(level) {\n var time = moment().format('ss.SSS');\n return \"%c\".concat(time, \" : \").concat(level, \" : \");\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "index": 539, - "index2": 544, - "size": 24774, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "6:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../utils", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "13:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "20:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "37:14-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "42:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "43:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../utils", - "loc": "48:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "56:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "58:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "63:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "65:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "66:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "70:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "101:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "160:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "172:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "174:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "188:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "197:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "214:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "217:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "223:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "227:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "229:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "231:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "233:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "250:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "252:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "252:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "254:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "262:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "280:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "282:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "337:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "396:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "437:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "441:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "527:29-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "673:38-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "674:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "736:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "739:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:66-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "797:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "821:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "824:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "847:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "854:17-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "855:20-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "866:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "869:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "878:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "890:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "899:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "930:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "933:2-17" - } - ], - "usedExports": [ - "default", - "assignWithDepth", - "getStylesFromArray", - "interpolateToCurve", - "generateId" - ], - "providedExports": [ - "detectInit", - "detectDirective", - "detectType", - "isSubstringInArray", - "interpolateToCurve", - "formatUrl", - "runFunc", - "getStylesFromArray", - "generateId", - "random", - "assignWithDepth", - "getTextObj", - "drawSimpleText", - "wrapLabel", - "calculateTextHeight", - "calculateTextWidth", - "calculateTextDimensions", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "var _this = this;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport { curveBasis, curveBasisClosed, curveBasisOpen, curveLinear, curveLinearClosed, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, select } from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common'; // import cryptoRandomString from 'crypto-random-string';\n// Effectively an enum of the supported curve types, accessible by name\n\nvar d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nvar directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar anyComment = /\\s*%%.*\\n/gm;\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\n\nexport var detectInit = function detectInit(text) {\n var inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n var results = {};\n\n if (Array.isArray(inits)) {\n var args = inits.map(function (init) {\n return init.args;\n });\n results = assignWithDepth(results, _toConsumableArray(args));\n } else {\n results = inits.args;\n }\n\n if (results) {\n var type = detectType(text);\n ['config'].forEach(function (prop) {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n\n return results;\n};\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\n\nexport var detectDirective = function detectDirective(text) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n try {\n var commentWithoutDirectives = new RegExp(\"[%]{2}(?![{]\".concat(directiveWithoutOpen.source, \")(?=[}][%]{2}).*\\n\"), 'ig');\n text = text.trim().replace(commentWithoutDirectives, '').replace(/'/gm, '\"');\n logger.debug(\"Detecting diagram directive\".concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n var match,\n result = [];\n\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n\n if (match && !type || type && match[1] && match[1].match(type) || type && match[2] && match[2].match(type)) {\n var _type = match[1] ? match[1] : match[2];\n\n var args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({\n type: _type,\n args: args\n });\n }\n }\n\n if (result.length === 0) {\n result.push({\n type: text,\n args: null\n });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\"ERROR: \".concat(error.message, \" - Unable to parse directive\").concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n return {\n type: null,\n args: null\n };\n }\n};\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\n\nexport var detectType = function detectType(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nvar memoize = function memoize(fn, resolver) {\n var cache = {};\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var n = resolver ? resolver.apply(_this, args) : args[0];\n\n if (n in cache) {\n return cache[n];\n } else {\n var result = fn.apply(void 0, args);\n cache[n] = result;\n return result;\n }\n };\n};\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\n\n\nexport var isSubstringInArray = function isSubstringInArray(str, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n\n return -1;\n};\nexport var interpolateToCurve = function interpolateToCurve(interpolate, defaultCurve) {\n if (!interpolate) {\n return defaultCurve;\n }\n\n var curveName = \"curve\".concat(interpolate.charAt(0).toUpperCase() + interpolate.slice(1));\n return d3CurveTypes[curveName] || defaultCurve;\n};\nexport var formatUrl = function formatUrl(linkStr, config) {\n var url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\nexport var runFunc = function runFunc(functionName) {\n var _obj;\n\n var arrPaths = functionName.split('.');\n var len = arrPaths.length - 1;\n var fnName = arrPaths[len];\n var obj = window;\n\n for (var i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n params[_key2 - 1] = arguments[_key2];\n }\n\n (_obj = obj)[fnName].apply(_obj, params);\n};\n\nvar distance = function distance(p1, p2) {\n return p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n};\n\nvar traverseEdge = function traverseEdge(points) {\n var prevPoint;\n var totalDistance = 0;\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse half of total distance along points\n\n var remainingDistance = totalDistance / 2;\n var center = undefined;\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n });\n return center;\n};\n\nvar calcLabelPosition = function calcLabelPosition(points) {\n return traverseEdge(points);\n};\n\nvar calcCardinalityPosition = function calcCardinalityPosition(isRelationTypePresent, points, initialPosition) {\n var prevPoint;\n var totalDistance = 0; // eslint-disable-line\n\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse only 25 total distance along points to find cardinality point\n\n var distanceToCardinalityPoint = 25;\n var remainingDistance = distanceToCardinalityPoint;\n var center = {\n x: 0,\n y: 0\n };\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n }); // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n\n var d = isRelationTypePresent ? 10 : 5; //Calculate Angle for x and y axis\n\n var angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n var cardinalityPosition = {\n x: 0,\n y: 0\n }; //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport var getStylesFromArray = function getStylesFromArray(arr) {\n var style = '';\n var labelStyle = '';\n\n for (var i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return {\n style: style,\n labelStyle: labelStyle\n };\n};\nvar cnt = 0;\nexport var generateId = function generateId() {\n cnt++;\n return 'id-' + Math.random().toString(36).substr(2, 12) + '-' + cnt;\n};\nexport var random = function random(options) {\n // return cryptoRandomString(options);\n return 'apa';\n};\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\n\nexport var assignWithDepth = function assignWithDepth(dst, src, config) {\n var _Object$assign = Object.assign({\n depth: 2,\n clobber: false\n }, config),\n depth = _Object$assign.depth,\n clobber = _Object$assign.clobber;\n\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(function (s) {\n return assignWithDepth(dst, s, config);\n });\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(function (s) {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n\n if (typeof src !== 'undefined' && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n Object.keys(src).forEach(function (key) {\n if (_typeof(src[key]) === 'object' && (dst[key] === undefined || _typeof(dst[key]) === 'object')) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n\n dst[key] = assignWithDepth(dst[key], src[key], {\n depth: depth - 1,\n clobber: clobber\n });\n } else if (clobber || _typeof(dst[key]) !== 'object' && _typeof(src[key]) !== 'object') {\n dst[key] = src[key];\n }\n });\n }\n\n return dst;\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\nexport var drawSimpleText = function drawSimpleText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\nexport var wrapLabel = memoize(function (label, maxWidth, config) {\n if (!label) {\n return label;\n }\n\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n joinWith: '
'\n }, config);\n\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n\n var words = label.split(' ');\n var completedLines = [];\n var nextLine = '';\n words.forEach(function (word, index) {\n var wordLength = calculateTextWidth(\"\".concat(word, \" \"), config);\n var nextLineLength = calculateTextWidth(nextLine, config);\n\n if (wordLength > maxWidth) {\n var _breakString = breakString(word, maxWidth, '-', config),\n hyphenatedStrings = _breakString.hyphenatedStrings,\n remainingWord = _breakString.remainingWord;\n\n completedLines.push.apply(completedLines, [nextLine].concat(_toConsumableArray(hyphenatedStrings)));\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n\n var currentWord = index + 1;\n var isLastWord = currentWord === words.length;\n\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(function (line) {\n return line !== '';\n }).join(config.joinWith);\n}, function (label, maxWidth, config) {\n return \"\".concat(label, \"-\").concat(maxWidth, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily, \"-\").concat(config.joinWith);\n});\nvar breakString = memoize(function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 0\n }, config);\n var characters = word.split('');\n var lines = [];\n var currentLine = '';\n characters.forEach(function (character, index) {\n var nextLine = \"\".concat(currentLine).concat(character);\n var lineWidth = calculateTextWidth(nextLine, config);\n\n if (lineWidth >= maxWidth) {\n var currentCharacter = index + 1;\n var isLastLine = characters.length === currentCharacter;\n var hyphenatedNextLine = \"\".concat(nextLine).concat(hyphenCharacter);\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return {\n hyphenatedStrings: lines,\n remainingWord: currentLine\n };\n}, function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n return \"\".concat(word, \"-\").concat(maxWidth, \"-\").concat(hyphenCharacter, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextHeight = function calculateTextHeight(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 15\n }, config);\n return calculateTextDimensions(text, config).height;\n};\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextWidth = function calculateTextWidth(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n return calculateTextDimensions(text, config).width;\n};\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\n\nexport var calculateTextDimensions = memoize(function (text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n var _config = config,\n fontSize = _config.fontSize,\n fontFamily = _config.fontFamily,\n fontWeight = _config.fontWeight;\n\n if (!text) {\n return {\n width: 0,\n height: 0\n };\n } // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n\n\n var fontFamilies = ['sans-serif', fontFamily];\n var lines = text.split(common.lineBreakRegex);\n var dims = [];\n var body = select('body'); // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n\n if (!body.remove) {\n return {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n }\n\n var g = body.append('svg');\n\n for (var _i = 0, _fontFamilies = fontFamilies; _i < _fontFamilies.length; _i++) {\n var _fontFamily = _fontFamilies[_i];\n var cheight = 0;\n var dim = {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var line = _step.value;\n var textObj = getTextObj();\n textObj.text = line;\n var textElem = drawSimpleText(g, textObj).style('font-size', fontSize).style('font-weight', fontWeight).style('font-family', _fontFamily);\n var bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n dims.push(dim);\n }\n\n g.remove();\n var index = isNaN(dims[1].height) || isNaN(dims[1].width) || isNaN(dims[1].lineHeight) || dims[0].height > dims[1].height && dims[0].width > dims[1].width && dims[0].lineHeight > dims[1].lineHeight ? 0 : 1;\n return dims[index];\n}, function (text, config) {\n return \"\".concat(text, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\nexport default {\n assignWithDepth: assignWithDepth,\n wrapLabel: wrapLabel,\n calculateTextHeight: calculateTextHeight,\n calculateTextWidth: calculateTextWidth,\n calculateTextDimensions: calculateTextDimensions,\n detectInit: detectInit,\n detectDirective: detectDirective,\n detectType: detectType,\n isSubstringInArray: isSubstringInArray,\n interpolateToCurve: interpolateToCurve,\n calcLabelPosition: calcLabelPosition,\n calcCardinalityPosition: calcCardinalityPosition,\n formatUrl: formatUrl,\n getStylesFromArray: getStylesFromArray,\n generateId: generateId,\n random: random,\n memoize: memoize,\n runFunc: runFunc\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "index": 2, - "index2": 923, - "size": 19471, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - } - ], - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../mermaidAPI", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaidAPI", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../mermaidAPI", - "loc": "14:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "35:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "73:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "79:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "108:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "135:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "147:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "161:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "169:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "190:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "191:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "192:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "encodeEntities", - "decodeEntities", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport { select } from 'd3';\nimport scope from 'scope-css';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nvar themes = {};\n\nfor (var _i = 0, _arr = ['default', 'forest', 'dark', 'neutral']; _i < _arr.length; _i++) {\n var themeName = _arr[_i];\n themes[themeName] = require(\"./themes/\".concat(themeName, \"/index.scss\"));\n}\n\nfunction parse(text) {\n var graphInit = utils.detectInit(text);\n\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n\n var graphType = utils.detectType(text);\n var parser;\n logger.debug('Type ' + graphType);\n\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n\n parser.parser.yy.graphType = graphType;\n\n parser.parser.yy.parseError = function (str, hash) {\n var error = {\n str: str,\n hash: hash\n };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport var encodeEntities = function encodeEntities(text) {\n var txt = text;\n txt = txt.replace(/style.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/#\\w+;/g, function (s) {\n var innerTxt = s.substring(1, s.length - 1);\n var isInt = /^\\+?\\d+$/.test(innerTxt);\n\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n return txt;\n};\nexport var decodeEntities = function decodeEntities(text) {\n var txt = text;\n txt = txt.replace(/fl°°/g, function () {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function () {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function () {\n return ';';\n });\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\n\nvar render = function render(id, _txt, cb, container) {\n var cnf = getConfig(); // Check the maximum allowed text size\n\n var txt = _txt;\n\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n var graphInit = utils.detectInit(txt);\n\n if (graphInit) {\n reinitialize(graphInit);\n assignWithDepth(cnf, getConfig());\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n select(container).append('div').attr('id', 'd' + id).attr('style', 'font-family: ' + cnf.fontFamily).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n } else {\n var existingSvg = document.getElementById(id);\n\n if (existingSvg) {\n existingSvg.remove();\n }\n\n var _element = document.querySelector('#' + 'd' + id);\n\n if (_element) {\n _element.remove();\n }\n\n select('body').append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n var element = select('#d' + id).node();\n var graphType = utils.detectType(txt); // insert inline style into svg\n\n var svg = element.firstChild;\n var firstChild = svg.firstChild; // pre-defined theme\n\n var style = themes[cnf.theme];\n\n if (style === undefined) {\n style = '';\n } // user provided theme CSS\n\n\n if (cnf.themeCSS !== undefined) {\n style += \"\\n\".concat(cnf.themeCSS);\n } // user provided theme CSS\n\n\n if (cnf.fontFamily !== undefined) {\n style += \"\\n:root { --mermaid-font-family: \".concat(cnf.fontFamily, \"}\");\n } // user provided theme CSS\n\n\n if (cnf.altFontFamily !== undefined) {\n style += \"\\n:root { --mermaid-alt-font-family: \".concat(cnf.altFontFamily, \"}\");\n } // classDef\n\n\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n var classes = flowRenderer.getClasses(txt);\n\n for (var className in classes) {\n style += \"\\n.\".concat(className, \" > * { \").concat(classes[className].styles.join(' !important; '), \" !important; }\");\n\n if (classes[className].textStyles) {\n style += \"\\n.\".concat(className, \" tspan { \").concat(classes[className].textStyles.join(' !important; '), \" !important; }\");\n }\n }\n }\n\n var style1 = document.createElement('style');\n style1.innerHTML = scope(style, \"#\".concat(id));\n svg.insertBefore(style1, firstChild); // Verify that the generated svgs are ok before removing this\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n\n sequenceRenderer.draw(txt, id);\n break;\n\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(\"[id=\\\"\".concat(id, \"\\\"]\")).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml'); // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n // Fix for when the base tag is used\n\n var svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n var node = select('#d' + id).node();\n\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id).node().remove();\n }\n\n return svgCode;\n};\n\nvar currentDirective = {};\n\nvar parseDirective = function parseDirective(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\"Error while rendering sequenceDiagram directive: \".concat(statement, \" jison context: \").concat(context));\n logger.error(error.message);\n }\n};\n\nvar handleDirective = function handleDirective(directive, type) {\n logger.debug(\"Directive type=\".concat(directive.type, \" with args:\"), directive.args);\n\n switch (directive.type) {\n case 'init':\n case 'initialize':\n {\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n }\n\n case 'wrap':\n case 'nowrap':\n directive.args = {\n config: {\n wrap: directive.type === 'wrap'\n }\n };\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n\n default:\n logger.warn(\"Unhandled directive: source: '%%{\".concat(directive.type, \": \").concat(JSON.stringify(directive.args ? directive.args : {}), \"}%%\"), directive);\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n console.log(\"mermaidAPI.reinitialize: v\".concat(pkg.version), options); // Set default options\n\n var config = _typeof(options) === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version}`);\n // Set default options\n var config = _typeof(options) === 'object' ? setSiteConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n} // function getConfig () {\n// console.warn('get config')\n// return config\n// }\n\n\nvar mermaidAPI = Object.freeze({\n render: render,\n parse: parse,\n parseDirective: parseDirective,\n initialize: initialize,\n reinitialize: reinitialize,\n getConfig: getConfig,\n getSiteConfig: getSiteConfig,\n reset: function reset() {\n // console.warn('reset');\n configApi.reset();\n var siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: function globalReset() {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *

\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/common/common.js", - "name": "./src/diagrams/common/common.js", - "index": 546, - "index2": 543, - "size": 1849, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 1707, - "building": 708 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/common/common", - "loc": "16:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:50-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:98-104" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "55:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "60:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "61:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "111:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "150:53-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "170:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "175:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "209:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "239:21-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "249:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "271:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "279:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "295:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "341:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "391:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "436:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "536:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "568:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "708:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "getRows", - "removeScript", - "sanitizeText", - "lineBreakRegex", - "hasBreaks", - "splitBreaks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "export var getRows = function getRows(s) {\n if (!s) return 1;\n var str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\nexport var removeScript = function removeScript(txt) {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n idx = txt.indexOf('');\n\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n\n return rs;\n};\nexport var sanitizeText = function sanitizeText(text, config) {\n var txt = text;\n var htmlLabels = true;\n if (config.flowchart && (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')) htmlLabels = false;\n\n if (htmlLabels) {\n var level = config.securityLevel;\n\n if (level == 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\nexport var lineBreakRegex = //gi;\nexport var hasBreaks = function hasBreaks(text) {\n return //gi.test(text);\n};\nexport var splitBreaks = function splitBreaks(text) {\n return text.split(//gi);\n};\n\nvar breakToPlaceholder = function breakToPlaceholder(s) {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nvar placeholderToBreak = function placeholderToBreak(s) {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows: getRows,\n sanitizeText: sanitizeText,\n hasBreaks: hasBreaks,\n splitBreaks: splitBreaks,\n lineBreakRegex: lineBreakRegex,\n removeScript: removeScript\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "name": "./src/config.js", - "index": 553, - "index2": 550, - "size": 29029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "7:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "7:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "10:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "11:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "12:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:192-201" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:220-229" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "18:0-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "20:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:92-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:158-167" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "23:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "26:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:162-171" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:144-153" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:208-217" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:246-255" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:219-228" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "44:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:119-128" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:164-173" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "49:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:64-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:98-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:132-141" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "54:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:142-151" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:184-193" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "67:35-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:135-144" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:213-222" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:251-260" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "74:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "82:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "85:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "86:19-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:102-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "97:124-133" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "137:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:176-185" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:255-264" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:108-117" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:150-159" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:178-187" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:249-258" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:277-286" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:306-315" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:196-205" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:224-233" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "156:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "157:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "159:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:128-137" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:165-174" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "172:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "173:241-250" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "198:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "215:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "220:27-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "221:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "227:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "233:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "244:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "248:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "253:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "260:39-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "261:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "265:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "269:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "288:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "289:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "306:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "308:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "326:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "331:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "341:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "354:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:91-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:152-161" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:268-277" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "478:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "510:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:68-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:47-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:72-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "570:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "571:17-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "574:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "575:21-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:20-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "580:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "582:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "584:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:16-25" - } - ], - "usedExports": [ - "getConfig", - "setConfig", - "getSiteConfig", - "setSiteConfig", - "default" - ], - "providedExports": [ - "defaultConfig", - "setSiteConfig", - "getSiteConfig", - "setConfig", - "getConfig", - "sanitize", - "reset", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { assignWithDepth } from './utils';\nimport { logger } from './logger';\n/**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\n\nvar config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeCSS: undefined,\n\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function messageFont() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function noteFont() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function actorFont() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport var defaultConfig = Object.freeze(config);\nvar siteConfig = assignWithDepth({}, defaultConfig);\nvar currentConfig = assignWithDepth({}, defaultConfig);\n/**\n * Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n * the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n * to the defaultConfig\n * Note: currentConfig is set in this function\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\n\nexport var setSiteConfig = function setSiteConfig(conf) {\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n assignWithDepth(siteConfig, conf);\n return getSiteConfig();\n};\n/**\n * Obtains the current siteConfig base configuration\n * @returns {*}\n */\n\nexport var getSiteConfig = function getSiteConfig() {\n return assignWithDepth({}, siteConfig);\n};\n/**\n * Sets the currentConfig. The param conf is sanitized based on the siteConfig.secure keys. Any\n * values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n * siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\n\nexport var setConfig = function setConfig(conf) {\n sanitize(conf);\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * Obtains the currentConfig\n * @returns {*} - the currentConfig\n */\n\nexport var getConfig = function getConfig() {\n return assignWithDepth({}, currentConfig);\n};\n/**\n * Ensures options parameter does not attempt to override siteConfig secure keys\n * Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\n\nexport var sanitize = function sanitize(options) {\n Object.keys(siteConfig.secure).forEach(function (key) {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\"Denied attempt to modify a secure key \".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n * Resets this currentConfig to conf\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\n\nexport var reset = function reset() {\n var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig();\n Object.keys(siteConfig).forEach(function (key) {\n return delete siteConfig[key];\n });\n Object.keys(currentConfig).forEach(function (key) {\n return delete currentConfig[key];\n });\n assignWithDepth(siteConfig, conf, {\n clobber: true\n });\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n};\nvar configApi = Object.freeze({\n sanitize: sanitize,\n setSiteConfig: setSiteConfig,\n getSiteConfig: getSiteConfig,\n setConfig: setConfig,\n getConfig: getConfig,\n reset: reset,\n defaultConfig: defaultConfig\n});\nexport default configApi;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "name": "./src/diagrams/flowchart/flowDb.js", - "index": 552, - "index2": 551, - "size": 18389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "24:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "81:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "83:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "87:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "89:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "272:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "276:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "279:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "292:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "296:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "302:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "305:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "315:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "317:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "329:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "333:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "334:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "348:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "354:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "358:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "359:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "372:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "383:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "392:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "402:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "415:20-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addVertex", - "addSingleLink", - "addLink", - "updateLinkInterpolate", - "updateLink", - "addClass", - "setDirection", - "setClass", - "setLink", - "getTooltip", - "setClickEvent", - "bindFunctions", - "getDirection", - "getVertices", - "getEdges", - "getClasses", - "clear", - "defaultStyle", - "addSubGraph", - "getDepthFirstPos", - "indexNodes", - "getSubGraphs", - "firstGraph", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { select } from 'd3';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common'; // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\n\nvar MERMAID_DOM_ID_PREFIX = '';\nvar config = getConfig();\nvar vertices = {};\nvar edges = [];\nvar classes = [];\nvar subGraphs = [];\nvar subGraphLookup = {};\nvar tooltips = {};\nvar subCount = 0;\nvar firstGraphFlag = true;\nvar direction; // Functions to be run after graph rendering\n\nvar funs = [];\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\n\nexport var addVertex = function addVertex(_id, text, type, style, classes) {\n var txt;\n var id = _id;\n\n if (typeof id === 'undefined') {\n return;\n }\n\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = {\n id: id,\n styles: [],\n classes: []\n };\n }\n\n if (typeof text !== 'undefined') {\n txt = common.sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote\n\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n vertices[id].styles.push(s);\n });\n }\n }\n\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function (s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\n\nexport var addSingleLink = function addSingleLink(_start, _end, type, linktext) {\n var start = _start;\n var end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end; // logger.info('Got edge...', start, end);\n\n var edge = {\n start: start,\n end: end,\n type: undefined,\n text: ''\n };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config); // strip quotes if string starts and exnds with a quote\n\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n\n edges.push(edge);\n};\nexport var addLink = function addLink(_start, _end, type, linktext) {\n var i, j;\n\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\n\nexport var updateLinkInterpolate = function updateLinkInterpolate(positions, interp) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\n\nexport var updateLink = function updateLink(positions, style) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n\n edges[pos].style = style;\n }\n });\n};\nexport var addClass = function addClass(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = {\n id: id,\n styles: [],\n textStyles: []\n };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n if (s.match('color')) {\n var newStyle1 = s.replace('fill', 'bgFill');\n var newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n\n classes[id].styles.push(s);\n });\n }\n }\n};\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nvar setTooltip = function setTooltip(ids, tooltip) {\n ids.split(',').forEach(function (id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nvar setClickFun = function setClickFun(_id, functionName) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, id);\n }, false);\n }\n });\n }\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var getTooltip = function getTooltip(id) {\n return tooltips[id];\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var getDirection = function getDirection() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\n\nexport var getVertices = function getVertices() {\n return vertices;\n};\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\n\nexport var getEdges = function getEdges() {\n return edges;\n};\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\n\nexport var getClasses = function getClasses() {\n return classes;\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var clear = function clear() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\n\nexport var defaultStyle = function defaultStyle() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var addSubGraph = function addSubGraph(_id, list, _title) {\n var id = _id.trim();\n\n var title = _title;\n\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n\n function uniq(a) {\n var prims = {\n boolean: {},\n number: {},\n string: {}\n };\n var objs = [];\n return a.filter(function (item) {\n var type = _typeof(item);\n\n if (item.trim() === '') {\n return false;\n }\n\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true; // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n var nodeList = [];\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n\n for (var i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n var subGraph = {\n id: id,\n nodes: nodeList,\n title: title.trim(),\n classes: []\n };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nvar getPosForId = function getPosForId(id) {\n for (var i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n\n return -1;\n};\n\nvar secCount = -1;\nvar posCrossRef = [];\n\nvar indexNodes2 = function indexNodes2(id, pos) {\n var nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n\n if (secCount > 2000) {\n return;\n }\n\n posCrossRef[secCount] = pos; // Check if match\n\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n var count = 0;\n var posCount = 1;\n\n while (count < nodes.length) {\n var childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)\n\n if (childPos >= 0) {\n var res = indexNodes2(id, childPos);\n\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport var getDepthFirstPos = function getDepthFirstPos(pos) {\n return posCrossRef[pos];\n};\nexport var indexNodes = function indexNodes() {\n secCount = -1;\n\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\nexport var getSubGraphs = function getSubGraphs() {\n return subGraphs;\n};\nexport var firstGraph = function firstGraph() {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n\n return false;\n};\n\nvar destructStartLink = function destructStartLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '<--':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case 'x--':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '<-.':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case 'x-.':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case 'o-.':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case 'x==':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case 'o==':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '--':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '==':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n\n case '-.':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n }\n};\n\nvar destructEndLink = function destructEndLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '--x':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case '-->':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case '<-->':\n return {\n type: 'double_arrow_point',\n stroke: 'normal'\n };\n\n case 'x--x':\n return {\n type: 'double_arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--o':\n return {\n type: 'double_arrow_circle',\n stroke: 'normal'\n };\n\n case 'o.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==>':\n return {\n type: 'double_arrow_point',\n stroke: 'thick'\n };\n\n case 'o==o':\n return {\n type: 'double_arrow_circle',\n stroke: 'thick'\n };\n\n case 'x==x':\n return {\n type: 'double_arrow_cross',\n stroke: 'thick'\n };\n\n case 'x.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case 'x-.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case '<.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case '<-.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case 'o-.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '--o':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '---':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '-.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '-.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '-.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '-.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '==x':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case '==>':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case '==o':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '===':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n }\n};\n\nvar destructLink = function destructLink(_str, _startStr) {\n var info = destructEndLink(_str);\n var startInfo;\n\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n addVertex: addVertex,\n addLink: addLink,\n updateLinkInterpolate: updateLinkInterpolate,\n updateLink: updateLink,\n addClass: addClass,\n setDirection: setDirection,\n setClass: setClass,\n getTooltip: getTooltip,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n getDirection: getDirection,\n getVertices: getVertices,\n getEdges: getEdges,\n getClasses: getClasses,\n clear: clear,\n defaultStyle: defaultStyle,\n addSubGraph: addSubGraph,\n getDepthFirstPos: getDepthFirstPos,\n indexNodes: indexNodes,\n getSubGraphs: getSubGraphs,\n destructLink: destructLink,\n lex: {\n firstGraph: firstGraph\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "index": 571, - "index2": 887, - "size": 14240, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "21:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "280:18-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "314:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "315:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "523:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n break;\n\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n\n try {\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Create the renderer\n\n var Render = dagreD3.render;\n var render = new Render(); // Add custom shapes\n\n flowChartShapes.addToRender(render); // Add our custom arrow - an empty arrowhead\n\n render.arrows().none = function normal(parent, id, edge, type) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n var path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n\n\n render.arrows().normal = function normal(parent, id) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n marker.append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowheadPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n }; // Set up an SVG group so that we can translate the final graph.\n\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g);\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // reposition labels\n\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n var clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n var clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n var xPos = clusterRects[0].x.baseVal.value;\n var yPos = clusterRects[0].y.baseVal.value;\n var _width = clusterRects[0].width.baseVal.value;\n var cluster = select(clusterEl[0]);\n var te = cluster.select('.label');\n te.attr('transform', \"translate(\".concat(xPos + _width / 2, \", \").concat(yPos + 14, \")\"));\n te.attr('id', id + 'Text');\n\n for (var _j = 0; _j < subG.classes.length; _j++) {\n clusterEl[0].classList.add(subG.classes[_j]);\n }\n }\n } // Add label rects for non html labels\n\n\n if (!conf.htmlLabels || true) {\n // eslint-disable-line\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "index": 891, - "index2": 905, - "size": 14132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "22:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "320:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "321:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "524:2-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; //edgeData.id = 'id' + cnt;\n // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n edgeData.arrowType = edge.type;\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) {\n // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n logger.info(edges);\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id); // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n logger.debug(\"new ViewBox 0 0 \".concat(width, \" \").concat(height), \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - g._label.marginy, \")\"));\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"0 0 \".concat(width, \" \").concat(height));\n svg.select('g').attr('transform', \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - svgBounds.y, \")\")); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "name": "./src/diagrams/sequence/sequenceDb.js", - "index": 556, - "index2": 554, - "size": 8123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequenceDb", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "8:12-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "27:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "94:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "360:6-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "parseDirective", - "addActor", - "addMessage", - "addSignal", - "getMessages", - "getActors", - "getActor", - "getActorKeys", - "getTitle", - "getTitleWrapped", - "enableSequenceNumbers", - "showSequenceNumbers", - "setWrap", - "autoWrap", - "clear", - "parseMessage", - "LINETYPE", - "ARROWTYPE", - "PLACEMENT", - "addNote", - "setTitle", - "apply", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\nvar prevActor = undefined;\nvar actors = {};\nvar messages = [];\nvar notes = [];\nvar title = '';\nvar titleWrapped = false;\nvar sequenceNumbersEnabled = false;\nvar wrapEnabled = false;\nexport var parseDirective = function parseDirective(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\nexport var addActor = function addActor(id, name, description) {\n // Don't allow description nulling\n var old = actors[id];\n if (old && name === old.name && description == null) return; // Don't allow null descriptions, either\n\n if (description == null || description.text == null) {\n description = {\n text: name,\n wrap: null\n };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: description.wrap === undefined && autoWrap() || !!description.wrap,\n prevActor: prevActor\n };\n\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nvar activationCount = function activationCount(part) {\n var i;\n var count = 0;\n\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n\n return count;\n};\n\nexport var addMessage = function addMessage(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n answer: answer\n });\n};\nexport var addSignal = function addSignal(idFrom, idTo) {\n var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n text: undefined,\n wrap: undefined\n };\n var messageType = arguments.length > 3 ? arguments[3] : undefined;\n\n if (messageType === LINETYPE.ACTIVE_END) {\n var cnt = activationCount(idFrom.actor);\n\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n var error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: {\n first_line: 1,\n last_line: 1,\n first_column: 1,\n last_column: 1\n },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: messageType\n });\n return true;\n};\nexport var getMessages = function getMessages() {\n return messages;\n};\nexport var getActors = function getActors() {\n return actors;\n};\nexport var getActor = function getActor(id) {\n return actors[id];\n};\nexport var getActorKeys = function getActorKeys() {\n return Object.keys(actors);\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var getTitleWrapped = function getTitleWrapped() {\n return titleWrapped;\n};\nexport var enableSequenceNumbers = function enableSequenceNumbers() {\n sequenceNumbersEnabled = true;\n};\nexport var showSequenceNumbers = function showSequenceNumbers() {\n return sequenceNumbersEnabled;\n};\nexport var setWrap = function setWrap(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\nexport var autoWrap = function autoWrap() {\n return wrapEnabled;\n};\nexport var clear = function clear() {\n actors = {};\n messages = [];\n};\nexport var parseMessage = function parseMessage(str) {\n var _str = str.trim();\n\n var message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? common.hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\nexport var LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\nexport var ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\nexport var PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\nexport var addNote = function addNote(actor, placement, message) {\n var note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap\n }; // Coerce actor into a [to, from, ...] array\n\n var actors = [].concat(actor, actor);\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\nexport var setTitle = function setTitle(titleWrap) {\n title = titleWrap.text;\n titleWrapped = titleWrap.wrap === undefined && autoWrap() || !!titleWrap.wrap;\n};\nexport var apply = function apply(param) {\n if (param instanceof Array) {\n param.forEach(function (item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'setTitle':\n setTitle(param.text);\n break;\n\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\nexport default {\n addActor: addActor,\n addMessage: addMessage,\n addSignal: addSignal,\n autoWrap: autoWrap,\n setWrap: setWrap,\n enableSequenceNumbers: enableSequenceNumbers,\n showSequenceNumbers: showSequenceNumbers,\n getMessages: getMessages,\n getActors: getActors,\n getActor: getActor,\n getActorKeys: getActorKeys,\n getTitle: getTitle,\n parseDirective: parseDirective,\n getConfig: function getConfig() {\n return configApi.getConfig().sequence;\n },\n getTitleWrapped: getTitleWrapped,\n clear: clear,\n parseMessage: parseMessage,\n LINETYPE: LINETYPE,\n ARROWTYPE: ARROWTYPE,\n PLACEMENT: PLACEMENT,\n addNote: addNote,\n setTitle: setTitle,\n apply: apply\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "index": 908, - "index2": 907, - "size": 35513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "25:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "329:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "332:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "335:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "527:4-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "530:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "bounds", - "drawActors", - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\nparser.yy = sequenceDb;\nvar conf = {};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function getHeight() {\n return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map(function (actor) {\n return actor.height || 0;\n })) + (this.loops.length === 0 ? 0 : this.loops.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.messages.length === 0 ? 0 : this.messages.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.notes.length === 0 ? 0 : this.notes.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n }));\n },\n clear: function clear() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function addActor(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function addLoop(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function addMessage(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function addNote(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function lastActor() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function lastLoop() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function lastMessage() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function lastNote() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function init() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function newActivation(message, diagram, actors) {\n var actorRect = actors[message.from.actor];\n var stackedSize = actorActivations(message.from.actor).length || 0;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function endActivation(message) {\n // find most recent activation for given actor\n var lastActorActivationIdx = this.activations.map(function (activation) {\n return activation.actor;\n }).lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function createLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function newLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function endLoop() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function addSectionToLoop(message) {\n var loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({\n y: bounds.getVerticalPos(),\n height: 0\n });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return {\n bounds: this.data,\n models: this.models\n };\n }\n};\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\n\nvar drawNote = function drawNote(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n var rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n var g = elem.append('g');\n var rectElem = svgDraw.drawRect(g, rect);\n var textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n var textElem = drawText(g, textObj);\n var textHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\n\n\nvar drawMessage = function drawMessage(g, msgModel) {\n bounds.bumpVerticalPos(10);\n var startx = msgModel.startx,\n stopx = msgModel.stopx,\n starty = msgModel.starty,\n message = msgModel.message,\n type = msgModel.type,\n sequenceIndex = msgModel.sequenceIndex,\n wrap = msgModel.wrap;\n var lines = common.splitBreaks(message).length;\n var textDims = utils.calculateTextDimensions(message, conf.messageFont());\n var lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n bounds.bumpVerticalPos(lineHeight);\n var textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n drawText(g, textObj);\n var totalOffset = textDims.height - 10;\n var textWidth = textDims.width;\n var line, lineStarty;\n\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n\n if (conf.rightAngles) {\n line = g.append('path').attr('d', \"M \".concat(startx, \",\").concat(lineStarty, \" H \").concat(startx + Math.max(conf.width / 2, textWidth / 2), \" V \").concat(lineStarty + 25, \" H \").concat(startx));\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('path').attr('d', 'M ' + startx + ',' + lineStarty + ' C ' + (startx + 60) + ',' + (lineStarty - 10) + ' ' + (startx + 60) + ',' + (lineStarty + 30) + ' ' + startx + ',' + (lineStarty + 20));\n }\n\n totalOffset += 30;\n var dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + 30 + totalOffset);\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n } // Make an SVG Container\n // Draw the line\n\n\n if (type === parser.yy.LINETYPE.DOTTED || type === parser.yy.LINETYPE.DOTTED_CROSS || type === parser.yy.LINETYPE.DOTTED_OPEN) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n\n line.style('fill', 'none'); // remove any fill colour\n\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n } // add node number\n\n\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text').attr('x', startx).attr('y', lineStarty + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);\n }\n\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport var drawActors = function drawActors(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n var prevWidth = 0;\n var prevMargin = 0;\n\n for (var i = 0; i < actorKeys.length; i++) {\n var actor = actors[actorKeys[i]]; // Add some rendering data to the object\n\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos; // Draw the box with the attached line\n\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n } // Add a margin between the actor boxes and the first arrow\n\n\n bounds.bumpVerticalPos(conf.height);\n};\nexport var setConf = function setConf(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nvar actorActivations = function actorActivations(actor) {\n return bounds.activations.filter(function (activation) {\n return activation.actor === actor;\n });\n};\n\nvar activationBounds = function activationBounds(actor, actors) {\n // handle multiple stacked activations for same actor\n var actorObj = actors[actor];\n var activations = actorActivations(actor);\n var left = activations.reduce(function (acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n var right = activations.reduce(function (acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n var heightAdjust = postMargin;\n\n if (msg.id && msg.message && loopWidths[msg.id]) {\n var loopWidth = loopWidths[msg.id].width;\n var textConf = conf.messageFont();\n msg.message = utils.wrapLabel(\"[\".concat(msg.message, \"]\"), loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true; // const lines = common.splitBreaks(msg.message).length;\n\n var textDims = utils.calculateTextDimensions(msg.message, textConf);\n var totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(\"\".concat(totalOffset, \" - \").concat(msg.message));\n }\n\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(\"C:\".concat(JSON.stringify(conf, null, 2)));\n var diagram = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Fetch data from the parsing\n\n var actors = parser.yy.getActors();\n var actorKeys = parser.yy.getActorKeys();\n var messages = parser.yy.getMessages();\n var title = parser.yy.getTitle();\n var maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n drawActors(diagram, actors, actorKeys, 0);\n var loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor); // The arrow head definition is attached to the svg once\n\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n var activationData = bounds.endActivation(msg);\n\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n\n svgDraw.drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n } // Draw the messages/signals\n\n\n var sequenceIndex = 1;\n messages.forEach(function (msg) {\n var loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, function (message) {\n return bounds.newLoop(undefined, message.message);\n });\n break;\n\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n\n } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n var _bounds$getBounds = bounds.getBounds(),\n box = _bounds$getBounds.bounds; // Adjust line height of actor lines now that the height of the diagram is known\n\n\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n var actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n var width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;'); // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n var extraVertForTitle = title ? 40 : 0;\n diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));\n logger.debug(\"models:\", bounds.models);\n};\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\n\nvar getMaxMessageWidthPerActor = function getMaxMessageWidthPerActor(actors, messages) {\n var maxMessageWidthPerActor = {};\n messages.forEach(function (msg) {\n if (actors[msg.to] && actors[msg.from]) {\n var actor = actors[msg.to]; // If this is the first actor, and the message is left of it, no need to calculate the margin\n\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n } // If this is the last actor, and the message is right of it, no need to calculate the margin\n\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n var isNote = msg.placement !== undefined;\n var isMessage = !isNote;\n var textFont = isNote ? conf.noteFont() : conf.messageFont();\n var wrappedMessage = msg.wrap ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;\n var messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n var messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth);\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth / 2);\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth / 2);\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n }\n }\n }\n });\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\n\n\nvar calculateActorMargins = function calculateActorMargins(actors, actorToMessageWidth) {\n var maxHeight = 0;\n Object.keys(actors).forEach(function (prop) {\n var actor = actors[prop];\n\n if (actor.wrap) {\n actor.description = utils.wrapLabel(actor.description, conf.width - 2 * conf.wrapPadding, conf.actorFont());\n }\n\n var actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (var actorKey in actorToMessageWidth) {\n var actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n var nextActor = actors[actor.nextActor]; // No need to space out an actor that doesn't have a next link\n\n if (!nextActor) {\n continue;\n }\n\n var messageWidth = actorToMessageWidth[actorKey];\n var actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nvar buildNoteModel = function buildNoteModel(msg, actors) {\n var startx = actors[msg.from].x;\n var stopx = actors[msg.to].x;\n var shouldWrap = msg.wrap && msg.message;\n var textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, conf.noteFont());\n var noteModel = {\n width: shouldWrap ? conf.width : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), conf.noteFont()) : msg.message, conf.noteFont());\n noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width = Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) + conf.actorMargin;\n noteModel.startx = startx < stopx ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2 : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(msg.message, noteModel.width - 2 * conf.wrapPadding, conf.noteFont());\n }\n\n logger.debug(\"NM:[\".concat(noteModel.startx, \",\").concat(noteModel.stopx, \",\").concat(noteModel.starty, \",\").concat(noteModel.stopy, \":\").concat(noteModel.width, \",\").concat(noteModel.height, \"=\").concat(msg.message, \"]\"));\n return noteModel;\n};\n\nvar buildMessageModel = function buildMessageModel(msg, actors) {\n var process = false;\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n process = true;\n }\n\n if (!process) {\n return {};\n }\n\n var fromBounds = activationBounds(msg.from, actors);\n var toBounds = activationBounds(msg.to, actors);\n var fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n var toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n var allBounds = fromBounds.concat(toBounds);\n var boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n var msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), conf.messageFont());\n }\n\n return {\n width: Math.max(msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding, boundedWidth + 2 * conf.wrapPadding, conf.width),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nvar calculateLoopBounds = function calculateLoopBounds(messages, actors) {\n var loops = {};\n var stack = [];\n var current, noteModel, msgModel;\n messages.forEach(function (msg) {\n msg.id = utils.random({\n length: 10\n });\n\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n var actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n var stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n var toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n var lastActorActivationIdx = bounds.activations.map(function (a) {\n return a.actor;\n }).lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n\n var isNote = msg.placement !== undefined;\n\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(function (stk) {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width = Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(function (stk) {\n current = stk;\n\n if (msgModel.startx === msgModel.stopx) {\n var from = actors[msg.from];\n var to = actors[msg.to];\n current.from = Math.min(from.x - msgModel.width / 2, from.x - from.width / 2, current.from);\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width = Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds: bounds,\n drawActors: drawActors,\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "name": "./src/diagrams/gantt/ganttDb.js", - "index": 558, - "index2": 556, - "size": 16304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./ganttDb", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "5:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "30:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "99:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "331:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "419:20-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setAxisFormat", - "getAxisFormat", - "setTodayMarker", - "getTodayMarker", - "setDateFormat", - "enableInclusiveEndDates", - "endDatesAreInclusive", - "getDateFormat", - "setExcludes", - "getExcludes", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "findTaskById", - "addTaskOrg", - "setLink", - "setClass", - "setClickEvent", - "bindFunctions", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\nvar dateFormat = '';\nvar axisFormat = '';\nvar todayMarker = '';\nvar excludes = [];\nvar title = '';\nvar sections = [];\nvar tasks = [];\nvar currentSection = '';\nvar tags = ['active', 'done', 'crit', 'milestone'];\nvar funs = [];\nvar inclusiveEndDates = false; // The serial order of the task in the script\n\nvar lastOrder = 0;\nexport var clear = function clear() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\nexport var setAxisFormat = function setAxisFormat(txt) {\n axisFormat = txt;\n};\nexport var getAxisFormat = function getAxisFormat() {\n return axisFormat;\n};\nexport var setTodayMarker = function setTodayMarker(txt) {\n todayMarker = txt;\n};\nexport var getTodayMarker = function getTodayMarker() {\n return todayMarker;\n};\nexport var setDateFormat = function setDateFormat(txt) {\n dateFormat = txt;\n};\nexport var enableInclusiveEndDates = function enableInclusiveEndDates() {\n inclusiveEndDates = true;\n};\nexport var endDatesAreInclusive = function endDatesAreInclusive() {\n return inclusiveEndDates;\n};\nexport var getDateFormat = function getDateFormat() {\n return dateFormat;\n};\nexport var setExcludes = function setExcludes(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\nexport var getExcludes = function getExcludes() {\n return excludes;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsPricessed = compileTasks();\n var maxDepth = 10;\n var iterationCount = 0;\n\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n return tasks;\n};\n\nvar isInvalidDate = function isInvalidDate(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nvar checkTaskDates = function checkTaskDates(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n var startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n var endTime = moment(task.endTime, dateFormat, true);\n var renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nvar fixTaskDates = function fixTaskDates(startTime, endTime, dateFormat, excludes) {\n var invalid = false;\n var renderEndTime = null;\n\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n\n if (invalid) {\n endTime.add(1, 'd');\n }\n\n startTime.add(1, 'd');\n }\n\n return renderEndTime;\n};\n\nvar getStartDate = function getStartDate(prevTime, dateFormat, str) {\n str = str.trim(); // Test for after\n\n var re = /^after\\s+([\\d\\w- ]+)/;\n var afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n var latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function (id) {\n var task = findTaskById(id);\n\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n var dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n } // Check for actual date set\n\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n } // Default date - now\n\n\n return new Date();\n};\n\nvar durationToDate = function durationToDate(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n } // Default date - now\n\n\n return relativeTime.toDate();\n};\n\nvar getEndDate = function getEndDate(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim(); // Check for actual date\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nvar taskCnt = 0;\n\nvar parseId = function parseId(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n\n return idStr;\n}; // id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\n\nvar compileData = function compileData(prevTask, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n var endTimeData = '';\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nvar parseData = function parseData(prevTaskId, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n\n default:\n }\n\n return task;\n};\n\nvar lastTask;\nvar lastTaskID;\nvar rawTasks = [];\nvar taskDb = {};\nexport var addTask = function addTask(descr, data) {\n var rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: {\n data: data\n },\n task: descr,\n classes: []\n };\n var taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n lastOrder++;\n var pos = rawTasks.push(rawTask);\n lastTaskID = rawTask.id; // Store cross ref\n\n taskDb[rawTask.id] = pos - 1;\n};\nexport var findTaskById = function findTaskById(id) {\n var pos = taskDb[id];\n return rawTasks[pos];\n};\nexport var addTaskOrg = function addTaskOrg(descr, data) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n var taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n var task = rawTasks[pos];\n var startTime = '';\n\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd':\n {\n var prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);\n\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\n\n\nexport var setLink = function setLink(ids, _linkStr) {\n var linkStr = _linkStr;\n\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nvar setClickFun = function setClickFun(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n var argList = [];\n\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n\n for (var i = 0; i < argList.length; i++) {\n var item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n\n /* This preserves all starting and ending whitespace inside */\n\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n\n argList[i] = item;\n }\n }\n /* if no arguments passed into callback, default to passing in id */\n\n\n if (argList.length === 0) {\n argList.push(id);\n }\n\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n utils.runFunc.apply(utils, [functionName].concat(_toConsumableArray(argList)));\n });\n }\n};\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\n\n\nvar pushFun = function pushFun(id, callbackFunction) {\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"-text\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\n\n\nexport var setClickEvent = function setClickEvent(ids, functionName, functionArgs) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport default {\n clear: clear,\n setDateFormat: setDateFormat,\n getDateFormat: getDateFormat,\n enableInclusiveEndDates: enableInclusiveEndDates,\n endDatesAreInclusive: endDatesAreInclusive,\n setAxisFormat: setAxisFormat,\n getAxisFormat: getAxisFormat,\n setTodayMarker: setTodayMarker,\n getTodayMarker: getTodayMarker,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n findTaskById: findTaskById,\n addTaskOrg: addTaskOrg,\n setExcludes: setExcludes,\n getExcludes: getExcludes,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n durationToDate: durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n var matchFound = true;\n\n while (matchFound) {\n matchFound = false;\n tags.forEach(function (t) {\n var pattern = '^\\\\s*' + t + '\\\\s*$';\n var regex = new RegExp(pattern);\n\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "name": "./src/diagrams/gantt/ganttRenderer.js", - "index": 910, - "index2": 908, - "size": 12233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "28:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "340:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "341:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "531:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, scaleTime, min, max, scaleLinear, interpolateHcl, axisBottom, timeFormat } from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\nparser.yy = ganttDb;\nvar conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar w;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text);\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var taskArray = parser.yy.getTasks(); // Set height based on number of tasks\n\n var h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Set timescale\n\n var timeScale = scaleTime().domain([min(taskArray, function (d) {\n return d.startTime;\n }), max(taskArray, function (d) {\n return d.endTime;\n })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n var categories = [];\n\n for (var i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n var catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n var taskA = a.startTime;\n var taskB = b.startTime;\n var result = 0;\n\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n\n return result;\n } // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n\n\n taskArray.sort(taskCompare);\n makeGant(taskArray, w, h);\n\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg.append('text').text(parser.yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n var barHeight = conf.barHeight;\n var gap = barHeight + conf.barGap;\n var topPadding = conf.topPadding;\n var leftPadding = conf.leftPadding;\n var colorScale = scaleLinear().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(interpolateHcl);\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n }).attr('width', function () {\n return w - conf.rightPadding / 2;\n }).attr('height', theGap).attr('class', function (d) {\n for (var _i = 0; _i < categories.length; _i++) {\n if (d.type === categories[_i]) {\n return 'section section' + _i % conf.numberSectionStyles;\n }\n }\n\n return 'section section0';\n }); // Draw the rects representing the tasks\n\n var rectangles = svg.append('g').selectAll('rect').data(theArray).enter();\n rectangles.append('rect').attr('id', function (d) {\n return d.id;\n }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {\n if (d.milestone) {\n return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n return timeScale(d.startTime) + theSidePad;\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n }).attr('width', function (d) {\n if (d.milestone) {\n return theBarHeight;\n }\n\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {\n return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';\n }).attr('class', function (d) {\n var res = 'task';\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n\n for (var _i2 = 0; _i2 < categories.length; _i2++) {\n if (d.type === categories[_i2]) {\n secNum = _i2 % conf.numberSectionStyles;\n }\n }\n\n var taskClass = '';\n\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n taskClass += ' ' + classStr;\n return res + taskClass;\n }); // Append task labels\n\n rectangles.append('text').attr('id', function (d) {\n return d.id + '-text';\n }).text(function (d) {\n return d.task;\n }).attr('font-size', conf.fontSize).attr('x', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.renderEndTime || d.endTime);\n\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width; // Check id text width > width of rectangle\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n }).attr('text-height', theBarHeight).attr('class', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.endTime);\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width;\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n console.log(conf);\n\n for (var _i3 = 0; _i3 < categories.length; _i3++) {\n if (d.type === categories[_i3]) {\n secNum = _i3 % conf.numberSectionStyles;\n }\n }\n\n var taskType = '';\n\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n } // Check id text width > width of rectangle\n\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n var xAxis = axisBottom(timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n svg.append('g').attr('class', 'grid').attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')').call(xAxis).selectAll('text').style('text-anchor', 'middle').attr('fill', '#000').attr('stroke', 'none').attr('font-size', 10).attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n var numOccurances = [];\n var prevGap = 0;\n\n for (var _i4 = 0; _i4 < categories.length; _i4++) {\n numOccurances[_i4] = [categories[_i4], getCount(categories[_i4], catsUnfiltered)];\n }\n\n svg.append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text').data(numOccurances).enter().append(function (d) {\n var rows = d[0].split(common.lineBreakRegex);\n var dy = -(rows.length - 1) / 2;\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }).attr('x', 10).attr('y', function (d, i) {\n if (i > 0) {\n for (var j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return d[1] * theGap / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return d[1] * theGap / 2 + theTopPad;\n }\n }).attr('class', function (d) {\n for (var _i5 = 0; _i5 < categories.length; _i5++) {\n if (d[0] === categories[_i5]) {\n return 'sectionTitle sectionTitle' + _i5 % conf.numberSectionStyles;\n }\n }\n\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n var todayMarker = ganttDb.getTodayMarker();\n\n if (todayMarker === 'off') {\n return;\n }\n\n var todayG = svg.append('g').attr('class', 'today');\n var today = new Date();\n var todayLine = todayG.append('line');\n todayLine.attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n\n\n function checkUnique(arr) {\n var hash = {};\n var result = [];\n\n for (var _i6 = 0, l = arr.length; _i6 < l; ++_i6) {\n if (!hash.hasOwnProperty(arr[_i6])) {\n // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[_i6]] = true;\n result.push(arr[_i6]);\n }\n }\n\n return result;\n } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n\n\n function getCounts(arr) {\n var i = arr.length; // const to loop over\n\n var obj = {}; // obj to store results\n\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n\n return obj;\n } // get specific from everything\n\n\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "name": "./src/diagrams/class/classDb.js", - "index": 560, - "index2": 558, - "size": 8112, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "2:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "8:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "9:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "12:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "15:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "18:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classDb", - "loc": "33:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "77:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "91:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "102:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "104:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "115:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "423:20-27" - } - ], - "usedExports": [ - "default", - "lookUpDomId", - "relationType" - ], - "providedExports": [ - "addClass", - "lookUpDomId", - "clear", - "getClass", - "getClasses", - "getRelations", - "addRelation", - "addAnnotation", - "addMember", - "addMembers", - "cleanupLabel", - "setCssClass", - "setLink", - "setClickEvent", - "bindFunctions", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nvar MERMAID_DOM_ID_PREFIX = 'classid-';\nvar config = getConfig();\nvar relations = [];\nvar classes = {};\nvar classCounter = 0;\nvar funs = [];\n\nvar splitClassNameAndType = function splitClassNameAndType(id) {\n var genericType = '';\n var className = id;\n\n if (id.indexOf('~') > 0) {\n var split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return {\n className: className,\n type: genericType\n };\n};\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\n\n\nexport var addClass = function addClass(id) {\n var classId = splitClassNameAndType(id); // Only add class if not exists\n\n if (typeof classes[classId.className] !== 'undefined') return;\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\n\nexport var lookUpDomId = function lookUpDomId(id) {\n var classKeys = Object.keys(classes);\n\n for (var i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\nexport var clear = function clear() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\nexport var getClass = function getClass(id) {\n return classes[id];\n};\nexport var getClasses = function getClasses() {\n return classes;\n};\nexport var getRelations = function getRelations() {\n return relations;\n};\nexport var addRelation = function addRelation(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n relations.push(relation);\n};\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\n\nexport var addAnnotation = function addAnnotation(className, annotation) {\n var validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\n\nexport var addMember = function addMember(className, member) {\n var validatedClassName = splitClassNameAndType(className).className;\n var theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n var memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\nexport var addMembers = function addMembers(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(function (member) {\n return addMember(className, member);\n });\n }\n};\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setCssClass = function setCssClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nvar setClickFunc = function setClickFunc(domId, functionName, tooltip) {\n var id = domId;\n var elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(elemId, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, elemId);\n }, false);\n }\n });\n }\n};\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\nexport default {\n addClass: addClass,\n bindFunctions: bindFunctions,\n clear: clear,\n getClass: getClass,\n getClasses: getClasses,\n addAnnotation: addAnnotation,\n getRelations: getRelations,\n addRelation: addRelation,\n addMember: addMember,\n addMembers: addMembers,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n setClickEvent: setClickEvent,\n setCssClass: setCssClass,\n setLink: setLink,\n lookUpDomId: lookUpDomId\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "index": 911, - "index2": 910, - "size": 5731, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classRenderer", - "loc": "31:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "346:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "347:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "532:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nparser.yy = classDb;\nvar idCache = {};\nvar padding = 20;\nvar conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n}; // Todo optimize\n\nvar getGraphId = function getGraphId(label) {\n var keys = Object.keys(idCache);\n\n for (var i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'extensionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', 'extensionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem.append('defs').append('marker').attr('id', 'compositionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'compositionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n logger.info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var g = new graphlib.Graph({\n multigraph: true\n }); // Set an object for the graph label\n\n g.setGraph({\n isMultiGraph: true\n }); // Default to assigning a new object as a label for each new edge.\n\n g.setDefaultEdgeLabel(function () {\n return {};\n });\n var classes = classDb.getClasses();\n var keys = Object.keys(classes);\n\n for (var i = 0; i < keys.length; i++) {\n var classDef = classes[keys[i]];\n var node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n\n g.setNode(node.id, node);\n logger.info('Org height: ' + node.height);\n }\n\n var relations = classDb.getRelations();\n relations.forEach(function (relation) {\n logger.info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));\n g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {\n relation: relation\n }, relation.title || 'DEFAULT');\n });\n dagre.layout(g);\n g.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');\n }\n });\n g.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n var svgBounds = diagram.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n diagram.attr('viewBox', vBox);\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "name": "./src/diagrams/state/stateDb.js", - "index": 562, - "index2": 560, - "size": 6456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "11:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "26:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "29:9-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateDb", - "loc": "37:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "51:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "109:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "114:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "121:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "122:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "123:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "215:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "218:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "227:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "249:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "251:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "252:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "298:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "301:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "304:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "307:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "332:66-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addState", - "clear", - "getState", - "getStates", - "logDocuments", - "getRelations", - "addRelation", - "cleanupLabel", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nvar clone = function clone(o) {\n return JSON.parse(JSON.stringify(o));\n};\n\nvar rootDoc = [];\n\nvar setRootDoc = function setRootDoc(o) {\n logger.info('Setting root doc', o); // rootDoc = { id: 'root', doc: o };\n\n rootDoc = o;\n};\n\nvar getRootDoc = function getRootDoc() {\n return rootDoc;\n};\n\nvar docTranslator = function docTranslator(parent, node, first) {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n var doc = []; // Check for concurrency\n\n var i = 0;\n var currentDoc = [];\n\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n var newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n } // If any divider was encountered\n\n\n if (doc.length > 0 && currentDoc.length > 0) {\n var _newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(_newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(function (docNode) {\n return docTranslator(node, docNode, true);\n });\n }\n }\n};\n\nvar getRootDocV2 = function getRootDocV2() {\n docTranslator({\n id: 'root'\n }, {\n id: 'root',\n doc: rootDoc\n }, true);\n return {\n id: 'root',\n doc: rootDoc\n };\n};\n\nvar extract = function extract(_doc) {\n // const res = { states: [], relations: [] };\n var doc;\n\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n } // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n\n\n logger.info(doc);\n clear();\n logger.info('Extract', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nvar newDoc = function newDoc() {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nvar documents = {\n root: newDoc()\n};\nvar currentDocument = documents.root;\nvar startCnt = 0;\nvar endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\n\nexport var addState = function addState(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type: type,\n doc: doc,\n note: note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (_typeof(descr) === 'object') {\n descr.forEach(function (des) {\n return addDescription(id, des.trim());\n });\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\nexport var clear = function clear() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n currentDocument = documents.root;\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n\n classes = [];\n};\nexport var getState = function getState(id) {\n return currentDocument.states[id];\n};\nexport var getStates = function getStates() {\n return currentDocument.states;\n};\nexport var logDocuments = function logDocuments() {\n logger.info('Documents = ', documents);\n};\nexport var getRelations = function getRelations() {\n return currentDocument.relations;\n};\nexport var addRelation = function addRelation(_id1, _id2, title) {\n var id1 = _id1;\n var id2 = _id2;\n var type1 = 'default';\n var type2 = 'default';\n\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({\n id1: id1,\n id2: id2,\n title: title\n });\n};\n\nvar addDescription = function addDescription(id, _descr) {\n var theState = currentDocument.states[id];\n var descr = _descr;\n\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nvar dividerCnt = 0;\n\nvar getDividerId = function getDividerId() {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nvar classes = [];\n\nvar getClasses = function getClasses() {\n return classes;\n};\n\nvar getDirection = function getDirection() {\n return 'TB';\n};\n\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar trimColon = function trimColon(str) {\n return str && str[0] === ':' ? str.substr(1).trim() : str.trim();\n};\n\nexport default {\n addState: addState,\n clear: clear,\n getState: getState,\n getStates: getStates,\n getRelations: getRelations,\n getClasses: getClasses,\n getDirection: getDirection,\n addRelation: addRelation,\n getDividerId: getDividerId,\n // addDescription,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n logDocuments: logDocuments,\n getRootDoc: getRootDoc,\n setRootDoc: setRootDoc,\n getRootDocV2: getRootDocV2,\n extract: extract,\n trimColon: trimColon\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "index": 913, - "index2": 913, - "size": 8188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "34:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "352:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "353:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "533:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram'; // import idCache from './id-cache';\n\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\nparser.yy = stateDb; // TODO Move conf object to main conf in mermaidAPI\n\nvar conf;\nvar transformationLog = {};\nexport var setConf = function setConf() {}; // Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL' // ranksep: '20'\n\n }); // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n var rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n var padding = conf.padding;\n var bounds = diagram.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width * 1.75, \"px;\"));\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n } // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n\n\n diagram.attr('viewBox', \"\".concat(bounds.x - conf.padding, \" \").concat(bounds.y - conf.padding, \" \") + width + ' ' + height);\n};\n\nvar getLabelWidth = function getLabelWidth(text) {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nvar renderDoc = function renderDoc(doc, diagram, parentId, altBkg) {\n // // Layout graph, Create a new directed graph\n var graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n var i;\n var edgeFreeDoc = true;\n\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n } // Set an object for the graph label\n\n\n if (parentId) graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true // ranksep: 5,\n // nodesep: 1\n\n });else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n } // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n stateDb.extract(doc);\n var states = stateDb.getStates();\n var relations = stateDb.getRelations();\n var keys = Object.keys(states);\n var first = true;\n\n for (var _i = 0; _i < keys.length; _i++) {\n var stateDef = states[keys[_i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n var node = void 0;\n\n if (stateDef.doc) {\n var sub = diagram.append('g').attr('id', stateDef.id).attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n var boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = {\n y: conf.compositTitleSize\n };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n var _boxBounds = sub.node().getBBox();\n\n node.width = _boxBounds.width;\n node.height = _boxBounds.height; // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n var noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n var note = drawState(diagram, noteDef, graph); // graph.setNode(node.id, node);\n\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n } // graph.setNode(node.id);\n\n\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n var cnt = 0;\n relations.forEach(function (relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(relation.id1, relation.id2, {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n }, 'id' + cnt);\n });\n dagre.layout(graph);\n logger.debug('Graph after layout', graph.nodes());\n var svgElem = diagram.node();\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + ' )');\n select('#' + svgElem.id + ' #' + v).attr('data-x-shift', graph.node(v).x - graph.node(v).width / 2);\n var dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(function (divider) {\n var parent = divider.parentElement;\n var pWidth = 0;\n var pShift = 0;\n\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n var stateBox = svgElem.getBBox();\n graph.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n stateBox = svgElem.getBBox();\n var stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "name": "./src/diagrams/state/stateRenderer-v2.js", - "index": 916, - "index2": 914, - "size": 9719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "35:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "358:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "359:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "534:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\nvar nodeDb = {};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nvar setupNode = function setupNode(g, parent, node, altFlag) {\n // Add the node\n if (node.id !== 'root') {\n var shape = 'rect';\n\n if (node.start === true) {\n shape = 'start';\n }\n\n if (node.start === false) {\n shape = 'end';\n }\n\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape: shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n } // Build of the array of description strings accordinging\n\n\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n } // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n // group\n\n\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes = nodeDb[node.id].classes + ' ' + (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n var nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n\n if (node.note) {\n // Todo: set random id\n var noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note',\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n var groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n\n };\n g.setNode(node.id + '----parent', groupData);\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n var from = node.id;\n var to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\n\nvar cnt = 0;\n\nvar setupDoc = function setupDoc(g, parent, doc, altFlag) {\n logger.trace('items', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n var edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowType: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n var startId = item.state1.id;\n var endId = item.state2.id;\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Fetch the default direction, use TD if none was found\n\n\n var dir = stateDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n var conf = getConfig().state;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true); // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n var padding = 8; // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n var bounds = svg.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2; // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n // Zoom in a bit\n\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram'); // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n var svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\nexport default {\n setConf: setConf,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "name": "./src/diagrams/git/gitGraphAst.js", - "index": 551, - "index2": 549, - "size": 6939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./gitGraphAst", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "40:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "77:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "238:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "243:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "245:20-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "246:21-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "247:19-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setDirection", - "setOptions", - "getOptions", - "commit", - "branch", - "merge", - "checkout", - "reset", - "prettyPrint", - "clear", - "getBranchesAsObjArray", - "getBranches", - "getCommits", - "getCommitsArray", - "getCurrentBranch", - "getDirection", - "getHead", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { logger } from '../../logger';\nvar commits = {};\nvar head = null;\nvar branches = {\n master: head\n};\nvar curBranch = 'master';\nvar direction = 'LR';\nvar seq = 0;\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n}\n\nfunction getId() {\n return makeid(7);\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n var currentSeq = currentCommit.seq;\n var otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n var recordMap = Object.create(null);\n return list.reduce(function (out, item) {\n var key = fn(item);\n\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n\n return out;\n }, []);\n}\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n};\nvar options = {};\nexport var setOptions = function setOptions(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\nexport var getOptions = function getOptions() {\n return options;\n};\nexport var commit = function commit(msg) {\n var commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\nexport var branch = function branch(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\nexport var merge = function merge(otherBranch) {\n var currentCommit = commits[branches[curBranch]];\n var otherCommit = commits[branches[otherBranch]];\n\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n var _commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = _commit;\n commits[_commit.id] = _commit;\n branches[curBranch] = _commit.id;\n }\n\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\nexport var checkout = function checkout(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n var id = branches[curBranch];\n head = commits[id];\n};\nexport var reset = function reset(commitRef) {\n logger.debug('in reset', commitRef);\n var ref = commitRef.split(':')[0];\n var parentCount = parseInt(commitRef.split(':')[1]);\n var commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n\n if (!commit) {\n var err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n var index = arr.indexOf(key);\n\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n var commit = commitArr.reduce(function (out, commit) {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n var line = '';\n commitArr.forEach(function (c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n var label = [line, commit.id, commit.seq];\n\n for (var _branch in branches) {\n if (branches[_branch] === commit.id) label.push(_branch);\n }\n\n logger.debug(label.join(' '));\n\n if (Array.isArray(commit.parent)) {\n var newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n var nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n\n commitArr = uniqBy(commitArr, function (c) {\n return c.id;\n });\n prettyPrintCommitHistory(commitArr);\n}\n\nexport var prettyPrint = function prettyPrint() {\n logger.debug(commits);\n var node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\nexport var clear = function clear() {\n commits = {};\n head = null;\n branches = {\n master: head\n };\n curBranch = 'master';\n seq = 0;\n};\nexport var getBranchesAsObjArray = function getBranchesAsObjArray() {\n var branchArr = [];\n\n for (var _branch2 in branches) {\n branchArr.push({\n name: _branch2,\n commit: commits[branches[_branch2]]\n });\n }\n\n return branchArr;\n};\nexport var getBranches = function getBranches() {\n return branches;\n};\nexport var getCommits = function getCommits() {\n return commits;\n};\nexport var getCommitsArray = function getCommitsArray() {\n var commitArr = Object.keys(commits).map(function (key) {\n return commits[key];\n });\n commitArr.forEach(function (o) {\n logger.debug(o.id);\n });\n commitArr.sort(function (a, b) {\n return b.seq - a.seq;\n });\n return commitArr;\n};\nexport var getCurrentBranch = function getCurrentBranch() {\n return curBranch;\n};\nexport var getDirection = function getDirection() {\n return direction;\n};\nexport var getHead = function getHead() {\n return head;\n};\nexport default {\n setDirection: setDirection,\n setOptions: setOptions,\n getOptions: getOptions,\n commit: commit,\n branch: branch,\n merge: merge,\n checkout: checkout,\n reset: reset,\n prettyPrint: prettyPrint,\n clear: clear,\n getBranchesAsObjArray: getBranchesAsObjArray,\n getBranches: getBranches,\n getCommits: getCommits,\n getCommitsArray: getCommitsArray,\n getCurrentBranch: getCurrentBranch,\n getDirection: getDirection,\n getHead: getHead\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "name": "./src/diagrams/git/gitGraphRenderer.js", - "index": 890, - "index2": 888, - "size": 9304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "38:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "308:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "309:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "522:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { curveBasis, line, select } from 'd3';\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\nvar allCommitsDict = {};\nvar branchNum;\nvar config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nvar apiConfig = {};\nexport var setConf = function setConf(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);\n svg.select('#def-commit').append('foreignObject').attr('width', config.nodeLabel.width).attr('height', config.nodeLabel.height).attr('x', config.nodeLabel.x).attr('y', config.nodeLabel.y).attr('class', 'node-label').attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility').append('p').html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n var curve = interpolateToCurve(interpolate, curveBasis);\n var color = config.branchColors[colorIdx % config.branchColors.length];\n var lineGen = line().x(function (d) {\n return Math.round(d.x);\n }).y(function (d) {\n return Math.round(d.y);\n }).curve(curve);\n svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');\n} // Pass in the element and its pre-transform coords\n\n\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n var ctm = element.node().getCTM();\n var xn = ctm.e + coords.x * ctm.a;\n var yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n var fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n var toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n var lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n var lineEnd = {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: lineStart.y\n }, lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n }, {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }], color);\n }\n\n break;\n\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n var _lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n var _lineEnd = {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n };\n svgDrawLine(svg, [_lineStart, _lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: _lineStart.y - config.nodeSpacing / 2\n }, _lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }], color);\n }\n\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg.select(selector).node().cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n var commit;\n var numCommits = Object.keys(allCommitsDict).length;\n\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n\n svg.append(function () {\n return cloneNode(svg, '#def-commit');\n }).attr('class', 'commit').attr('id', function () {\n return 'node-' + commit.id;\n }).attr('transform', function () {\n switch (direction) {\n case 'LR':\n return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';\n\n case 'BT':\n return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';\n }\n }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);\n var branch = void 0;\n\n for (var branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');\n }\n\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);\n\n if (commit.message !== '' && direction === 'BT') {\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);\n }\n\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver); // Parse the graph definition\n\n parser.parse(txt + '\\n');\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n var direction = db.getDirection();\n allCommitsDict = db.getCommits();\n var branches = db.getBranchesAsObjArray();\n\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\"));\n svgCreateDefs(svg);\n branchNum = 1;\n\n for (var branch in branches) {\n var v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n\n svg.attr('height', function () {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "name": "./src/diagrams/info/infoDb.js", - "index": 564, - "index2": 562, - "size": 645, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./infoDb", - "loc": "5:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "./infoDb", - "loc": "24:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoDb", - "loc": "44:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoDb", - "loc": "120:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setMessage", - "getMessage", - "setInfo", - "getInfo", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\nvar message = '';\nvar info = false;\nexport var setMessage = function setMessage(txt) {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\nexport var getMessage = function getMessage() {\n return message;\n};\nexport var setInfo = function setInfo(inf) {\n info = inf;\n};\nexport var getInfo = function getInfo() {\n return info;\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage: setMessage,\n getMessage: getMessage,\n setInfo: setInfo,\n getInfo: getInfo // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "name": "./src/diagrams/info/infoRenderer.js", - "index": 917, - "index2": 915, - "size": 1276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "41:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "364:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "365:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "535:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt); // Parse the graph definition\n\n parser.parse(txt);\n logger.debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found\n\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('text') // text label for the x axis\n .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "name": "./src/errorRenderer.js", - "index": 924, - "index2": 922, - "size": 2972, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./errorRenderer", - "loc": "42:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "386:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "539:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(id, ver) {\n try {\n logger.debug('Renering svg for syntax error\\n');\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('path').attr('class', 'error-icon').attr('d', 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1240).attr('y', 250).attr('font-size', '150px').style('text-anchor', 'middle').text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1050).attr('y', 400).attr('font-size', '100px').style('text-anchor', 'middle').text('mermaid version ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "name": "./src/diagrams/pie/pieDb.js", - "index": 566, - "index2": 564, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./pieDb", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "25:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieDb", - "loc": "47:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "55:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieDb", - "loc": "126:25-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar sections = {};\nvar title = '';\n\nvar addSection = function addSection(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\n\nvar getSections = function getSections() {\n return sections;\n};\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar cleanupValue = function cleanupValue(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nvar clear = function clear() {\n sections = {};\n title = '';\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\n\nexport default {\n addSection: addSection,\n getSections: getSections,\n cleanupValue: cleanupValue,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "name": "./src/diagrams/pie/pieRenderer.js", - "index": 919, - "index2": 917, - "size": 3794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "45:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "370:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "371:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "536:2-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\n\nvar w;\nexport var draw = function draw(txt, id) {\n try {\n var parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt); // Parse the Pie Chart definition\n\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var h = 450;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h); // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n var radius = Math.min(width, height) / 2 - margin;\n var svg = select('#' + id).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function (key) {\n sum += data[key];\n });\n logger.info(data); // set the color scale\n\n var color = scaleOrdinal().domain(data).range(schemeSet2); // Compute the position of each group on the pie:\n\n var pie = d3pie().value(function (d) {\n return d.value;\n });\n var dataReady = pie(entries(data)); // shape helper to build arcs:\n\n var arcGenerator = arc().innerRadius(0).outerRadius(radius); // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n\n svg.selectAll('mySlices').data(dataReady).enter().append('path').attr('d', arcGenerator).attr('fill', function (d) {\n return color(d.data.key);\n }).attr('stroke', 'black').style('stroke-width', '2px').style('opacity', 0.7); // Now add the Percentage. Use the centroid method to get the best coordinates\n\n svg.selectAll('mySlices').data(dataReady).enter().append('text').text(function (d) {\n return (d.data.value / sum * 100).toFixed(0) + '%';\n }).attr('transform', function (d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n }).style('text-anchor', 'middle').attr('class', 'slice').style('font-size', 17);\n svg.append('text').text(parser.yy.getTitle()).attr('x', 0).attr('y', -(h - 50) / 2).attr('class', 'pieTitleText'); //Add the slegend/annotations for each section\n\n var legend = svg.selectAll('.legend').data(color.domain()).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = height * color.domain().length / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n legend.append('rect').attr('width', legendRectSize).attr('height', legendRectSize).style('fill', color).style('stroke', color);\n legend.append('text').attr('x', legendRectSize + legendSpacing).attr('y', legendRectSize - legendSpacing).text(function (d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "name": "./src/diagrams/er/erDb.js", - "index": 568, - "index2": 566, - "size": 1728, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erDb", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erDb", - "loc": "48:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "115:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "132:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erDb", - "loc": "132:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "136:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "140:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "144:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "150:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "154:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "158:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "162:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "189:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "191:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "239:38-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "242:39-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar entities = {};\nvar relationships = [];\nvar title = '';\nvar Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\nvar Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nvar addEntity = function addEntity(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nvar getEntities = function getEntities() {\n return entities;\n};\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\n\n\nvar addRelationship = function addRelationship(entA, rolA, entB, rSpec) {\n var rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nvar getRelationships = function getRelationships() {\n return relationships;\n}; // Keep this - TODO: revisit...allow the diagram to have a title\n\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar clear = function clear() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality: Cardinality,\n Identification: Identification,\n addEntity: addEntity,\n getEntities: getEntities,\n addRelationship: addRelationship,\n getRelationships: getRelationships,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "index": 920, - "index2": 919, - "size": 11270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erRenderer", - "loc": "50:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "375:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "376:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "537:2-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\nvar conf = {};\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\n\nvar drawEntities = function drawEntities(svgNode, entities, graph) {\n var keys = Object.keys(entities);\n var firstOne;\n keys.forEach(function (id) {\n // Create a group for each entity\n var groupNode = svgNode.append('g').attr('id', id);\n firstOne = firstOne === undefined ? id : firstOne; // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n\n var textId = 'entity-' + id;\n var textNode = groupNode.append('text').attr('class', 'er entityLabel').attr('id', textId).attr('x', 0).attr('y', 0).attr('dominant-baseline', 'middle').attr('text-anchor', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(id); // Calculate the width and height of the entity\n\n var textBBox = textNode.node().getBBox();\n var entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n var entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2); // Make sure the text gets centred relative to the entity box\n\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')'); // Draw the rectangle - insert it before the text so that the text is not obscured\n\n var rectNode = groupNode.insert('rect', '#' + textId).attr('class', 'er entityBox').attr('fill', conf.fill).attr('fill-opacity', '100%').attr('stroke', conf.stroke).attr('x', 0).attr('y', 0).attr('width', entityWidth).attr('height', entityHeight);\n var rectBBox = rectNode.node().getBBox(); // Add the entity to the graph\n\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\n\nvar adjustEntities = function adjustEntities(svgNode, graph) {\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode.select('#' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y - graph.node(v).height / 2) + ' )');\n }\n });\n return;\n};\n\nvar getEdgeName = function getEdgeName(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\n\n\nvar addRelationships = function addRelationships(relationships, g) {\n relationships.forEach(function (r) {\n g.setEdge(r.entityA, r.entityB, {\n relationship: r\n }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\n\nvar relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\n\nvar drawRelationshipFromLayout = function drawRelationshipFromLayout(svg, rel, g, insert) {\n relCnt++; // Find the edge relating to this relationship\n\n var edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel)); // Get a function that will generate the line path\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Insert the line at the right place\n\n var svgPath = svg.insert('path', '#' + insert).attr('class', 'er relationshipLine').attr('d', lineFunction(edge.points)).attr('stroke', conf.stroke).attr('fill', 'none'); // ...and with dashes if necessary\n\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n } // TODO: Understand this better\n\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n } // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n\n\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n } // Now label the relationship\n // Find the half-way point\n\n\n var len = svgPath.node().getTotalLength();\n var labelPoint = svgPath.node().getPointAtLength(len * 0.5); // Append a text node containing the label\n\n var labelId = 'rel' + relCnt;\n var labelNode = svg.append('text').attr('class', 'er relationshipLabel').attr('id', labelId).attr('x', labelPoint.x).attr('y', labelPoint.y).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(rel.roleA); // Figure out how big the opaque 'container' rectangle needs to be\n\n var labelBBox = labelNode.node().getBBox(); // Insert the opaque rectangle before the text label\n\n svg.insert('rect', '#' + labelId).attr('class', 'er relationshipLabelBox').attr('x', labelPoint.x - labelBBox.width / 2).attr('y', labelPoint.y - labelBBox.height / 2).attr('width', labelBBox.width).attr('height', labelBBox.height).attr('fill', 'white').attr('fill-opacity', '85%');\n return;\n};\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n var parser = erParser.parser;\n parser.yy = erDb; // Parse the text to populate erDb\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Get a reference to the svg node that contains the text\n\n\n var svg = select(\"[id='\".concat(id, \"']\")); // Add cardinality marker definitions to the svg\n\n erMarkers.insertMarkers(svg, conf); // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n // Create the graph\n\n var g; // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n }).setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n }).setDefaultEdgeLabel(function () {\n return {};\n }); // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n\n var firstEntity = drawEntities(svg, erDb.getEntities(), g); // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n // Add all the relationships to the graph\n\n var relationships = addRelationships(erDb.getRelationships(), g);\n dagre.layout(g); // Node and edge positions will be updated\n // Adjust the positions of the entities so that they adhere to the layout\n\n adjustEntities(svg, g); // Draw the relationships\n\n relationships.forEach(function (rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height));\n}; // draw\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyDb.js", - "name": "./src/diagrams/user-journey/journeyDb.js", - "index": 570, - "index2": 568, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./journeyDb", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./journeyDb", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "52:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "138:25-34" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "addTaskOrg", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar title = '';\nvar currentSection = '';\nvar sections = [];\nvar tasks = [];\nvar rawTasks = [];\nexport var clear = function clear() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsProcessed = compileTasks();\n var maxDepth = 100;\n var iterationCount = 0;\n\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push.apply(tasks, rawTasks);\n return tasks;\n};\n\nvar updateActors = function updateActors() {\n var tempActors = [];\n tasks.forEach(function (task) {\n if (task.people) {\n tempActors.push.apply(tempActors, _toConsumableArray(task.people));\n }\n });\n var unique = new Set(tempActors);\n return _toConsumableArray(unique).sort();\n};\n\nexport var addTask = function addTask(descr, taskData) {\n var pieces = taskData.substr(1).split(':');\n var score = 0;\n var peeps = [];\n\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n\n var peopleList = peeps.map(function (s) {\n return s.trim();\n });\n var rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score: score\n };\n rawTasks.push(rawTask);\n};\nexport var addTaskOrg = function addTaskOrg(descr) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n\nvar getActors = function getActors() {\n return updateActors();\n};\n\nexport default {\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n addTaskOrg: addTaskOrg,\n getActors: getActors\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "index": 922, - "index2": 921, - "size": 7798, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - } - ], - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "53:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "380:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "381:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "538:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "bounds", - "drawTasks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\nparser.yy = journeyDb;\nvar conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n // width of activation box\n activationWidth: 10,\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n var yPos = 60;\n Object.keys(actors).forEach(function (person) {\n var colour = actors[person];\n var circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n var labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person\n };\n svgDraw.drawText(diagram, labelData);\n yPos += 20;\n });\n}\n\nvar LEFT_MARGIN = conf.leftMargin;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n bounds.init();\n var diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDraw.initGraphics(diagram);\n var tasks = parser.yy.getTasks();\n var title = parser.yy.getTitle();\n var actorNames = parser.yy.getActors();\n\n for (var member in actors) {\n delete actors[member];\n }\n\n var actorPos = 0;\n actorNames.forEach(function (actorName) {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n drawTasks(diagram, tasks, 0);\n var box = bounds.getBounds();\n\n if (title) {\n diagram.append('text').text(title).attr('x', LEFT_MARGIN).attr('font-size', '4ex').attr('font-weight', 'bold').attr('y', 25);\n }\n\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n var width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Draw activity line\n\n\n diagram.append('line').attr('x1', LEFT_MARGIN).attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4).attr('stroke-width', 4).attr('stroke', 'black').attr('marker-end', 'url(#arrowhead)');\n var extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', \"\".concat(box.startx, \" -25 \").concat(width, \" \").concat(height + extraVertForTitle));\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n init: function init() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return this.data;\n }\n};\nvar fills = conf.sectionFills;\nvar textColours = conf.sectionColours;\nexport var drawTasks = function drawTasks(diagram, tasks, verticalPos) {\n var lastSection = '';\n var sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n var taskPos = verticalPos + sectionVHeight;\n var sectionNumber = 0;\n var fill = '#CCC';\n var colour = 'black'; // Draw the tasks\n\n for (var i = 0; i < tasks.length; i++) {\n var task = tasks[i];\n\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n colour = textColours[sectionNumber % textColours.length];\n var section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill: fill,\n colour: colour\n };\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n } // Collect the actors involved in the task\n\n\n var taskActors = task.people.reduce(function (acc, actorName) {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {}); // Add some rendering data to the object\n\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.actors = taskActors; // Draw the box with the attached line\n\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowChartShapes.js", - "name": "./src/diagrams/flowchart/flowChartShapes.js", - "index": 889, - "index2": 886, - "size": 7760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2701, - "building": 33, - "dependencies": 622 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowChartShapes", - "loc": "11:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowChartShapes", - "loc": "352:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addToRender", - "addToRenderV2", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var s = (w + h) * 0.9;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n var shapeSvg = insertPolygonShape(parent, s, s, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n var f = 4;\n var h = bbox.height;\n var m = h / f;\n var w = bbox.width + 2 * m;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n var h = bbox.height;\n var w = bbox.width + h / 4;\n var shapeSvg = parent.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n\n node.intersect = function (point) {\n return dagreD3.intersect.rect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n var w = bbox.width;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var shapeSvg = parent.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function (point) {\n var pos = dagreD3.intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_right = lean_right; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_left = lean_left; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().trapezoid = trapezoid; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().inv_trapezoid = inv_trapezoid; // Add custom shape for box with inverted arrow on right side\n\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\nexport function addToRenderV2(addShape) {\n addShape({\n question: question\n });\n addShape({\n hexagon: hexagon\n });\n addShape({\n stadium: stadium\n });\n addShape({\n subroutine: subroutine\n });\n addShape({\n cylinder: cylinder\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n rect_left_inv_arrow: rect_left_inv_arrow\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_right: lean_right\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_left: lean_left\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n trapezoid: trapezoid\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n inv_trapezoid: inv_trapezoid\n }); // Add custom shape for box with inverted arrow on right side\n\n addShape({\n rect_right_inv_arrow: rect_right_inv_arrow\n });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender: addToRender,\n addToRenderV2: addToRenderV2\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "index": 892, - "index2": 904, - "size": 5901, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "257:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "380:2-8" - } - ], - "usedExports": [ - "render" - ], - "providedExports": [ - "render" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport { clear as clearGraphlib, clusterDb, adjustClustersAndEdges, findNonClusterChild } from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nvar recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n var dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n\n\n if (!graph.nodes()) {\n log.trace('No nodes found for', graph);\n } else {\n log.trace('Recursive render', graph.nodes());\n }\n\n if (graph.edges().length > 0) {\n log.trace('Recursive edges', graph.edge(graph.edges()[0]));\n }\n\n var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n\n var edgePaths = elem.insert('g').attr('class', 'edgePaths');\n var edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n\n if (typeof parentCluster !== 'undefined') {\n var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true;\n\n log.trace('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n\n log.trace('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.trace('Cluster identified', v, node, graph.node(v));\n var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.trace('Cluster - the non recursive path', v, node.id, node, graph);\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = {\n id: findNonClusterChild(node.id, graph),\n node: node\n }; // insertCluster(clusters, graph.node(v));\n } else {\n log.trace('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n }); // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e.v, e.w, e.name);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n graph.edges().forEach(function (e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.trace('Graph after layout:', graphlib.json.write(graph)); // Move the nodes to the correct place\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n log.trace('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height);\n\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n }); // Move the edge labels to the correct place after layout\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n var updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n return elem;\n};\n\nexport var render = function render(elem, graph, markers, diagramtype, id) {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n}; // const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "name": "./src/diagrams/sequence/svgDraw.js", - "index": 909, - "index2": 906, - "size": 15081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/sequence/sequenceRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1467, - "building": 447, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "152:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "228:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "234:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "235:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "284:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "299:2-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "385:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "474:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "475:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "476:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "486:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "517:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "530:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "543:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "562:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "581:8-15" - } - ], - "usedExports": [ - "default", - "drawText" - ], - "providedExports": [ - "drawRect", - "drawText", - "drawLabel", - "drawActor", - "anchorElement", - "drawActivation", - "drawLoop", - "drawBackgroundRect", - "insertArrowHead", - "insertSequenceNumber", - "insertArrowCrossHead", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import common from '../common/common';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawText = function drawText(elem, textData) {\n var prevTextHeight = 0,\n textHeight = 0;\n var lines = textData.wrap ? textData.text.split(common.lineBreakRegex) : [textData.text.replace(common.lineBreakRegex, ' ')];\n var textElems = [];\n var dy = 0;\n\n var yfunc = function yfunc() {\n return textData.y;\n };\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = function yfunc() {\n return Math.round(textData.y + textData.textMargin);\n };\n\n break;\n\n case 'middle':\n case 'center':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n };\n\n break;\n\n case 'bottom':\n case 'end':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin);\n };\n\n break;\n }\n }\n\n if (typeof textData.anchor !== 'undefined' && typeof textData.textMargin !== 'undefined' && typeof textData.width !== 'undefined') {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n\n if (typeof textData.textMargin !== 'undefined' && textData.textMargin === 0 && typeof textData.fontSize !== 'undefined') {\n dy = i * textData.fontSize;\n }\n\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n\n if (typeof textData.anchor !== 'undefined') {\n textElem.attr('text-anchor', textData.anchor).attr('dominant-baseline', textData.dominantBaseline).attr('alignment-baseline', textData.alignmentBaseline);\n }\n\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n var span = textElem.append('tspan');\n span.attr('x', textData.x);\n\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n\n span.text(line);\n } else {\n textElem.text(line);\n }\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.height / 2;\n drawText(elem, txtObject);\n return polygon;\n};\nvar actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\n\nexport var drawActor = function drawActor(elem, actor, conf) {\n var center = actor.x + actor.width / 2;\n var g = elem.append('g');\n\n if (actor.y === 0) {\n actorCnt++;\n g.append('line').attr('id', 'actor' + actorCnt).attr('x1', center).attr('y1', 5).attr('x2', center).attr('y2', 2000).attr('class', 'actor-line').attr('stroke-width', '0.5px').attr('stroke', '#999');\n }\n\n var rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(actor.description, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'actor'\n }, conf);\n};\nexport var anchorElement = function anchorElement(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\n\nexport var drawActivation = function drawActivation(elem, bounds, verticalPos, conf, actorActivations) {\n var rect = getNoteRect();\n var g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2\n\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\n\nexport var drawLoop = function drawLoop(elem, loopModel, labelText, conf) {\n var boxMargin = conf.boxMargin,\n boxTextMargin = conf.boxTextMargin,\n labelBoxHeight = conf.labelBoxHeight,\n labelBoxWidth = conf.labelBoxWidth,\n fontFamily = conf.messageFontFamily,\n fontSize = conf.messageFontSize,\n fontWeight = conf.messageFontWeight;\n var g = elem.append('g');\n\n var drawLoopLine = function drawLoopLine(startx, starty, stopx, stopy) {\n return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');\n };\n\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function (item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style('stroke-dasharray', '3, 3');\n });\n }\n\n var txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n var textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function (item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n var sectionHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowHead = function insertArrowHead(elem) {\n elem.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\n\nexport var insertSequenceNumber = function insertSequenceNumber(elem) {\n elem.append('defs').append('marker').attr('id', 'sequencenumber').attr('refX', 15).attr('refY', 15).attr('markerWidth', 60).attr('markerHeight', 40).attr('orient', 'auto').append('circle').attr('cx', 15).attr('cy', 15).attr('r', 6); // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowCrossHead = function insertArrowCrossHead(elem) {\n var defs = elem.append('defs');\n var marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow\n\n marker.append('path').attr('fill', 'black').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 9,2 V 6 L16,4 Z'); // The cross\n\n marker.append('path').attr('fill', 'none').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); // this is actual shape for arrowhead\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n var actorFontSize = conf.actorFontSize,\n actorFontFamily = conf.actorFontFamily,\n actorFontWeight = conf.actorFontWeight;\n var lines = content.split(common.lineBreakRegex);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-weight', actorFontWeight).style('font-family', actorFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n var s = g.append('switch');\n var f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) {\n // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nexport default {\n drawRect: drawRect,\n drawText: drawText,\n drawLabel: drawLabel,\n drawActor: drawActor,\n anchorElement: anchorElement,\n drawActivation: drawActivation,\n drawLoop: drawLoop,\n drawBackgroundRect: drawBackgroundRect,\n insertArrowHead: insertArrowHead,\n insertSequenceNumber: insertSequenceNumber,\n insertArrowCrossHead: insertArrowCrossHead,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "name": "./src/diagrams/class/svgDraw.js", - "index": 912, - "index2": 909, - "size": 11509, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1912, - "building": 395, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "7:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "82:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "108:6-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawEdge", - "drawClass", - "parseMember", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation, conf) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n\n case relationType.EXTENSION:\n return 'extension';\n\n case relationType.COMPOSITION:\n return 'composition';\n\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n\n if (relation.relation.type1 !== 'none') {\n svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');\n }\n\n if (relation.relation.type2 !== 'none') {\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');\n }\n\n var x, y;\n var l = path.points.length; // Calculate Label position\n\n var labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n var p1_card_x, p1_card_y;\n var p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n var cardinality_1_point = utils.calcCardinalityPosition(relation.relation.type1 !== 'none', path.points, path.points[0]);\n var cardinality_2_point = utils.calcCardinalityPosition(relation.relation.type2 !== 'none', path.points, path.points[l - 1]);\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n var g = elem.append('g').attr('class', 'classLabel');\n var label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);\n window.label = label;\n var bounds = label.node().getBBox();\n g.insert('rect', ':first-child').attr('class', 'box').attr('x', bounds.x - conf.padding / 2).attr('y', bounds.y - conf.padding / 2).attr('width', bounds.width + conf.padding).attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n var _g = elem.append('g').attr('class', 'cardinality');\n\n _g.append('text').attr('class', 'type1').attr('x', p1_card_x).attr('y', p1_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle1);\n }\n\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n var _g2 = elem.append('g').attr('class', 'cardinality');\n\n _g2.append('text').attr('class', 'type2').attr('x', p2_card_x).attr('y', p2_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\nexport var drawClass = function drawClass(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n var cssClassStr = 'classGroup ';\n\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n var id = classDef.id;\n var classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n }; // add class group\n\n var g = elem.append('g').attr('id', lookUpDomId(id)).attr('class', cssClassStr); // add title\n\n var title;\n\n if (classDef.link) {\n title = g.append('svg:a').attr('xlink:href', classDef.link).attr('target', '_blank').append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } else {\n title = g.append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } // add annotations\n\n\n var isFirst = true;\n classDef.annotations.forEach(function (member) {\n var titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n var classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n var classTitle = title.append('tspan').text(classTitleString).attr('class', 'title'); // If class has annotations the title needs to have an offset of the text height\n\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n var titleHeight = title.node().getBBox().height;\n var membersLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n var members = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.members.forEach(function (member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n var membersBox = members.node().getBBox();\n var methodsLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n var methods = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.methods.forEach(function (method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n var classBox = g.node().getBBox();\n var rect = g.insert('rect', ':first-child').attr('x', 0).attr('y', 0).attr('width', classBox.width + 2 * conf.padding).attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n var rectWidth = rect.node().getBBox().width; // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n\n title.node().childNodes.forEach(function (x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n return classInfo;\n};\nexport var parseMember = function parseMember(text) {\n var fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n var methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n var fieldMatch = text.match(fieldRegEx);\n var methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nvar buildFieldDisplay = function buildFieldDisplay(parsedText) {\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var fieldType = parsedText[2] ? parsedText[2].trim() : '';\n var genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var fieldName = parsedText[4] ? parsedText[4].trim() : '';\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nvar buildMethodDisplay = function buildMethodDisplay(parsedText) {\n var cssStyle = '';\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var methodName = parsedText[2] ? parsedText[2].trim() : '';\n var parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var classifier = parsedText[4] ? parsedText[4].trim() : '';\n var returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar buildLegacyDisplay = function buildLegacyDisplay(text) {\n // if for some reason we dont have any match, use old format to parse text\n var displayText = '';\n var cssStyle = '';\n var memberText = '';\n var returnType = '';\n var methodStart = text.indexOf('(');\n var methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n var visibility = '';\n var methodName = '';\n var firstChar = text.substring(0, 1);\n\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n var parameters = text.substring(methodStart + 1, methodEnd);\n var classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar addTspan = function addTspan(textEl, txt, isFirst, conf) {\n var member = parseMember(txt);\n var tSpan = textEl.append('tspan').attr('x', conf.padding).text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nvar parseGenericTypes = function parseGenericTypes(text) {\n var cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nvar parseClassifier = function parseClassifier(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n\n case '$':\n return 'text-decoration:underline;';\n\n default:\n return '';\n }\n};\n\nexport default {\n drawClass: drawClass,\n drawEdge: drawEdge,\n parseMember: parseMember\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "index": 914, - "index2": 912, - "size": 15372, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/stateRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1874, - "building": 443, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes", - "loc": "9:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "142:14-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "157:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "168:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "235:6-14" - } - ], - "usedExports": [ - "addTitleAndBox", - "drawState", - "drawEdge" - ], - "providedExports": [ - "drawStartState", - "drawDivider", - "drawSimpleState", - "drawDescrState", - "addTitleAndBox", - "drawText", - "drawNote", - "drawState", - "drawEdge" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger'; // let conf;\n\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawStartState = function drawStartState(g) {\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n};\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawDivider = function drawDivider(g) {\n return g.append('line').style('stroke', 'grey').style('stroke-dasharray', '3').attr('x1', getConfig().state.textHeight).attr('class', 'divider').attr('x2', getConfig().state.textHeight * 2).attr('y1', 0).attr('y2', 0);\n};\n/**\n * Draws a an end state as a black circle\n */\n\nexport var drawSimpleState = function drawSimpleState(g, stateDef) {\n var state = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var classBox = state.node().getBBox();\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', classBox.width + 2 * getConfig().state.padding).attr('height', classBox.height + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return state;\n};\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\n\nexport var drawDescrState = function drawDescrState(g, stateDef) {\n var addTspan = function addTspan(textEl, txt, isFirst) {\n var tSpan = textEl.append('tspan').attr('x', 2 * getConfig().state.padding).text(txt);\n\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n\n var title = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.descriptions[0]);\n var titleBox = title.node().getBBox();\n var titleHeight = titleBox.height;\n var description = g.append('text') // text label for the x axis\n .attr('x', getConfig().state.padding).attr('y', titleHeight + getConfig().state.padding * 0.4 + getConfig().state.dividerMargin + getConfig().state.textHeight).attr('class', 'state-description');\n var isFirst = true;\n var isSecond = true;\n stateDef.descriptions.forEach(function (descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n\n isFirst = false;\n });\n var descrLine = g.append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding).attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('class', 'descr-divider');\n var descrBox = description.node().getBBox();\n var width = Math.max(descrBox.width, titleBox.width);\n descrLine.attr('x2', width + 3 * getConfig().state.padding); // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', width + 2 * getConfig().state.padding).attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return g;\n};\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\n\nexport var addTitleAndBox = function addTitleAndBox(g, stateDef, altBkg) {\n var pad = getConfig().state.padding;\n var dblPad = 2 * getConfig().state.padding;\n var orgBox = g.node().getBBox();\n var orgWidth = orgBox.width;\n var orgX = orgBox.x;\n var title = g.append('text').attr('x', 0).attr('y', getConfig().state.titleShift).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var titleBox = title.node().getBBox();\n var titleWidth = titleBox.width + dblPad;\n var width = Math.max(titleWidth, orgWidth); // + dblPad;\n\n if (width === orgWidth) {\n width = width + dblPad;\n }\n\n var startX; // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n var graphBox = g.node().getBBox(); // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {// cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n var lineY = 1 - getConfig().state.textHeight; // White color\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', lineY).attr('class', altBkg ? 'alt-composit' : 'composit').attr('width', width).attr('height', graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1).attr('rx', '0');\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad); // Title background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width) // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3).attr('rx', getConfig().state.radius); // Full background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width).attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight).attr('rx', getConfig().state.radius);\n return g;\n};\n\nvar drawEndState = function drawEndState(g) {\n g.append('circle').style('stroke', 'black').style('fill', 'white').attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding);\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\n\nvar drawForkJoinState = function drawForkJoinState(g, stateDef) {\n var width = getConfig().state.forkWidth;\n var height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n var tmp = width;\n width = height;\n height = tmp;\n }\n\n return g.append('rect').style('stroke', 'black').style('fill', 'black').attr('width', width).attr('height', height).attr('x', getConfig().state.padding).attr('y', getConfig().state.padding);\n};\n\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\n\nvar _drawLongText = function _drawLongText(_text, x, y, g) {\n var textHeight = 0;\n var textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n var text = _text.replace(/\\r\\n/g, '
');\n\n text = text.replace(/\\n/g, '
');\n var lines = text.split(common.lineBreakRegex);\n var tHeight = 1.25 * getConfig().state.noteMargin;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _line = _step.value;\n\n var txt = _line.trim();\n\n if (txt.length > 0) {\n var span = textElem.append('tspan');\n span.text(txt);\n\n if (tHeight === 0) {\n var textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n } // console.warn('textBounds', textBounds);\n\n\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return {\n textWidth: textElem.node().getBBox().width,\n textHeight: textHeight\n };\n};\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\n\nexport var drawNote = function drawNote(text, g) {\n g.attr('class', 'state-note');\n var note = g.append('rect').attr('x', 0).attr('y', getConfig().state.padding);\n var rectElem = g.append('g');\n\n var _drawLongText2 = _drawLongText(text, 0, 0, rectElem),\n textWidth = _drawLongText2.textWidth,\n textHeight = _drawLongText2.textHeight;\n\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n return note;\n};\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport var drawState = function drawState(elem, stateDef) {\n var id = stateDef.id;\n var stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n var g = elem.append('g').attr('id', id).attr('class', 'stateGroup');\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0) drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n var stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n idCache.set(id, stateInfo); // stateCnt++;\n\n return stateInfo;\n};\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n\n case stateDb.relationType.EXTENSION:\n return 'extension';\n\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'transition');\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')');\n\n if (typeof relation.title !== 'undefined') {\n var label = elem.append('g').attr('class', 'stateLabel');\n\n var _utils$calcLabelPosit = utils.calcLabelPosition(path.points),\n x = _utils$calcLabelPosit.x,\n y = _utils$calcLabelPosit.y;\n\n var rows = common.getRows(relation.title); // console.warn(rows);\n\n var titleHeight = 0;\n var titleRows = [];\n var maxWidth = 0;\n var minX = 0;\n\n for (var i = 0; i <= rows.length; i++) {\n var title = label.append('text').attr('text-anchor', 'middle').text(rows[i]).attr('x', x).attr('y', y + titleHeight);\n var boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n var titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n\n titleRows.push(title);\n }\n\n var boxHeight = titleHeight * rows.length;\n\n if (rows.length > 1) {\n var heightAdj = (rows.length - 1) * titleHeight * 0.5;\n titleRows.forEach(function (title, i) {\n return title.attr('y', y + i * titleHeight - heightAdj);\n });\n boxHeight = titleHeight * rows.length;\n }\n\n var bounds = label.node().getBBox();\n label.insert('rect', ':first-child').attr('class', 'box').attr('x', x - maxWidth / 2 - getConfig().state.padding / 2).attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5).attr('width', maxWidth + getConfig().state.padding).attr('height', boxHeight + getConfig().state.padding);\n logger.info(bounds); //label.attr('transform', '0 -' + (bounds.y / 2));\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erMarkers.js", - "name": "./src/diagrams/er/erMarkers.js", - "index": 921, - "index2": 918, - "size": 3422, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/er/erRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1660, - "building": 393 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erMarkers", - "loc": "8:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "133:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "137:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "141:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "145:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "151:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "155:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "159:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "163:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "202:2-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "var ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\n\nvar insertMarkers = function insertMarkers(elem, conf) {\n var marker;\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18 M15,0 L15,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_END).attr('refX', 18).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,0 L3,18 M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 21).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_END).attr('refX', 30).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,0 L21,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_END).attr('refX', 27).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 48).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_END).attr('refX', 39).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n return;\n};\n\nexport default {\n ERMarkers: ERMarkers,\n insertMarkers: insertMarkers\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/svgDraw.js", - "name": "./src/diagrams/user-journey/svgDraw.js", - "index": 923, - "index2": 920, - "size": 9389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/user-journey/journeyRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - } - ], - "profile": { - "factory": 1120, - "building": 474, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "57:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "76:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "227:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawRect", - "drawFace", - "drawCircle", - "drawText", - "drawLabel", - "drawSection", - "drawTask", - "drawBackgroundRect", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { arc as d3arc } from 'd3';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawFace = function drawFace(element, faceData) {\n var radius = 15;\n var circleElement = element.append('circle').attr('cx', faceData.cx).attr('cy', faceData.cy).attr('fill', '#FFF8DC').attr('stroke', '#999').attr('r', radius).attr('stroke-width', 2).attr('overflow', 'visible');\n var face = element.append('g'); //left eye\n\n face.append('circle').attr('cx', faceData.cx - radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666'); //right eye\n\n face.append('circle').attr('cx', faceData.cx + radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666');\n\n function smile(face) {\n var arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n var arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face.append('line').attr('stroke', 2).attr('x1', faceData.cx - 5).attr('y1', faceData.cy + 7).attr('x2', faceData.cx + 5).attr('y2', faceData.cy + 7).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\nexport var drawCircle = function drawCircle(element, circleData) {\n var circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(//gi, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('fill', textData.fill);\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n return textElem;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\nexport var drawSection = function drawSection(elem, section, conf) {\n var g = elem.append('g');\n var rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(section.text, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'journey-section'\n }, conf, section.colour);\n};\nvar taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\n\nexport var drawTask = function drawTask(elem, task, conf) {\n var center = task.x + conf.width / 2;\n var g = elem.append('g');\n taskCount++;\n var maxHeight = 300 + 5 * 30;\n g.append('line').attr('id', 'task' + taskCount).attr('x1', center).attr('y1', task.y).attr('x2', center).attr('y2', maxHeight).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke-dasharray', '4 2').attr('stroke', '#666');\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n var rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n var xPos = task.x + 14;\n task.people.forEach(function (person) {\n var colour = task.actors[person];\n var circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(task.task, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'task'\n }, conf, task.colour);\n};\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('font-color', colour).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n var taskFontSize = conf.taskFontSize,\n taskFontFamily = conf.taskFontFamily;\n var lines = content.split(//gi);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).attr('fill', colour).style('text-anchor', 'middle').style('font-size', taskFontSize).style('font-family', taskFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf, colour) {\n var body = g.append('switch');\n var f = body.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('position', 'fixed');\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').style('color', colour).text(content);\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nvar initGraphics = function initGraphics(graphics) {\n graphics.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect: drawRect,\n drawCircle: drawCircle,\n drawSection: drawSection,\n drawText: drawText,\n drawLabel: drawLabel,\n drawTask: drawTask,\n drawBackgroundRect: drawBackgroundRect,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect,\n initGraphics: initGraphics\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "name": "./src/dagre-wrapper/markers.js", - "index": 907, - "index2": 903, - "size": 6123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./markers", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./markers", - "loc": "125:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nimport { logger } from '../logger'; // Only add the number of markers that the diagram needs\n\nvar insertMarkers = function insertMarkers(elem, markerArray, type, id) {\n markerArray.forEach(function (markerName) {\n markers[markerName](elem, type, id);\n });\n};\n\nvar extension = function extension(elem, type, id) {\n logger.trace('Making markers for ', id);\n elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', type + '-extensionEnd ' + type).attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nvar composition = function composition(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar aggregation = function aggregation(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar dependency = function dependency(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nvar point = function point(elem, type) {\n elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar circle = function circle(elem, type) {\n elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar cross = function cross(elem, type) {\n elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n};\n\nvar barb = function barb(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n}; // TODO rename the class diagram markers to something shape descriptive and semanitc free\n\n\nvar markers = {\n extension: extension,\n composition: composition,\n aggregation: aggregation,\n dependency: dependency,\n point: point,\n circle: circle,\n cross: cross,\n barb: barb\n};\nexport default insertMarkers;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "name": "./src/dagre-wrapper/shapes/util.js", - "index": 893, - "index2": 890, - "size": 1604, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "./util", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "5:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "7:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "11:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "16:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "32:21-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "33:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "44:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "53:6-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "71:12-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "72:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "82:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "104:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "105:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "115:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "134:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "135:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "145:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "164:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "165:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "175:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "194:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "195:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "205:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "224:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "225:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "235:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "257:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "258:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "268:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "278:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "301:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "310:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "380:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "390:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "398:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "408:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "417:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "428:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "465:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "466:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "480:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "500:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "517:2-18" - } - ], - "usedExports": [ - "updateNodeBounds", - "labelHelper", - "insertPolygonShape" - ], - "providedExports": [ - "labelHelper", - "updateNodeBounds", - "insertPolygonShape" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport var labelHelper = function labelHelper(parent, node, _classes, isNode) {\n var classes;\n\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var halfPadding = node.padding / 2; // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n return {\n shapeSvg: shapeSvg,\n bbox: bbox,\n halfPadding: halfPadding,\n label: label\n };\n};\nexport var updateNodeBounds = function updateNodeBounds(node, element) {\n var bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\nexport function insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "name": "./src/dagre-wrapper/mermaid-graphlib.js", - "index": 904, - "index2": 900, - "size": 11877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaid-graphlib", - "loc": "5:0-116" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "61:18-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "62:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "63:14-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:84-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "108:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "118:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "129:2-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "131:2-24" - } - ], - "usedExports": [ - "findNonClusterChild", - "clusterDb", - "clear", - "adjustClustersAndEdges" - ], - "providedExports": [ - "clusterDb", - "clear", - "extractDecendants", - "validate", - "findNonClusterChild", - "adjustClustersAndEdges", - "extractor" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\nexport var clusterDb = {};\nvar decendants = {};\nvar parents = {};\nexport var clear = function clear() {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nvar isDecendant = function isDecendant(id, ancenstorId) {\n // if (id === ancenstorId) return true;\n log.debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0);\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n return false;\n};\n\nvar edgeInCluster = function edgeInCluster(edge, clusterId) {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent\n\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n\n log.info('Here ');\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n return false;\n};\n\nvar copy = function copy(clusterId, graph, newGraph, rootId) {\n log.info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root\n\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n nodes.forEach(function (node) {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n var data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId);\n }\n\n var edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(function (edge) {\n log.info('Edge', edge);\n var data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId);\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\n\nexport var extractDecendants = function extractDecendants(id, graph) {\n // log.debug('Extracting ', id);\n var children = graph.children(id);\n var res = [].concat(children);\n\n for (var i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\n\nexport var validate = function validate(graph) {\n var edges = graph.edges();\n log.trace('Edges: ', edges);\n\n for (var i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n\n return true;\n};\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\n\nexport var findNonClusterChild = function findNonClusterChild(id, graph) {\n // const node = graph.node(id);\n log.trace('Searching', id); // const children = graph.children(id).reverse();\n\n var children = graph.children(id); //.reverse();\n\n log.trace('Searching children of id ', id, children);\n\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n\n for (var i = 0; i < children.length; i++) {\n var _id = findNonClusterChild(children[i], graph);\n\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nvar getAnchorId = function getAnchorId(id) {\n if (!clusterDb[id]) {\n return id;\n } // If the cluster has no external connections\n\n\n if (!clusterDb[id].externalConnections) {\n return id;\n } // Return the replacement node\n\n\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n\n return id;\n};\n\nexport var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n } // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n\n if (children.length > 0) {\n log.warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph));\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = {\n id: findNonClusterChild(id, graph),\n clusterData: graph.node(id)\n };\n }\n }); // Check incoming and outgoing edges for each cluster\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n var edges = graph.edges();\n\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(function (edge) {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n var d1 = isDecendant(edge.v, id);\n var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n var v = e.v;\n var w = e.w; // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n log.trace(clusterDb); // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\nexport var extractor = function extractor(graph, depth) {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n\n if (depth > 10) {\n log.error('Bailing out');\n return;\n } // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n\n\n var nodes = graph.nodes();\n var hasChildren = false;\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n var children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n } // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n\n\n log.debug('Nodes = ', nodes, depth);\n\n for (var _i = 0; _i < nodes.length; _i++) {\n var _node = nodes[_i];\n log.debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n\n if (!clusterDb[_node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', _node, depth); // break;\n } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) {\n log.debug('Cluster without external connections, without a parent and with children', _node, depth);\n var graphSettings = graph.graph();\n var clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(_node, graph, clusterGraph, _node);\n graph.setNode(_node, {\n clusterNode: true,\n id: _node,\n clusterData: clusterDb[_node].clusterData,\n labelText: clusterDb[_node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth);\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n\n for (var _i2 = 0; _i2 < nodes.length; _i2++) {\n var _node2 = nodes[_i2];\n var data = graph.node(_node2);\n log.debug(' Now next leveö', _node2, data);\n\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "index": 895, - "index2": 899, - "size": 15504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "6:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "54:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "68:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "101:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "110:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "126:2-12" - } - ], - "usedExports": [ - "setNodeElem", - "insertNode", - "positionNode", - "clear" - ], - "providedExports": [ - "insertNode", - "setNodeElem", - "clear", - "positionNode" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersect from './intersect/index.js';\nimport { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nvar question = function question(parent, node) {\n var _labelHelper = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var s = w + h;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n logger.info('Question main (Circle)');\n var questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n\n node.intersect = function (point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nvar hexagon = function hexagon(parent, node) {\n var _labelHelper2 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper2.shapeSvg,\n bbox = _labelHelper2.bbox;\n\n var f = 4;\n var h = bbox.height + node.padding;\n var m = h / f;\n var w = bbox.width + 2 * m + node.padding;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) {\n var _labelHelper3 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper3.shapeSvg,\n bbox = _labelHelper3.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_right = function lean_right(parent, node) {\n var _labelHelper4 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper4.shapeSvg,\n bbox = _labelHelper4.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_left = function lean_left(parent, node) {\n var _labelHelper5 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper5.shapeSvg,\n bbox = _labelHelper5.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar trapezoid = function trapezoid(parent, node) {\n var _labelHelper6 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper6.shapeSvg,\n bbox = _labelHelper6.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar inv_trapezoid = function inv_trapezoid(parent, node) {\n var _labelHelper7 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper7.shapeSvg,\n bbox = _labelHelper7.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) {\n var _labelHelper8 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper8.shapeSvg,\n bbox = _labelHelper8.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar cylinder = function cylinder(parent, node) {\n var _labelHelper9 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper9.shapeSvg,\n bbox = _labelHelper9.bbox;\n\n var w = bbox.width + node.padding;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry + node.padding;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n var pos = intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nvar rect = function rect(parent, node) {\n var _labelHelper10 = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper10.shapeSvg,\n bbox = _labelHelper10.bbox,\n halfPadding = _labelHelper10.halfPadding;\n\n logger.trace('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rectWithTitle = function rectWithTitle(parent, node) {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n var classes;\n\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect');\n\n var innerLine = shapeSvg.insert('line');\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n var text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n var bbox;\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n logger.info('Text 2', text2);\n var textRows = text2.slice(1, text2.length);\n var titleBox = text.getBBox();\n var descr = label.node().appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n var _div = descr.children[0];\n\n var _dv = select(descr);\n\n bbox = _div.getBoundingClientRect();\n\n _dv.attr('width', bbox.width);\n\n _dv.attr('height', bbox.height);\n } // bbox = label.getBBox();\n // logger.info(descr);\n\n\n var halfPadding = node.padding / 2;\n select(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')');\n select(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label\n // Bounding box for title and text\n\n bbox = label.node().getBBox(); // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')');\n rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar stadium = function stadium(parent, node) {\n var _labelHelper11 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper11.shapeSvg,\n bbox = _labelHelper11.bbox;\n\n var h = bbox.height + node.padding;\n var w = bbox.width + h / 4 + node.padding; // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar circle = function circle(parent, node) {\n var _labelHelper12 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper12.shapeSvg,\n bbox = _labelHelper12.bbox,\n halfPadding = _labelHelper12.halfPadding;\n\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n logger.info('Circle main');\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nvar subroutine = function subroutine(parent, node) {\n var _labelHelper13 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper13.shapeSvg,\n bbox = _labelHelper13.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar start = function start(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar forkJoin = function forkJoin(parent, node, dir) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var width = 70;\n var height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join');\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar end = function end(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var innerCircle = shapeSvg.insert('circle', ':first-child');\n var circle = shapeSvg.insert('circle', ':first-child');\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n question: question,\n rect: rect,\n rectWithTitle: rectWithTitle,\n circle: circle,\n stadium: stadium,\n hexagon: hexagon,\n rect_left_inv_arrow: rect_left_inv_arrow,\n lean_right: lean_right,\n lean_left: lean_left,\n trapezoid: trapezoid,\n inv_trapezoid: inv_trapezoid,\n rect_right_inv_arrow: rect_right_inv_arrow,\n cylinder: cylinder,\n start: start,\n end: end,\n note: note,\n subroutine: subroutine,\n fork: forkJoin,\n join: forkJoin\n};\nvar nodeElems = {};\nexport var insertNode = function insertNode(elem, node, dir) {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport var setNodeElem = function setNodeElem(elem, node) {\n nodeElems[node.id] = elem;\n};\nexport var clear = function clear() {\n nodeElems = {};\n};\nexport var positionNode = function positionNode(node) {\n var el = nodeElems[node.id];\n logger.trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')');\n var padding = 8;\n\n if (node.clusterNode) {\n el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')');\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "index": 906, - "index2": 902, - "size": 5981, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clusters", - "loc": "7:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "107:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "128:2-15" - } - ], - "usedExports": [ - "insertCluster", - "clear" - ], - "providedExports": [ - "insertCluster", - "getClusterTitleWidth", - "clear", - "positionCluster" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nvar rect = function rect(parent, node) {\n log.trace('Creating subgraph rect for ', node.id, node); // Add outer g element\n\n var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var padding = 0 * node.padding;\n var halfPadding = padding / 2;\n log.trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n/**\n * Non visiable cluster where the note is group with its\n */\n\n\nvar noteGroup = function noteGroup(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar roundedWithTitle = function roundedWithTitle(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var innerRect = shapeSvg.append('rect');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n bbox = text.getBBox();\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding);\n innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar divider = function divider(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding);\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n rect: rect,\n roundedWithTitle: roundedWithTitle,\n noteGroup: noteGroup,\n divider: divider\n};\nvar clusterElems = {};\nexport var insertCluster = function insertCluster(elem, node) {\n log.trace('Inserting cluster');\n var shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport var getClusterTitleWidth = function getClusterTitleWidth(elem, node) {\n var label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n var width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\nexport var clear = function clear() {\n clusterElems = {};\n};\nexport var positionCluster = function positionCluster(node) {\n log.info('Position cluster');\n var el = clusterElems[node.id];\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "name": "./src/dagre-wrapper/edges.js", - "index": 905, - "index2": 901, - "size": 10214, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - } - ], - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./edges", - "loc": "8:0-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "82:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "118:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "119:4-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "127:2-12" - } - ], - "usedExports": [ - "insertEdgeLabel", - "insertEdge", - "positionEdgeLabel", - "clear" - ], - "providedExports": [ - "clear", - "insertEdgeLabel", - "positionEdgeLabel", - "intersection", - "insertEdge" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import { logger } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils'; // import { calcLabelPosition } from '../utils';\n\nvar edgeLabels = {};\nexport var clear = function clear() {\n edgeLabels = {};\n};\nexport var insertEdgeLabel = function insertEdgeLabel(elem, edge) {\n // Create the actual text element\n var labelElement = createLabel(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout\n\n var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text\n\n var label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement); // Center the label\n\n var bbox = labelElement.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = labelElement.children[0];\n var dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning\n\n edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height\n\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\nexport var positionEdgeLabel = function positionEdgeLabel(edge, points) {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n\n if (edge.label) {\n var el = edgeLabels[edge.id];\n var x = edge.x;\n var y = edge.y;\n\n if (points) {\n // debugger;\n var pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n}; // const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nvar outsideNode = function outsideNode(node, point) {\n // logger.warn('Checking bounds ', node, point);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(point.x - x);\n var dy = Math.abs(point.y - y);\n var w = node.width / 2;\n var h = node.height / 2;\n\n if (dx >= w || dy >= h) {\n return true;\n }\n\n return false;\n};\n\nexport var intersection = function intersection(node, outsidePoint, insidePoint) {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(x - insidePoint.x);\n var w = node.width / 2;\n var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n var h = node.height / 2;\n var edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) {\n // logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n var Q = Math.abs(outsidePoint.y - insidePoint.y);\n var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn();\n\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {\n // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = R * q / Q;\n var res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(\"topp/bott calc, Q \".concat(Q, \", q \").concat(q, \", R \").concat(R, \", r \").concat(r), res);\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n\n var _q = _q = Q * r / R;\n\n logger.warn(\"sides calc, Q \".concat(Q, \", q \").concat(_q, \", R \").concat(R, \", r \").concat(r), {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n });\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n };\n }\n}; //(edgePaths, e, edge, clusterDb, diagramtype, graph)\n\nexport var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) {\n var points = edge.points;\n var pointsHasChanged = false;\n var tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1]));\n points.push(head.intersect(points[points.length - 1]));\n }\n\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n var lastPointOutside;\n var isInside = false;\n edge.points.forEach(function (point) {\n var node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect\n\n var insterection = intersection(node, lastPointOutside, point);\n logger.trace('intersect', insterection);\n points.push(insterection);\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n var updatedPoints = [];\n\n var _lastPointOutside;\n\n var _isInside = false;\n\n for (var i = points.length - 1; i >= 0; i--) {\n var point = points[i];\n var node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !_isInside) {\n logger.warn('inside', edge.fromCluster, point, node); // First point inside the rect\n\n var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point));\n\n updatedPoints.unshift(insterection); // points.push(insterection);\n\n _isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!_isInside) updatedPoints.unshift(point);\n }\n\n _lastPointOutside = point;\n }\n\n points = updatedPoints;\n pointsHasChanged = true;\n } // The data for our line\n\n\n var lineData = points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Contruct stroke classes based on properties\n\n var strokeClasses;\n\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n\n default:\n strokeClasses = '';\n }\n\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n logger.info('arrowType', edge.arrowType);\n\n switch (edge.arrowType) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n\n case 'double_arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n\n case 'double_arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n\n case 'double_arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barnEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n\n case 'double_arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/id-cache.js", - "name": "./src/diagrams/state/id-cache.js", - "index": 915, - "index2": 911, - "size": 347, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "profile": { - "factory": 1874, - "building": 443, - "dependencies": 1 - } - } - ], - "profile": { - "factory": 58, - "building": 31 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./id-cache.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./id-cache.js", - "loc": "290:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "set", - "get", - "keys", - "size", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var idCache = {};\nexport var set = function set(key, val) {\n idCache[key] = val;\n};\nexport var get = function get(k) {\n return idCache[k];\n};\nexport var keys = function keys() {\n return Object.keys(idCache);\n};\nexport var size = function size() {\n return keys().length;\n};\nexport default {\n get: get,\n set: set,\n keys: keys,\n size: size\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "name": "./src/dagre-wrapper/createLabel.js", - "index": 894, - "index2": 889, - "size": 4142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../createLabel", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "7:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "14:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "16:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../createLabel", - "loc": "17:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "78:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "142:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "338:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "352:39-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n// const rows = vertexText.split(common.lineBreakRegex);\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\n\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n var fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n var div = fo.append('xhtml:div');\n var label = node.label;\n var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block'); // Fix for firefox\n\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nvar createLabel = function createLabel(_vertexText, style, isTitle, isNode) {\n var vertexText = _vertexText || '';\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n var node = {\n isNode: isNode,\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode);\n\n return vertexNode;\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n var rows = [];\n\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }\n};\n\nexport default createLabel;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-rect.js", - "name": "./src/dagre-wrapper/intersect/intersect-rect.js", - "index": 902, - "index2": 896, - "size": 740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/clusters.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 121, - "building": 86 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/intersect-rect", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-rect.js", - "loc": "8:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-rect.js", - "loc": "14:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "40:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "64:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "103:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "123:11-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var intersectRect = function intersectRect(node, point) {\n var x = node.x;\n var y = node.y; // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n var sx, sy;\n\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {\n x: x + sx,\n y: y + sy\n };\n};\n\nexport default intersectRect;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "index": 896, - "index2": 897, - "size": 395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../intersect/index.js", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../intersect/index.js", - "loc": "19:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "37:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "75:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "108:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "138:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "168:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "198:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "228:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "261:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "281:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "313:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "383:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "401:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "421:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "469:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "483:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "505:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "520:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\nexport default {\n node: node,\n circle: circle,\n ellipse: ellipse,\n polygon: polygon,\n rect: rect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "name": "./src/dagre-wrapper/shapes/note.js", - "index": 903, - "index2": 898, - "size": 894, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - } - ], - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/note", - "loc": "8:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/note", - "loc": "542:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport intersect from '../intersect/index.js';\n\nvar note = function note(parent, node) {\n var _labelHelper = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox,\n halfPadding = _labelHelper.halfPadding;\n\n logger.info('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-ellipse.js", - "name": "./src/dagre-wrapper/intersect/intersect-ellipse.js", - "index": 899, - "index2": 892, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse", - "loc": "4:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse.js", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse.js", - "loc": "12:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n var cx = node.x;\n var cy = node.y;\n var px = cx - point.x;\n var py = cy - point.y;\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n var dx = Math.abs(rx * ry * px / det);\n\n if (point.x < cx) {\n dx = -dx;\n }\n\n var dy = Math.abs(rx * ry * py / det);\n\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {\n x: cx + dx,\n y: cy + dy\n };\n}\n\nexport default intersectEllipse;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "name": "./src/dagre-wrapper/intersect/intersect-circle.js", - "index": 898, - "index2": 893, - "size": 179, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-circle.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-circle.js", - "loc": "11:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "index": 900, - "index2": 895, - "size": 1612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - } - ], - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-polygon.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-polygon.js", - "loc": "13:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "/* eslint \"no-console\": off */\nimport intersectLine from './intersect-line';\nexport default intersectPolygon;\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\n\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n var intersections = [];\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function (entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point, {\n x: left + p1.x,\n y: top + p1.y\n }, {\n x: left + p2.x,\n y: top + p2.y\n });\n\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function (p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n\n return intersections[0];\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-line.js", - "name": "./src/dagre-wrapper/intersect/intersect-line.js", - "index": 901, - "index2": 894, - "size": 1886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 54, - "building": 197 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 469, - "building": 134, - "dependencies": 1692 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2013, - "building": 1075, - "dependencies": 2194 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 2194, - "building": 106, - "dependencies": 1505 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1505, - "building": 390, - "dependencies": 120 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 142, - "building": 70, - "dependencies": 5 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "profile": { - "factory": 9, - "building": 116, - "dependencies": 98 - } - } - ], - "profile": { - "factory": 93, - "building": 82 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-line", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony import specifier", - "userRequest": "./intersect-line", - "loc": "25:20-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 7, - "source": "/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4.\n\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return;\n } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n\n\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2\n\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return;\n } // Line segments intersect: compute intersection point.\n\n\n denom = a1 * b2 - a2 * b1;\n\n if (denom === 0) {\n return;\n }\n\n offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n return {\n x: x,\n y: y\n };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;" - } - ], - "filteredModules": 0 - } - ], - "filteredModules": 0, - "logging": { - "webpack.buildChunkGraph.visitModules": { - "entries": [], - "filteredEntries": 2, - "debug": false - } - }, - "children": [] - }, - { - "errors": [], - "warnings": [ - "asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n mermaid.core.js (351 KiB)", - "entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n mermaid (351 KiB)\n mermaid.core.js\n", - "webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/" - ], - "hash": "e15ea5577431b72c683d", - "time": 10600, - "builtAt": 1594888055162, - "publicPath": "", - "outputPath": "/Users/knuts/source/priv/atlantica/mermaid/dist/", - "assetsByChunkName": { - "mermaid": [ - "mermaid.core.js", - "mermaid.core.js.map" - ] - }, - "assets": [ - { - "name": "mermaid.core.js", - "size": 359478, - "chunks": [ - 0 - ], - "chunkNames": [ - "mermaid" - ], - "info": {}, - "emitted": true, - "isOverSizeLimit": true - }, - { - "name": "mermaid.core.js.map", - "size": 1223449, - "chunks": [ - 0 - ], - "chunkNames": [ - "mermaid" - ], - "info": { - "development": true - }, - "emitted": true - } - ], - "filteredAssets": 0, - "entrypoints": { - "mermaid": { - "chunks": [ - 0 - ], - "assets": [ - "mermaid.core.js", - "mermaid.core.js.map" - ], - "children": {}, - "childAssets": {}, - "isOverSizeLimit": true - } - }, - "namedChunkGroups": { - "mermaid": { - "chunks": [ - 0 - ], - "assets": [ - "mermaid.core.js", - "mermaid.core.js.map" - ], - "children": {}, - "childAssets": {}, - "isOverSizeLimit": true - } - }, - "chunks": [ - { - "id": 0, - "rendered": true, - "initial": true, - "entry": true, - "size": 763498, - "names": [ - "mermaid" - ], - "files": [ - "mermaid.core.js", - "mermaid.core.js.map" - ], - "hash": "fa06675ac8b779c25dab", - "siblings": [], - "parents": [], - "children": [], - "childrenByOrder": {}, - "modules": [ - { - "id": 0, - "identifier": "external \"d3\"", - "name": "external \"d3\"", - "index": 3, - "index2": 1, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": [ - "arc", - "axisBottom", - "curveBasis", - "curveBasisClosed", - "curveBasisOpen", - "curveLinear", - "curveLinearClosed", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "entries", - "interpolateHcl", - "line", - "max", - "min", - "pie", - "scaleLinear", - "scaleOrdinal", - "scaleTime", - "schemeSet2", - "select", - "selectAll", - "timeFormat" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 1, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "name": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "index": 29, - "index2": 27, - "size": 32724, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/sequenceDiagram", - "loc": "4:0-50" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "26:0-72" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "84:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "93:15-29" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:53-59" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:97-103" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:52-58" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:58-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "458:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "459:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "460:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "465:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "466:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "467:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "468:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "496:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "501:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "505:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "509:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "515:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "522:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "528:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "535:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "541:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "548:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "554:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "560:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "567:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "573:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "579:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:9-15" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:40-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:72-78" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:98-104" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:125-131" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:157-163" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "661:28-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "666:28-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "700:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "702:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "704:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "781:24-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "784:31-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:7-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:38-44" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:70-76" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:96-102" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:123-129" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:155-161" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "852:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "853:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "854:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "855:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "865:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "866:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "876:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "877:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "878:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "879:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "884:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "899:11-17" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('OPEN_DIRECTIVE'); return 56; \nbreak;\ncase 1: this.begin('TYPE_DIRECTIVE'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('ARG_DIRECTIVE'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"ARG_DIRECTIVE\":{\"rules\":[3,4,8],\"inclusive\":false},\"TYPE_DIRECTIVE\":{\"rules\":[2,3,8],\"inclusive\":false},\"OPEN_DIRECTIVE\":{\"rules\":[1,8],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 2, - "identifier": "external \"graphlib\"", - "name": "external \"graphlib\"", - "index": 46, - "index2": 43, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "2:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "5:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "12:41-49" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "40:18-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "66:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "76:18-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "92:35-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "130:28-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "132:27-35" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "223:10-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "237:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "253:29-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "262:35-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "301:29-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "312:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "314:41-49" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "323:40-48" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "324:40-48" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "335:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 3, - "identifier": "external \"dagre-d3\"", - "name": "external \"dagre-d3\"", - "index": 47, - "index2": 44, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "1:0-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "6:0-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "23:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "56:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "84:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "109:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "134:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "159:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "184:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "212:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "224:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "267:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "282:14-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "349:15-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "357:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 4, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/process/browser.js", - "name": "./node_modules/process/browser.js", - "index": 21, - "index2": 18, - "size": 5418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "module": "./node_modules/path-browserify/index.js", - "moduleName": "./node_modules/path-browserify/index.js", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-34" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n" - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/module.js", - "name": "(webpack)/buildin/module.js", - "index": 22, - "index2": 19, - "size": 497, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n" - }, - { - "id": 6, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/node-libs-browser/mock/empty.js", - "name": "./node_modules/node-libs-browser/mock/empty.js", - "index": 23, - "index2": 20, - "size": 0, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "835:17-30" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "769:17-30" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "993:17-30" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "722:17-30" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "640:17-30" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "776:17-30" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "690:17-30" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "616:17-30" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "628:17-30" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "673:17-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "" - }, - { - "id": 7, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "name": "./node_modules/path-browserify/index.js", - "index": 24, - "index2": 21, - "size": 8742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "835:44-59" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "769:44-59" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "993:44-59" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "722:44-59" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "640:44-59" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "776:44-59" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "690:44-59" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "616:44-59" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "628:44-59" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "673:44-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n" - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "name": "./src/diagrams/state/parser/stateDiagram.jison", - "index": 35, - "index2": 33, - "size": 29755, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "7:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "11:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "25:15-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "33:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "34:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "36:0-63" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "108:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "113:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "217:15-20" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 9, - "identifier": "external \"moment-mini\"", - "name": "external \"moment-mini\"", - "index": 18, - "index2": 14, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "issuerId": null, - "issuerName": "./src/logger.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 0, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "1:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "9:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "63:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "115:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "117:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "177:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "223:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "233:62-68" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "301:25-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "451:38-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "index": 28, - "index2": 26, - "size": 57072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "23:0-58" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "82:15-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "88:15-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "275:17-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "293:15-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "295:15-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "316:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,3],$V2=[1,5],$V3=[1,8,9,10,11,26,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,22],$Va=[1,46],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,40],$Vh=[1,35],$Vi=[1,37],$Vj=[1,32],$Vk=[1,36],$Vl=[1,39],$Vm=[1,43],$Vn=[1,44],$Vo=[1,45],$Vp=[1,34],$Vq=[1,38],$Vr=[1,41],$Vs=[1,42],$Vt=[1,33],$Vu=[1,51],$Vv=[1,8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vw=[1,55],$Vx=[1,54],$Vy=[1,56],$Vz=[8,9,11,57,58],$VA=[8,9,10,11,57,58],$VB=[8,9,10,11,35,57,58],$VC=[8,9,10,11,28,34,35,37,39,41,43,45,47,49,50,52,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VD=[8,9,11,34,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VE=[34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VF=[1,101],$VG=[1,122],$VH=[1,123],$VI=[1,124],$VJ=[1,125],$VK=[1,105],$VL=[1,96],$VM=[1,97],$VN=[1,93],$VO=[1,117],$VP=[1,118],$VQ=[1,119],$VR=[1,120],$VS=[1,121],$VT=[1,126],$VU=[1,127],$VV=[1,99],$VW=[1,107],$VX=[1,110],$VY=[1,108],$VZ=[1,109],$V_=[1,102],$V$=[1,115],$V01=[1,114],$V11=[1,98],$V21=[1,95],$V31=[1,104],$V41=[1,106],$V51=[1,111],$V61=[1,112],$V71=[1,113],$V81=[1,116],$V91=[8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Va1=[1,130],$Vb1=[1,134],$Vc1=[1,136],$Vd1=[1,137],$Ve1=[8,9,10,11,12,13,26,28,29,30,34,38,40,42,44,46,48,49,51,53,57,58,59,63,64,65,66,67,68,69,72,78,79,82,83,84,86,87,88,89,93,94,95,96,97,98],$Vf1=[8,9,10,11,13,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vg1=[10,79],$Vh1=[1,204],$Vi1=[1,208],$Vj1=[1,205],$Vk1=[1,202],$Vl1=[1,199],$Vm1=[1,200],$Vn1=[1,201],$Vo1=[1,203],$Vp1=[1,206],$Vq1=[1,207],$Vr1=[1,209],$Vs1=[8,9,11],$Vt1=[1,225],$Vu1=[8,9,11,79],$Vv1=[8,9,10,11,63,75,78,79,82,83,84,85,86,87,88];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"line\":6,\"statement\":7,\"SEMI\":8,\"NEWLINE\":9,\"SPACE\":10,\"EOF\":11,\"GRAPH\":12,\"DIR\":13,\"FirstStmtSeperator\":14,\"ending\":15,\"endToken\":16,\"spaceList\":17,\"spaceListNewline\":18,\"verticeStatement\":19,\"separator\":20,\"styleStatement\":21,\"linkStyleStatement\":22,\"classDefStatement\":23,\"classStatement\":24,\"clickStatement\":25,\"subgraph\":26,\"text\":27,\"SQS\":28,\"SQE\":29,\"end\":30,\"link\":31,\"node\":32,\"vertex\":33,\"AMP\":34,\"STYLE_SEPARATOR\":35,\"idString\":36,\"PS\":37,\"PE\":38,\"(-\":39,\"-)\":40,\"STADIUMSTART\":41,\"STADIUMEND\":42,\"SUBROUTINESTART\":43,\"SUBROUTINEEND\":44,\"CYLINDERSTART\":45,\"CYLINDEREND\":46,\"DIAMOND_START\":47,\"DIAMOND_STOP\":48,\"TAGEND\":49,\"TRAPSTART\":50,\"TRAPEND\":51,\"INVTRAPSTART\":52,\"INVTRAPEND\":53,\"linkStatement\":54,\"arrowText\":55,\"TESTSTR\":56,\"START_LINK\":57,\"LINK\":58,\"PIPE\":59,\"textToken\":60,\"STR\":61,\"keywords\":62,\"STYLE\":63,\"LINKSTYLE\":64,\"CLASSDEF\":65,\"CLASS\":66,\"CLICK\":67,\"DOWN\":68,\"UP\":69,\"textNoTags\":70,\"textNoTagsToken\":71,\"DEFAULT\":72,\"stylesOpt\":73,\"alphaNum\":74,\"HEX\":75,\"numList\":76,\"INTERPOLATE\":77,\"NUM\":78,\"COMMA\":79,\"style\":80,\"styleComponent\":81,\"ALPHA\":82,\"COLON\":83,\"MINUS\":84,\"UNIT\":85,\"BRKT\":86,\"DOT\":87,\"PCT\":88,\"TAGSTART\":89,\"alphaNumToken\":90,\"idStringToken\":91,\"alphaNumStatement\":92,\"PUNCTUATION\":93,\"UNICODE_TEXT\":94,\"PLUS\":95,\"EQUALS\":96,\"MULT\":97,\"UNDERSCORE\":98,\"graphCodeTokens\":99,\"ARROW_CROSS\":100,\"ARROW_POINT\":101,\"ARROW_CIRCLE\":102,\"ARROW_OPEN\":103,\"QUOTE\":104,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",26:\"subgraph\",28:\"SQS\",29:\"SQE\",30:\"end\",34:\"AMP\",35:\"STYLE_SEPARATOR\",37:\"PS\",38:\"PE\",39:\"(-\",40:\"-)\",41:\"STADIUMSTART\",42:\"STADIUMEND\",43:\"SUBROUTINESTART\",44:\"SUBROUTINEEND\",45:\"CYLINDERSTART\",46:\"CYLINDEREND\",47:\"DIAMOND_START\",48:\"DIAMOND_STOP\",49:\"TAGEND\",50:\"TRAPSTART\",51:\"TRAPEND\",52:\"INVTRAPSTART\",53:\"INVTRAPEND\",56:\"TESTSTR\",57:\"START_LINK\",58:\"LINK\",59:\"PIPE\",61:\"STR\",63:\"STYLE\",64:\"LINKSTYLE\",65:\"CLASSDEF\",66:\"CLASS\",67:\"CLICK\",68:\"DOWN\",69:\"UP\",72:\"DEFAULT\",75:\"HEX\",77:\"INTERPOLATE\",78:\"NUM\",79:\"COMMA\",82:\"ALPHA\",83:\"COLON\",84:\"MINUS\",85:\"UNIT\",86:\"BRKT\",87:\"DOT\",88:\"PCT\",89:\"TAGSTART\",93:\"PUNCTUATION\",94:\"UNICODE_TEXT\",95:\"PLUS\",96:\"EQUALS\",97:\"MULT\",98:\"UNDERSCORE\",100:\"ARROW_CROSS\",101:\"ARROW_POINT\",102:\"ARROW_CIRCLE\",103:\"ARROW_OPEN\",104:\"QUOTE\"},\nproductions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,3],[15,2],[15,1],[16,1],[16,1],[16,1],[14,1],[14,1],[14,2],[18,2],[18,2],[18,1],[18,1],[17,2],[17,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[20,1],[20,1],[20,1],[19,3],[19,4],[19,2],[19,1],[32,1],[32,5],[32,3],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,1],[31,2],[31,3],[31,3],[31,1],[31,3],[54,1],[55,3],[27,1],[27,2],[27,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[70,1],[70,2],[23,5],[23,5],[24,5],[25,5],[25,7],[25,5],[25,7],[21,5],[21,5],[22,5],[22,5],[22,9],[22,9],[22,7],[22,7],[76,1],[76,3],[73,1],[73,3],[80,1],[80,2],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[60,1],[60,1],[60,1],[60,1],[60,1],[60,1],[71,1],[71,1],[71,1],[71,1],[36,1],[36,2],[74,1],[74,2],[92,1],[92,1],[92,1],[92,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n this.$ = [];\nbreak;\ncase 3:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 4: case 67: case 69: case 81: case 127: case 129: case 130:\nthis.$=$$[$0];\nbreak;\ncase 11:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 26:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 27: case 28: case 29: case 30: case 31:\nthis.$=[];\nbreak;\ncase 32:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 33:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 34:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 38:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 39:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 40:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 41:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 42:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 43:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 44:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 45:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 46:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 47:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 48:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 50:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 53:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 59:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 60:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 61: case 62:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 63:\nthis.$ = $$[$0];\nbreak;\ncase 64:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 65:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 66:\nthis.$ = $$[$0-1];\nbreak;\ncase 68: case 82: case 128:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 83: case 84:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 85:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 86:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 87:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 89:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 90:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 91: case 93:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 92:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 98: case 100:\nthis.$ = [$$[$0]]\nbreak;\ncase 99: case 101:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 103:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 125:\nthis.$=$$[$0]\nbreak;\ncase 126:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 131:\nthis.$='v';\nbreak;\ncase 132:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,9:$V0,10:$V1,12:$V2},{1:[3]},o($V3,$V4,{5:6}),{4:7,9:$V0,10:$V1,12:$V2},{4:8,9:$V0,10:$V1,12:$V2},{13:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($V3,[2,9]),o($V3,[2,10]),{8:[1,48],9:[1,49],10:$Vu,14:47,17:50},o($Vv,[2,3]),o($Vv,[2,4]),o($Vv,[2,5]),o($Vv,[2,6]),o($Vv,[2,7]),o($Vv,[2,8]),{8:$Vw,9:$Vx,11:$Vy,20:52,31:53,54:57,57:[1,58],58:[1,59]},{8:$Vw,9:$Vx,11:$Vy,20:60},{8:$Vw,9:$Vx,11:$Vy,20:61},{8:$Vw,9:$Vx,11:$Vy,20:62},{8:$Vw,9:$Vx,11:$Vy,20:63},{8:$Vw,9:$Vx,11:$Vy,20:64},{8:$Vw,9:$Vx,10:[1,65],11:$Vy,20:66},o($Vz,[2,41],{17:67,10:$Vu}),{10:[1,68]},{10:[1,69]},{10:[1,70]},{10:[1,71]},{10:[1,72]},o($VA,[2,42],{35:[1,73]}),o($VB,[2,59],{91:84,28:[1,74],34:$Va,37:[1,75],39:[1,76],41:[1,77],43:[1,78],45:[1,79],47:[1,80],49:[1,81],50:[1,82],52:[1,83],68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),o($VC,[2,125]),o($VC,[2,146]),o($VC,[2,147]),o($VC,[2,148]),o($VC,[2,149]),o($VC,[2,150]),o($VC,[2,151]),o($VC,[2,152]),o($VC,[2,153]),o($VC,[2,154]),o($VC,[2,155]),o($VC,[2,156]),o($VC,[2,157]),o($VC,[2,158]),o($VC,[2,159]),o($VC,[2,160]),o($V3,[2,11]),o($V3,[2,17]),o($V3,[2,18]),{9:[1,85]},o($VD,[2,25],{17:86,10:$Vu}),o($Vv,[2,26]),{32:87,33:29,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($Vv,[2,35]),o($Vv,[2,36]),o($Vv,[2,37]),o($VE,[2,63],{55:88,56:[1,89],59:[1,90]}),{10:$VF,12:$VG,13:$VH,26:$VI,27:91,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o([34,56,59,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,65]),o($Vv,[2,27]),o($Vv,[2,28]),o($Vv,[2,29]),o($Vv,[2,30]),o($Vv,[2,31]),{10:$VF,12:$VG,13:$VH,26:$VI,27:128,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:129}),o($Vz,[2,40],{34:$Va1}),{13:$Vb1,34:$VK,68:$Vc1,74:131,75:[1,132],78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{72:[1,138],76:139,78:[1,140]},{13:$Vb1,34:$VK,68:$Vc1,72:[1,141],74:142,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:143,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:144,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{34:$Va,36:145,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$VF,12:$VG,13:$VH,26:$VI,27:146,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:148,30:$VJ,34:$VK,37:[1,147],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:149,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:150,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:151,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:152,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:153,30:$VJ,34:$VK,47:[1,154],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:155,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:156,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:157,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VC,[2,126]),o($V3,[2,19]),o($VD,[2,24]),o($Vz,[2,38],{17:158,10:$Vu}),o($VE,[2,60],{10:[1,159]}),{10:[1,160]},{10:$VF,12:$VG,13:$VH,26:$VI,27:161,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,58:[1,162],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Ve1,[2,67]),o($Ve1,[2,69]),o($Ve1,[2,115]),o($Ve1,[2,116]),o($Ve1,[2,117]),o($Ve1,[2,118]),o($Ve1,[2,119]),o($Ve1,[2,120]),o($Ve1,[2,121]),o($Ve1,[2,122]),o($Ve1,[2,123]),o($Ve1,[2,124]),o($Ve1,[2,133]),o($Ve1,[2,134]),o($Ve1,[2,135]),o($Ve1,[2,136]),o($Ve1,[2,137]),o($Ve1,[2,138]),o($Ve1,[2,139]),o($Ve1,[2,140]),o($Ve1,[2,141]),o($Ve1,[2,142]),o($Ve1,[2,143]),o($Ve1,[2,144]),o($Ve1,[2,145]),o($Ve1,[2,70]),o($Ve1,[2,71]),o($Ve1,[2,72]),o($Ve1,[2,73]),o($Ve1,[2,74]),o($Ve1,[2,75]),o($Ve1,[2,76]),o($Ve1,[2,77]),o($Ve1,[2,78]),o($Ve1,[2,79]),o($Ve1,[2,80]),{8:$Vw,9:$Vx,10:$VF,11:$Vy,12:$VG,13:$VH,20:165,26:$VI,28:[1,164],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,166],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vu,17:167},{10:[1,168],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,170]},o($Vf1,[2,127]),o($Vf1,[2,129]),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),{10:[1,171]},{10:[1,172],79:[1,173]},o($Vg1,[2,98]),{10:[1,174]},{10:[1,175],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,176],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,177],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VA,[2,44],{91:84,34:$Va,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,178],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:179,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,180],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,40:[1,181],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,42:[1,182],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,44:[1,183],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,46:[1,184],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,185],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:186,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,187],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,188],53:[1,189],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,191],53:[1,190],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Vz,[2,39],{34:$Va1}),o($VE,[2,62]),o($VE,[2,61]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,59:[1,192],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VE,[2,64]),o($Ve1,[2,68]),{10:$VF,12:$VG,13:$VH,26:$VI,27:193,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:194}),o($Vv,[2,34]),{33:195,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:196,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vf1,[2,128]),{10:$Vh1,63:$Vi1,73:210,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:211,75:$Vj1,77:[1,212],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:213,75:$Vj1,77:[1,214],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{78:[1,215]},{10:$Vh1,63:$Vi1,73:216,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:217,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{13:$Vb1,34:$VK,68:$Vc1,74:218,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,61:[1,220],68:$Vc1,74:219,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,45]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,221],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,51]),o($VB,[2,47]),o($VB,[2,48]),o($VB,[2,49]),o($VB,[2,50]),o($VB,[2,52]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,222],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,54]),o($VB,[2,55]),o($VB,[2,57]),o($VB,[2,56]),o($VB,[2,58]),o([10,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,66]),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,223],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,224],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($VA,[2,43]),o($Vs1,[2,90],{79:$Vt1}),o($Vu1,[2,100],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vv1,[2,102]),o($Vv1,[2,104]),o($Vv1,[2,105]),o($Vv1,[2,106]),o($Vv1,[2,107]),o($Vv1,[2,108]),o($Vv1,[2,109]),o($Vv1,[2,110]),o($Vv1,[2,111]),o($Vv1,[2,112]),o($Vv1,[2,113]),o($Vv1,[2,114]),o($Vs1,[2,91],{79:$Vt1}),o($Vs1,[2,92],{79:$Vt1}),{10:[1,227]},o($Vs1,[2,93],{79:$Vt1}),{10:[1,228]},o($Vg1,[2,99]),o($Vs1,[2,83],{79:$Vt1}),o($Vs1,[2,84],{79:$Vt1}),o($Vs1,[2,85],{90:135,92:169,13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,86],{90:135,92:169,10:[1,229],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,88],{10:[1,230]}),{38:[1,231]},{48:[1,232]},{8:$Vw,9:$Vx,11:$Vy,20:233},o($Vv,[2,33]),{10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,80:234,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv1,[2,103]),{13:$Vb1,34:$VK,68:$Vc1,74:235,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:236,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{61:[1,237]},{61:[1,238]},o($VB,[2,46]),o($VB,[2,53]),o($V91,$V4,{5:239}),o($Vu1,[2,101],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vs1,[2,96],{90:135,92:169,10:[1,240],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,97],{90:135,92:169,10:[1,241],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,87]),o($Vs1,[2,89]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,242],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:243,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:244,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv,[2,32]),o($Vs1,[2,94],{79:$Vt1}),o($Vs1,[2,95],{79:$Vt1})],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:this.begin(\"string\");\nbreak;\ncase 2:this.popState();\nbreak;\ncase 3:return \"STR\";\nbreak;\ncase 4:return 63;\nbreak;\ncase 5:return 72;\nbreak;\ncase 6:return 64;\nbreak;\ncase 7:return 77;\nbreak;\ncase 8:return 65;\nbreak;\ncase 9:return 66;\nbreak;\ncase 10:return 67;\nbreak;\ncase 11:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 12:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 13:return 26;\nbreak;\ncase 14:return 30;\nbreak;\ncase 15: this.popState(); return 13; \nbreak;\ncase 16: this.popState(); return 13; \nbreak;\ncase 17: this.popState(); return 13; \nbreak;\ncase 18: this.popState(); return 13; \nbreak;\ncase 19: this.popState(); return 13; \nbreak;\ncase 20: this.popState(); return 13; \nbreak;\ncase 21: this.popState(); return 13; \nbreak;\ncase 22: this.popState(); return 13; \nbreak;\ncase 23: this.popState(); return 13; \nbreak;\ncase 24: this.popState(); return 13; \nbreak;\ncase 25: return 78;\nbreak;\ncase 26:return 86;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 83;\nbreak;\ncase 29:return 34;\nbreak;\ncase 30:return 8;\nbreak;\ncase 31:return 79;\nbreak;\ncase 32:return 97;\nbreak;\ncase 33:return 58;\nbreak;\ncase 34:return 58;\nbreak;\ncase 35:return 58;\nbreak;\ncase 36:return 58;\nbreak;\ncase 37:return 58;\nbreak;\ncase 38:return 58;\nbreak;\ncase 39:return 58;\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 58;\nbreak;\ncase 42:return 58;\nbreak;\ncase 43:return 58;\nbreak;\ncase 44:return 58;\nbreak;\ncase 45:return 58;\nbreak;\ncase 46:return 58;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 58;\nbreak;\ncase 49:return 58;\nbreak;\ncase 50:return 58;\nbreak;\ncase 51:return 58;\nbreak;\ncase 52:return 58;\nbreak;\ncase 53:return 58;\nbreak;\ncase 54:return 58;\nbreak;\ncase 55:return 58;\nbreak;\ncase 56:return 58;\nbreak;\ncase 57:return 58;\nbreak;\ncase 58:return 58;\nbreak;\ncase 59:return 58;\nbreak;\ncase 60:return 58;\nbreak;\ncase 61:return 57;\nbreak;\ncase 62:return 57;\nbreak;\ncase 63:return 57;\nbreak;\ncase 64:return 57;\nbreak;\ncase 65:return 57;\nbreak;\ncase 66:return 57;\nbreak;\ncase 67:return 57;\nbreak;\ncase 68:return 57;\nbreak;\ncase 69:return 57;\nbreak;\ncase 70:return 57;\nbreak;\ncase 71:return 57;\nbreak;\ncase 72:return 57;\nbreak;\ncase 73:return 39;\nbreak;\ncase 74:return 40;\nbreak;\ncase 75:return 41;\nbreak;\ncase 76:return 42;\nbreak;\ncase 77:return 43;\nbreak;\ncase 78:return 44;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 84;\nbreak;\ncase 82:return 87;\nbreak;\ncase 83:return 98;\nbreak;\ncase 84:return 95;\nbreak;\ncase 85:return 88;\nbreak;\ncase 86:return 96;\nbreak;\ncase 87:return 96;\nbreak;\ncase 88:return 89;\nbreak;\ncase 89:return 49;\nbreak;\ncase 90:return 69;\nbreak;\ncase 91:return 'SEP';\nbreak;\ncase 92:return 68;\nbreak;\ncase 93:return 82;\nbreak;\ncase 94:return 51;\nbreak;\ncase 95:return 50;\nbreak;\ncase 96:return 53;\nbreak;\ncase 97:return 52;\nbreak;\ncase 98:return 93;\nbreak;\ncase 99:return 94;\nbreak;\ncase 100:return 59;\nbreak;\ncase 101:return 37;\nbreak;\ncase 102:return 38;\nbreak;\ncase 103:return 28;\nbreak;\ncase 104:return 29;\nbreak;\ncase 105:return 47\nbreak;\ncase 106:return 48\nbreak;\ncase 107:return 104;\nbreak;\ncase 108:return 9;\nbreak;\ncase 109:return 10;\nbreak;\ncase 110:return 11;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/,/^(?:\\s*<)/,/^(?:\\s*>)/,/^(?:\\s*\\^)/,/^(?:\\s*v\\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\*)/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,/^(?:>)/,/^(?:\\^)/,/^(?:\\\\\\|)/,/^(?:v\\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\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|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[15,16,17,18,19,20,21,22,23,24],\"inclusive\":false},\"string\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,4,5,6,7,8,9,10,11,12,13,14,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 11, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "name": "./src/diagrams/gantt/parser/gantt.jison", - "index": 31, - "index2": 29, - "size": 25297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gantt", - "loc": "2:0-40" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "5:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "25:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "26:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "29:0-56" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "38:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "84:26-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "98:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "281:113-119" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "name": "./src/diagrams/user-journey/parser/journey.jison", - "index": 43, - "index2": 41, - "size": 21995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/journey", - "loc": "2:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "5:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "51:0-67" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "71:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "72:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "77:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "78:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "79:19-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "137:15-28" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13],$V1=[1,9],$V2=[1,10],$V3=[1,11];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"title\":11,\"section\":12,\"taskName\":13,\"taskData\":14,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"title\",12:\"section\",13:\"taskName\",14:\"taskData\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 9:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 10:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:12,11:$V1,12:$V2,13:$V3},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),{14:[1,13]},o($V0,[2,4]),o($V0,[2,10])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 11;\nbreak;\ncase 6:return 12;\nbreak;\ncase 7:return 13;\nbreak;\ncase 8:return 14;\nbreak;\ncase 9:return ':';\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 13, - "identifier": "external \"dagre\"", - "name": "external \"dagre\"", - "index": 53, - "index2": 49, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1802, - "building": 543, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "1:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "5:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "91:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "98:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "201:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "243:2-7" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 14, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/package.json", - "name": "./package.json", - "index": 79, - "index2": 77, - "size": 3186, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "../package.json", - "loc": "17:0-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "365:35-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "371:34-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "376:33-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "381:38-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "386:27-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "543:50-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "name", - "version", - "description", - "main", - "keywords", - "scripts", - "repository", - "author", - "license", - "standard", - "dependencies", - "devDependencies", - "files", - "yarn-upgrade-all", - "sideEffects", - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "{\n \"name\": \"mermaid\",\n \"version\": \"8.6.0\",\n \"description\": \"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\n \"main\": \"dist/mermaid.core.js\",\n \"keywords\": [\n \"diagram\",\n \"markdown\",\n \"flowchart\",\n \"sequence diagram\",\n \"gantt\",\n \"class diagram\",\n \"git graph\"\n ],\n \"scripts\": {\n \"build:development\": \"webpack --progress --colors\",\n \"build:production\": \"yarn build:development -p --config webpack.config.prod.babel.js\",\n \"build\": \"yarn build:development && yarn build:production\",\n \"postbuild\": \"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\n \"build:watch\": \"yarn build --watch\",\n \"minify\": \"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\n \"release\": \"yarn build\",\n \"lint\": \"eslint src\",\n \"e2e:depr\": \"yarn lint && jest e2e --config e2e/jest.config.js\",\n \"cypress\": \"percy exec -- cypress run\",\n \"e2e\": \"start-server-and-test dev http://localhost:9000/ cypress\",\n \"e2e-upd\": \"yarn lint && jest e2e -u --config e2e/jest.config.js\",\n \"dev\": \"webpack-dev-server --config webpack.config.e2e.js\",\n \"test\": \"yarn lint && jest src/.*\",\n \"test:watch\": \"jest --watch src\",\n \"prepublishOnly\": \"yarn build && yarn test && yarn e2e\",\n \"prepush\": \"yarn test\",\n \"prepare\": \"yarn build\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/knsv/mermaid\"\n },\n \"author\": \"Knut Sveidqvist\",\n \"license\": \"MIT\",\n \"standard\": {\n \"ignore\": [\n \"**/parser/*.js\",\n \"dist/**/*.js\",\n \"cypress/**/*.js\"\n ],\n \"globals\": [\n \"page\"\n ]\n },\n \"dependencies\": {\n \"@braintree/sanitize-url\": \"^3.1.0\",\n \"crypto-random-string\": \"^3.0.1\",\n \"d3\": \"^5.7.0\",\n \"dagre\": \"^0.8.4\",\n \"dagre-d3\": \"^0.6.4\",\n \"entity-decode\": \"^2.0.2\",\n \"graphlib\": \"^2.1.7\",\n \"he\": \"^1.2.0\",\n \"minify\": \"^4.1.1\",\n \"moment-mini\": \"^2.22.1\",\n \"scope-css\": \"^1.2.1\"\n },\n \"devDependencies\": {\n \"@babel/core\": \"^7.2.2\",\n \"@babel/preset-env\": \"^7.8.4\",\n \"@babel/register\": \"^7.0.0\",\n \"@percy/cypress\": \"*\",\n \"babel-core\": \"7.0.0-bridge.0\",\n \"babel-jest\": \"^24.9.0\",\n \"babel-loader\": \"^8.0.4\",\n \"coveralls\": \"^3.0.2\",\n \"css-loader\": \"^2.0.1\",\n \"css-to-string-loader\": \"^0.1.3\",\n \"cypress\": \"4.0.1\",\n \"documentation\": \"^12.0.1\",\n \"eslint\": \"^6.3.0\",\n \"eslint-config-prettier\": \"^6.3.0\",\n \"eslint-plugin-prettier\": \"^3.1.0\",\n \"husky\": \"^1.2.1\",\n \"identity-obj-proxy\": \"^3.0.0\",\n \"jest\": \"^24.9.0\",\n \"jison\": \"^0.4.18\",\n \"moment\": \"^2.23.0\",\n \"node-sass\": \"^4.12.0\",\n \"prettier\": \"^1.18.2\",\n \"puppeteer\": \"^1.17.0\",\n \"sass-loader\": \"^7.1.0\",\n \"start-server-and-test\": \"^1.10.6\",\n \"terser-webpack-plugin\": \"^2.2.2\",\n \"webpack\": \"^4.41.2\",\n \"webpack-bundle-analyzer\": \"^3.7.0\",\n \"webpack-cli\": \"^3.1.2\",\n \"webpack-dev-server\": \"^3.4.1\",\n \"webpack-node-externals\": \"^1.7.2\",\n \"yarn-upgrade-all\": \"^0.5.0\"\n },\n \"files\": [\n \"dist\"\n ],\n \"yarn-upgrade-all\": {\n \"ignore\": [\n \"babel-core\"\n ]\n },\n \"sideEffects\": [\n \"**/*.css\",\n \"**/*.scss\"\n ]\n}\n" - }, - { - "id": 15, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "name": "./src/diagrams/class/parser/classDiagram.jison", - "index": 33, - "index2": 31, - "size": 32826, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/classDiagram", - "loc": "6:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "32:0-63" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "59:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "60:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "103:15-26" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,13],$V1=[1,16],$V2=[1,14],$V3=[1,15],$V4=[1,17],$V5=[1,18],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[6,8],$Va=[1,31],$Vb=[1,32],$Vc=[1,33],$Vd=[1,34],$Ve=[1,35],$Vf=[1,36],$Vg=[6,8,14,20,28,31,32,33,34,35,36],$Vh=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],$Vi=[28,52,53,54],$Vj=[28,35,36,52,53,54],$Vk=[28,31,32,33,34,52,53,54],$Vl=[6,8,14],$Vm=[1,59];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"CLASS_DIAGRAM\":5,\"NEWLINE\":6,\"statements\":7,\"EOF\":8,\"statement\":9,\"className\":10,\"alphaNumToken\":11,\"GENERICTYPE\":12,\"relationStatement\":13,\"LABEL\":14,\"classStatement\":15,\"methodStatement\":16,\"annotationStatement\":17,\"clickStatement\":18,\"CLASS\":19,\"STRUCT_START\":20,\"members\":21,\"STRUCT_STOP\":22,\"ANNOTATION_START\":23,\"ANNOTATION_END\":24,\"MEMBER\":25,\"SEPARATOR\":26,\"relation\":27,\"STR\":28,\"relationType\":29,\"lineType\":30,\"AGGREGATION\":31,\"EXTENSION\":32,\"COMPOSITION\":33,\"DEPENDENCY\":34,\"LINE\":35,\"DOTTED_LINE\":36,\"CALLBACK\":37,\"LINK\":38,\"commentToken\":39,\"textToken\":40,\"graphCodeTokens\":41,\"textNoTagsToken\":42,\"TAGSTART\":43,\"TAGEND\":44,\"==\":45,\"--\":46,\"PCT\":47,\"DEFAULT\":48,\"SPACE\":49,\"MINUS\":50,\"keywords\":51,\"UNICODE_TEXT\":52,\"NUM\":53,\"ALPHA\":54,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",12:\"GENERICTYPE\",14:\"LABEL\",19:\"CLASS\",20:\"STRUCT_START\",22:\"STRUCT_STOP\",23:\"ANNOTATION_START\",24:\"ANNOTATION_END\",25:\"MEMBER\",26:\"SEPARATOR\",28:\"STR\",31:\"AGGREGATION\",32:\"EXTENSION\",33:\"COMPOSITION\",34:\"DEPENDENCY\",35:\"LINE\",36:\"DOTTED_LINE\",37:\"CALLBACK\",38:\"LINK\",41:\"graphCodeTokens\",43:\"TAGSTART\",44:\"TAGEND\",45:\"==\",46:\"--\",47:\"PCT\",48:\"DEFAULT\",49:\"SPACE\",50:\"MINUS\",51:\"keywords\",52:\"UNICODE_TEXT\",53:\"NUM\",54:\"ALPHA\"},\nproductions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 7:\n this.$=$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 10:\n yy.addRelation($$[$0]); \nbreak;\ncase 11:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 16:\nyy.addClass($$[$0]);\nbreak;\ncase 17:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 18:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 19:\n this.$ = [$$[$0]]; \nbreak;\ncase 20:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 21:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 22:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 23:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 24:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 25:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 26:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 27:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 28:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 29:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 30:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 31:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 32:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 33:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 34:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 35:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 36:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 37:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 38:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 39:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 40:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 41:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 42:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},{8:[1,23]},{6:[1,24],8:[2,3]},o($V9,[2,10],{14:[1,25]}),o($V9,[2,12]),o($V9,[2,13]),o($V9,[2,14]),o($V9,[2,15]),o($V9,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf}),{10:37,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,23]),o($V9,[2,24]),{11:38,52:$V6,53:$V7,54:$V8},{10:39,11:19,52:$V6,53:$V7,54:$V8},{10:40,11:19,52:$V6,53:$V7,54:$V8},o($Vg,[2,7],{11:19,10:41,12:[1,42],52:$V6,53:$V7,54:$V8}),o($Vh,[2,56]),o($Vh,[2,57]),o($Vh,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},o($V9,[2,11]),{10:44,11:19,28:[1,45],52:$V6,53:$V7,54:$V8},{27:46,29:29,30:30,31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf},o($V9,[2,22]),{30:47,35:$Ve,36:$Vf},o($Vi,[2,32],{29:48,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vj,[2,33]),o($Vj,[2,34]),o($Vj,[2,35]),o($Vj,[2,36]),o($Vk,[2,37]),o($Vk,[2,38]),o($V9,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},o($Vg,[2,6]),o($Vg,[2,9],{11:19,10:53,52:$V6,53:$V7,54:$V8}),{8:[2,5]},o($Vl,[2,25]),{10:54,11:19,52:$V6,53:$V7,54:$V8},{10:55,11:19,28:[1,56],52:$V6,53:$V7,54:$V8},o($Vi,[2,31],{29:57,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vi,[2,30]),{21:58,25:$Vm},{10:60,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,39],{28:[1,61]}),o($V9,[2,41],{28:[1,62]}),o($Vg,[2,8]),o($Vl,[2,27]),o($Vl,[2,26]),{10:63,11:19,52:$V6,53:$V7,54:$V8},o($Vi,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:$Vm},o($V9,[2,18]),o($V9,[2,40]),o($V9,[2,42]),o($Vl,[2,28]),o($V9,[2,17]),{22:[2,20]}],\ndefaultActions: {2:[2,1],23:[2,2],43:[2,5],65:[2,20]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:return 6;\nbreak;\ncase 2:/* skip whitespace */\nbreak;\ncase 3:return 5;\nbreak;\ncase 4: this.begin(\"struct\"); /*console.log('Starting struct');*/return 20;\nbreak;\ncase 5:return \"EOF_IN_STRUCT\";\nbreak;\ncase 6:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 7: /*console.log('Ending struct');*/this.popState(); return 22;\nbreak;\ncase 8:/* nothing */\nbreak;\ncase 9: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 10:return 19;\nbreak;\ncase 11:return 37;\nbreak;\ncase 12:return 38;\nbreak;\ncase 13:return 23;\nbreak;\ncase 14:return 24;\nbreak;\ncase 15:this.begin(\"generic\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:return \"GENERICTYPE\";\nbreak;\ncase 18:this.begin(\"string\");\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return \"STR\";\nbreak;\ncase 21:return 32;\nbreak;\ncase 22:return 32;\nbreak;\ncase 23:return 34;\nbreak;\ncase 24:return 34;\nbreak;\ncase 25:return 33;\nbreak;\ncase 26:return 31;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 36;\nbreak;\ncase 29:return 14;\nbreak;\ncase 30:return 50;\nbreak;\ncase 31:return 'DOT';\nbreak;\ncase 32:return 'PLUS';\nbreak;\ncase 33:return 47;\nbreak;\ncase 34:return 'EQUALS';\nbreak;\ncase 35:return 'EQUALS';\nbreak;\ncase 36:return 54;\nbreak;\ncase 37:return 'PUNCTUATION';\nbreak;\ncase 38:return 53;\nbreak;\ncase 39:return 52;\nbreak;\ncase 40:return 49;\nbreak;\ncase 41:return 8;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[19,20],\"inclusive\":false},\"generic\":{\"rules\":[16,17],\"inclusive\":false},\"struct\":{\"rules\":[5,6,7,8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,10,11,12,13,14,15,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 16, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/runtime/api.js", - "name": "./node_modules/css-loader/dist/runtime/api.js", - "index": 8, - "index2": 3, - "size": 2406, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 32, - "issuerName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "profile": { - "factory": 45, - "building": 2971 - } - } - ], - "profile": { - "factory": 20, - "building": 8 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 30, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}" - }, - { - "id": 17, - "identifier": "external \"@braintree/sanitize-url\"", - "name": "external \"@braintree/sanitize-url\"", - "index": 16, - "index2": 13, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 179, - "building": 892 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "10:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "15:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "278:13-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "479:14-25" - } - ], - "usedExports": [ - "sanitizeUrl" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "name": "./src/diagrams/git/parser/gitGraph.jison", - "index": 20, - "index2": 22, - "size": 23638, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gitGraph", - "loc": "3:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "39:0-60" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "76:15-29" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gitGraph", - "loc": "237:17-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 19, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "name": "./src/diagrams/info/parser/info.jison", - "index": 37, - "index2": 35, - "size": 21150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/info", - "loc": "6:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/info", - "loc": "23:17-27" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/parser/info", - "loc": "43:0-53" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/parser/info", - "loc": "119:15-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "name": "./src/diagrams/pie/parser/pie.jison", - "index": 39, - "index2": 37, - "size": 21750, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/pie", - "loc": "6:0-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/pie", - "loc": "24:17-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "46:0-50" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "125:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "name": "./src/diagrams/er/parser/erDiagram.jison", - "index": 41, - "index2": 39, - "size": 23211, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/erDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "49:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "131:15-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/erDiagram", - "loc": "190:15-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,12],$V1=[1,7],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[12,19,20],$V7=[15,16,17,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"statement\":7,\"entityName\":8,\"relSpec\":9,\":\":10,\"role\":11,\"ALPHANUM\":12,\"cardinality\":13,\"relType\":14,\"ZERO_OR_ONE\":15,\"ZERO_OR_MORE\":16,\"ONE_OR_MORE\":17,\"ONLY_ONE\":18,\"NON_IDENTIFYING\":19,\"IDENTIFYING\":20,\"WORD\":21,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",10:\":\",12:\"ALPHANUM\",15:\"ZERO_OR_ONE\",16:\"ZERO_OR_MORE\",17:\"ONE_OR_MORE\",18:\"ONLY_ONE\",19:\"NON_IDENTIFYING\",20:\"IDENTIFYING\",21:\"WORD\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,5],[8,1],[9,3],[13,1],[13,1],[13,1],[13,1],[14,1],[14,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 4:\n\n yy.addEntity($$[$0-4]); \n yy.addEntity($$[$0-2]); \n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 5:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 6:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 7:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 8:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 9:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 10:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 11:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 12:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 13:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 14:\n this.$ = $$[$0]; \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,12:$V1},{1:[2,1]},o($V0,[2,3]),{9:8,13:9,15:$V2,16:$V3,17:$V4,18:$V5},o([10,15,16,17,18],[2,5]),{8:14,12:$V1},{14:15,19:[1,16],20:[1,17]},o($V6,[2,7]),o($V6,[2,8]),o($V6,[2,9]),o($V6,[2,10]),{10:[1,18]},{13:19,15:$V2,16:$V3,17:$V4,18:$V5},o($V7,[2,11]),o($V7,[2,12]),{11:20,12:[1,22],21:[1,21]},{12:[2,6]},o($V0,[2,4]),o($V0,[2,13]),o($V0,[2,14])],\ndefaultActions: {4:[2,1],19:[2,6]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* skip whitespace */\nbreak;\ncase 1:return 'SPACE';\nbreak;\ncase 2:return 21;\nbreak;\ncase 3:return 4;\nbreak;\ncase 4:return 15;\nbreak;\ncase 5:return 16;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 18;\nbreak;\ncase 8:return 15;\nbreak;\ncase 9:return 16;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11:return 19;\nbreak;\ncase 12:return 20;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 19;\nbreak;\ncase 15:return 12;\nbreak;\ncase 16:return yy_.yytext[0];\nbreak;\ncase 17:return 6;\nbreak;\n}\n},\nrules: [/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 22, - "identifier": "external \"dagre-d3/lib/label/add-html-label.js\"", - "name": "external \"dagre-d3/lib/label/add-html-label.js\"", - "index": 48, - "index2": 45, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "55:19-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "56:19-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 23, - "identifier": "external \"entity-decode/browser\"", - "name": "external \"entity-decode/browser\"", - "index": 1, - "index2": 0, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "entity-decode/browser", - "loc": "6:0-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "entity-decode/browser", - "loc": "100:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 1 - }, - { - "id": 24, - "identifier": "external \"scope-css\"", - "name": "external \"scope-css\"", - "index": 4, - "index2": 2, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "scope-css", - "loc": "16:0-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "scope-css", - "loc": "292:21-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 25, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-node.js", - "name": "./src/dagre-wrapper/intersect/intersect-node.js", - "index": 58, - "index2": 52, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-node.js", - "loc": "4:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./intersect-node.js", - "loc": "10:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}" - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "index": 5, - "index2": 12, - "size": 256, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "cjs require context", - "userRequest": "./themes", - "loc": "59:22-75" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "index": 6, - "index2": 5, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./dark/index.scss", - "loc": "./dark/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "index": 7, - "index2": 4, - "size": 8104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "issuerId": 27, - "issuerName": "./src/themes/dark/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3019, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./src/themes/dark/index.scss", - "moduleName": "./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#d3d3d3}.edgePath .path{stroke:#d3d3d3;stroke-width:1.5px}.flowchart-link{stroke:#d3d3d3;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#474949;stroke:rgba(255,255,255,0.25);stroke-width:1px}.cluster text{fill:#F9FFFE}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#474949;border:1px solid rgba(255,255,255,0.25);border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#81B1DB;fill:#1f2020}text.actor>tspan{fill:#d3d3d3;stroke:none}.actor-line{stroke:#d3d3d3}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#d3d3d3}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#d3d3d3}#arrowhead path{fill:#d3d3d3;stroke:#d3d3d3}.sequenceNumber{fill:#000}#sequencenumber{fill:#d3d3d3}#crosshead path{fill:#d3d3d3;stroke:#d3d3d3}.messageText{fill:#d3d3d3;stroke:#d3d3d3}.labelBox{stroke:#81B1DB;fill:#1f2020}.labelText,.labelText>tspan{fill:#d3d3d3;stroke:none}.loopText,.loopText>tspan{fill:#d3d3d3;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#81B1DB;fill:#81B1DB}.note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.noteText,.noteText>tspan{fill:#1f2020;stroke:none}.activation0{fill:#474949;stroke:#81B1DB}.activation1{fill:#474949;stroke:#81B1DB}.activation2{fill:#474949;stroke:#81B1DB}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(255,255,255,0.3)}.section2{fill:#EAE8B9}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#F9FFFE}.sectionTitle1{fill:#F9FFFE}.sectionTitle2{fill:#F9FFFE}.sectionTitle3{fill:#F9FFFE}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#DB5757;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#323D47;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#323D47;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#323D47}.task0,.task1,.task2,.task3{fill:#1f2020;stroke:rgba(255,255,255,0.5)}.taskTextOutside0,.taskTextOutside2{fill:#d3d3d3}.taskTextOutside1,.taskTextOutside3{fill:#d3d3d3}.active0,.active1,.active2,.active3{fill:#81B1DB;stroke:rgba(255,255,255,0.5)}.activeText0,.activeText1,.activeText2,.activeText3{fill:#323D47 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#323D47 !important}.crit0,.crit1,.crit2,.crit3{stroke:#E83737;fill:#E83737;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#E83737;fill:#81B1DB;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#E83737;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#323D47 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#323D47 !important}.titleText{text-anchor:middle;font-size:18px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#81B1DB;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#1f2020;stroke:#81B1DB}g.classGroup line{stroke:#81B1DB;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.classLabel .label{fill:#81B1DB;font-size:10px}.relation{stroke:#81B1DB;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#compositionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#aggregationStart{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#aggregationEnd{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#dependencyStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#dependencyEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#1f2020;stroke:#81B1DB}g.stateGroup line{stroke:#81B1DB;stroke-width:1}.transition{stroke:#81B1DB;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#81B1DB}.statediagram-cluster rect{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#81B1DB}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:rgba(255,255,255,0.25);stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#a44141}.error-text{fill:#ddd;stroke:#ddd}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#d3d3d3}.marker.cross{stroke:#d3d3d3}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "index": 9, - "index2": 7, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./default/index.scss", - "loc": "./default/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 30, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "index": 10, - "index2": 6, - "size": 7841, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "issuerId": 29, - "issuerName": "./src/themes/default/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 45, - "building": 2986, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 29, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./src/themes/default/index.scss", - "moduleName": "./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#333;stroke-width:1.5px}.flowchart-link{stroke:#333;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#ccf;fill:#ECECFF}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#ccf;fill:#ECECFF}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}.note{stroke:#aa3;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(102,102,255,0.49)}.section2{fill:#fff400}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#8a90dd;stroke:#534fbc}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#bfc7ff;stroke:#534fbc}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#ECECFF;stroke:#9370db}g.classGroup line{stroke:#9370db;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.classLabel .label{fill:#9370db;font-size:10px}.relation{stroke:#9370db;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#ECECFF;stroke:#9370db}g.stateGroup line{stroke:#9370db;stroke-width:1}.transition{stroke:#9370db;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#aa3;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#9370db}.statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#9370db}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#333}.marker.cross{stroke:#333}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "index": 11, - "index2": 9, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./forest/index.scss", - "loc": "./forest/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "index": 12, - "index2": 8, - "size": 7858, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 31, - "issuerName": "./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 45, - "building": 2971 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 31, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./src/themes/forest/index.scss", - "moduleName": "./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#cde498;stroke:#13540c;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:green}.edgePath .path{stroke:green;stroke-width:1.5px}.flowchart-link{stroke:green;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#cdffb2;stroke:#6eaa49;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#cdffb2;border:1px solid #6eaa49;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#13540c;fill:#cde498}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#326932;fill:#cde498}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#326932;fill:#326932}.note{stroke:#6eaa49;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#6eaa49}.section2{fill:#6eaa49}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#487e3a;stroke:#13540c}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#cde498;stroke:#13540c}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#cde498;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#13540c;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#cde498;stroke:#13540c}g.classGroup line{stroke:#13540c;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.classLabel .label{fill:#13540c;font-size:10px}.relation{stroke:#13540c;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#compositionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#aggregationStart{fill:#cde498;stroke:#13540c;stroke-width:1}#aggregationEnd{fill:#cde498;stroke:#13540c;stroke-width:1}#dependencyStart{fill:#13540c;stroke:#13540c;stroke-width:1}#dependencyEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#cde498;stroke:#13540c}g.stateGroup line{stroke:#13540c;stroke-width:1}.transition{stroke:#13540c;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#6eaa49;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#13540c}.statediagram-cluster rect{fill:#cde498;stroke:#13540c;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#13540c}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#6eaa49;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:green}.marker.cross{stroke:green}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "index": 13, - "index2": 11, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./neutral/index.scss", - "loc": "./neutral/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "index": 14, - "index2": 10, - "size": 7696, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "issuerId": 33, - "issuerName": "./src/themes/neutral/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 44, - "building": 3036, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 33, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./src/themes/neutral/index.scss", - "moduleName": "./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#eee;stroke:#999;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#666;stroke-width:1.5px}.flowchart-link{stroke:#666;fill:none}.edgeLabel{background-color:#fff;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#eaf2fb;stroke:#26a;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#eaf2fb;border:1px solid #26a;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#999;fill:#eee}text.actor>tspan{fill:#333;stroke:none}.actor-line{stroke:#666}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#999;fill:#eee}.labelText,.labelText>tspan{fill:#333;stroke:none}.loopText,.loopText>tspan{fill:#333;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#999;fill:#999}.note{stroke:#770;fill:#ffa}.noteText,.noteText>tspan{fill:#333;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#80b3e6}.section2{fill:#80b3e6}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#e6e6e6;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#d42;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#333;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#333;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#26a;stroke:#1a4d80}.taskTextOutside0,.taskTextOutside2{fill:#333}.taskTextOutside1,.taskTextOutside3{fill:#333}.active0,.active1,.active2,.active3{fill:#eee;stroke:#1a4d80}.activeText0,.activeText1,.activeText2,.activeText3{fill:#333 !important}.done0,.done1,.done2,.done3{stroke:#666;fill:#bbb;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#333 !important}.crit0,.crit1,.crit2,.crit3{stroke:#b1361b;fill:#d42;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#b1361b;fill:#eee;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#b1361b;fill:#bbb;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#333 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#333 !important}.titleText{text-anchor:middle;font-size:18px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#999;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#eee;stroke:#999}g.classGroup line{stroke:#999;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.classLabel .label{fill:#999;font-size:10px}.relation{stroke:#999;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#999;stroke:#999;stroke-width:1}#compositionEnd{fill:#999;stroke:#999;stroke-width:1}#aggregationStart{fill:#eee;stroke:#999;stroke-width:1}#aggregationEnd{fill:#eee;stroke:#999;stroke-width:1}#dependencyStart{fill:#999;stroke:#999;stroke-width:1}#dependencyEnd{fill:#999;stroke:#999;stroke-width:1}#extensionStart{fill:#999;stroke:#999;stroke-width:1}#extensionEnd{fill:#999;stroke:#999;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#999;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#999;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#eee;stroke:#999}g.stateGroup line{stroke:#999;stroke-width:1}.transition{stroke:#999;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#770;fill:#ffa}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#999}.statediagram-cluster rect{fill:#eee;stroke:#999;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#999}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#ffa;stroke:#770;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#666}.marker.cross{stroke:#666}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "name": "./src/mermaid.js + 50 modules", - "index": 0, - "index2": 85, - "size": 419844, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/class/parser/classDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/er/parser/erDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/flowchart/parser/flow.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/gantt/parser/gantt.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/git/parser/gitGraph.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/info/parser/info.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/pie/parser/pie.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/sequence/parser/sequenceDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/state/parser/stateDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/user-journey/parser/journey.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/dagre-wrapper/intersect/intersect-node.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./package.json (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"@braintree/sanitize-url\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"d3\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre-d3\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre-d3/lib/label/add-html-label.js\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"entity-decode/browser\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"graphlib\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"moment-mini\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"scope-css\" (<- Module is not an ECMAScript module)" - ], - "depth": 0, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "index": 0, - "index2": 85, - "size": 5291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "profile": { - "factory": 34, - "building": 203 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is an entry point" - ], - "depth": 0, - "source": "/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\n\nvar init = function init() {\n var _this = this;\n\n var conf = mermaidAPI.getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init');\n\n var nodes;\n\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n } // if last argument is a function this is the callback function\n\n\n var callback;\n\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n\n nodes = nodes === undefined ? document.querySelectorAll('.mermaid') : typeof nodes === 'string' ? document.querySelectorAll(nodes) : nodes instanceof window.Node ? [nodes] : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({\n startOnLoad: mermaid.startOnLoad\n });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({\n gantt: mermaid.ganttConfig\n });\n }\n\n var txt;\n\n var _loop = function _loop(i) {\n var element = nodes[i];\n /*! Check if previously processed */\n\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n return \"continue\";\n }\n\n var id = \"mermaid-\".concat(Date.now()); // Fetch the graph definition including tags\n\n txt = element.innerHTML; // transforms the html to pure text\n\n txt = decode(txt).trim().replace(//gi, '
');\n var init = utils.detectInit(txt);\n\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(id, txt, function (svgCode, bindFunctions) {\n element.innerHTML = svgCode;\n\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n\n if (bindFunctions) bindFunctions(element);\n }, element);\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n\n if (_this.parseError) {\n _this.parseError(e);\n }\n }\n };\n\n for (var i = 0; i < nodes.length; i++) {\n var _ret = _loop(i);\n\n if (_ret === \"continue\") continue;\n }\n};\n\nvar initialize = function initialize(config) {\n mermaidAPI.reset();\n\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n\n mermaidAPI.initialize(config);\n};\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\n\n\nvar contentLoaded = function contentLoaded() {\n var config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener('load', function () {\n contentLoaded();\n }, false);\n}\n\nvar mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n mermaidAPI: mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n init: init,\n initialize: initialize,\n contentLoaded: contentLoaded\n};\nexport default mermaid;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "index": 17, - "index2": 15, - "size": 1937, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "8:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "9:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "9:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "11:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "11:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "12:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "14:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "14:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "17:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "20:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "21:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "22:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "22:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "23:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "23:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "24:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "25:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "26:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "26:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "30:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "31:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "34:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "36:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "37:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "39:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "42:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "42:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "43:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "46:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "47:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "50:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "51:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "55:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "56:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "59:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "60:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "60:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "60:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "61:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "61:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "62:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "62:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "66:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "67:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "68:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "69:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "69:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "70:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "74:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "76:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "77:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "79:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "79:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "81:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "81:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "83:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "83:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "86:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "88:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "88:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "89:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "92:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "93:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "94:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "95:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "96:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "97:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "98:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "99:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "101:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "104:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "106:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "107:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "119:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "120:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "123:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "124:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "125:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "126:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "127:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "129:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "130:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "130:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "130:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "132:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "136:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "136:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "137:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "140:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "144:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "148:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "148:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "151:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "152:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "152:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "156:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "158:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "161:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "167:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "168:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "170:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "171:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "179:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "182:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "182:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "184:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "185:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "188:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "188:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "189:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "193:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "194:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "196:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "196:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "197:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "202:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "205:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "208:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "209:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "211:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "214:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "222:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "223:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "223:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "228:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "234:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "235:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "236:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "240:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "240:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "242:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "243:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "244:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "247:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "249:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "249:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "251:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "253:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "254:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "262:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "265:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "272:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "275:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "282:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "288:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "291:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "292:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "293:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "297:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "299:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "303:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "306:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "314:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "314:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "323:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "324:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "326:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "327:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "332:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "358:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "360:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "376:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "403:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "416:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "420:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "430:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "444:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "462:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "469:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "470:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "475:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "516:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "547:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "548:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "556:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "557:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "559:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "584:0-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "595:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "616:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "642:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "715:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "800:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "912:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "944:2-8" - } - ], - "usedExports": [ - "logger", - "setLogLevel" - ], - "providedExports": [ - "LEVELS", - "logger", - "setLogLevel" - ], - "optimizationBailout": [], - "depth": 1, - "source": "import moment from 'moment-mini'; //\n\nexport var LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\nexport var logger = {\n debug: function debug() {},\n info: function info() {},\n warn: function warn() {},\n error: function error() {},\n fatal: function fatal() {}\n};\nexport var setLogLevel = function setLogLevel() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fatal';\n\n if (isNaN(level)) {\n level = level.toLowerCase();\n\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n\n logger.trace = function () {};\n\n logger.debug = function () {};\n\n logger.info = function () {};\n\n logger.warn = function () {};\n\n logger.error = function () {};\n\n logger.fatal = function () {};\n\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error ? console.error.bind(console, format('FATAL'), 'color: orange') : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n\n if (level <= LEVELS.error) {\n logger.error = console.error ? console.error.bind(console, format('ERROR'), 'color: orange') : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n\n if (level <= LEVELS.warn) {\n logger.warn = console.warn ? console.warn.bind(console, format('WARN'), 'color: orange') : console.log.bind(console, \"\\x1B[33m\", format('WARN'));\n }\n\n if (level <= LEVELS.info) {\n logger.info = console.info ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue') : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n\n if (level <= LEVELS.debug) {\n logger.debug = console.debug ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen') : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nvar format = function format(level) {\n var time = moment().format('ss.SSS');\n return \"%c\".concat(time, \" : \").concat(level, \" : \");\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "index": 15, - "index2": 17, - "size": 24774, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "6:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../utils", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "13:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "20:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "37:14-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "42:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "43:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../utils", - "loc": "48:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "56:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "58:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "63:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "65:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "66:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "70:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "101:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "160:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "172:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "174:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "188:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "197:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "214:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "217:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "223:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "227:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "229:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "231:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "233:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "250:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "252:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "252:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "254:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "262:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "280:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "282:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "337:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "396:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "437:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "441:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "527:29-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "673:38-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "674:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "736:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "739:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:66-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "797:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "821:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "824:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "847:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "854:17-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "855:20-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "866:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "869:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "878:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "890:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "899:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "930:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "933:2-17" - } - ], - "usedExports": [ - "default", - "assignWithDepth", - "getStylesFromArray", - "interpolateToCurve", - "generateId" - ], - "providedExports": [ - "detectInit", - "detectDirective", - "detectType", - "isSubstringInArray", - "interpolateToCurve", - "formatUrl", - "runFunc", - "getStylesFromArray", - "generateId", - "random", - "assignWithDepth", - "getTextObj", - "drawSimpleText", - "wrapLabel", - "calculateTextHeight", - "calculateTextWidth", - "calculateTextDimensions", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "var _this = this;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport { curveBasis, curveBasisClosed, curveBasisOpen, curveLinear, curveLinearClosed, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, select } from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common'; // import cryptoRandomString from 'crypto-random-string';\n// Effectively an enum of the supported curve types, accessible by name\n\nvar d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nvar directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar anyComment = /\\s*%%.*\\n/gm;\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\n\nexport var detectInit = function detectInit(text) {\n var inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n var results = {};\n\n if (Array.isArray(inits)) {\n var args = inits.map(function (init) {\n return init.args;\n });\n results = assignWithDepth(results, _toConsumableArray(args));\n } else {\n results = inits.args;\n }\n\n if (results) {\n var type = detectType(text);\n ['config'].forEach(function (prop) {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n\n return results;\n};\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\n\nexport var detectDirective = function detectDirective(text) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n try {\n var commentWithoutDirectives = new RegExp(\"[%]{2}(?![{]\".concat(directiveWithoutOpen.source, \")(?=[}][%]{2}).*\\n\"), 'ig');\n text = text.trim().replace(commentWithoutDirectives, '').replace(/'/gm, '\"');\n logger.debug(\"Detecting diagram directive\".concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n var match,\n result = [];\n\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n\n if (match && !type || type && match[1] && match[1].match(type) || type && match[2] && match[2].match(type)) {\n var _type = match[1] ? match[1] : match[2];\n\n var args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({\n type: _type,\n args: args\n });\n }\n }\n\n if (result.length === 0) {\n result.push({\n type: text,\n args: null\n });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\"ERROR: \".concat(error.message, \" - Unable to parse directive\").concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n return {\n type: null,\n args: null\n };\n }\n};\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\n\nexport var detectType = function detectType(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nvar memoize = function memoize(fn, resolver) {\n var cache = {};\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var n = resolver ? resolver.apply(_this, args) : args[0];\n\n if (n in cache) {\n return cache[n];\n } else {\n var result = fn.apply(void 0, args);\n cache[n] = result;\n return result;\n }\n };\n};\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\n\n\nexport var isSubstringInArray = function isSubstringInArray(str, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n\n return -1;\n};\nexport var interpolateToCurve = function interpolateToCurve(interpolate, defaultCurve) {\n if (!interpolate) {\n return defaultCurve;\n }\n\n var curveName = \"curve\".concat(interpolate.charAt(0).toUpperCase() + interpolate.slice(1));\n return d3CurveTypes[curveName] || defaultCurve;\n};\nexport var formatUrl = function formatUrl(linkStr, config) {\n var url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\nexport var runFunc = function runFunc(functionName) {\n var _obj;\n\n var arrPaths = functionName.split('.');\n var len = arrPaths.length - 1;\n var fnName = arrPaths[len];\n var obj = window;\n\n for (var i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n params[_key2 - 1] = arguments[_key2];\n }\n\n (_obj = obj)[fnName].apply(_obj, params);\n};\n\nvar distance = function distance(p1, p2) {\n return p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n};\n\nvar traverseEdge = function traverseEdge(points) {\n var prevPoint;\n var totalDistance = 0;\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse half of total distance along points\n\n var remainingDistance = totalDistance / 2;\n var center = undefined;\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n });\n return center;\n};\n\nvar calcLabelPosition = function calcLabelPosition(points) {\n return traverseEdge(points);\n};\n\nvar calcCardinalityPosition = function calcCardinalityPosition(isRelationTypePresent, points, initialPosition) {\n var prevPoint;\n var totalDistance = 0; // eslint-disable-line\n\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse only 25 total distance along points to find cardinality point\n\n var distanceToCardinalityPoint = 25;\n var remainingDistance = distanceToCardinalityPoint;\n var center = {\n x: 0,\n y: 0\n };\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n }); // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n\n var d = isRelationTypePresent ? 10 : 5; //Calculate Angle for x and y axis\n\n var angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n var cardinalityPosition = {\n x: 0,\n y: 0\n }; //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport var getStylesFromArray = function getStylesFromArray(arr) {\n var style = '';\n var labelStyle = '';\n\n for (var i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return {\n style: style,\n labelStyle: labelStyle\n };\n};\nvar cnt = 0;\nexport var generateId = function generateId() {\n cnt++;\n return 'id-' + Math.random().toString(36).substr(2, 12) + '-' + cnt;\n};\nexport var random = function random(options) {\n // return cryptoRandomString(options);\n return 'apa';\n};\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\n\nexport var assignWithDepth = function assignWithDepth(dst, src, config) {\n var _Object$assign = Object.assign({\n depth: 2,\n clobber: false\n }, config),\n depth = _Object$assign.depth,\n clobber = _Object$assign.clobber;\n\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(function (s) {\n return assignWithDepth(dst, s, config);\n });\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(function (s) {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n\n if (typeof src !== 'undefined' && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n Object.keys(src).forEach(function (key) {\n if (_typeof(src[key]) === 'object' && (dst[key] === undefined || _typeof(dst[key]) === 'object')) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n\n dst[key] = assignWithDepth(dst[key], src[key], {\n depth: depth - 1,\n clobber: clobber\n });\n } else if (clobber || _typeof(dst[key]) !== 'object' && _typeof(src[key]) !== 'object') {\n dst[key] = src[key];\n }\n });\n }\n\n return dst;\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\nexport var drawSimpleText = function drawSimpleText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\nexport var wrapLabel = memoize(function (label, maxWidth, config) {\n if (!label) {\n return label;\n }\n\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n joinWith: '
'\n }, config);\n\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n\n var words = label.split(' ');\n var completedLines = [];\n var nextLine = '';\n words.forEach(function (word, index) {\n var wordLength = calculateTextWidth(\"\".concat(word, \" \"), config);\n var nextLineLength = calculateTextWidth(nextLine, config);\n\n if (wordLength > maxWidth) {\n var _breakString = breakString(word, maxWidth, '-', config),\n hyphenatedStrings = _breakString.hyphenatedStrings,\n remainingWord = _breakString.remainingWord;\n\n completedLines.push.apply(completedLines, [nextLine].concat(_toConsumableArray(hyphenatedStrings)));\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n\n var currentWord = index + 1;\n var isLastWord = currentWord === words.length;\n\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(function (line) {\n return line !== '';\n }).join(config.joinWith);\n}, function (label, maxWidth, config) {\n return \"\".concat(label, \"-\").concat(maxWidth, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily, \"-\").concat(config.joinWith);\n});\nvar breakString = memoize(function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 0\n }, config);\n var characters = word.split('');\n var lines = [];\n var currentLine = '';\n characters.forEach(function (character, index) {\n var nextLine = \"\".concat(currentLine).concat(character);\n var lineWidth = calculateTextWidth(nextLine, config);\n\n if (lineWidth >= maxWidth) {\n var currentCharacter = index + 1;\n var isLastLine = characters.length === currentCharacter;\n var hyphenatedNextLine = \"\".concat(nextLine).concat(hyphenCharacter);\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return {\n hyphenatedStrings: lines,\n remainingWord: currentLine\n };\n}, function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n return \"\".concat(word, \"-\").concat(maxWidth, \"-\").concat(hyphenCharacter, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextHeight = function calculateTextHeight(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 15\n }, config);\n return calculateTextDimensions(text, config).height;\n};\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextWidth = function calculateTextWidth(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n return calculateTextDimensions(text, config).width;\n};\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\n\nexport var calculateTextDimensions = memoize(function (text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n var _config = config,\n fontSize = _config.fontSize,\n fontFamily = _config.fontFamily,\n fontWeight = _config.fontWeight;\n\n if (!text) {\n return {\n width: 0,\n height: 0\n };\n } // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n\n\n var fontFamilies = ['sans-serif', fontFamily];\n var lines = text.split(common.lineBreakRegex);\n var dims = [];\n var body = select('body'); // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n\n if (!body.remove) {\n return {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n }\n\n var g = body.append('svg');\n\n for (var _i = 0, _fontFamilies = fontFamilies; _i < _fontFamilies.length; _i++) {\n var _fontFamily = _fontFamilies[_i];\n var cheight = 0;\n var dim = {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var line = _step.value;\n var textObj = getTextObj();\n textObj.text = line;\n var textElem = drawSimpleText(g, textObj).style('font-size', fontSize).style('font-weight', fontWeight).style('font-family', _fontFamily);\n var bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n dims.push(dim);\n }\n\n g.remove();\n var index = isNaN(dims[1].height) || isNaN(dims[1].width) || isNaN(dims[1].lineHeight) || dims[0].height > dims[1].height && dims[0].width > dims[1].width && dims[0].lineHeight > dims[1].lineHeight ? 0 : 1;\n return dims[index];\n}, function (text, config) {\n return \"\".concat(text, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\nexport default {\n assignWithDepth: assignWithDepth,\n wrapLabel: wrapLabel,\n calculateTextHeight: calculateTextHeight,\n calculateTextWidth: calculateTextWidth,\n calculateTextDimensions: calculateTextDimensions,\n detectInit: detectInit,\n detectDirective: detectDirective,\n detectType: detectType,\n isSubstringInArray: isSubstringInArray,\n interpolateToCurve: interpolateToCurve,\n calcLabelPosition: calcLabelPosition,\n calcCardinalityPosition: calcCardinalityPosition,\n formatUrl: formatUrl,\n getStylesFromArray: getStylesFromArray,\n generateId: generateId,\n random: random,\n memoize: memoize,\n runFunc: runFunc\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "index": 2, - "index2": 84, - "size": 19471, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../mermaidAPI", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaidAPI", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../mermaidAPI", - "loc": "14:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "35:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "73:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "79:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "108:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "135:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "147:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "161:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "169:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "190:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "191:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "192:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "encodeEntities", - "decodeEntities", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport { select } from 'd3';\nimport scope from 'scope-css';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nvar themes = {};\n\nfor (var _i = 0, _arr = ['default', 'forest', 'dark', 'neutral']; _i < _arr.length; _i++) {\n var themeName = _arr[_i];\n themes[themeName] = require(\"./themes/\".concat(themeName, \"/index.scss\"));\n}\n\nfunction parse(text) {\n var graphInit = utils.detectInit(text);\n\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n\n var graphType = utils.detectType(text);\n var parser;\n logger.debug('Type ' + graphType);\n\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n\n parser.parser.yy.graphType = graphType;\n\n parser.parser.yy.parseError = function (str, hash) {\n var error = {\n str: str,\n hash: hash\n };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport var encodeEntities = function encodeEntities(text) {\n var txt = text;\n txt = txt.replace(/style.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/#\\w+;/g, function (s) {\n var innerTxt = s.substring(1, s.length - 1);\n var isInt = /^\\+?\\d+$/.test(innerTxt);\n\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n return txt;\n};\nexport var decodeEntities = function decodeEntities(text) {\n var txt = text;\n txt = txt.replace(/fl°°/g, function () {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function () {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function () {\n return ';';\n });\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\n\nvar render = function render(id, _txt, cb, container) {\n var cnf = getConfig(); // Check the maximum allowed text size\n\n var txt = _txt;\n\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n var graphInit = utils.detectInit(txt);\n\n if (graphInit) {\n reinitialize(graphInit);\n assignWithDepth(cnf, getConfig());\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n select(container).append('div').attr('id', 'd' + id).attr('style', 'font-family: ' + cnf.fontFamily).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n } else {\n var existingSvg = document.getElementById(id);\n\n if (existingSvg) {\n existingSvg.remove();\n }\n\n var _element = document.querySelector('#' + 'd' + id);\n\n if (_element) {\n _element.remove();\n }\n\n select('body').append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n var element = select('#d' + id).node();\n var graphType = utils.detectType(txt); // insert inline style into svg\n\n var svg = element.firstChild;\n var firstChild = svg.firstChild; // pre-defined theme\n\n var style = themes[cnf.theme];\n\n if (style === undefined) {\n style = '';\n } // user provided theme CSS\n\n\n if (cnf.themeCSS !== undefined) {\n style += \"\\n\".concat(cnf.themeCSS);\n } // user provided theme CSS\n\n\n if (cnf.fontFamily !== undefined) {\n style += \"\\n:root { --mermaid-font-family: \".concat(cnf.fontFamily, \"}\");\n } // user provided theme CSS\n\n\n if (cnf.altFontFamily !== undefined) {\n style += \"\\n:root { --mermaid-alt-font-family: \".concat(cnf.altFontFamily, \"}\");\n } // classDef\n\n\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n var classes = flowRenderer.getClasses(txt);\n\n for (var className in classes) {\n style += \"\\n.\".concat(className, \" > * { \").concat(classes[className].styles.join(' !important; '), \" !important; }\");\n\n if (classes[className].textStyles) {\n style += \"\\n.\".concat(className, \" tspan { \").concat(classes[className].textStyles.join(' !important; '), \" !important; }\");\n }\n }\n }\n\n var style1 = document.createElement('style');\n style1.innerHTML = scope(style, \"#\".concat(id));\n svg.insertBefore(style1, firstChild); // Verify that the generated svgs are ok before removing this\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n\n sequenceRenderer.draw(txt, id);\n break;\n\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(\"[id=\\\"\".concat(id, \"\\\"]\")).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml'); // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n // Fix for when the base tag is used\n\n var svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n var node = select('#d' + id).node();\n\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id).node().remove();\n }\n\n return svgCode;\n};\n\nvar currentDirective = {};\n\nvar parseDirective = function parseDirective(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\"Error while rendering sequenceDiagram directive: \".concat(statement, \" jison context: \").concat(context));\n logger.error(error.message);\n }\n};\n\nvar handleDirective = function handleDirective(directive, type) {\n logger.debug(\"Directive type=\".concat(directive.type, \" with args:\"), directive.args);\n\n switch (directive.type) {\n case 'init':\n case 'initialize':\n {\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n }\n\n case 'wrap':\n case 'nowrap':\n directive.args = {\n config: {\n wrap: directive.type === 'wrap'\n }\n };\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n\n default:\n logger.warn(\"Unhandled directive: source: '%%{\".concat(directive.type, \": \").concat(JSON.stringify(directive.args ? directive.args : {}), \"}%%\"), directive);\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n console.log(\"mermaidAPI.reinitialize: v\".concat(pkg.version), options); // Set default options\n\n var config = _typeof(options) === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version}`);\n // Set default options\n var config = _typeof(options) === 'object' ? setSiteConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n} // function getConfig () {\n// console.warn('get config')\n// return config\n// }\n\n\nvar mermaidAPI = Object.freeze({\n render: render,\n parse: parse,\n parseDirective: parseDirective,\n initialize: initialize,\n reinitialize: reinitialize,\n getConfig: getConfig,\n getSiteConfig: getSiteConfig,\n reset: function reset() {\n // console.warn('reset');\n configApi.reset();\n var siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: function globalReset() {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *

\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/common/common.js", - "name": "./src/diagrams/common/common.js", - "index": 19, - "index2": 16, - "size": 1849, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 179, - "building": 892 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/common/common", - "loc": "16:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:50-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:98-104" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "55:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "60:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "61:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "111:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "150:53-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "170:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "175:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "209:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "239:21-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "249:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "271:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "279:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "295:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "341:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "391:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "436:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "536:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "568:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "708:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "getRows", - "removeScript", - "sanitizeText", - "lineBreakRegex", - "hasBreaks", - "splitBreaks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "export var getRows = function getRows(s) {\n if (!s) return 1;\n var str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\nexport var removeScript = function removeScript(txt) {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n idx = txt.indexOf('');\n\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n\n return rs;\n};\nexport var sanitizeText = function sanitizeText(text, config) {\n var txt = text;\n var htmlLabels = true;\n if (config.flowchart && (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')) htmlLabels = false;\n\n if (htmlLabels) {\n var level = config.securityLevel;\n\n if (level == 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\nexport var lineBreakRegex = //gi;\nexport var hasBreaks = function hasBreaks(text) {\n return //gi.test(text);\n};\nexport var splitBreaks = function splitBreaks(text) {\n return text.split(//gi);\n};\n\nvar breakToPlaceholder = function breakToPlaceholder(s) {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nvar placeholderToBreak = function placeholderToBreak(s) {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows: getRows,\n sanitizeText: sanitizeText,\n hasBreaks: hasBreaks,\n splitBreaks: splitBreaks,\n lineBreakRegex: lineBreakRegex,\n removeScript: removeScript\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "name": "./src/config.js", - "index": 27, - "index2": 24, - "size": 29029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "7:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "7:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "10:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "11:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "12:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:192-201" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:220-229" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "18:0-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "20:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:92-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:158-167" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "23:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "26:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:162-171" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:144-153" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:208-217" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:246-255" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:219-228" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "44:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:119-128" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:164-173" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "49:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:64-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:98-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:132-141" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "54:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:142-151" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:184-193" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "67:35-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:135-144" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:213-222" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:251-260" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "74:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "82:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "85:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "86:19-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:102-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "97:124-133" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "137:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:176-185" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:255-264" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:108-117" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:150-159" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:178-187" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:249-258" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:277-286" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:306-315" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:196-205" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:224-233" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "156:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "157:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "159:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:128-137" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:165-174" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "172:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "173:241-250" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "198:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "215:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "220:27-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "221:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "227:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "233:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "244:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "248:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "253:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "260:39-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "261:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "265:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "269:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "288:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "289:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "306:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "308:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "326:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "331:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "341:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "354:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:91-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:152-161" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:268-277" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "478:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "510:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:68-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:47-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:72-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "570:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "571:17-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "574:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "575:21-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:20-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "580:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "582:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "584:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:16-25" - } - ], - "usedExports": [ - "getConfig", - "setConfig", - "getSiteConfig", - "setSiteConfig", - "default" - ], - "providedExports": [ - "defaultConfig", - "setSiteConfig", - "getSiteConfig", - "setConfig", - "getConfig", - "sanitize", - "reset", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { assignWithDepth } from './utils';\nimport { logger } from './logger';\n/**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\n\nvar config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeCSS: undefined,\n\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function messageFont() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function noteFont() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function actorFont() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport var defaultConfig = Object.freeze(config);\nvar siteConfig = assignWithDepth({}, defaultConfig);\nvar currentConfig = assignWithDepth({}, defaultConfig);\n/**\n * Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n * the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n * to the defaultConfig\n * Note: currentConfig is set in this function\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\n\nexport var setSiteConfig = function setSiteConfig(conf) {\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n assignWithDepth(siteConfig, conf);\n return getSiteConfig();\n};\n/**\n * Obtains the current siteConfig base configuration\n * @returns {*}\n */\n\nexport var getSiteConfig = function getSiteConfig() {\n return assignWithDepth({}, siteConfig);\n};\n/**\n * Sets the currentConfig. The param conf is sanitized based on the siteConfig.secure keys. Any\n * values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n * siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\n\nexport var setConfig = function setConfig(conf) {\n sanitize(conf);\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * Obtains the currentConfig\n * @returns {*} - the currentConfig\n */\n\nexport var getConfig = function getConfig() {\n return assignWithDepth({}, currentConfig);\n};\n/**\n * Ensures options parameter does not attempt to override siteConfig secure keys\n * Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\n\nexport var sanitize = function sanitize(options) {\n Object.keys(siteConfig.secure).forEach(function (key) {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\"Denied attempt to modify a secure key \".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n * Resets this currentConfig to conf\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\n\nexport var reset = function reset() {\n var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig();\n Object.keys(siteConfig).forEach(function (key) {\n return delete siteConfig[key];\n });\n Object.keys(currentConfig).forEach(function (key) {\n return delete currentConfig[key];\n });\n assignWithDepth(siteConfig, conf, {\n clobber: true\n });\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n};\nvar configApi = Object.freeze({\n sanitize: sanitize,\n setSiteConfig: setSiteConfig,\n getSiteConfig: getSiteConfig,\n setConfig: setConfig,\n getConfig: getConfig,\n reset: reset,\n defaultConfig: defaultConfig\n});\nexport default configApi;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "name": "./src/diagrams/flowchart/flowDb.js", - "index": 26, - "index2": 25, - "size": 18389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "24:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "81:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "83:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "87:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "89:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "272:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "276:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "279:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "292:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "296:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "302:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "305:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "315:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "317:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "329:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "333:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "334:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "348:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "354:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "358:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "359:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "372:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "383:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "392:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "402:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "415:20-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addVertex", - "addSingleLink", - "addLink", - "updateLinkInterpolate", - "updateLink", - "addClass", - "setDirection", - "setClass", - "setLink", - "getTooltip", - "setClickEvent", - "bindFunctions", - "getDirection", - "getVertices", - "getEdges", - "getClasses", - "clear", - "defaultStyle", - "addSubGraph", - "getDepthFirstPos", - "indexNodes", - "getSubGraphs", - "firstGraph", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { select } from 'd3';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common'; // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\n\nvar MERMAID_DOM_ID_PREFIX = '';\nvar config = getConfig();\nvar vertices = {};\nvar edges = [];\nvar classes = [];\nvar subGraphs = [];\nvar subGraphLookup = {};\nvar tooltips = {};\nvar subCount = 0;\nvar firstGraphFlag = true;\nvar direction; // Functions to be run after graph rendering\n\nvar funs = [];\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\n\nexport var addVertex = function addVertex(_id, text, type, style, classes) {\n var txt;\n var id = _id;\n\n if (typeof id === 'undefined') {\n return;\n }\n\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = {\n id: id,\n styles: [],\n classes: []\n };\n }\n\n if (typeof text !== 'undefined') {\n txt = common.sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote\n\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n vertices[id].styles.push(s);\n });\n }\n }\n\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function (s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\n\nexport var addSingleLink = function addSingleLink(_start, _end, type, linktext) {\n var start = _start;\n var end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end; // logger.info('Got edge...', start, end);\n\n var edge = {\n start: start,\n end: end,\n type: undefined,\n text: ''\n };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config); // strip quotes if string starts and exnds with a quote\n\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n\n edges.push(edge);\n};\nexport var addLink = function addLink(_start, _end, type, linktext) {\n var i, j;\n\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\n\nexport var updateLinkInterpolate = function updateLinkInterpolate(positions, interp) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\n\nexport var updateLink = function updateLink(positions, style) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n\n edges[pos].style = style;\n }\n });\n};\nexport var addClass = function addClass(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = {\n id: id,\n styles: [],\n textStyles: []\n };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n if (s.match('color')) {\n var newStyle1 = s.replace('fill', 'bgFill');\n var newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n\n classes[id].styles.push(s);\n });\n }\n }\n};\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nvar setTooltip = function setTooltip(ids, tooltip) {\n ids.split(',').forEach(function (id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nvar setClickFun = function setClickFun(_id, functionName) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, id);\n }, false);\n }\n });\n }\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var getTooltip = function getTooltip(id) {\n return tooltips[id];\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var getDirection = function getDirection() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\n\nexport var getVertices = function getVertices() {\n return vertices;\n};\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\n\nexport var getEdges = function getEdges() {\n return edges;\n};\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\n\nexport var getClasses = function getClasses() {\n return classes;\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var clear = function clear() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\n\nexport var defaultStyle = function defaultStyle() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var addSubGraph = function addSubGraph(_id, list, _title) {\n var id = _id.trim();\n\n var title = _title;\n\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n\n function uniq(a) {\n var prims = {\n boolean: {},\n number: {},\n string: {}\n };\n var objs = [];\n return a.filter(function (item) {\n var type = _typeof(item);\n\n if (item.trim() === '') {\n return false;\n }\n\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true; // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n var nodeList = [];\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n\n for (var i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n var subGraph = {\n id: id,\n nodes: nodeList,\n title: title.trim(),\n classes: []\n };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nvar getPosForId = function getPosForId(id) {\n for (var i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n\n return -1;\n};\n\nvar secCount = -1;\nvar posCrossRef = [];\n\nvar indexNodes2 = function indexNodes2(id, pos) {\n var nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n\n if (secCount > 2000) {\n return;\n }\n\n posCrossRef[secCount] = pos; // Check if match\n\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n var count = 0;\n var posCount = 1;\n\n while (count < nodes.length) {\n var childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)\n\n if (childPos >= 0) {\n var res = indexNodes2(id, childPos);\n\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport var getDepthFirstPos = function getDepthFirstPos(pos) {\n return posCrossRef[pos];\n};\nexport var indexNodes = function indexNodes() {\n secCount = -1;\n\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\nexport var getSubGraphs = function getSubGraphs() {\n return subGraphs;\n};\nexport var firstGraph = function firstGraph() {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n\n return false;\n};\n\nvar destructStartLink = function destructStartLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '<--':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case 'x--':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '<-.':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case 'x-.':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case 'o-.':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case 'x==':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case 'o==':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '--':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '==':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n\n case '-.':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n }\n};\n\nvar destructEndLink = function destructEndLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '--x':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case '-->':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case '<-->':\n return {\n type: 'double_arrow_point',\n stroke: 'normal'\n };\n\n case 'x--x':\n return {\n type: 'double_arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--o':\n return {\n type: 'double_arrow_circle',\n stroke: 'normal'\n };\n\n case 'o.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==>':\n return {\n type: 'double_arrow_point',\n stroke: 'thick'\n };\n\n case 'o==o':\n return {\n type: 'double_arrow_circle',\n stroke: 'thick'\n };\n\n case 'x==x':\n return {\n type: 'double_arrow_cross',\n stroke: 'thick'\n };\n\n case 'x.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case 'x-.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case '<.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case '<-.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case 'o-.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '--o':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '---':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '-.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '-.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '-.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '-.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '==x':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case '==>':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case '==o':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '===':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n }\n};\n\nvar destructLink = function destructLink(_str, _startStr) {\n var info = destructEndLink(_str);\n var startInfo;\n\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n addVertex: addVertex,\n addLink: addLink,\n updateLinkInterpolate: updateLinkInterpolate,\n updateLink: updateLink,\n addClass: addClass,\n setDirection: setDirection,\n setClass: setClass,\n getTooltip: getTooltip,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n getDirection: getDirection,\n getVertices: getVertices,\n getEdges: getEdges,\n getClasses: getClasses,\n clear: clear,\n defaultStyle: defaultStyle,\n addSubGraph: addSubGraph,\n getDepthFirstPos: getDepthFirstPos,\n indexNodes: indexNodes,\n getSubGraphs: getSubGraphs,\n destructLink: destructLink,\n lex: {\n firstGraph: firstGraph\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "index": 45, - "index2": 47, - "size": 14240, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "21:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "280:18-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "314:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "315:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "523:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n break;\n\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n\n try {\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Create the renderer\n\n var Render = dagreD3.render;\n var render = new Render(); // Add custom shapes\n\n flowChartShapes.addToRender(render); // Add our custom arrow - an empty arrowhead\n\n render.arrows().none = function normal(parent, id, edge, type) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n var path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n\n\n render.arrows().normal = function normal(parent, id) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n marker.append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowheadPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n }; // Set up an SVG group so that we can translate the final graph.\n\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g);\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // reposition labels\n\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n var clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n var clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n var xPos = clusterRects[0].x.baseVal.value;\n var yPos = clusterRects[0].y.baseVal.value;\n var _width = clusterRects[0].width.baseVal.value;\n var cluster = select(clusterEl[0]);\n var te = cluster.select('.label');\n te.attr('transform', \"translate(\".concat(xPos + _width / 2, \", \").concat(yPos + 14, \")\"));\n te.attr('id', id + 'Text');\n\n for (var _j = 0; _j < subG.classes.length; _j++) {\n clusterEl[0].classList.add(subG.classes[_j]);\n }\n }\n } // Add label rects for non html labels\n\n\n if (!conf.htmlLabels || true) {\n // eslint-disable-line\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "index": 51, - "index2": 66, - "size": 14132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "22:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "320:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "321:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "524:2-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; //edgeData.id = 'id' + cnt;\n // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n edgeData.arrowType = edge.type;\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) {\n // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n logger.info(edges);\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id); // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n logger.debug(\"new ViewBox 0 0 \".concat(width, \" \").concat(height), \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - g._label.marginy, \")\"));\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"0 0 \".concat(width, \" \").concat(height));\n svg.select('g').attr('transform', \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - svgBounds.y, \")\")); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "name": "./src/diagrams/sequence/sequenceDb.js", - "index": 30, - "index2": 28, - "size": 8123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequenceDb", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "8:12-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "27:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "94:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "360:6-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "parseDirective", - "addActor", - "addMessage", - "addSignal", - "getMessages", - "getActors", - "getActor", - "getActorKeys", - "getTitle", - "getTitleWrapped", - "enableSequenceNumbers", - "showSequenceNumbers", - "setWrap", - "autoWrap", - "clear", - "parseMessage", - "LINETYPE", - "ARROWTYPE", - "PLACEMENT", - "addNote", - "setTitle", - "apply", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\nvar prevActor = undefined;\nvar actors = {};\nvar messages = [];\nvar notes = [];\nvar title = '';\nvar titleWrapped = false;\nvar sequenceNumbersEnabled = false;\nvar wrapEnabled = false;\nexport var parseDirective = function parseDirective(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\nexport var addActor = function addActor(id, name, description) {\n // Don't allow description nulling\n var old = actors[id];\n if (old && name === old.name && description == null) return; // Don't allow null descriptions, either\n\n if (description == null || description.text == null) {\n description = {\n text: name,\n wrap: null\n };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: description.wrap === undefined && autoWrap() || !!description.wrap,\n prevActor: prevActor\n };\n\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nvar activationCount = function activationCount(part) {\n var i;\n var count = 0;\n\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n\n return count;\n};\n\nexport var addMessage = function addMessage(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n answer: answer\n });\n};\nexport var addSignal = function addSignal(idFrom, idTo) {\n var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n text: undefined,\n wrap: undefined\n };\n var messageType = arguments.length > 3 ? arguments[3] : undefined;\n\n if (messageType === LINETYPE.ACTIVE_END) {\n var cnt = activationCount(idFrom.actor);\n\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n var error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: {\n first_line: 1,\n last_line: 1,\n first_column: 1,\n last_column: 1\n },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: messageType\n });\n return true;\n};\nexport var getMessages = function getMessages() {\n return messages;\n};\nexport var getActors = function getActors() {\n return actors;\n};\nexport var getActor = function getActor(id) {\n return actors[id];\n};\nexport var getActorKeys = function getActorKeys() {\n return Object.keys(actors);\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var getTitleWrapped = function getTitleWrapped() {\n return titleWrapped;\n};\nexport var enableSequenceNumbers = function enableSequenceNumbers() {\n sequenceNumbersEnabled = true;\n};\nexport var showSequenceNumbers = function showSequenceNumbers() {\n return sequenceNumbersEnabled;\n};\nexport var setWrap = function setWrap(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\nexport var autoWrap = function autoWrap() {\n return wrapEnabled;\n};\nexport var clear = function clear() {\n actors = {};\n messages = [];\n};\nexport var parseMessage = function parseMessage(str) {\n var _str = str.trim();\n\n var message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? common.hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\nexport var LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\nexport var ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\nexport var PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\nexport var addNote = function addNote(actor, placement, message) {\n var note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap\n }; // Coerce actor into a [to, from, ...] array\n\n var actors = [].concat(actor, actor);\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\nexport var setTitle = function setTitle(titleWrap) {\n title = titleWrap.text;\n titleWrapped = titleWrap.wrap === undefined && autoWrap() || !!titleWrap.wrap;\n};\nexport var apply = function apply(param) {\n if (param instanceof Array) {\n param.forEach(function (item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'setTitle':\n setTitle(param.text);\n break;\n\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\nexport default {\n addActor: addActor,\n addMessage: addMessage,\n addSignal: addSignal,\n autoWrap: autoWrap,\n setWrap: setWrap,\n enableSequenceNumbers: enableSequenceNumbers,\n showSequenceNumbers: showSequenceNumbers,\n getMessages: getMessages,\n getActors: getActors,\n getActor: getActor,\n getActorKeys: getActorKeys,\n getTitle: getTitle,\n parseDirective: parseDirective,\n getConfig: function getConfig() {\n return configApi.getConfig().sequence;\n },\n getTitleWrapped: getTitleWrapped,\n clear: clear,\n parseMessage: parseMessage,\n LINETYPE: LINETYPE,\n ARROWTYPE: ARROWTYPE,\n PLACEMENT: PLACEMENT,\n addNote: addNote,\n setTitle: setTitle,\n apply: apply\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "index": 69, - "index2": 68, - "size": 35513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "25:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "329:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "332:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "335:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "527:4-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "530:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "bounds", - "drawActors", - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\nparser.yy = sequenceDb;\nvar conf = {};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function getHeight() {\n return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map(function (actor) {\n return actor.height || 0;\n })) + (this.loops.length === 0 ? 0 : this.loops.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.messages.length === 0 ? 0 : this.messages.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.notes.length === 0 ? 0 : this.notes.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n }));\n },\n clear: function clear() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function addActor(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function addLoop(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function addMessage(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function addNote(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function lastActor() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function lastLoop() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function lastMessage() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function lastNote() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function init() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function newActivation(message, diagram, actors) {\n var actorRect = actors[message.from.actor];\n var stackedSize = actorActivations(message.from.actor).length || 0;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function endActivation(message) {\n // find most recent activation for given actor\n var lastActorActivationIdx = this.activations.map(function (activation) {\n return activation.actor;\n }).lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function createLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function newLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function endLoop() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function addSectionToLoop(message) {\n var loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({\n y: bounds.getVerticalPos(),\n height: 0\n });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return {\n bounds: this.data,\n models: this.models\n };\n }\n};\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\n\nvar drawNote = function drawNote(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n var rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n var g = elem.append('g');\n var rectElem = svgDraw.drawRect(g, rect);\n var textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n var textElem = drawText(g, textObj);\n var textHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\n\n\nvar drawMessage = function drawMessage(g, msgModel) {\n bounds.bumpVerticalPos(10);\n var startx = msgModel.startx,\n stopx = msgModel.stopx,\n starty = msgModel.starty,\n message = msgModel.message,\n type = msgModel.type,\n sequenceIndex = msgModel.sequenceIndex,\n wrap = msgModel.wrap;\n var lines = common.splitBreaks(message).length;\n var textDims = utils.calculateTextDimensions(message, conf.messageFont());\n var lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n bounds.bumpVerticalPos(lineHeight);\n var textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n drawText(g, textObj);\n var totalOffset = textDims.height - 10;\n var textWidth = textDims.width;\n var line, lineStarty;\n\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n\n if (conf.rightAngles) {\n line = g.append('path').attr('d', \"M \".concat(startx, \",\").concat(lineStarty, \" H \").concat(startx + Math.max(conf.width / 2, textWidth / 2), \" V \").concat(lineStarty + 25, \" H \").concat(startx));\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('path').attr('d', 'M ' + startx + ',' + lineStarty + ' C ' + (startx + 60) + ',' + (lineStarty - 10) + ' ' + (startx + 60) + ',' + (lineStarty + 30) + ' ' + startx + ',' + (lineStarty + 20));\n }\n\n totalOffset += 30;\n var dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + 30 + totalOffset);\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n } // Make an SVG Container\n // Draw the line\n\n\n if (type === parser.yy.LINETYPE.DOTTED || type === parser.yy.LINETYPE.DOTTED_CROSS || type === parser.yy.LINETYPE.DOTTED_OPEN) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n\n line.style('fill', 'none'); // remove any fill colour\n\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n } // add node number\n\n\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text').attr('x', startx).attr('y', lineStarty + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);\n }\n\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport var drawActors = function drawActors(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n var prevWidth = 0;\n var prevMargin = 0;\n\n for (var i = 0; i < actorKeys.length; i++) {\n var actor = actors[actorKeys[i]]; // Add some rendering data to the object\n\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos; // Draw the box with the attached line\n\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n } // Add a margin between the actor boxes and the first arrow\n\n\n bounds.bumpVerticalPos(conf.height);\n};\nexport var setConf = function setConf(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nvar actorActivations = function actorActivations(actor) {\n return bounds.activations.filter(function (activation) {\n return activation.actor === actor;\n });\n};\n\nvar activationBounds = function activationBounds(actor, actors) {\n // handle multiple stacked activations for same actor\n var actorObj = actors[actor];\n var activations = actorActivations(actor);\n var left = activations.reduce(function (acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n var right = activations.reduce(function (acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n var heightAdjust = postMargin;\n\n if (msg.id && msg.message && loopWidths[msg.id]) {\n var loopWidth = loopWidths[msg.id].width;\n var textConf = conf.messageFont();\n msg.message = utils.wrapLabel(\"[\".concat(msg.message, \"]\"), loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true; // const lines = common.splitBreaks(msg.message).length;\n\n var textDims = utils.calculateTextDimensions(msg.message, textConf);\n var totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(\"\".concat(totalOffset, \" - \").concat(msg.message));\n }\n\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(\"C:\".concat(JSON.stringify(conf, null, 2)));\n var diagram = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Fetch data from the parsing\n\n var actors = parser.yy.getActors();\n var actorKeys = parser.yy.getActorKeys();\n var messages = parser.yy.getMessages();\n var title = parser.yy.getTitle();\n var maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n drawActors(diagram, actors, actorKeys, 0);\n var loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor); // The arrow head definition is attached to the svg once\n\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n var activationData = bounds.endActivation(msg);\n\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n\n svgDraw.drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n } // Draw the messages/signals\n\n\n var sequenceIndex = 1;\n messages.forEach(function (msg) {\n var loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, function (message) {\n return bounds.newLoop(undefined, message.message);\n });\n break;\n\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n\n } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n var _bounds$getBounds = bounds.getBounds(),\n box = _bounds$getBounds.bounds; // Adjust line height of actor lines now that the height of the diagram is known\n\n\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n var actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n var width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;'); // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n var extraVertForTitle = title ? 40 : 0;\n diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));\n logger.debug(\"models:\", bounds.models);\n};\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\n\nvar getMaxMessageWidthPerActor = function getMaxMessageWidthPerActor(actors, messages) {\n var maxMessageWidthPerActor = {};\n messages.forEach(function (msg) {\n if (actors[msg.to] && actors[msg.from]) {\n var actor = actors[msg.to]; // If this is the first actor, and the message is left of it, no need to calculate the margin\n\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n } // If this is the last actor, and the message is right of it, no need to calculate the margin\n\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n var isNote = msg.placement !== undefined;\n var isMessage = !isNote;\n var textFont = isNote ? conf.noteFont() : conf.messageFont();\n var wrappedMessage = msg.wrap ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;\n var messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n var messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth);\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth / 2);\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth / 2);\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n }\n }\n }\n });\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\n\n\nvar calculateActorMargins = function calculateActorMargins(actors, actorToMessageWidth) {\n var maxHeight = 0;\n Object.keys(actors).forEach(function (prop) {\n var actor = actors[prop];\n\n if (actor.wrap) {\n actor.description = utils.wrapLabel(actor.description, conf.width - 2 * conf.wrapPadding, conf.actorFont());\n }\n\n var actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (var actorKey in actorToMessageWidth) {\n var actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n var nextActor = actors[actor.nextActor]; // No need to space out an actor that doesn't have a next link\n\n if (!nextActor) {\n continue;\n }\n\n var messageWidth = actorToMessageWidth[actorKey];\n var actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nvar buildNoteModel = function buildNoteModel(msg, actors) {\n var startx = actors[msg.from].x;\n var stopx = actors[msg.to].x;\n var shouldWrap = msg.wrap && msg.message;\n var textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, conf.noteFont());\n var noteModel = {\n width: shouldWrap ? conf.width : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), conf.noteFont()) : msg.message, conf.noteFont());\n noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width = Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) + conf.actorMargin;\n noteModel.startx = startx < stopx ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2 : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(msg.message, noteModel.width - 2 * conf.wrapPadding, conf.noteFont());\n }\n\n logger.debug(\"NM:[\".concat(noteModel.startx, \",\").concat(noteModel.stopx, \",\").concat(noteModel.starty, \",\").concat(noteModel.stopy, \":\").concat(noteModel.width, \",\").concat(noteModel.height, \"=\").concat(msg.message, \"]\"));\n return noteModel;\n};\n\nvar buildMessageModel = function buildMessageModel(msg, actors) {\n var process = false;\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n process = true;\n }\n\n if (!process) {\n return {};\n }\n\n var fromBounds = activationBounds(msg.from, actors);\n var toBounds = activationBounds(msg.to, actors);\n var fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n var toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n var allBounds = fromBounds.concat(toBounds);\n var boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n var msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), conf.messageFont());\n }\n\n return {\n width: Math.max(msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding, boundedWidth + 2 * conf.wrapPadding, conf.width),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nvar calculateLoopBounds = function calculateLoopBounds(messages, actors) {\n var loops = {};\n var stack = [];\n var current, noteModel, msgModel;\n messages.forEach(function (msg) {\n msg.id = utils.random({\n length: 10\n });\n\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n var actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n var stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n var toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n var lastActorActivationIdx = bounds.activations.map(function (a) {\n return a.actor;\n }).lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n\n var isNote = msg.placement !== undefined;\n\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(function (stk) {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width = Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(function (stk) {\n current = stk;\n\n if (msgModel.startx === msgModel.stopx) {\n var from = actors[msg.from];\n var to = actors[msg.to];\n current.from = Math.min(from.x - msgModel.width / 2, from.x - from.width / 2, current.from);\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width = Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds: bounds,\n drawActors: drawActors,\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "name": "./src/diagrams/gantt/ganttDb.js", - "index": 32, - "index2": 30, - "size": 16304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./ganttDb", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "5:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "30:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "99:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "331:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "419:20-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setAxisFormat", - "getAxisFormat", - "setTodayMarker", - "getTodayMarker", - "setDateFormat", - "enableInclusiveEndDates", - "endDatesAreInclusive", - "getDateFormat", - "setExcludes", - "getExcludes", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "findTaskById", - "addTaskOrg", - "setLink", - "setClass", - "setClickEvent", - "bindFunctions", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\nvar dateFormat = '';\nvar axisFormat = '';\nvar todayMarker = '';\nvar excludes = [];\nvar title = '';\nvar sections = [];\nvar tasks = [];\nvar currentSection = '';\nvar tags = ['active', 'done', 'crit', 'milestone'];\nvar funs = [];\nvar inclusiveEndDates = false; // The serial order of the task in the script\n\nvar lastOrder = 0;\nexport var clear = function clear() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\nexport var setAxisFormat = function setAxisFormat(txt) {\n axisFormat = txt;\n};\nexport var getAxisFormat = function getAxisFormat() {\n return axisFormat;\n};\nexport var setTodayMarker = function setTodayMarker(txt) {\n todayMarker = txt;\n};\nexport var getTodayMarker = function getTodayMarker() {\n return todayMarker;\n};\nexport var setDateFormat = function setDateFormat(txt) {\n dateFormat = txt;\n};\nexport var enableInclusiveEndDates = function enableInclusiveEndDates() {\n inclusiveEndDates = true;\n};\nexport var endDatesAreInclusive = function endDatesAreInclusive() {\n return inclusiveEndDates;\n};\nexport var getDateFormat = function getDateFormat() {\n return dateFormat;\n};\nexport var setExcludes = function setExcludes(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\nexport var getExcludes = function getExcludes() {\n return excludes;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsPricessed = compileTasks();\n var maxDepth = 10;\n var iterationCount = 0;\n\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n return tasks;\n};\n\nvar isInvalidDate = function isInvalidDate(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nvar checkTaskDates = function checkTaskDates(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n var startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n var endTime = moment(task.endTime, dateFormat, true);\n var renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nvar fixTaskDates = function fixTaskDates(startTime, endTime, dateFormat, excludes) {\n var invalid = false;\n var renderEndTime = null;\n\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n\n if (invalid) {\n endTime.add(1, 'd');\n }\n\n startTime.add(1, 'd');\n }\n\n return renderEndTime;\n};\n\nvar getStartDate = function getStartDate(prevTime, dateFormat, str) {\n str = str.trim(); // Test for after\n\n var re = /^after\\s+([\\d\\w- ]+)/;\n var afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n var latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function (id) {\n var task = findTaskById(id);\n\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n var dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n } // Check for actual date set\n\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n } // Default date - now\n\n\n return new Date();\n};\n\nvar durationToDate = function durationToDate(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n } // Default date - now\n\n\n return relativeTime.toDate();\n};\n\nvar getEndDate = function getEndDate(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim(); // Check for actual date\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nvar taskCnt = 0;\n\nvar parseId = function parseId(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n\n return idStr;\n}; // id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\n\nvar compileData = function compileData(prevTask, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n var endTimeData = '';\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nvar parseData = function parseData(prevTaskId, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n\n default:\n }\n\n return task;\n};\n\nvar lastTask;\nvar lastTaskID;\nvar rawTasks = [];\nvar taskDb = {};\nexport var addTask = function addTask(descr, data) {\n var rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: {\n data: data\n },\n task: descr,\n classes: []\n };\n var taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n lastOrder++;\n var pos = rawTasks.push(rawTask);\n lastTaskID = rawTask.id; // Store cross ref\n\n taskDb[rawTask.id] = pos - 1;\n};\nexport var findTaskById = function findTaskById(id) {\n var pos = taskDb[id];\n return rawTasks[pos];\n};\nexport var addTaskOrg = function addTaskOrg(descr, data) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n var taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n var task = rawTasks[pos];\n var startTime = '';\n\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd':\n {\n var prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);\n\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\n\n\nexport var setLink = function setLink(ids, _linkStr) {\n var linkStr = _linkStr;\n\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nvar setClickFun = function setClickFun(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n var argList = [];\n\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n\n for (var i = 0; i < argList.length; i++) {\n var item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n\n /* This preserves all starting and ending whitespace inside */\n\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n\n argList[i] = item;\n }\n }\n /* if no arguments passed into callback, default to passing in id */\n\n\n if (argList.length === 0) {\n argList.push(id);\n }\n\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n utils.runFunc.apply(utils, [functionName].concat(_toConsumableArray(argList)));\n });\n }\n};\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\n\n\nvar pushFun = function pushFun(id, callbackFunction) {\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"-text\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\n\n\nexport var setClickEvent = function setClickEvent(ids, functionName, functionArgs) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport default {\n clear: clear,\n setDateFormat: setDateFormat,\n getDateFormat: getDateFormat,\n enableInclusiveEndDates: enableInclusiveEndDates,\n endDatesAreInclusive: endDatesAreInclusive,\n setAxisFormat: setAxisFormat,\n getAxisFormat: getAxisFormat,\n setTodayMarker: setTodayMarker,\n getTodayMarker: getTodayMarker,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n findTaskById: findTaskById,\n addTaskOrg: addTaskOrg,\n setExcludes: setExcludes,\n getExcludes: getExcludes,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n durationToDate: durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n var matchFound = true;\n\n while (matchFound) {\n matchFound = false;\n tags.forEach(function (t) {\n var pattern = '^\\\\s*' + t + '\\\\s*$';\n var regex = new RegExp(pattern);\n\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "name": "./src/diagrams/gantt/ganttRenderer.js", - "index": 71, - "index2": 69, - "size": 12233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "28:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "340:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "341:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "531:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, scaleTime, min, max, scaleLinear, interpolateHcl, axisBottom, timeFormat } from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\nparser.yy = ganttDb;\nvar conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar w;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text);\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var taskArray = parser.yy.getTasks(); // Set height based on number of tasks\n\n var h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Set timescale\n\n var timeScale = scaleTime().domain([min(taskArray, function (d) {\n return d.startTime;\n }), max(taskArray, function (d) {\n return d.endTime;\n })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n var categories = [];\n\n for (var i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n var catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n var taskA = a.startTime;\n var taskB = b.startTime;\n var result = 0;\n\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n\n return result;\n } // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n\n\n taskArray.sort(taskCompare);\n makeGant(taskArray, w, h);\n\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg.append('text').text(parser.yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n var barHeight = conf.barHeight;\n var gap = barHeight + conf.barGap;\n var topPadding = conf.topPadding;\n var leftPadding = conf.leftPadding;\n var colorScale = scaleLinear().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(interpolateHcl);\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n }).attr('width', function () {\n return w - conf.rightPadding / 2;\n }).attr('height', theGap).attr('class', function (d) {\n for (var _i = 0; _i < categories.length; _i++) {\n if (d.type === categories[_i]) {\n return 'section section' + _i % conf.numberSectionStyles;\n }\n }\n\n return 'section section0';\n }); // Draw the rects representing the tasks\n\n var rectangles = svg.append('g').selectAll('rect').data(theArray).enter();\n rectangles.append('rect').attr('id', function (d) {\n return d.id;\n }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {\n if (d.milestone) {\n return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n return timeScale(d.startTime) + theSidePad;\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n }).attr('width', function (d) {\n if (d.milestone) {\n return theBarHeight;\n }\n\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {\n return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';\n }).attr('class', function (d) {\n var res = 'task';\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n\n for (var _i2 = 0; _i2 < categories.length; _i2++) {\n if (d.type === categories[_i2]) {\n secNum = _i2 % conf.numberSectionStyles;\n }\n }\n\n var taskClass = '';\n\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n taskClass += ' ' + classStr;\n return res + taskClass;\n }); // Append task labels\n\n rectangles.append('text').attr('id', function (d) {\n return d.id + '-text';\n }).text(function (d) {\n return d.task;\n }).attr('font-size', conf.fontSize).attr('x', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.renderEndTime || d.endTime);\n\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width; // Check id text width > width of rectangle\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n }).attr('text-height', theBarHeight).attr('class', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.endTime);\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width;\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n console.log(conf);\n\n for (var _i3 = 0; _i3 < categories.length; _i3++) {\n if (d.type === categories[_i3]) {\n secNum = _i3 % conf.numberSectionStyles;\n }\n }\n\n var taskType = '';\n\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n } // Check id text width > width of rectangle\n\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n var xAxis = axisBottom(timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n svg.append('g').attr('class', 'grid').attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')').call(xAxis).selectAll('text').style('text-anchor', 'middle').attr('fill', '#000').attr('stroke', 'none').attr('font-size', 10).attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n var numOccurances = [];\n var prevGap = 0;\n\n for (var _i4 = 0; _i4 < categories.length; _i4++) {\n numOccurances[_i4] = [categories[_i4], getCount(categories[_i4], catsUnfiltered)];\n }\n\n svg.append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text').data(numOccurances).enter().append(function (d) {\n var rows = d[0].split(common.lineBreakRegex);\n var dy = -(rows.length - 1) / 2;\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }).attr('x', 10).attr('y', function (d, i) {\n if (i > 0) {\n for (var j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return d[1] * theGap / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return d[1] * theGap / 2 + theTopPad;\n }\n }).attr('class', function (d) {\n for (var _i5 = 0; _i5 < categories.length; _i5++) {\n if (d[0] === categories[_i5]) {\n return 'sectionTitle sectionTitle' + _i5 % conf.numberSectionStyles;\n }\n }\n\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n var todayMarker = ganttDb.getTodayMarker();\n\n if (todayMarker === 'off') {\n return;\n }\n\n var todayG = svg.append('g').attr('class', 'today');\n var today = new Date();\n var todayLine = todayG.append('line');\n todayLine.attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n\n\n function checkUnique(arr) {\n var hash = {};\n var result = [];\n\n for (var _i6 = 0, l = arr.length; _i6 < l; ++_i6) {\n if (!hash.hasOwnProperty(arr[_i6])) {\n // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[_i6]] = true;\n result.push(arr[_i6]);\n }\n }\n\n return result;\n } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n\n\n function getCounts(arr) {\n var i = arr.length; // const to loop over\n\n var obj = {}; // obj to store results\n\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n\n return obj;\n } // get specific from everything\n\n\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "name": "./src/diagrams/class/classDb.js", - "index": 34, - "index2": 32, - "size": 8112, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "2:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "8:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "9:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "12:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "15:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "18:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classDb", - "loc": "33:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "77:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "91:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "102:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "104:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "115:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "423:20-27" - } - ], - "usedExports": [ - "default", - "lookUpDomId", - "relationType" - ], - "providedExports": [ - "addClass", - "lookUpDomId", - "clear", - "getClass", - "getClasses", - "getRelations", - "addRelation", - "addAnnotation", - "addMember", - "addMembers", - "cleanupLabel", - "setCssClass", - "setLink", - "setClickEvent", - "bindFunctions", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nvar MERMAID_DOM_ID_PREFIX = 'classid-';\nvar config = getConfig();\nvar relations = [];\nvar classes = {};\nvar classCounter = 0;\nvar funs = [];\n\nvar splitClassNameAndType = function splitClassNameAndType(id) {\n var genericType = '';\n var className = id;\n\n if (id.indexOf('~') > 0) {\n var split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return {\n className: className,\n type: genericType\n };\n};\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\n\n\nexport var addClass = function addClass(id) {\n var classId = splitClassNameAndType(id); // Only add class if not exists\n\n if (typeof classes[classId.className] !== 'undefined') return;\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\n\nexport var lookUpDomId = function lookUpDomId(id) {\n var classKeys = Object.keys(classes);\n\n for (var i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\nexport var clear = function clear() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\nexport var getClass = function getClass(id) {\n return classes[id];\n};\nexport var getClasses = function getClasses() {\n return classes;\n};\nexport var getRelations = function getRelations() {\n return relations;\n};\nexport var addRelation = function addRelation(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n relations.push(relation);\n};\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\n\nexport var addAnnotation = function addAnnotation(className, annotation) {\n var validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\n\nexport var addMember = function addMember(className, member) {\n var validatedClassName = splitClassNameAndType(className).className;\n var theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n var memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\nexport var addMembers = function addMembers(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(function (member) {\n return addMember(className, member);\n });\n }\n};\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setCssClass = function setCssClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nvar setClickFunc = function setClickFunc(domId, functionName, tooltip) {\n var id = domId;\n var elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(elemId, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, elemId);\n }, false);\n }\n });\n }\n};\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\nexport default {\n addClass: addClass,\n bindFunctions: bindFunctions,\n clear: clear,\n getClass: getClass,\n getClasses: getClasses,\n addAnnotation: addAnnotation,\n getRelations: getRelations,\n addRelation: addRelation,\n addMember: addMember,\n addMembers: addMembers,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n setClickEvent: setClickEvent,\n setCssClass: setCssClass,\n setLink: setLink,\n lookUpDomId: lookUpDomId\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "index": 72, - "index2": 71, - "size": 5731, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classRenderer", - "loc": "31:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "346:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "347:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "532:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nparser.yy = classDb;\nvar idCache = {};\nvar padding = 20;\nvar conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n}; // Todo optimize\n\nvar getGraphId = function getGraphId(label) {\n var keys = Object.keys(idCache);\n\n for (var i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'extensionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', 'extensionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem.append('defs').append('marker').attr('id', 'compositionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'compositionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n logger.info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var g = new graphlib.Graph({\n multigraph: true\n }); // Set an object for the graph label\n\n g.setGraph({\n isMultiGraph: true\n }); // Default to assigning a new object as a label for each new edge.\n\n g.setDefaultEdgeLabel(function () {\n return {};\n });\n var classes = classDb.getClasses();\n var keys = Object.keys(classes);\n\n for (var i = 0; i < keys.length; i++) {\n var classDef = classes[keys[i]];\n var node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n\n g.setNode(node.id, node);\n logger.info('Org height: ' + node.height);\n }\n\n var relations = classDb.getRelations();\n relations.forEach(function (relation) {\n logger.info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));\n g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {\n relation: relation\n }, relation.title || 'DEFAULT');\n });\n dagre.layout(g);\n g.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');\n }\n });\n g.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n var svgBounds = diagram.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n diagram.attr('viewBox', vBox);\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "name": "./src/diagrams/state/stateDb.js", - "index": 36, - "index2": 34, - "size": 6456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "11:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "26:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "29:9-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateDb", - "loc": "37:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "51:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "109:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "114:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "121:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "122:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "123:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "215:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "218:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "227:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "249:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "251:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "252:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "298:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "301:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "304:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "307:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "332:66-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addState", - "clear", - "getState", - "getStates", - "logDocuments", - "getRelations", - "addRelation", - "cleanupLabel", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nvar clone = function clone(o) {\n return JSON.parse(JSON.stringify(o));\n};\n\nvar rootDoc = [];\n\nvar setRootDoc = function setRootDoc(o) {\n logger.info('Setting root doc', o); // rootDoc = { id: 'root', doc: o };\n\n rootDoc = o;\n};\n\nvar getRootDoc = function getRootDoc() {\n return rootDoc;\n};\n\nvar docTranslator = function docTranslator(parent, node, first) {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n var doc = []; // Check for concurrency\n\n var i = 0;\n var currentDoc = [];\n\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n var newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n } // If any divider was encountered\n\n\n if (doc.length > 0 && currentDoc.length > 0) {\n var _newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(_newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(function (docNode) {\n return docTranslator(node, docNode, true);\n });\n }\n }\n};\n\nvar getRootDocV2 = function getRootDocV2() {\n docTranslator({\n id: 'root'\n }, {\n id: 'root',\n doc: rootDoc\n }, true);\n return {\n id: 'root',\n doc: rootDoc\n };\n};\n\nvar extract = function extract(_doc) {\n // const res = { states: [], relations: [] };\n var doc;\n\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n } // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n\n\n logger.info(doc);\n clear();\n logger.info('Extract', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nvar newDoc = function newDoc() {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nvar documents = {\n root: newDoc()\n};\nvar currentDocument = documents.root;\nvar startCnt = 0;\nvar endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\n\nexport var addState = function addState(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type: type,\n doc: doc,\n note: note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (_typeof(descr) === 'object') {\n descr.forEach(function (des) {\n return addDescription(id, des.trim());\n });\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\nexport var clear = function clear() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n currentDocument = documents.root;\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n\n classes = [];\n};\nexport var getState = function getState(id) {\n return currentDocument.states[id];\n};\nexport var getStates = function getStates() {\n return currentDocument.states;\n};\nexport var logDocuments = function logDocuments() {\n logger.info('Documents = ', documents);\n};\nexport var getRelations = function getRelations() {\n return currentDocument.relations;\n};\nexport var addRelation = function addRelation(_id1, _id2, title) {\n var id1 = _id1;\n var id2 = _id2;\n var type1 = 'default';\n var type2 = 'default';\n\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({\n id1: id1,\n id2: id2,\n title: title\n });\n};\n\nvar addDescription = function addDescription(id, _descr) {\n var theState = currentDocument.states[id];\n var descr = _descr;\n\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nvar dividerCnt = 0;\n\nvar getDividerId = function getDividerId() {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nvar classes = [];\n\nvar getClasses = function getClasses() {\n return classes;\n};\n\nvar getDirection = function getDirection() {\n return 'TB';\n};\n\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar trimColon = function trimColon(str) {\n return str && str[0] === ':' ? str.substr(1).trim() : str.trim();\n};\n\nexport default {\n addState: addState,\n clear: clear,\n getState: getState,\n getStates: getStates,\n getRelations: getRelations,\n getClasses: getClasses,\n getDirection: getDirection,\n addRelation: addRelation,\n getDividerId: getDividerId,\n // addDescription,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n logDocuments: logDocuments,\n getRootDoc: getRootDoc,\n setRootDoc: setRootDoc,\n getRootDocV2: getRootDocV2,\n extract: extract,\n trimColon: trimColon\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "index": 74, - "index2": 74, - "size": 8188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "34:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "352:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "353:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "533:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram'; // import idCache from './id-cache';\n\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\nparser.yy = stateDb; // TODO Move conf object to main conf in mermaidAPI\n\nvar conf;\nvar transformationLog = {};\nexport var setConf = function setConf() {}; // Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL' // ranksep: '20'\n\n }); // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n var rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n var padding = conf.padding;\n var bounds = diagram.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width * 1.75, \"px;\"));\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n } // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n\n\n diagram.attr('viewBox', \"\".concat(bounds.x - conf.padding, \" \").concat(bounds.y - conf.padding, \" \") + width + ' ' + height);\n};\n\nvar getLabelWidth = function getLabelWidth(text) {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nvar renderDoc = function renderDoc(doc, diagram, parentId, altBkg) {\n // // Layout graph, Create a new directed graph\n var graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n var i;\n var edgeFreeDoc = true;\n\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n } // Set an object for the graph label\n\n\n if (parentId) graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true // ranksep: 5,\n // nodesep: 1\n\n });else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n } // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n stateDb.extract(doc);\n var states = stateDb.getStates();\n var relations = stateDb.getRelations();\n var keys = Object.keys(states);\n var first = true;\n\n for (var _i = 0; _i < keys.length; _i++) {\n var stateDef = states[keys[_i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n var node = void 0;\n\n if (stateDef.doc) {\n var sub = diagram.append('g').attr('id', stateDef.id).attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n var boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = {\n y: conf.compositTitleSize\n };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n var _boxBounds = sub.node().getBBox();\n\n node.width = _boxBounds.width;\n node.height = _boxBounds.height; // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n var noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n var note = drawState(diagram, noteDef, graph); // graph.setNode(node.id, node);\n\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n } // graph.setNode(node.id);\n\n\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n var cnt = 0;\n relations.forEach(function (relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(relation.id1, relation.id2, {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n }, 'id' + cnt);\n });\n dagre.layout(graph);\n logger.debug('Graph after layout', graph.nodes());\n var svgElem = diagram.node();\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + ' )');\n select('#' + svgElem.id + ' #' + v).attr('data-x-shift', graph.node(v).x - graph.node(v).width / 2);\n var dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(function (divider) {\n var parent = divider.parentElement;\n var pWidth = 0;\n var pShift = 0;\n\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n var stateBox = svgElem.getBBox();\n graph.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n stateBox = svgElem.getBBox();\n var stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "name": "./src/diagrams/state/stateRenderer-v2.js", - "index": 77, - "index2": 75, - "size": 9719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "35:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "358:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "359:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "534:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\nvar nodeDb = {};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nvar setupNode = function setupNode(g, parent, node, altFlag) {\n // Add the node\n if (node.id !== 'root') {\n var shape = 'rect';\n\n if (node.start === true) {\n shape = 'start';\n }\n\n if (node.start === false) {\n shape = 'end';\n }\n\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape: shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n } // Build of the array of description strings accordinging\n\n\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n } // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n // group\n\n\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes = nodeDb[node.id].classes + ' ' + (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n var nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n\n if (node.note) {\n // Todo: set random id\n var noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note',\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n var groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n\n };\n g.setNode(node.id + '----parent', groupData);\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n var from = node.id;\n var to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\n\nvar cnt = 0;\n\nvar setupDoc = function setupDoc(g, parent, doc, altFlag) {\n logger.trace('items', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n var edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowType: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n var startId = item.state1.id;\n var endId = item.state2.id;\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Fetch the default direction, use TD if none was found\n\n\n var dir = stateDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n var conf = getConfig().state;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true); // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n var padding = 8; // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n var bounds = svg.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2; // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n // Zoom in a bit\n\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram'); // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n var svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\nexport default {\n setConf: setConf,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "name": "./src/diagrams/git/gitGraphAst.js", - "index": 25, - "index2": 23, - "size": 6939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./gitGraphAst", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "40:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "77:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "238:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "243:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "245:20-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "246:21-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "247:19-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setDirection", - "setOptions", - "getOptions", - "commit", - "branch", - "merge", - "checkout", - "reset", - "prettyPrint", - "clear", - "getBranchesAsObjArray", - "getBranches", - "getCommits", - "getCommitsArray", - "getCurrentBranch", - "getDirection", - "getHead", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { logger } from '../../logger';\nvar commits = {};\nvar head = null;\nvar branches = {\n master: head\n};\nvar curBranch = 'master';\nvar direction = 'LR';\nvar seq = 0;\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n}\n\nfunction getId() {\n return makeid(7);\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n var currentSeq = currentCommit.seq;\n var otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n var recordMap = Object.create(null);\n return list.reduce(function (out, item) {\n var key = fn(item);\n\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n\n return out;\n }, []);\n}\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n};\nvar options = {};\nexport var setOptions = function setOptions(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\nexport var getOptions = function getOptions() {\n return options;\n};\nexport var commit = function commit(msg) {\n var commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\nexport var branch = function branch(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\nexport var merge = function merge(otherBranch) {\n var currentCommit = commits[branches[curBranch]];\n var otherCommit = commits[branches[otherBranch]];\n\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n var _commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = _commit;\n commits[_commit.id] = _commit;\n branches[curBranch] = _commit.id;\n }\n\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\nexport var checkout = function checkout(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n var id = branches[curBranch];\n head = commits[id];\n};\nexport var reset = function reset(commitRef) {\n logger.debug('in reset', commitRef);\n var ref = commitRef.split(':')[0];\n var parentCount = parseInt(commitRef.split(':')[1]);\n var commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n\n if (!commit) {\n var err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n var index = arr.indexOf(key);\n\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n var commit = commitArr.reduce(function (out, commit) {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n var line = '';\n commitArr.forEach(function (c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n var label = [line, commit.id, commit.seq];\n\n for (var _branch in branches) {\n if (branches[_branch] === commit.id) label.push(_branch);\n }\n\n logger.debug(label.join(' '));\n\n if (Array.isArray(commit.parent)) {\n var newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n var nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n\n commitArr = uniqBy(commitArr, function (c) {\n return c.id;\n });\n prettyPrintCommitHistory(commitArr);\n}\n\nexport var prettyPrint = function prettyPrint() {\n logger.debug(commits);\n var node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\nexport var clear = function clear() {\n commits = {};\n head = null;\n branches = {\n master: head\n };\n curBranch = 'master';\n seq = 0;\n};\nexport var getBranchesAsObjArray = function getBranchesAsObjArray() {\n var branchArr = [];\n\n for (var _branch2 in branches) {\n branchArr.push({\n name: _branch2,\n commit: commits[branches[_branch2]]\n });\n }\n\n return branchArr;\n};\nexport var getBranches = function getBranches() {\n return branches;\n};\nexport var getCommits = function getCommits() {\n return commits;\n};\nexport var getCommitsArray = function getCommitsArray() {\n var commitArr = Object.keys(commits).map(function (key) {\n return commits[key];\n });\n commitArr.forEach(function (o) {\n logger.debug(o.id);\n });\n commitArr.sort(function (a, b) {\n return b.seq - a.seq;\n });\n return commitArr;\n};\nexport var getCurrentBranch = function getCurrentBranch() {\n return curBranch;\n};\nexport var getDirection = function getDirection() {\n return direction;\n};\nexport var getHead = function getHead() {\n return head;\n};\nexport default {\n setDirection: setDirection,\n setOptions: setOptions,\n getOptions: getOptions,\n commit: commit,\n branch: branch,\n merge: merge,\n checkout: checkout,\n reset: reset,\n prettyPrint: prettyPrint,\n clear: clear,\n getBranchesAsObjArray: getBranchesAsObjArray,\n getBranches: getBranches,\n getCommits: getCommits,\n getCommitsArray: getCommitsArray,\n getCurrentBranch: getCurrentBranch,\n getDirection: getDirection,\n getHead: getHead\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "name": "./src/diagrams/git/gitGraphRenderer.js", - "index": 50, - "index2": 48, - "size": 9304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "38:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "308:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "309:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "522:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { curveBasis, line, select } from 'd3';\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\nvar allCommitsDict = {};\nvar branchNum;\nvar config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nvar apiConfig = {};\nexport var setConf = function setConf(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);\n svg.select('#def-commit').append('foreignObject').attr('width', config.nodeLabel.width).attr('height', config.nodeLabel.height).attr('x', config.nodeLabel.x).attr('y', config.nodeLabel.y).attr('class', 'node-label').attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility').append('p').html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n var curve = interpolateToCurve(interpolate, curveBasis);\n var color = config.branchColors[colorIdx % config.branchColors.length];\n var lineGen = line().x(function (d) {\n return Math.round(d.x);\n }).y(function (d) {\n return Math.round(d.y);\n }).curve(curve);\n svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');\n} // Pass in the element and its pre-transform coords\n\n\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n var ctm = element.node().getCTM();\n var xn = ctm.e + coords.x * ctm.a;\n var yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n var fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n var toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n var lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n var lineEnd = {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: lineStart.y\n }, lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n }, {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }], color);\n }\n\n break;\n\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n var _lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n var _lineEnd = {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n };\n svgDrawLine(svg, [_lineStart, _lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: _lineStart.y - config.nodeSpacing / 2\n }, _lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }], color);\n }\n\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg.select(selector).node().cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n var commit;\n var numCommits = Object.keys(allCommitsDict).length;\n\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n\n svg.append(function () {\n return cloneNode(svg, '#def-commit');\n }).attr('class', 'commit').attr('id', function () {\n return 'node-' + commit.id;\n }).attr('transform', function () {\n switch (direction) {\n case 'LR':\n return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';\n\n case 'BT':\n return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';\n }\n }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);\n var branch = void 0;\n\n for (var branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');\n }\n\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);\n\n if (commit.message !== '' && direction === 'BT') {\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);\n }\n\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver); // Parse the graph definition\n\n parser.parse(txt + '\\n');\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n var direction = db.getDirection();\n allCommitsDict = db.getCommits();\n var branches = db.getBranchesAsObjArray();\n\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\"));\n svgCreateDefs(svg);\n branchNum = 1;\n\n for (var branch in branches) {\n var v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n\n svg.attr('height', function () {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "name": "./src/diagrams/info/infoDb.js", - "index": 38, - "index2": 36, - "size": 645, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./infoDb", - "loc": "5:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "./infoDb", - "loc": "24:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoDb", - "loc": "44:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoDb", - "loc": "120:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setMessage", - "getMessage", - "setInfo", - "getInfo", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\nvar message = '';\nvar info = false;\nexport var setMessage = function setMessage(txt) {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\nexport var getMessage = function getMessage() {\n return message;\n};\nexport var setInfo = function setInfo(inf) {\n info = inf;\n};\nexport var getInfo = function getInfo() {\n return info;\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage: setMessage,\n getMessage: getMessage,\n setInfo: setInfo,\n getInfo: getInfo // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "name": "./src/diagrams/info/infoRenderer.js", - "index": 78, - "index2": 76, - "size": 1276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "41:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "364:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "365:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "535:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt); // Parse the graph definition\n\n parser.parse(txt);\n logger.debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found\n\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('text') // text label for the x axis\n .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "name": "./src/errorRenderer.js", - "index": 85, - "index2": 83, - "size": 2972, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./errorRenderer", - "loc": "42:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "386:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "539:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(id, ver) {\n try {\n logger.debug('Renering svg for syntax error\\n');\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('path').attr('class', 'error-icon').attr('d', 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1240).attr('y', 250).attr('font-size', '150px').style('text-anchor', 'middle').text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1050).attr('y', 400).attr('font-size', '100px').style('text-anchor', 'middle').text('mermaid version ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "name": "./src/diagrams/pie/pieDb.js", - "index": 40, - "index2": 38, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./pieDb", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "25:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieDb", - "loc": "47:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "55:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieDb", - "loc": "126:25-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar sections = {};\nvar title = '';\n\nvar addSection = function addSection(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\n\nvar getSections = function getSections() {\n return sections;\n};\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar cleanupValue = function cleanupValue(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nvar clear = function clear() {\n sections = {};\n title = '';\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\n\nexport default {\n addSection: addSection,\n getSections: getSections,\n cleanupValue: cleanupValue,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "name": "./src/diagrams/pie/pieRenderer.js", - "index": 80, - "index2": 78, - "size": 3794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "45:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "370:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "371:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "536:2-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\n\nvar w;\nexport var draw = function draw(txt, id) {\n try {\n var parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt); // Parse the Pie Chart definition\n\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var h = 450;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h); // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n var radius = Math.min(width, height) / 2 - margin;\n var svg = select('#' + id).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function (key) {\n sum += data[key];\n });\n logger.info(data); // set the color scale\n\n var color = scaleOrdinal().domain(data).range(schemeSet2); // Compute the position of each group on the pie:\n\n var pie = d3pie().value(function (d) {\n return d.value;\n });\n var dataReady = pie(entries(data)); // shape helper to build arcs:\n\n var arcGenerator = arc().innerRadius(0).outerRadius(radius); // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n\n svg.selectAll('mySlices').data(dataReady).enter().append('path').attr('d', arcGenerator).attr('fill', function (d) {\n return color(d.data.key);\n }).attr('stroke', 'black').style('stroke-width', '2px').style('opacity', 0.7); // Now add the Percentage. Use the centroid method to get the best coordinates\n\n svg.selectAll('mySlices').data(dataReady).enter().append('text').text(function (d) {\n return (d.data.value / sum * 100).toFixed(0) + '%';\n }).attr('transform', function (d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n }).style('text-anchor', 'middle').attr('class', 'slice').style('font-size', 17);\n svg.append('text').text(parser.yy.getTitle()).attr('x', 0).attr('y', -(h - 50) / 2).attr('class', 'pieTitleText'); //Add the slegend/annotations for each section\n\n var legend = svg.selectAll('.legend').data(color.domain()).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = height * color.domain().length / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n legend.append('rect').attr('width', legendRectSize).attr('height', legendRectSize).style('fill', color).style('stroke', color);\n legend.append('text').attr('x', legendRectSize + legendSpacing).attr('y', legendRectSize - legendSpacing).text(function (d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "name": "./src/diagrams/er/erDb.js", - "index": 42, - "index2": 40, - "size": 1728, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erDb", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erDb", - "loc": "48:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "115:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "132:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erDb", - "loc": "132:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "136:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "140:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "144:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "150:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "154:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "158:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "162:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "189:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "191:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "239:38-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "242:39-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar entities = {};\nvar relationships = [];\nvar title = '';\nvar Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\nvar Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nvar addEntity = function addEntity(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nvar getEntities = function getEntities() {\n return entities;\n};\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\n\n\nvar addRelationship = function addRelationship(entA, rolA, entB, rSpec) {\n var rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nvar getRelationships = function getRelationships() {\n return relationships;\n}; // Keep this - TODO: revisit...allow the diagram to have a title\n\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar clear = function clear() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality: Cardinality,\n Identification: Identification,\n addEntity: addEntity,\n getEntities: getEntities,\n addRelationship: addRelationship,\n getRelationships: getRelationships,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "index": 81, - "index2": 80, - "size": 11270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erRenderer", - "loc": "50:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "375:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "376:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "537:2-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\nvar conf = {};\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\n\nvar drawEntities = function drawEntities(svgNode, entities, graph) {\n var keys = Object.keys(entities);\n var firstOne;\n keys.forEach(function (id) {\n // Create a group for each entity\n var groupNode = svgNode.append('g').attr('id', id);\n firstOne = firstOne === undefined ? id : firstOne; // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n\n var textId = 'entity-' + id;\n var textNode = groupNode.append('text').attr('class', 'er entityLabel').attr('id', textId).attr('x', 0).attr('y', 0).attr('dominant-baseline', 'middle').attr('text-anchor', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(id); // Calculate the width and height of the entity\n\n var textBBox = textNode.node().getBBox();\n var entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n var entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2); // Make sure the text gets centred relative to the entity box\n\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')'); // Draw the rectangle - insert it before the text so that the text is not obscured\n\n var rectNode = groupNode.insert('rect', '#' + textId).attr('class', 'er entityBox').attr('fill', conf.fill).attr('fill-opacity', '100%').attr('stroke', conf.stroke).attr('x', 0).attr('y', 0).attr('width', entityWidth).attr('height', entityHeight);\n var rectBBox = rectNode.node().getBBox(); // Add the entity to the graph\n\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\n\nvar adjustEntities = function adjustEntities(svgNode, graph) {\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode.select('#' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y - graph.node(v).height / 2) + ' )');\n }\n });\n return;\n};\n\nvar getEdgeName = function getEdgeName(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\n\n\nvar addRelationships = function addRelationships(relationships, g) {\n relationships.forEach(function (r) {\n g.setEdge(r.entityA, r.entityB, {\n relationship: r\n }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\n\nvar relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\n\nvar drawRelationshipFromLayout = function drawRelationshipFromLayout(svg, rel, g, insert) {\n relCnt++; // Find the edge relating to this relationship\n\n var edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel)); // Get a function that will generate the line path\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Insert the line at the right place\n\n var svgPath = svg.insert('path', '#' + insert).attr('class', 'er relationshipLine').attr('d', lineFunction(edge.points)).attr('stroke', conf.stroke).attr('fill', 'none'); // ...and with dashes if necessary\n\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n } // TODO: Understand this better\n\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n } // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n\n\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n } // Now label the relationship\n // Find the half-way point\n\n\n var len = svgPath.node().getTotalLength();\n var labelPoint = svgPath.node().getPointAtLength(len * 0.5); // Append a text node containing the label\n\n var labelId = 'rel' + relCnt;\n var labelNode = svg.append('text').attr('class', 'er relationshipLabel').attr('id', labelId).attr('x', labelPoint.x).attr('y', labelPoint.y).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(rel.roleA); // Figure out how big the opaque 'container' rectangle needs to be\n\n var labelBBox = labelNode.node().getBBox(); // Insert the opaque rectangle before the text label\n\n svg.insert('rect', '#' + labelId).attr('class', 'er relationshipLabelBox').attr('x', labelPoint.x - labelBBox.width / 2).attr('y', labelPoint.y - labelBBox.height / 2).attr('width', labelBBox.width).attr('height', labelBBox.height).attr('fill', 'white').attr('fill-opacity', '85%');\n return;\n};\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n var parser = erParser.parser;\n parser.yy = erDb; // Parse the text to populate erDb\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Get a reference to the svg node that contains the text\n\n\n var svg = select(\"[id='\".concat(id, \"']\")); // Add cardinality marker definitions to the svg\n\n erMarkers.insertMarkers(svg, conf); // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n // Create the graph\n\n var g; // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n }).setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n }).setDefaultEdgeLabel(function () {\n return {};\n }); // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n\n var firstEntity = drawEntities(svg, erDb.getEntities(), g); // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n // Add all the relationships to the graph\n\n var relationships = addRelationships(erDb.getRelationships(), g);\n dagre.layout(g); // Node and edge positions will be updated\n // Adjust the positions of the entities so that they adhere to the layout\n\n adjustEntities(svg, g); // Draw the relationships\n\n relationships.forEach(function (rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height));\n}; // draw\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyDb.js", - "name": "./src/diagrams/user-journey/journeyDb.js", - "index": 44, - "index2": 42, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./journeyDb", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./journeyDb", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "52:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "138:25-34" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "addTaskOrg", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar title = '';\nvar currentSection = '';\nvar sections = [];\nvar tasks = [];\nvar rawTasks = [];\nexport var clear = function clear() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsProcessed = compileTasks();\n var maxDepth = 100;\n var iterationCount = 0;\n\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push.apply(tasks, rawTasks);\n return tasks;\n};\n\nvar updateActors = function updateActors() {\n var tempActors = [];\n tasks.forEach(function (task) {\n if (task.people) {\n tempActors.push.apply(tempActors, _toConsumableArray(task.people));\n }\n });\n var unique = new Set(tempActors);\n return _toConsumableArray(unique).sort();\n};\n\nexport var addTask = function addTask(descr, taskData) {\n var pieces = taskData.substr(1).split(':');\n var score = 0;\n var peeps = [];\n\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n\n var peopleList = peeps.map(function (s) {\n return s.trim();\n });\n var rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score: score\n };\n rawTasks.push(rawTask);\n};\nexport var addTaskOrg = function addTaskOrg(descr) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n\nvar getActors = function getActors() {\n return updateActors();\n};\n\nexport default {\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n addTaskOrg: addTaskOrg,\n getActors: getActors\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "index": 83, - "index2": 82, - "size": 7798, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "53:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "380:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "381:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "538:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "bounds", - "drawTasks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\nparser.yy = journeyDb;\nvar conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n // width of activation box\n activationWidth: 10,\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n var yPos = 60;\n Object.keys(actors).forEach(function (person) {\n var colour = actors[person];\n var circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n var labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person\n };\n svgDraw.drawText(diagram, labelData);\n yPos += 20;\n });\n}\n\nvar LEFT_MARGIN = conf.leftMargin;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n bounds.init();\n var diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDraw.initGraphics(diagram);\n var tasks = parser.yy.getTasks();\n var title = parser.yy.getTitle();\n var actorNames = parser.yy.getActors();\n\n for (var member in actors) {\n delete actors[member];\n }\n\n var actorPos = 0;\n actorNames.forEach(function (actorName) {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n drawTasks(diagram, tasks, 0);\n var box = bounds.getBounds();\n\n if (title) {\n diagram.append('text').text(title).attr('x', LEFT_MARGIN).attr('font-size', '4ex').attr('font-weight', 'bold').attr('y', 25);\n }\n\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n var width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Draw activity line\n\n\n diagram.append('line').attr('x1', LEFT_MARGIN).attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4).attr('stroke-width', 4).attr('stroke', 'black').attr('marker-end', 'url(#arrowhead)');\n var extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', \"\".concat(box.startx, \" -25 \").concat(width, \" \").concat(height + extraVertForTitle));\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n init: function init() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return this.data;\n }\n};\nvar fills = conf.sectionFills;\nvar textColours = conf.sectionColours;\nexport var drawTasks = function drawTasks(diagram, tasks, verticalPos) {\n var lastSection = '';\n var sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n var taskPos = verticalPos + sectionVHeight;\n var sectionNumber = 0;\n var fill = '#CCC';\n var colour = 'black'; // Draw the tasks\n\n for (var i = 0; i < tasks.length; i++) {\n var task = tasks[i];\n\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n colour = textColours[sectionNumber % textColours.length];\n var section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill: fill,\n colour: colour\n };\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n } // Collect the actors involved in the task\n\n\n var taskActors = task.people.reduce(function (acc, actorName) {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {}); // Add some rendering data to the object\n\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.actors = taskActors; // Draw the box with the attached line\n\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowChartShapes.js", - "name": "./src/diagrams/flowchart/flowChartShapes.js", - "index": 49, - "index2": 46, - "size": 7760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowChartShapes", - "loc": "11:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowChartShapes", - "loc": "352:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addToRender", - "addToRenderV2", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var s = (w + h) * 0.9;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n var shapeSvg = insertPolygonShape(parent, s, s, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n var f = 4;\n var h = bbox.height;\n var m = h / f;\n var w = bbox.width + 2 * m;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n var h = bbox.height;\n var w = bbox.width + h / 4;\n var shapeSvg = parent.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n\n node.intersect = function (point) {\n return dagreD3.intersect.rect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n var w = bbox.width;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var shapeSvg = parent.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function (point) {\n var pos = dagreD3.intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_right = lean_right; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_left = lean_left; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().trapezoid = trapezoid; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().inv_trapezoid = inv_trapezoid; // Add custom shape for box with inverted arrow on right side\n\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\nexport function addToRenderV2(addShape) {\n addShape({\n question: question\n });\n addShape({\n hexagon: hexagon\n });\n addShape({\n stadium: stadium\n });\n addShape({\n subroutine: subroutine\n });\n addShape({\n cylinder: cylinder\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n rect_left_inv_arrow: rect_left_inv_arrow\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_right: lean_right\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_left: lean_left\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n trapezoid: trapezoid\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n inv_trapezoid: inv_trapezoid\n }); // Add custom shape for box with inverted arrow on right side\n\n addShape({\n rect_right_inv_arrow: rect_right_inv_arrow\n });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender: addToRender,\n addToRenderV2: addToRenderV2\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "index": 52, - "index2": 65, - "size": 5901, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "257:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "380:2-8" - } - ], - "usedExports": [ - "render" - ], - "providedExports": [ - "render" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport { clear as clearGraphlib, clusterDb, adjustClustersAndEdges, findNonClusterChild } from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nvar recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n var dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n\n\n if (!graph.nodes()) {\n log.trace('No nodes found for', graph);\n } else {\n log.trace('Recursive render', graph.nodes());\n }\n\n if (graph.edges().length > 0) {\n log.trace('Recursive edges', graph.edge(graph.edges()[0]));\n }\n\n var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n\n var edgePaths = elem.insert('g').attr('class', 'edgePaths');\n var edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n\n if (typeof parentCluster !== 'undefined') {\n var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true;\n\n log.trace('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n\n log.trace('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.trace('Cluster identified', v, node, graph.node(v));\n var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.trace('Cluster - the non recursive path', v, node.id, node, graph);\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = {\n id: findNonClusterChild(node.id, graph),\n node: node\n }; // insertCluster(clusters, graph.node(v));\n } else {\n log.trace('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n }); // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e.v, e.w, e.name);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n graph.edges().forEach(function (e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.trace('Graph after layout:', graphlib.json.write(graph)); // Move the nodes to the correct place\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n log.trace('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height);\n\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n }); // Move the edge labels to the correct place after layout\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n var updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n return elem;\n};\n\nexport var render = function render(elem, graph, markers, diagramtype, id) {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n}; // const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "name": "./src/diagrams/sequence/svgDraw.js", - "index": 70, - "index2": 67, - "size": 15081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/sequence/sequenceRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1532, - "building": 996, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "152:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "228:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "234:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "235:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "284:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "299:2-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "385:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "474:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "475:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "476:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "486:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "517:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "530:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "543:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "562:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "581:8-15" - } - ], - "usedExports": [ - "default", - "drawText" - ], - "providedExports": [ - "drawRect", - "drawText", - "drawLabel", - "drawActor", - "anchorElement", - "drawActivation", - "drawLoop", - "drawBackgroundRect", - "insertArrowHead", - "insertSequenceNumber", - "insertArrowCrossHead", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import common from '../common/common';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawText = function drawText(elem, textData) {\n var prevTextHeight = 0,\n textHeight = 0;\n var lines = textData.wrap ? textData.text.split(common.lineBreakRegex) : [textData.text.replace(common.lineBreakRegex, ' ')];\n var textElems = [];\n var dy = 0;\n\n var yfunc = function yfunc() {\n return textData.y;\n };\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = function yfunc() {\n return Math.round(textData.y + textData.textMargin);\n };\n\n break;\n\n case 'middle':\n case 'center':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n };\n\n break;\n\n case 'bottom':\n case 'end':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin);\n };\n\n break;\n }\n }\n\n if (typeof textData.anchor !== 'undefined' && typeof textData.textMargin !== 'undefined' && typeof textData.width !== 'undefined') {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n\n if (typeof textData.textMargin !== 'undefined' && textData.textMargin === 0 && typeof textData.fontSize !== 'undefined') {\n dy = i * textData.fontSize;\n }\n\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n\n if (typeof textData.anchor !== 'undefined') {\n textElem.attr('text-anchor', textData.anchor).attr('dominant-baseline', textData.dominantBaseline).attr('alignment-baseline', textData.alignmentBaseline);\n }\n\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n var span = textElem.append('tspan');\n span.attr('x', textData.x);\n\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n\n span.text(line);\n } else {\n textElem.text(line);\n }\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.height / 2;\n drawText(elem, txtObject);\n return polygon;\n};\nvar actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\n\nexport var drawActor = function drawActor(elem, actor, conf) {\n var center = actor.x + actor.width / 2;\n var g = elem.append('g');\n\n if (actor.y === 0) {\n actorCnt++;\n g.append('line').attr('id', 'actor' + actorCnt).attr('x1', center).attr('y1', 5).attr('x2', center).attr('y2', 2000).attr('class', 'actor-line').attr('stroke-width', '0.5px').attr('stroke', '#999');\n }\n\n var rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(actor.description, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'actor'\n }, conf);\n};\nexport var anchorElement = function anchorElement(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\n\nexport var drawActivation = function drawActivation(elem, bounds, verticalPos, conf, actorActivations) {\n var rect = getNoteRect();\n var g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2\n\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\n\nexport var drawLoop = function drawLoop(elem, loopModel, labelText, conf) {\n var boxMargin = conf.boxMargin,\n boxTextMargin = conf.boxTextMargin,\n labelBoxHeight = conf.labelBoxHeight,\n labelBoxWidth = conf.labelBoxWidth,\n fontFamily = conf.messageFontFamily,\n fontSize = conf.messageFontSize,\n fontWeight = conf.messageFontWeight;\n var g = elem.append('g');\n\n var drawLoopLine = function drawLoopLine(startx, starty, stopx, stopy) {\n return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');\n };\n\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function (item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style('stroke-dasharray', '3, 3');\n });\n }\n\n var txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n var textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function (item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n var sectionHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowHead = function insertArrowHead(elem) {\n elem.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\n\nexport var insertSequenceNumber = function insertSequenceNumber(elem) {\n elem.append('defs').append('marker').attr('id', 'sequencenumber').attr('refX', 15).attr('refY', 15).attr('markerWidth', 60).attr('markerHeight', 40).attr('orient', 'auto').append('circle').attr('cx', 15).attr('cy', 15).attr('r', 6); // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowCrossHead = function insertArrowCrossHead(elem) {\n var defs = elem.append('defs');\n var marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow\n\n marker.append('path').attr('fill', 'black').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 9,2 V 6 L16,4 Z'); // The cross\n\n marker.append('path').attr('fill', 'none').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); // this is actual shape for arrowhead\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n var actorFontSize = conf.actorFontSize,\n actorFontFamily = conf.actorFontFamily,\n actorFontWeight = conf.actorFontWeight;\n var lines = content.split(common.lineBreakRegex);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-weight', actorFontWeight).style('font-family', actorFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n var s = g.append('switch');\n var f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) {\n // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nexport default {\n drawRect: drawRect,\n drawText: drawText,\n drawLabel: drawLabel,\n drawActor: drawActor,\n anchorElement: anchorElement,\n drawActivation: drawActivation,\n drawLoop: drawLoop,\n drawBackgroundRect: drawBackgroundRect,\n insertArrowHead: insertArrowHead,\n insertSequenceNumber: insertSequenceNumber,\n insertArrowCrossHead: insertArrowCrossHead,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "name": "./src/diagrams/class/svgDraw.js", - "index": 73, - "index2": 70, - "size": 11509, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1802, - "building": 543, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "7:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "82:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "108:6-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawEdge", - "drawClass", - "parseMember", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation, conf) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n\n case relationType.EXTENSION:\n return 'extension';\n\n case relationType.COMPOSITION:\n return 'composition';\n\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n\n if (relation.relation.type1 !== 'none') {\n svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');\n }\n\n if (relation.relation.type2 !== 'none') {\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');\n }\n\n var x, y;\n var l = path.points.length; // Calculate Label position\n\n var labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n var p1_card_x, p1_card_y;\n var p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n var cardinality_1_point = utils.calcCardinalityPosition(relation.relation.type1 !== 'none', path.points, path.points[0]);\n var cardinality_2_point = utils.calcCardinalityPosition(relation.relation.type2 !== 'none', path.points, path.points[l - 1]);\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n var g = elem.append('g').attr('class', 'classLabel');\n var label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);\n window.label = label;\n var bounds = label.node().getBBox();\n g.insert('rect', ':first-child').attr('class', 'box').attr('x', bounds.x - conf.padding / 2).attr('y', bounds.y - conf.padding / 2).attr('width', bounds.width + conf.padding).attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n var _g = elem.append('g').attr('class', 'cardinality');\n\n _g.append('text').attr('class', 'type1').attr('x', p1_card_x).attr('y', p1_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle1);\n }\n\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n var _g2 = elem.append('g').attr('class', 'cardinality');\n\n _g2.append('text').attr('class', 'type2').attr('x', p2_card_x).attr('y', p2_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\nexport var drawClass = function drawClass(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n var cssClassStr = 'classGroup ';\n\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n var id = classDef.id;\n var classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n }; // add class group\n\n var g = elem.append('g').attr('id', lookUpDomId(id)).attr('class', cssClassStr); // add title\n\n var title;\n\n if (classDef.link) {\n title = g.append('svg:a').attr('xlink:href', classDef.link).attr('target', '_blank').append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } else {\n title = g.append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } // add annotations\n\n\n var isFirst = true;\n classDef.annotations.forEach(function (member) {\n var titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n var classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n var classTitle = title.append('tspan').text(classTitleString).attr('class', 'title'); // If class has annotations the title needs to have an offset of the text height\n\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n var titleHeight = title.node().getBBox().height;\n var membersLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n var members = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.members.forEach(function (member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n var membersBox = members.node().getBBox();\n var methodsLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n var methods = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.methods.forEach(function (method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n var classBox = g.node().getBBox();\n var rect = g.insert('rect', ':first-child').attr('x', 0).attr('y', 0).attr('width', classBox.width + 2 * conf.padding).attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n var rectWidth = rect.node().getBBox().width; // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n\n title.node().childNodes.forEach(function (x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n return classInfo;\n};\nexport var parseMember = function parseMember(text) {\n var fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n var methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n var fieldMatch = text.match(fieldRegEx);\n var methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nvar buildFieldDisplay = function buildFieldDisplay(parsedText) {\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var fieldType = parsedText[2] ? parsedText[2].trim() : '';\n var genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var fieldName = parsedText[4] ? parsedText[4].trim() : '';\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nvar buildMethodDisplay = function buildMethodDisplay(parsedText) {\n var cssStyle = '';\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var methodName = parsedText[2] ? parsedText[2].trim() : '';\n var parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var classifier = parsedText[4] ? parsedText[4].trim() : '';\n var returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar buildLegacyDisplay = function buildLegacyDisplay(text) {\n // if for some reason we dont have any match, use old format to parse text\n var displayText = '';\n var cssStyle = '';\n var memberText = '';\n var returnType = '';\n var methodStart = text.indexOf('(');\n var methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n var visibility = '';\n var methodName = '';\n var firstChar = text.substring(0, 1);\n\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n var parameters = text.substring(methodStart + 1, methodEnd);\n var classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar addTspan = function addTspan(textEl, txt, isFirst, conf) {\n var member = parseMember(txt);\n var tSpan = textEl.append('tspan').attr('x', conf.padding).text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nvar parseGenericTypes = function parseGenericTypes(text) {\n var cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nvar parseClassifier = function parseClassifier(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n\n case '$':\n return 'text-decoration:underline;';\n\n default:\n return '';\n }\n};\n\nexport default {\n drawClass: drawClass,\n drawEdge: drawEdge,\n parseMember: parseMember\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "index": 75, - "index2": 73, - "size": 15372, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/stateRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1735, - "building": 602, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes", - "loc": "9:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "142:14-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "157:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "168:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "235:6-14" - } - ], - "usedExports": [ - "addTitleAndBox", - "drawState", - "drawEdge" - ], - "providedExports": [ - "drawStartState", - "drawDivider", - "drawSimpleState", - "drawDescrState", - "addTitleAndBox", - "drawText", - "drawNote", - "drawState", - "drawEdge" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger'; // let conf;\n\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawStartState = function drawStartState(g) {\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n};\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawDivider = function drawDivider(g) {\n return g.append('line').style('stroke', 'grey').style('stroke-dasharray', '3').attr('x1', getConfig().state.textHeight).attr('class', 'divider').attr('x2', getConfig().state.textHeight * 2).attr('y1', 0).attr('y2', 0);\n};\n/**\n * Draws a an end state as a black circle\n */\n\nexport var drawSimpleState = function drawSimpleState(g, stateDef) {\n var state = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var classBox = state.node().getBBox();\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', classBox.width + 2 * getConfig().state.padding).attr('height', classBox.height + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return state;\n};\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\n\nexport var drawDescrState = function drawDescrState(g, stateDef) {\n var addTspan = function addTspan(textEl, txt, isFirst) {\n var tSpan = textEl.append('tspan').attr('x', 2 * getConfig().state.padding).text(txt);\n\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n\n var title = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.descriptions[0]);\n var titleBox = title.node().getBBox();\n var titleHeight = titleBox.height;\n var description = g.append('text') // text label for the x axis\n .attr('x', getConfig().state.padding).attr('y', titleHeight + getConfig().state.padding * 0.4 + getConfig().state.dividerMargin + getConfig().state.textHeight).attr('class', 'state-description');\n var isFirst = true;\n var isSecond = true;\n stateDef.descriptions.forEach(function (descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n\n isFirst = false;\n });\n var descrLine = g.append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding).attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('class', 'descr-divider');\n var descrBox = description.node().getBBox();\n var width = Math.max(descrBox.width, titleBox.width);\n descrLine.attr('x2', width + 3 * getConfig().state.padding); // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', width + 2 * getConfig().state.padding).attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return g;\n};\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\n\nexport var addTitleAndBox = function addTitleAndBox(g, stateDef, altBkg) {\n var pad = getConfig().state.padding;\n var dblPad = 2 * getConfig().state.padding;\n var orgBox = g.node().getBBox();\n var orgWidth = orgBox.width;\n var orgX = orgBox.x;\n var title = g.append('text').attr('x', 0).attr('y', getConfig().state.titleShift).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var titleBox = title.node().getBBox();\n var titleWidth = titleBox.width + dblPad;\n var width = Math.max(titleWidth, orgWidth); // + dblPad;\n\n if (width === orgWidth) {\n width = width + dblPad;\n }\n\n var startX; // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n var graphBox = g.node().getBBox(); // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {// cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n var lineY = 1 - getConfig().state.textHeight; // White color\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', lineY).attr('class', altBkg ? 'alt-composit' : 'composit').attr('width', width).attr('height', graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1).attr('rx', '0');\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad); // Title background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width) // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3).attr('rx', getConfig().state.radius); // Full background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width).attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight).attr('rx', getConfig().state.radius);\n return g;\n};\n\nvar drawEndState = function drawEndState(g) {\n g.append('circle').style('stroke', 'black').style('fill', 'white').attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding);\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\n\nvar drawForkJoinState = function drawForkJoinState(g, stateDef) {\n var width = getConfig().state.forkWidth;\n var height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n var tmp = width;\n width = height;\n height = tmp;\n }\n\n return g.append('rect').style('stroke', 'black').style('fill', 'black').attr('width', width).attr('height', height).attr('x', getConfig().state.padding).attr('y', getConfig().state.padding);\n};\n\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\n\nvar _drawLongText = function _drawLongText(_text, x, y, g) {\n var textHeight = 0;\n var textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n var text = _text.replace(/\\r\\n/g, '
');\n\n text = text.replace(/\\n/g, '
');\n var lines = text.split(common.lineBreakRegex);\n var tHeight = 1.25 * getConfig().state.noteMargin;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _line = _step.value;\n\n var txt = _line.trim();\n\n if (txt.length > 0) {\n var span = textElem.append('tspan');\n span.text(txt);\n\n if (tHeight === 0) {\n var textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n } // console.warn('textBounds', textBounds);\n\n\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return {\n textWidth: textElem.node().getBBox().width,\n textHeight: textHeight\n };\n};\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\n\nexport var drawNote = function drawNote(text, g) {\n g.attr('class', 'state-note');\n var note = g.append('rect').attr('x', 0).attr('y', getConfig().state.padding);\n var rectElem = g.append('g');\n\n var _drawLongText2 = _drawLongText(text, 0, 0, rectElem),\n textWidth = _drawLongText2.textWidth,\n textHeight = _drawLongText2.textHeight;\n\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n return note;\n};\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport var drawState = function drawState(elem, stateDef) {\n var id = stateDef.id;\n var stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n var g = elem.append('g').attr('id', id).attr('class', 'stateGroup');\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0) drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n var stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n idCache.set(id, stateInfo); // stateCnt++;\n\n return stateInfo;\n};\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n\n case stateDb.relationType.EXTENSION:\n return 'extension';\n\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'transition');\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')');\n\n if (typeof relation.title !== 'undefined') {\n var label = elem.append('g').attr('class', 'stateLabel');\n\n var _utils$calcLabelPosit = utils.calcLabelPosition(path.points),\n x = _utils$calcLabelPosit.x,\n y = _utils$calcLabelPosit.y;\n\n var rows = common.getRows(relation.title); // console.warn(rows);\n\n var titleHeight = 0;\n var titleRows = [];\n var maxWidth = 0;\n var minX = 0;\n\n for (var i = 0; i <= rows.length; i++) {\n var title = label.append('text').attr('text-anchor', 'middle').text(rows[i]).attr('x', x).attr('y', y + titleHeight);\n var boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n var titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n\n titleRows.push(title);\n }\n\n var boxHeight = titleHeight * rows.length;\n\n if (rows.length > 1) {\n var heightAdj = (rows.length - 1) * titleHeight * 0.5;\n titleRows.forEach(function (title, i) {\n return title.attr('y', y + i * titleHeight - heightAdj);\n });\n boxHeight = titleHeight * rows.length;\n }\n\n var bounds = label.node().getBBox();\n label.insert('rect', ':first-child').attr('class', 'box').attr('x', x - maxWidth / 2 - getConfig().state.padding / 2).attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5).attr('width', maxWidth + getConfig().state.padding).attr('height', boxHeight + getConfig().state.padding);\n logger.info(bounds); //label.attr('transform', '0 -' + (bounds.y / 2));\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erMarkers.js", - "name": "./src/diagrams/er/erMarkers.js", - "index": 82, - "index2": 79, - "size": 3422, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/er/erRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1517, - "building": 508 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erMarkers", - "loc": "8:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "133:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "137:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "141:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "145:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "151:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "155:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "159:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "163:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "202:2-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "var ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\n\nvar insertMarkers = function insertMarkers(elem, conf) {\n var marker;\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18 M15,0 L15,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_END).attr('refX', 18).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,0 L3,18 M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 21).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_END).attr('refX', 30).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,0 L21,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_END).attr('refX', 27).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 48).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_END).attr('refX', 39).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n return;\n};\n\nexport default {\n ERMarkers: ERMarkers,\n insertMarkers: insertMarkers\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/svgDraw.js", - "name": "./src/diagrams/user-journey/svgDraw.js", - "index": 84, - "index2": 81, - "size": 9389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/user-journey/journeyRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1472, - "building": 637, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "57:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "76:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "227:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawRect", - "drawFace", - "drawCircle", - "drawText", - "drawLabel", - "drawSection", - "drawTask", - "drawBackgroundRect", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { arc as d3arc } from 'd3';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawFace = function drawFace(element, faceData) {\n var radius = 15;\n var circleElement = element.append('circle').attr('cx', faceData.cx).attr('cy', faceData.cy).attr('fill', '#FFF8DC').attr('stroke', '#999').attr('r', radius).attr('stroke-width', 2).attr('overflow', 'visible');\n var face = element.append('g'); //left eye\n\n face.append('circle').attr('cx', faceData.cx - radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666'); //right eye\n\n face.append('circle').attr('cx', faceData.cx + radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666');\n\n function smile(face) {\n var arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n var arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face.append('line').attr('stroke', 2).attr('x1', faceData.cx - 5).attr('y1', faceData.cy + 7).attr('x2', faceData.cx + 5).attr('y2', faceData.cy + 7).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\nexport var drawCircle = function drawCircle(element, circleData) {\n var circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(//gi, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('fill', textData.fill);\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n return textElem;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\nexport var drawSection = function drawSection(elem, section, conf) {\n var g = elem.append('g');\n var rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(section.text, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'journey-section'\n }, conf, section.colour);\n};\nvar taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\n\nexport var drawTask = function drawTask(elem, task, conf) {\n var center = task.x + conf.width / 2;\n var g = elem.append('g');\n taskCount++;\n var maxHeight = 300 + 5 * 30;\n g.append('line').attr('id', 'task' + taskCount).attr('x1', center).attr('y1', task.y).attr('x2', center).attr('y2', maxHeight).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke-dasharray', '4 2').attr('stroke', '#666');\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n var rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n var xPos = task.x + 14;\n task.people.forEach(function (person) {\n var colour = task.actors[person];\n var circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(task.task, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'task'\n }, conf, task.colour);\n};\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('font-color', colour).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n var taskFontSize = conf.taskFontSize,\n taskFontFamily = conf.taskFontFamily;\n var lines = content.split(//gi);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).attr('fill', colour).style('text-anchor', 'middle').style('font-size', taskFontSize).style('font-family', taskFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf, colour) {\n var body = g.append('switch');\n var f = body.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('position', 'fixed');\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').style('color', colour).text(content);\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nvar initGraphics = function initGraphics(graphics) {\n graphics.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect: drawRect,\n drawCircle: drawCircle,\n drawSection: drawSection,\n drawText: drawText,\n drawLabel: drawLabel,\n drawTask: drawTask,\n drawBackgroundRect: drawBackgroundRect,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect,\n initGraphics: initGraphics\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "name": "./src/dagre-wrapper/markers.js", - "index": 68, - "index2": 64, - "size": 6123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./markers", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./markers", - "loc": "125:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nimport { logger } from '../logger'; // Only add the number of markers that the diagram needs\n\nvar insertMarkers = function insertMarkers(elem, markerArray, type, id) {\n markerArray.forEach(function (markerName) {\n markers[markerName](elem, type, id);\n });\n};\n\nvar extension = function extension(elem, type, id) {\n logger.trace('Making markers for ', id);\n elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', type + '-extensionEnd ' + type).attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nvar composition = function composition(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar aggregation = function aggregation(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar dependency = function dependency(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nvar point = function point(elem, type) {\n elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar circle = function circle(elem, type) {\n elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar cross = function cross(elem, type) {\n elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n};\n\nvar barb = function barb(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n}; // TODO rename the class diagram markers to something shape descriptive and semanitc free\n\n\nvar markers = {\n extension: extension,\n composition: composition,\n aggregation: aggregation,\n dependency: dependency,\n point: point,\n circle: circle,\n cross: cross,\n barb: barb\n};\nexport default insertMarkers;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "name": "./src/dagre-wrapper/shapes/util.js", - "index": 54, - "index2": 51, - "size": 1604, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "./util", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "5:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "7:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "11:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "16:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "32:21-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "33:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "44:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "53:6-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "71:12-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "72:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "82:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "104:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "105:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "115:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "134:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "135:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "145:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "164:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "165:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "175:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "194:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "195:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "205:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "224:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "225:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "235:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "257:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "258:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "268:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "278:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "301:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "310:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "380:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "390:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "398:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "408:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "417:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "428:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "465:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "466:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "480:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "500:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "517:2-18" - } - ], - "usedExports": [ - "updateNodeBounds", - "labelHelper", - "insertPolygonShape" - ], - "providedExports": [ - "labelHelper", - "updateNodeBounds", - "insertPolygonShape" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport var labelHelper = function labelHelper(parent, node, _classes, isNode) {\n var classes;\n\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var halfPadding = node.padding / 2; // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n return {\n shapeSvg: shapeSvg,\n bbox: bbox,\n halfPadding: halfPadding,\n label: label\n };\n};\nexport var updateNodeBounds = function updateNodeBounds(node, element) {\n var bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\nexport function insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "name": "./src/dagre-wrapper/mermaid-graphlib.js", - "index": 65, - "index2": 61, - "size": 11877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaid-graphlib", - "loc": "5:0-116" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "61:18-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "62:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "63:14-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:84-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "108:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "118:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "129:2-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "131:2-24" - } - ], - "usedExports": [ - "findNonClusterChild", - "clusterDb", - "clear", - "adjustClustersAndEdges" - ], - "providedExports": [ - "clusterDb", - "clear", - "extractDecendants", - "validate", - "findNonClusterChild", - "adjustClustersAndEdges", - "extractor" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\nexport var clusterDb = {};\nvar decendants = {};\nvar parents = {};\nexport var clear = function clear() {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nvar isDecendant = function isDecendant(id, ancenstorId) {\n // if (id === ancenstorId) return true;\n log.debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0);\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n return false;\n};\n\nvar edgeInCluster = function edgeInCluster(edge, clusterId) {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent\n\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n\n log.info('Here ');\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n return false;\n};\n\nvar copy = function copy(clusterId, graph, newGraph, rootId) {\n log.info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root\n\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n nodes.forEach(function (node) {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n var data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId);\n }\n\n var edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(function (edge) {\n log.info('Edge', edge);\n var data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId);\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\n\nexport var extractDecendants = function extractDecendants(id, graph) {\n // log.debug('Extracting ', id);\n var children = graph.children(id);\n var res = [].concat(children);\n\n for (var i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\n\nexport var validate = function validate(graph) {\n var edges = graph.edges();\n log.trace('Edges: ', edges);\n\n for (var i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n\n return true;\n};\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\n\nexport var findNonClusterChild = function findNonClusterChild(id, graph) {\n // const node = graph.node(id);\n log.trace('Searching', id); // const children = graph.children(id).reverse();\n\n var children = graph.children(id); //.reverse();\n\n log.trace('Searching children of id ', id, children);\n\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n\n for (var i = 0; i < children.length; i++) {\n var _id = findNonClusterChild(children[i], graph);\n\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nvar getAnchorId = function getAnchorId(id) {\n if (!clusterDb[id]) {\n return id;\n } // If the cluster has no external connections\n\n\n if (!clusterDb[id].externalConnections) {\n return id;\n } // Return the replacement node\n\n\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n\n return id;\n};\n\nexport var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n } // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n\n if (children.length > 0) {\n log.warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph));\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = {\n id: findNonClusterChild(id, graph),\n clusterData: graph.node(id)\n };\n }\n }); // Check incoming and outgoing edges for each cluster\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n var edges = graph.edges();\n\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(function (edge) {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n var d1 = isDecendant(edge.v, id);\n var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n var v = e.v;\n var w = e.w; // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n log.trace(clusterDb); // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\nexport var extractor = function extractor(graph, depth) {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n\n if (depth > 10) {\n log.error('Bailing out');\n return;\n } // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n\n\n var nodes = graph.nodes();\n var hasChildren = false;\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n var children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n } // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n\n\n log.debug('Nodes = ', nodes, depth);\n\n for (var _i = 0; _i < nodes.length; _i++) {\n var _node = nodes[_i];\n log.debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n\n if (!clusterDb[_node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', _node, depth); // break;\n } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) {\n log.debug('Cluster without external connections, without a parent and with children', _node, depth);\n var graphSettings = graph.graph();\n var clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(_node, graph, clusterGraph, _node);\n graph.setNode(_node, {\n clusterNode: true,\n id: _node,\n clusterData: clusterDb[_node].clusterData,\n labelText: clusterDb[_node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth);\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n\n for (var _i2 = 0; _i2 < nodes.length; _i2++) {\n var _node2 = nodes[_i2];\n var data = graph.node(_node2);\n log.debug(' Now next leveö', _node2, data);\n\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "index": 56, - "index2": 60, - "size": 15504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "6:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "54:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "68:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "101:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "110:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "126:2-12" - } - ], - "usedExports": [ - "setNodeElem", - "insertNode", - "positionNode", - "clear" - ], - "providedExports": [ - "insertNode", - "setNodeElem", - "clear", - "positionNode" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersect from './intersect/index.js';\nimport { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nvar question = function question(parent, node) {\n var _labelHelper = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var s = w + h;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n logger.info('Question main (Circle)');\n var questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n\n node.intersect = function (point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nvar hexagon = function hexagon(parent, node) {\n var _labelHelper2 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper2.shapeSvg,\n bbox = _labelHelper2.bbox;\n\n var f = 4;\n var h = bbox.height + node.padding;\n var m = h / f;\n var w = bbox.width + 2 * m + node.padding;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) {\n var _labelHelper3 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper3.shapeSvg,\n bbox = _labelHelper3.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_right = function lean_right(parent, node) {\n var _labelHelper4 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper4.shapeSvg,\n bbox = _labelHelper4.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_left = function lean_left(parent, node) {\n var _labelHelper5 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper5.shapeSvg,\n bbox = _labelHelper5.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar trapezoid = function trapezoid(parent, node) {\n var _labelHelper6 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper6.shapeSvg,\n bbox = _labelHelper6.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar inv_trapezoid = function inv_trapezoid(parent, node) {\n var _labelHelper7 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper7.shapeSvg,\n bbox = _labelHelper7.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) {\n var _labelHelper8 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper8.shapeSvg,\n bbox = _labelHelper8.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar cylinder = function cylinder(parent, node) {\n var _labelHelper9 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper9.shapeSvg,\n bbox = _labelHelper9.bbox;\n\n var w = bbox.width + node.padding;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry + node.padding;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n var pos = intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nvar rect = function rect(parent, node) {\n var _labelHelper10 = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper10.shapeSvg,\n bbox = _labelHelper10.bbox,\n halfPadding = _labelHelper10.halfPadding;\n\n logger.trace('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rectWithTitle = function rectWithTitle(parent, node) {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n var classes;\n\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect');\n\n var innerLine = shapeSvg.insert('line');\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n var text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n var bbox;\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n logger.info('Text 2', text2);\n var textRows = text2.slice(1, text2.length);\n var titleBox = text.getBBox();\n var descr = label.node().appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n var _div = descr.children[0];\n\n var _dv = select(descr);\n\n bbox = _div.getBoundingClientRect();\n\n _dv.attr('width', bbox.width);\n\n _dv.attr('height', bbox.height);\n } // bbox = label.getBBox();\n // logger.info(descr);\n\n\n var halfPadding = node.padding / 2;\n select(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')');\n select(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label\n // Bounding box for title and text\n\n bbox = label.node().getBBox(); // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')');\n rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar stadium = function stadium(parent, node) {\n var _labelHelper11 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper11.shapeSvg,\n bbox = _labelHelper11.bbox;\n\n var h = bbox.height + node.padding;\n var w = bbox.width + h / 4 + node.padding; // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar circle = function circle(parent, node) {\n var _labelHelper12 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper12.shapeSvg,\n bbox = _labelHelper12.bbox,\n halfPadding = _labelHelper12.halfPadding;\n\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n logger.info('Circle main');\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nvar subroutine = function subroutine(parent, node) {\n var _labelHelper13 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper13.shapeSvg,\n bbox = _labelHelper13.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar start = function start(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar forkJoin = function forkJoin(parent, node, dir) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var width = 70;\n var height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join');\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar end = function end(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var innerCircle = shapeSvg.insert('circle', ':first-child');\n var circle = shapeSvg.insert('circle', ':first-child');\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n question: question,\n rect: rect,\n rectWithTitle: rectWithTitle,\n circle: circle,\n stadium: stadium,\n hexagon: hexagon,\n rect_left_inv_arrow: rect_left_inv_arrow,\n lean_right: lean_right,\n lean_left: lean_left,\n trapezoid: trapezoid,\n inv_trapezoid: inv_trapezoid,\n rect_right_inv_arrow: rect_right_inv_arrow,\n cylinder: cylinder,\n start: start,\n end: end,\n note: note,\n subroutine: subroutine,\n fork: forkJoin,\n join: forkJoin\n};\nvar nodeElems = {};\nexport var insertNode = function insertNode(elem, node, dir) {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport var setNodeElem = function setNodeElem(elem, node) {\n nodeElems[node.id] = elem;\n};\nexport var clear = function clear() {\n nodeElems = {};\n};\nexport var positionNode = function positionNode(node) {\n var el = nodeElems[node.id];\n logger.trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')');\n var padding = 8;\n\n if (node.clusterNode) {\n el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')');\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "index": 67, - "index2": 63, - "size": 5981, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clusters", - "loc": "7:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "107:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "128:2-15" - } - ], - "usedExports": [ - "insertCluster", - "clear" - ], - "providedExports": [ - "insertCluster", - "getClusterTitleWidth", - "clear", - "positionCluster" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nvar rect = function rect(parent, node) {\n log.trace('Creating subgraph rect for ', node.id, node); // Add outer g element\n\n var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var padding = 0 * node.padding;\n var halfPadding = padding / 2;\n log.trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n/**\n * Non visiable cluster where the note is group with its\n */\n\n\nvar noteGroup = function noteGroup(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar roundedWithTitle = function roundedWithTitle(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var innerRect = shapeSvg.append('rect');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n bbox = text.getBBox();\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding);\n innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar divider = function divider(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding);\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n rect: rect,\n roundedWithTitle: roundedWithTitle,\n noteGroup: noteGroup,\n divider: divider\n};\nvar clusterElems = {};\nexport var insertCluster = function insertCluster(elem, node) {\n log.trace('Inserting cluster');\n var shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport var getClusterTitleWidth = function getClusterTitleWidth(elem, node) {\n var label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n var width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\nexport var clear = function clear() {\n clusterElems = {};\n};\nexport var positionCluster = function positionCluster(node) {\n log.info('Position cluster');\n var el = clusterElems[node.id];\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "name": "./src/dagre-wrapper/edges.js", - "index": 66, - "index2": 62, - "size": 10214, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./edges", - "loc": "8:0-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "82:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "118:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "119:4-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "127:2-12" - } - ], - "usedExports": [ - "insertEdgeLabel", - "insertEdge", - "positionEdgeLabel", - "clear" - ], - "providedExports": [ - "clear", - "insertEdgeLabel", - "positionEdgeLabel", - "intersection", - "insertEdge" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import { logger } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils'; // import { calcLabelPosition } from '../utils';\n\nvar edgeLabels = {};\nexport var clear = function clear() {\n edgeLabels = {};\n};\nexport var insertEdgeLabel = function insertEdgeLabel(elem, edge) {\n // Create the actual text element\n var labelElement = createLabel(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout\n\n var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text\n\n var label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement); // Center the label\n\n var bbox = labelElement.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = labelElement.children[0];\n var dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning\n\n edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height\n\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\nexport var positionEdgeLabel = function positionEdgeLabel(edge, points) {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n\n if (edge.label) {\n var el = edgeLabels[edge.id];\n var x = edge.x;\n var y = edge.y;\n\n if (points) {\n // debugger;\n var pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n}; // const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nvar outsideNode = function outsideNode(node, point) {\n // logger.warn('Checking bounds ', node, point);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(point.x - x);\n var dy = Math.abs(point.y - y);\n var w = node.width / 2;\n var h = node.height / 2;\n\n if (dx >= w || dy >= h) {\n return true;\n }\n\n return false;\n};\n\nexport var intersection = function intersection(node, outsidePoint, insidePoint) {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(x - insidePoint.x);\n var w = node.width / 2;\n var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n var h = node.height / 2;\n var edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) {\n // logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n var Q = Math.abs(outsidePoint.y - insidePoint.y);\n var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn();\n\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {\n // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = R * q / Q;\n var res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(\"topp/bott calc, Q \".concat(Q, \", q \").concat(q, \", R \").concat(R, \", r \").concat(r), res);\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n\n var _q = _q = Q * r / R;\n\n logger.warn(\"sides calc, Q \".concat(Q, \", q \").concat(_q, \", R \").concat(R, \", r \").concat(r), {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n });\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n };\n }\n}; //(edgePaths, e, edge, clusterDb, diagramtype, graph)\n\nexport var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) {\n var points = edge.points;\n var pointsHasChanged = false;\n var tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1]));\n points.push(head.intersect(points[points.length - 1]));\n }\n\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n var lastPointOutside;\n var isInside = false;\n edge.points.forEach(function (point) {\n var node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect\n\n var insterection = intersection(node, lastPointOutside, point);\n logger.trace('intersect', insterection);\n points.push(insterection);\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n var updatedPoints = [];\n\n var _lastPointOutside;\n\n var _isInside = false;\n\n for (var i = points.length - 1; i >= 0; i--) {\n var point = points[i];\n var node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !_isInside) {\n logger.warn('inside', edge.fromCluster, point, node); // First point inside the rect\n\n var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point));\n\n updatedPoints.unshift(insterection); // points.push(insterection);\n\n _isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!_isInside) updatedPoints.unshift(point);\n }\n\n _lastPointOutside = point;\n }\n\n points = updatedPoints;\n pointsHasChanged = true;\n } // The data for our line\n\n\n var lineData = points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Contruct stroke classes based on properties\n\n var strokeClasses;\n\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n\n default:\n strokeClasses = '';\n }\n\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n logger.info('arrowType', edge.arrowType);\n\n switch (edge.arrowType) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n\n case 'double_arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n\n case 'double_arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n\n case 'double_arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barnEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n\n case 'double_arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/id-cache.js", - "name": "./src/diagrams/state/id-cache.js", - "index": 76, - "index2": 72, - "size": 347, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "profile": { - "factory": 1735, - "building": 602, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 266, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./id-cache.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./id-cache.js", - "loc": "290:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "set", - "get", - "keys", - "size", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var idCache = {};\nexport var set = function set(key, val) {\n idCache[key] = val;\n};\nexport var get = function get(k) {\n return idCache[k];\n};\nexport var keys = function keys() {\n return Object.keys(idCache);\n};\nexport var size = function size() {\n return keys().length;\n};\nexport default {\n get: get,\n set: set,\n keys: keys,\n size: size\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "name": "./src/dagre-wrapper/createLabel.js", - "index": 55, - "index2": 50, - "size": 4142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../createLabel", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "7:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "14:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "16:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../createLabel", - "loc": "17:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "78:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "142:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "338:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "352:39-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n// const rows = vertexText.split(common.lineBreakRegex);\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\n\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n var fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n var div = fo.append('xhtml:div');\n var label = node.label;\n var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block'); // Fix for firefox\n\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nvar createLabel = function createLabel(_vertexText, style, isTitle, isNode) {\n var vertexText = _vertexText || '';\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n var node = {\n isNode: isNode,\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode);\n\n return vertexNode;\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n var rows = [];\n\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }\n};\n\nexport default createLabel;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-rect.js", - "name": "./src/dagre-wrapper/intersect/intersect-rect.js", - "index": 63, - "index2": 57, - "size": 740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/clusters.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 288, - "building": 77 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/intersect-rect", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-rect.js", - "loc": "8:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-rect.js", - "loc": "14:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "40:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "64:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "103:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "123:11-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var intersectRect = function intersectRect(node, point) {\n var x = node.x;\n var y = node.y; // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n var sx, sy;\n\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {\n x: x + sx,\n y: y + sy\n };\n};\n\nexport default intersectRect;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "index": 57, - "index2": 58, - "size": 395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../intersect/index.js", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../intersect/index.js", - "loc": "19:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "37:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "75:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "108:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "138:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "168:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "198:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "228:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "261:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "281:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "313:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "383:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "401:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "421:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "469:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "483:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "505:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "520:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\nexport default {\n node: node,\n circle: circle,\n ellipse: ellipse,\n polygon: polygon,\n rect: rect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "name": "./src/dagre-wrapper/shapes/note.js", - "index": 64, - "index2": 59, - "size": 894, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/note", - "loc": "8:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/note", - "loc": "542:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport intersect from '../intersect/index.js';\n\nvar note = function note(parent, node) {\n var _labelHelper = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox,\n halfPadding = _labelHelper.halfPadding;\n\n logger.info('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-ellipse.js", - "name": "./src/dagre-wrapper/intersect/intersect-ellipse.js", - "index": 60, - "index2": 53, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse", - "loc": "4:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse.js", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse.js", - "loc": "12:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n var cx = node.x;\n var cy = node.y;\n var px = cx - point.x;\n var py = cy - point.y;\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n var dx = Math.abs(rx * ry * px / det);\n\n if (point.x < cx) {\n dx = -dx;\n }\n\n var dy = Math.abs(rx * ry * py / det);\n\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {\n x: cx + dx,\n y: cy + dy\n };\n}\n\nexport default intersectEllipse;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "name": "./src/dagre-wrapper/intersect/intersect-circle.js", - "index": 59, - "index2": 54, - "size": 179, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-circle.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-circle.js", - "loc": "11:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "index": 61, - "index2": 56, - "size": 1612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-polygon.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-polygon.js", - "loc": "13:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "/* eslint \"no-console\": off */\nimport intersectLine from './intersect-line';\nexport default intersectPolygon;\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\n\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n var intersections = [];\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function (entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point, {\n x: left + p1.x,\n y: top + p1.y\n }, {\n x: left + p2.x,\n y: top + p2.y\n });\n\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function (p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n\n return intersections[0];\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-line.js", - "name": "./src/dagre-wrapper/intersect/intersect-line.js", - "index": 62, - "index2": 55, - "size": 1886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 73 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-line", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony import specifier", - "userRequest": "./intersect-line", - "loc": "25:20-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 7, - "source": "/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4.\n\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return;\n } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n\n\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2\n\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return;\n } // Line segments intersect: compute intersection point.\n\n\n denom = a1 * b2 - a2 * b1;\n\n if (denom === 0) {\n return;\n }\n\n offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n return {\n x: x,\n y: y\n };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;" - } - ], - "filteredModules": 0 - } - ], - "filteredModules": 0, - "origins": [ - { - "module": "", - "moduleIdentifier": "", - "moduleName": "", - "loc": "mermaid", - "request": "./src/mermaid.js", - "reasons": [] - } - ] - } - ], - "modules": [ - { - "id": 0, - "identifier": "external \"d3\"", - "name": "external \"d3\"", - "index": 3, - "index2": 1, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-102" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "1:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-52" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "2:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "3:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-82" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "4:0-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "5:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "13:0-196" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "d3", - "loc": "15:0-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "20:14-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "21:20-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "22:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "23:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "24:21-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "25:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "26:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "27:16-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "28:13-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:18-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "29:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "30:19-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "33:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "35:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "37:46-56" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "39:16-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "44:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:18-27" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "46:38-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "48:6-9" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "54:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "58:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:16-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "62:50-60" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "63:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "64:14-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "67:24-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "69:23-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "74:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "84:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:21-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "91:108-122" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "102:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "107:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "111:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "200:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "207:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "208:6-12" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "221:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "225:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "229:60-71" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "231:68-79" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "232:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "233:54-65" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "241:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "244:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "246:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "247:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "250:60-71" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "251:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "252:68-79" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "254:54-65" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "255:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "256:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "263:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:16-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "281:102-112" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "318:21-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "322:11-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:4-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "339:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "342:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "343:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "345:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "348:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "357:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "361:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "365:4-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "367:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "369:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "371:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "377:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "379:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "390:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "402:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "403:20-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "433:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "436:4-10" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "439:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "445:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "463:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "617:19-28" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "d3", - "loc": "710:13-19" - } - ], - "usedExports": [ - "arc", - "axisBottom", - "curveBasis", - "curveBasisClosed", - "curveBasisOpen", - "curveLinear", - "curveLinearClosed", - "curveMonotoneX", - "curveMonotoneY", - "curveNatural", - "curveStep", - "curveStepAfter", - "curveStepBefore", - "entries", - "interpolateHcl", - "line", - "max", - "min", - "pie", - "scaleLinear", - "scaleOrdinal", - "scaleTime", - "schemeSet2", - "select", - "selectAll", - "timeFormat" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 1, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "name": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "index": 29, - "index2": 27, - "size": 32724, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/sequenceDiagram", - "loc": "4:0-50" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "26:0-72" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "84:12-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/parser/sequenceDiagram", - "loc": "93:15-29" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:53-59" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "331:97-103" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "351:52-58" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "355:58-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "458:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "459:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "460:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "465:15-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "466:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "467:17-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "468:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "496:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "501:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "505:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "509:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "515:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "522:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "528:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "535:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "541:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "548:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "554:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "560:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "567:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "573:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "579:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:9-15" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:40-46" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:72-78" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:98-104" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:125-131" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "601:157-163" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "661:28-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "666:28-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "700:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "702:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "704:35-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "781:24-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "784:31-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:7-13" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:38-44" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:70-76" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:96-102" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:123-129" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "807:155-161" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "852:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "853:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "854:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "855:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "865:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "866:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "876:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "877:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "878:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "879:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "884:11-17" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/sequenceDiagram", - "loc": "899:11-17" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,5],$V3=[1,7],$V4=[2,5],$V5=[1,15],$V6=[1,17],$V7=[1,18],$V8=[1,20],$V9=[1,21],$Va=[1,22],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,29],$Vh=[1,32],$Vi=[1,33],$Vj=[1,36],$Vk=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],$Vl=[1,44],$Vm=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],$Vn=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],$Vo=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],$Vp=[46,47,48],$Vq=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"directive\":6,\"SD\":7,\"document\":8,\"line\":9,\"statement\":10,\"openDirective\":11,\"typeDirective\":12,\"closeDirective\":13,\":\":14,\"argDirective\":15,\"participant\":16,\"actor\":17,\"AS\":18,\"restOfLine\":19,\"signal\":20,\"autonumber\":21,\"activate\":22,\"deactivate\":23,\"note_statement\":24,\"title\":25,\"text2\":26,\"loop\":27,\"end\":28,\"rect\":29,\"opt\":30,\"alt\":31,\"else_sections\":32,\"par\":33,\"par_sections\":34,\"and\":35,\"else\":36,\"note\":37,\"placement\":38,\"over\":39,\"actor_pair\":40,\"spaceList\":41,\",\":42,\"left_of\":43,\"right_of\":44,\"signaltype\":45,\"+\":46,\"-\":47,\"ACTOR\":48,\"SOLID_OPEN_ARROW\":49,\"DOTTED_OPEN_ARROW\":50,\"SOLID_ARROW\":51,\"DOTTED_ARROW\":52,\"SOLID_CROSS\":53,\"DOTTED_CROSS\":54,\"TXT\":55,\"open_directive\":56,\"type_directive\":57,\"arg_directive\":58,\"close_directive\":59,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",7:\"SD\",14:\":\",16:\"participant\",18:\"AS\",19:\"restOfLine\",21:\"autonumber\",22:\"activate\",23:\"deactivate\",25:\"title\",27:\"loop\",28:\"end\",29:\"rect\",30:\"opt\",31:\"alt\",33:\"par\",35:\"and\",36:\"else\",37:\"note\",39:\"over\",42:\",\",43:\"left_of\",44:\"right_of\",46:\"+\",47:\"-\",48:\"ACTOR\",49:\"SOLID_OPEN_ARROW\",50:\"DOTTED_OPEN_ARROW\",51:\"SOLID_ARROW\",52:\"DOTTED_ARROW\",53:\"SOLID_CROSS\",54:\"DOTTED_CROSS\",55:\"TXT\",56:\"open_directive\",57:\"type_directive\",58:\"arg_directive\",59:\"close_directive\"},\nproductions_: [0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n yy.apply($$[$0]);return $$[$0]; \nbreak;\ncase 5:\n this.$ = [] \nbreak;\ncase 6:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 7: case 8:\n this.$ = $$[$0] \nbreak;\ncase 9:\n this.$=[]; \nbreak;\ncase 12:\n$$[$0-3].description=yy.parseMessage($$[$0-1]); this.$=$$[$0-3];\nbreak;\ncase 13:\nthis.$=$$[$0-1];\nbreak;\ncase 15:\nyy.enableSequenceNumbers()\nbreak;\ncase 16:\nthis.$={type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]};\nbreak;\ncase 17:\nthis.$={type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-1]};\nbreak;\ncase 19:\nthis.$=[{type:'setTitle', text:$$[$0-1]}]\nbreak;\ncase 20:\n\n\t\t$$[$0-1].unshift({type: 'loopStart', loopText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.LOOP_START});\n\t\t$$[$0-1].push({type: 'loopEnd', loopText:$$[$0-2], signalType: yy.LINETYPE.LOOP_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 21:\n\n\t\t$$[$0-1].unshift({type: 'rectStart', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_START });\n\t\t$$[$0-1].push({type: 'rectEnd', color:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.RECT_END });\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 22:\n\n\t\t$$[$0-1].unshift({type: 'optStart', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_START});\n\t\t$$[$0-1].push({type: 'optEnd', optText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.OPT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 23:\n\n\t\t// Alt start\n\t\t$$[$0-1].unshift({type: 'altStart', altText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.ALT_START});\n\t\t// Content in alt is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'altEnd', signalType: yy.LINETYPE.ALT_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 24:\n\n\t\t// Parallel start\n\t\t$$[$0-1].unshift({type: 'parStart', parText:yy.parseMessage($$[$0-2]), signalType: yy.LINETYPE.PAR_START});\n\t\t// Content in par is already in $$[$0-1]\n\t\t// End\n\t\t$$[$0-1].push({type: 'parEnd', signalType: yy.LINETYPE.PAR_END});\n\t\tthis.$=$$[$0-1];\nbreak;\ncase 27:\n this.$ = $$[$0-3].concat([{type: 'and', parText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.PAR_AND}, $$[$0]]); \nbreak;\ncase 29:\n this.$ = $$[$0-3].concat([{type: 'else', altText:yy.parseMessage($$[$0-1]), signalType: yy.LINETYPE.ALT_ELSE}, $$[$0]]); \nbreak;\ncase 30:\n\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:$$[$0-2], actor:$$[$0-1].actor, text:$$[$0]}];\nbreak;\ncase 31:\n\n\t\t// Coerce actor_pair into a [to, from, ...] array\n\t\t$$[$0-2] = [].concat($$[$0-1], $$[$0-1]).slice(0, 2);\n\t\t$$[$0-2][0] = $$[$0-2][0].actor;\n\t\t$$[$0-2][1] = $$[$0-2][1].actor;\n\t\tthis.$ = [$$[$0-1], {type:'addNote', placement:yy.PLACEMENT.OVER, actor:$$[$0-2].slice(0, 2), text:$$[$0]}];\nbreak;\ncase 34:\n this.$ = [$$[$0-2], $$[$0]]; \nbreak;\ncase 35:\n this.$ = $$[$0]; \nbreak;\ncase 36:\n this.$ = yy.PLACEMENT.LEFTOF; \nbreak;\ncase 37:\n this.$ = yy.PLACEMENT.RIGHTOF; \nbreak;\ncase 38:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeStart', signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0-1]}\n\t ]\nbreak;\ncase 39:\n this.$ = [$$[$0-4],$$[$0-1],{type: 'addMessage', from:$$[$0-4].actor, to:$$[$0-1].actor, signalType:$$[$0-3], msg:$$[$0]},\n\t {type: 'activeEnd', signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0-4]}\n\t ]\nbreak;\ncase 40:\n this.$ = [$$[$0-3],$$[$0-1],{type: 'addMessage', from:$$[$0-3].actor, to:$$[$0-1].actor, signalType:$$[$0-2], msg:$$[$0]}]\nbreak;\ncase 41:\nthis.$={type: 'addActor', actor:$$[$0]}\nbreak;\ncase 42:\n this.$ = yy.LINETYPE.SOLID_OPEN; \nbreak;\ncase 43:\n this.$ = yy.LINETYPE.DOTTED_OPEN; \nbreak;\ncase 44:\n this.$ = yy.LINETYPE.SOLID; \nbreak;\ncase 45:\n this.$ = yy.LINETYPE.DOTTED; \nbreak;\ncase 46:\n this.$ = yy.LINETYPE.SOLID_CROSS; \nbreak;\ncase 47:\n this.$ = yy.LINETYPE.DOTTED_CROSS; \nbreak;\ncase 48:\nthis.$ = yy.parseMessage($$[$0].trim().substring(1)) \nbreak;\ncase 49:\n yy.parseDirective('%%{', 'open_directive'); \nbreak;\ncase 50:\n yy.parseDirective($$[$0], 'type_directive'); \nbreak;\ncase 51:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"'); yy.parseDirective($$[$0], 'arg_directive'); \nbreak;\ncase 52:\n yy.parseDirective('}%%', 'close_directive', 'sequence'); \nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{1:[3]},{3:8,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:9,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},{3:10,4:$V0,5:$V1,6:4,7:$V2,11:6,56:$V3},o([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],$V4,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{13:34,14:[1,35],59:$Vj},o([14,59],[2,50]),o($Vk,[2,6]),{6:30,10:37,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},o($Vk,[2,8]),o($Vk,[2,9]),{17:38,48:$Vi},{5:[1,39]},o($Vk,[2,15]),{17:40,48:$Vi},{17:41,48:$Vi},{5:[1,42]},{26:43,55:$Vl},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},o($Vk,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},o([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},o($Vk,[2,7]),{5:[1,65],18:[1,64]},o($Vk,[2,14]),{5:[1,66]},{5:[1,67]},o($Vk,[2,18]),{5:[1,68]},{5:[2,48]},o($Vm,$V4,{8:69}),o($Vm,$V4,{8:70}),o($Vm,$V4,{8:71}),o($Vn,$V4,{32:72,8:73}),o($Vo,$V4,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:$Vi},o($Vp,[2,42]),o($Vp,[2,43]),o($Vp,[2,44]),o($Vp,[2,45]),o($Vp,[2,46]),o($Vp,[2,47]),{17:79,48:$Vi},{17:81,40:80,48:$Vi},{48:[2,36]},{48:[2,37]},o($Vq,[2,10]),{13:82,59:$Vj},{59:[2,51]},{19:[1,83]},o($Vk,[2,13]),o($Vk,[2,16]),o($Vk,[2,17]),o($Vk,[2,19]),{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,84],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,85],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[1,86],29:$Vd,30:$Ve,31:$Vf,33:$Vg,37:$Vh,48:$Vi,56:$V3},{28:[1,87]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,28],29:$Vd,30:$Ve,31:$Vf,33:$Vg,36:[1,88],37:$Vh,48:$Vi,56:$V3},{28:[1,89]},{4:$V5,5:$V6,6:30,9:14,10:16,11:6,16:$V7,17:31,20:19,21:$V8,22:$V9,23:$Va,24:23,25:$Vb,27:$Vc,28:[2,26],29:$Vd,30:$Ve,31:$Vf,33:$Vg,35:[1,90],37:$Vh,48:$Vi,56:$V3},{17:91,48:$Vi},{17:92,48:$Vi},{26:93,55:$Vl},{26:94,55:$Vl},{26:95,55:$Vl},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},o($Vk,[2,20]),o($Vk,[2,21]),o($Vk,[2,22]),o($Vk,[2,23]),{19:[1,99]},o($Vk,[2,24]),{19:[1,100]},{26:101,55:$Vl},{26:102,55:$Vl},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:$Vi},o($Vq,[2,11]),o($Vk,[2,12]),o($Vn,$V4,{8:73,32:104}),o($Vo,$V4,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],\ndefaultActions: {7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0: this.begin('OPEN_DIRECTIVE'); return 56; \nbreak;\ncase 1: this.begin('TYPE_DIRECTIVE'); return 57; \nbreak;\ncase 2: this.popState(); this.begin('ARG_DIRECTIVE'); return 14; \nbreak;\ncase 3: this.popState(); this.popState(); return 59; \nbreak;\ncase 4:return 58;\nbreak;\ncase 5:return 5;\nbreak;\ncase 6:/* skip all whitespace */\nbreak;\ncase 7:/* skip same-line whitespace */\nbreak;\ncase 8:/* skip comments */\nbreak;\ncase 9:/* skip comments */\nbreak;\ncase 10:/* skip comments */\nbreak;\ncase 11: this.begin('ID'); return 16; \nbreak;\ncase 12: yy_.yytext = yy_.yytext.trim(); this.begin('ALIAS'); return 48; \nbreak;\ncase 13: this.popState(); this.popState(); this.begin('LINE'); return 18; \nbreak;\ncase 14: this.popState(); this.popState(); return 5; \nbreak;\ncase 15: this.begin('LINE'); return 27; \nbreak;\ncase 16: this.begin('LINE'); return 29; \nbreak;\ncase 17: this.begin('LINE'); return 30; \nbreak;\ncase 18: this.begin('LINE'); return 31; \nbreak;\ncase 19: this.begin('LINE'); return 36; \nbreak;\ncase 20: this.begin('LINE'); return 33; \nbreak;\ncase 21: this.begin('LINE'); return 35; \nbreak;\ncase 22: this.popState(); return 19; \nbreak;\ncase 23:return 28;\nbreak;\ncase 24:return 43;\nbreak;\ncase 25:return 44;\nbreak;\ncase 26:return 39;\nbreak;\ncase 27:return 37;\nbreak;\ncase 28: this.begin('ID'); return 22; \nbreak;\ncase 29: this.begin('ID'); return 23; \nbreak;\ncase 30:return 25;\nbreak;\ncase 31:return 7;\nbreak;\ncase 32:return 21;\nbreak;\ncase 33:return 42;\nbreak;\ncase 34:return 5;\nbreak;\ncase 35: yy_.yytext = yy_.yytext.trim(); return 48; \nbreak;\ncase 36:return 51;\nbreak;\ncase 37:return 52;\nbreak;\ncase 38:return 49;\nbreak;\ncase 39:return 50;\nbreak;\ncase 40:return 53;\nbreak;\ncase 41:return 54;\nbreak;\ncase 42:return 55;\nbreak;\ncase 43:return 46;\nbreak;\ncase 44:return 47;\nbreak;\ncase 45:return 5;\nbreak;\ncase 46:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:%%\\{)/i,/^(?:((?:(?!\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\}%%)/i,/^(?:((?:(?!\\}%%).|\\n)*))/i,/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%(?!\\{)[^\\n]*)/i,/^(?:[^\\}]%%[^\\n]*)/i,/^(?:participant\\b)/i,/^(?:[^\\->:\\n,;]+?(?=((?!\\n)\\s)+as(?!\\n)\\s|[#\\n;]|$))/i,/^(?:as\\b)/i,/^(?:(?:))/i,/^(?:loop\\b)/i,/^(?:rect\\b)/i,/^(?:opt\\b)/i,/^(?:alt\\b)/i,/^(?:else\\b)/i,/^(?:par\\b)/i,/^(?:and\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\n;]*)/i,/^(?:end\\b)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:over\\b)/i,/^(?:note\\b)/i,/^(?:activate\\b)/i,/^(?:deactivate\\b)/i,/^(?:title\\b)/i,/^(?:sequenceDiagram\\b)/i,/^(?:autonumber\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\+\\->:\\n,;]+)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\\n;]+)/i,/^(?:\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[7,8,22],\"inclusive\":false},\"ARG_DIRECTIVE\":{\"rules\":[3,4,8],\"inclusive\":false},\"TYPE_DIRECTIVE\":{\"rules\":[2,3,8],\"inclusive\":false},\"OPEN_DIRECTIVE\":{\"rules\":[1,8],\"inclusive\":false},\"ALIAS\":{\"rules\":[7,8,13,14],\"inclusive\":false},\"ID\":{\"rules\":[7,8,12],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 2, - "identifier": "external \"graphlib\"", - "name": "external \"graphlib\"", - "index": 46, - "index2": 43, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "1:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "2:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "3:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "graphlib", - "loc": "5:0-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "12:41-49" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "40:18-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "66:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "76:18-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "92:35-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "130:28-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "132:27-35" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "223:10-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "237:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "253:29-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "262:35-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "301:29-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "312:14-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "314:41-49" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "323:40-48" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "324:40-48" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "graphlib", - "loc": "335:14-22" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 3, - "identifier": "external \"dagre-d3\"", - "name": "external \"dagre-d3\"", - "index": 47, - "index2": 44, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "1:0-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3", - "loc": "6:0-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "23:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "56:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "84:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "109:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "134:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "159:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "184:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "212:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "224:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "267:11-18" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "282:14-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "349:15-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3", - "loc": "357:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 4, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/process/browser.js", - "name": "./node_modules/process/browser.js", - "index": 21, - "index2": 18, - "size": 5418, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 7, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "module": "./node_modules/path-browserify/index.js", - "moduleName": "./node_modules/path-browserify/index.js", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-34" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "process", - "loc": "1:0-56" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n" - }, - { - "id": 5, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/webpack/buildin/module.js", - "name": "(webpack)/buildin/module.js", - "index": 22, - "index2": 19, - "size": 497, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "module", - "loc": "1:0-63" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n" - }, - { - "id": 6, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/node-libs-browser/mock/empty.js", - "name": "./node_modules/node-libs-browser/mock/empty.js", - "index": 23, - "index2": 20, - "size": 0, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "835:17-30" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "769:17-30" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "993:17-30" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "722:17-30" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "640:17-30" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "776:17-30" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "690:17-30" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "616:17-30" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "628:17-30" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "fs", - "loc": "673:17-30" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "" - }, - { - "id": 7, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/path-browserify/index.js", - "name": "./node_modules/path-browserify/index.js", - "index": 24, - "index2": 21, - "size": 8742, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "issuerId": 10, - "issuerName": "./src/diagrams/flowchart/parser/flow.jison", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1146, - "building": 30, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 1, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/parser/sequenceDiagram.jison", - "module": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "moduleName": "./src/diagrams/sequence/parser/sequenceDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "835:44-59" - }, - { - "moduleId": 8, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "module": "./src/diagrams/state/parser/stateDiagram.jison", - "moduleName": "./src/diagrams/state/parser/stateDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "769:44-59" - }, - { - "moduleId": 10, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "module": "./src/diagrams/flowchart/parser/flow.jison", - "moduleName": "./src/diagrams/flowchart/parser/flow.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "993:44-59" - }, - { - "moduleId": 11, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "module": "./src/diagrams/gantt/parser/gantt.jison", - "moduleName": "./src/diagrams/gantt/parser/gantt.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "722:44-59" - }, - { - "moduleId": 12, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "module": "./src/diagrams/user-journey/parser/journey.jison", - "moduleName": "./src/diagrams/user-journey/parser/journey.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "640:44-59" - }, - { - "moduleId": 15, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "module": "./src/diagrams/class/parser/classDiagram.jison", - "moduleName": "./src/diagrams/class/parser/classDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "776:44-59" - }, - { - "moduleId": 18, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "module": "./src/diagrams/git/parser/gitGraph.jison", - "moduleName": "./src/diagrams/git/parser/gitGraph.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "690:44-59" - }, - { - "moduleId": 19, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "module": "./src/diagrams/info/parser/info.jison", - "moduleName": "./src/diagrams/info/parser/info.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "616:44-59" - }, - { - "moduleId": 20, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "module": "./src/diagrams/pie/parser/pie.jison", - "moduleName": "./src/diagrams/pie/parser/pie.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "628:44-59" - }, - { - "moduleId": 21, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "module": "./src/diagrams/er/parser/erDiagram.jison", - "moduleName": "./src/diagrams/er/parser/erDiagram.jison", - "type": "cjs require", - "userRequest": "path", - "loc": "673:44-59" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,\n// backported and transplited with Babel, with backwards-compat fixes\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function (path) {\n if (typeof path !== 'string') path = path + '';\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) {\n // return '//';\n // Backwards-compat fix:\n return '/';\n }\n return path.slice(0, end);\n};\n\nfunction basename(path) {\n if (typeof path !== 'string') path = path + '';\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n}\n\n// Uses a mixed approach for backwards-compatibility, as ext behavior changed\n// in new Node.js versions, so only basename() above is backported here\nexports.basename = function (path, ext) {\n var f = basename(path);\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\nexports.extname = function (path) {\n if (typeof path !== 'string') path = path + '';\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n" - }, - { - "id": 8, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/parser/stateDiagram.jison", - "name": "./src/diagrams/state/parser/stateDiagram.jison", - "index": 35, - "index2": 33, - "size": 29755, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/stateDiagram", - "loc": "7:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "11:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "25:15-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "33:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "34:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "36:0-63" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "108:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/parser/stateDiagram", - "loc": "113:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/stateDiagram", - "loc": "217:15-20" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,2],$V1=[1,3],$V2=[1,4],$V3=[2,4],$V4=[1,9],$V5=[1,11],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,16],$Va=[1,21],$Vb=[1,17],$Vc=[1,18],$Vd=[1,19],$Ve=[1,20],$Vf=[1,22],$Vg=[1,4,5,13,14,16,18,19,21,22,23,24,25,28],$Vh=[1,4,5,11,12,13,14,16,18,19,21,22,23,24,25,28],$Vi=[4,5,13,14,16,18,19,21,22,23,24,25,28];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"SPACE\":4,\"NL\":5,\"SD\":6,\"document\":7,\"line\":8,\"statement\":9,\"idStatement\":10,\"DESCR\":11,\"-->\":12,\"HIDE_EMPTY\":13,\"scale\":14,\"WIDTH\":15,\"COMPOSIT_STATE\":16,\"STRUCT_START\":17,\"STRUCT_STOP\":18,\"STATE_DESCR\":19,\"AS\":20,\"ID\":21,\"FORK\":22,\"JOIN\":23,\"CONCURRENT\":24,\"note\":25,\"notePosition\":26,\"NOTE_TEXT\":27,\"EDGE_STATE\":28,\"left_of\":29,\"right_of\":30,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"SPACE\",5:\"NL\",6:\"SD\",11:\"DESCR\",12:\"-->\",13:\"HIDE_EMPTY\",14:\"scale\",15:\"WIDTH\",16:\"COMPOSIT_STATE\",17:\"STRUCT_START\",18:\"STRUCT_STOP\",19:\"STATE_DESCR\",20:\"AS\",21:\"ID\",22:\"FORK\",23:\"JOIN\",24:\"CONCURRENT\",25:\"note\",27:\"NOTE_TEXT\",28:\"EDGE_STATE\",29:\"left_of\",30:\"right_of\"},\nproductions_: [0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,4],[9,4],[10,1],[10,1],[26,1],[26,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 3:\n /*console.warn('Root document', $$[$0]);*/ yy.setRootDoc($$[$0]);return $$[$0]; \nbreak;\ncase 4:\n this.$ = [] \nbreak;\ncase 5:\n\n if($$[$0]!='nl'){\n $$[$0-1].push($$[$0]);this.$ = $$[$0-1]\n }\n // console.warn('Got document',$$[$0-1], $$[$0]);\n \nbreak;\ncase 6: case 7:\n this.$ = $$[$0] \nbreak;\ncase 8:\n this.$='nl';\nbreak;\ncase 9:\n /*console.warn('got id and descr', $$[$0]);*/this.$={ stmt: 'state', id: $$[$0], type: 'default', description: ''};\nbreak;\ncase 10:\n /*console.warn('got id and descr', $$[$0-1], $$[$0].trim());*/this.$={ stmt: 'state', id: $$[$0-1], type: 'default', description: yy.trimColon($$[$0])};\nbreak;\ncase 11:\n\n /*console.warn('got id', $$[$0-2]);yy.addRelation($$[$0-2], $$[$0]);*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-2], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0] ,type: 'default', description: ''}};\n \nbreak;\ncase 12:\n\n /*yy.addRelation($$[$0-3], $$[$0-1], $$[$0].substr(1).trim());*/\n this.$={ stmt: 'relation', state1: { stmt: 'state', id: $$[$0-3], type: 'default', description: '' }, state2:{ stmt: 'state', id: $$[$0-1] ,type: 'default', description: ''}, description: $$[$0].substr(1).trim()};\n \nbreak;\ncase 16:\n\n\n /* console.warn('Adding document for state without id ', $$[$0-3]);*/\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: '', doc: $$[$0-1] }\n \nbreak;\ncase 17:\n\n var id=$$[$0];\n var description = $$[$0-2].trim();\n if($$[$0].match(':')){\n var parts = $$[$0].split(':');\n id=parts[0];\n description = [description, parts[1]];\n }\n this.$={stmt: 'state', id: id, type: 'default', description: description};\n\n \nbreak;\ncase 18:\n\n //console.warn('Adding document for state with id ', $$[$0-3], $$[$0-2]); yy.addDocument($$[$0-3]);\n this.$={ stmt: 'state', id: $$[$0-3], type: 'default', description: $$[$0-5], doc: $$[$0-1] }\n \nbreak;\ncase 19:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'fork' }\n \nbreak;\ncase 20:\n\n this.$={ stmt: 'state', id: $$[$0], type: 'join' }\n \nbreak;\ncase 21:\n\n this.$={ stmt: 'state', id: yy.getDividerId(), type: 'divider' }\n \nbreak;\ncase 22:\n\n /*console.warn('got NOTE, position: ', $$[$0-2].trim(), 'id = ', $$[$0-1].trim(), 'note: ', $$[$0]);*/\n this.$={ stmt: 'state', id: $$[$0-1].trim(), note:{position: $$[$0-2].trim(), text: $$[$0].trim()}};\n \nbreak;\ncase 24: case 25:\nthis.$=$$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:$V0,5:$V1,6:$V2},{1:[3]},{3:5,4:$V0,5:$V1,6:$V2},{3:6,4:$V0,5:$V1,6:$V2},o([1,4,5,13,14,16,19,21,22,23,24,25,28],$V3,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,5]),{9:23,10:12,13:$V6,14:$V7,16:$V8,19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,7]),o($Vg,[2,8]),o($Vg,[2,9],{11:[1,24],12:[1,25]}),o($Vg,[2,13]),{15:[1,26]},o($Vg,[2,15],{17:[1,27]}),{20:[1,28]},o($Vg,[2,19]),o($Vg,[2,20]),o($Vg,[2,21]),{26:29,27:[1,30],29:[1,31],30:[1,32]},o($Vh,[2,24]),o($Vh,[2,25]),o($Vg,[2,6]),o($Vg,[2,10]),{10:33,21:$Va,28:$Vf},o($Vg,[2,14]),o($Vi,$V3,{7:34}),{21:[1,35]},{21:[1,36]},{20:[1,37]},{21:[2,26]},{21:[2,27]},o($Vg,[2,11],{11:[1,38]}),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,39],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,17],{17:[1,40]}),{27:[1,41]},{21:[1,42]},o($Vg,[2,12]),o($Vg,[2,16]),o($Vi,$V3,{7:43}),o($Vg,[2,22]),o($Vg,[2,23]),{4:$V4,5:$V5,8:8,9:10,10:12,13:$V6,14:$V7,16:$V8,18:[1,44],19:$V9,21:$Va,22:$Vb,23:$Vc,24:$Vd,25:$Ve,28:$Vf},o($Vg,[2,18])],\ndefaultActions: {5:[2,1],6:[2,2],31:[2,26],32:[2,27]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 5;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip same-line whitespace */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:/* skip comments */\nbreak;\ncase 5: this.pushState('SCALE'); /* console.log('Got scale', yy_.yytext);*/ return 14; \nbreak;\ncase 6:return 15;\nbreak;\ncase 7:this.popState();\nbreak;\ncase 8: this.pushState('STATE'); \nbreak;\ncase 9:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim(); /*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 10:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 11:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Fork: ',yy_.yytext);*/return 22;\nbreak;\ncase 12:this.popState();yy_.yytext=yy_.yytext.slice(0,-8).trim();/*console.warn('Fork Join: ',yy_.yytext);*/return 23;\nbreak;\ncase 13:this.begin(\"STATE_STRING\");\nbreak;\ncase 14:this.popState();this.pushState('STATE_ID');return \"AS\";\nbreak;\ncase 15:this.popState();/* console.log('STATE_ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17: /*console.log('Long description:', yy_.yytext);*/return \"STATE_DESCR\";\nbreak;\ncase 18:/*console.log('COMPOSIT_STATE', yy_.yytext);*/return 16;\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:this.popState();this.pushState('struct'); /*console.log('begin struct', yy_.yytext);*/return 17;\nbreak;\ncase 21: /*console.log('Ending struct');*/ this.popState(); return 18;\nbreak;\ncase 22:/* nothing */\nbreak;\ncase 23: this.begin('NOTE'); return 25; \nbreak;\ncase 24: this.popState();this.pushState('NOTE_ID');return 29;\nbreak;\ncase 25: this.popState();this.pushState('NOTE_ID');return 30;\nbreak;\ncase 26: this.popState();this.pushState('FLOATING_NOTE');\nbreak;\ncase 27:this.popState();this.pushState('FLOATING_NOTE_ID');return \"AS\";\nbreak;\ncase 28:/**/\nbreak;\ncase 29: /*console.log('Floating note text: ', yy_.yytext);*/return \"NOTE_TEXT\";\nbreak;\ncase 30:this.popState();/*console.log('Floating note ID', yy_.yytext);*/return \"ID\";\nbreak;\ncase 31: this.popState();this.pushState('NOTE_TEXT');/*console.log('Got ID for note', yy_.yytext);*/return 21;\nbreak;\ncase 32: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.substr(2).trim();return 27;\nbreak;\ncase 33: this.popState();/*console.log('Got NOTE_TEXT for note',yy_.yytext);*/yy_.yytext = yy_.yytext.slice(0,-8).trim();return 27;\nbreak;\ncase 34: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 35: /*console.log('Got state diagram', yy_.yytext,'#');*/return 6; \nbreak;\ncase 36: /*console.log('HIDE_EMPTY', yy_.yytext,'#');*/return 13; \nbreak;\ncase 37: /*console.log('EDGE_STATE=',yy_.yytext);*/ return 28;\nbreak;\ncase 38: /*console.log('=>ID=',yy_.yytext);*/ return 21;\nbreak;\ncase 39: yy_.yytext = yy_.yytext.trim(); /*console.log('Descr = ', yy_.yytext);*/ return 11; \nbreak;\ncase 40:return 12;\nbreak;\ncase 41:return 24;\nbreak;\ncase 42:return 5;\nbreak;\ncase 43:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:((?!\\n)\\s)+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:scale\\s+)/i,/^(?:\\d+)/i,/^(?:\\s+width\\b)/i,/^(?:state\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\[\\[fork\\]\\])/i,/^(?:.*\\[\\[join\\]\\])/i,/^(?:[\"])/i,/^(?:\\s*as\\s+)/i,/^(?:[^\\n\\{]*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n\\s\\{]+)/i,/^(?:\\n)/i,/^(?:\\{)/i,/^(?:\\})/i,/^(?:[\\n])/i,/^(?:note\\s+)/i,/^(?:left of\\b)/i,/^(?:right of\\b)/i,/^(?:\")/i,/^(?:\\s*as\\s*)/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[^\\n]*)/i,/^(?:\\s*[^:\\n\\s\\-]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:\\s*[^:;]+end note\\b)/i,/^(?:stateDiagram\\s+)/i,/^(?:stateDiagram-v2\\s+)/i,/^(?:hide empty description\\b)/i,/^(?:\\[\\*\\])/i,/^(?:[^:\\n\\s\\-\\{]+)/i,/^(?:\\s*:[^:\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"LINE\":{\"rules\":[2,3],\"inclusive\":false},\"struct\":{\"rules\":[2,3,8,21,22,23,37,38,39,40,41],\"inclusive\":false},\"FLOATING_NOTE_ID\":{\"rules\":[30],\"inclusive\":false},\"FLOATING_NOTE\":{\"rules\":[27,28,29],\"inclusive\":false},\"NOTE_TEXT\":{\"rules\":[32,33],\"inclusive\":false},\"NOTE_ID\":{\"rules\":[31],\"inclusive\":false},\"NOTE\":{\"rules\":[24,25,26],\"inclusive\":false},\"SCALE\":{\"rules\":[6,7],\"inclusive\":false},\"ALIAS\":{\"rules\":[],\"inclusive\":false},\"STATE_ID\":{\"rules\":[15],\"inclusive\":false},\"STATE_STRING\":{\"rules\":[16,17],\"inclusive\":false},\"FORK_STATE\":{\"rules\":[],\"inclusive\":false},\"STATE\":{\"rules\":[2,3,9,10,11,12,13,14,18,19,20],\"inclusive\":false},\"ID\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,3,4,5,8,20,23,34,35,36,37,38,39,40,42,43],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 9, - "identifier": "external \"moment-mini\"", - "name": "external \"moment-mini\"", - "index": 18, - "index2": 14, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "issuerId": null, - "issuerName": "./src/logger.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 0, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "1:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "moment-mini", - "loc": "9:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "63:13-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "115:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "117:16-22" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "177:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "223:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "233:62-68" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "301:25-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "moment-mini", - "loc": "451:38-44" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 10, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/parser/flow.jison", - "name": "./src/diagrams/flowchart/parser/flow.jison", - "index": 28, - "index2": 26, - "size": 57072, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/flow", - "loc": "4:0-33" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "23:0-58" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "82:15-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/parser/flow", - "loc": "88:15-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "275:17-21" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "293:15-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "295:15-19" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/flow", - "loc": "316:15-19" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,4],$V1=[1,3],$V2=[1,5],$V3=[1,8,9,10,11,26,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$V4=[2,2],$V5=[1,12],$V6=[1,13],$V7=[1,14],$V8=[1,15],$V9=[1,22],$Va=[1,46],$Vb=[1,24],$Vc=[1,25],$Vd=[1,26],$Ve=[1,27],$Vf=[1,28],$Vg=[1,40],$Vh=[1,35],$Vi=[1,37],$Vj=[1,32],$Vk=[1,36],$Vl=[1,39],$Vm=[1,43],$Vn=[1,44],$Vo=[1,45],$Vp=[1,34],$Vq=[1,38],$Vr=[1,41],$Vs=[1,42],$Vt=[1,33],$Vu=[1,51],$Vv=[1,8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vw=[1,55],$Vx=[1,54],$Vy=[1,56],$Vz=[8,9,11,57,58],$VA=[8,9,10,11,57,58],$VB=[8,9,10,11,35,57,58],$VC=[8,9,10,11,28,34,35,37,39,41,43,45,47,49,50,52,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VD=[8,9,11,34,57,58,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VE=[34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$VF=[1,101],$VG=[1,122],$VH=[1,123],$VI=[1,124],$VJ=[1,125],$VK=[1,105],$VL=[1,96],$VM=[1,97],$VN=[1,93],$VO=[1,117],$VP=[1,118],$VQ=[1,119],$VR=[1,120],$VS=[1,121],$VT=[1,126],$VU=[1,127],$VV=[1,99],$VW=[1,107],$VX=[1,110],$VY=[1,108],$VZ=[1,109],$V_=[1,102],$V$=[1,115],$V01=[1,114],$V11=[1,98],$V21=[1,95],$V31=[1,104],$V41=[1,106],$V51=[1,111],$V61=[1,112],$V71=[1,113],$V81=[1,116],$V91=[8,9,10,11,26,30,34,63,64,65,66,67,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Va1=[1,130],$Vb1=[1,134],$Vc1=[1,136],$Vd1=[1,137],$Ve1=[8,9,10,11,12,13,26,28,29,30,34,38,40,42,44,46,48,49,51,53,57,58,59,63,64,65,66,67,68,69,72,78,79,82,83,84,86,87,88,89,93,94,95,96,97,98],$Vf1=[8,9,10,11,13,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],$Vg1=[10,79],$Vh1=[1,204],$Vi1=[1,208],$Vj1=[1,205],$Vk1=[1,202],$Vl1=[1,199],$Vm1=[1,200],$Vn1=[1,201],$Vo1=[1,203],$Vp1=[1,206],$Vq1=[1,207],$Vr1=[1,209],$Vs1=[8,9,11],$Vt1=[1,225],$Vu1=[8,9,11,79],$Vv1=[8,9,10,11,63,75,78,79,82,83,84,85,86,87,88];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"document\":5,\"line\":6,\"statement\":7,\"SEMI\":8,\"NEWLINE\":9,\"SPACE\":10,\"EOF\":11,\"GRAPH\":12,\"DIR\":13,\"FirstStmtSeperator\":14,\"ending\":15,\"endToken\":16,\"spaceList\":17,\"spaceListNewline\":18,\"verticeStatement\":19,\"separator\":20,\"styleStatement\":21,\"linkStyleStatement\":22,\"classDefStatement\":23,\"classStatement\":24,\"clickStatement\":25,\"subgraph\":26,\"text\":27,\"SQS\":28,\"SQE\":29,\"end\":30,\"link\":31,\"node\":32,\"vertex\":33,\"AMP\":34,\"STYLE_SEPARATOR\":35,\"idString\":36,\"PS\":37,\"PE\":38,\"(-\":39,\"-)\":40,\"STADIUMSTART\":41,\"STADIUMEND\":42,\"SUBROUTINESTART\":43,\"SUBROUTINEEND\":44,\"CYLINDERSTART\":45,\"CYLINDEREND\":46,\"DIAMOND_START\":47,\"DIAMOND_STOP\":48,\"TAGEND\":49,\"TRAPSTART\":50,\"TRAPEND\":51,\"INVTRAPSTART\":52,\"INVTRAPEND\":53,\"linkStatement\":54,\"arrowText\":55,\"TESTSTR\":56,\"START_LINK\":57,\"LINK\":58,\"PIPE\":59,\"textToken\":60,\"STR\":61,\"keywords\":62,\"STYLE\":63,\"LINKSTYLE\":64,\"CLASSDEF\":65,\"CLASS\":66,\"CLICK\":67,\"DOWN\":68,\"UP\":69,\"textNoTags\":70,\"textNoTagsToken\":71,\"DEFAULT\":72,\"stylesOpt\":73,\"alphaNum\":74,\"HEX\":75,\"numList\":76,\"INTERPOLATE\":77,\"NUM\":78,\"COMMA\":79,\"style\":80,\"styleComponent\":81,\"ALPHA\":82,\"COLON\":83,\"MINUS\":84,\"UNIT\":85,\"BRKT\":86,\"DOT\":87,\"PCT\":88,\"TAGSTART\":89,\"alphaNumToken\":90,\"idStringToken\":91,\"alphaNumStatement\":92,\"PUNCTUATION\":93,\"UNICODE_TEXT\":94,\"PLUS\":95,\"EQUALS\":96,\"MULT\":97,\"UNDERSCORE\":98,\"graphCodeTokens\":99,\"ARROW_CROSS\":100,\"ARROW_POINT\":101,\"ARROW_CIRCLE\":102,\"ARROW_OPEN\":103,\"QUOTE\":104,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",8:\"SEMI\",9:\"NEWLINE\",10:\"SPACE\",11:\"EOF\",12:\"GRAPH\",13:\"DIR\",26:\"subgraph\",28:\"SQS\",29:\"SQE\",30:\"end\",34:\"AMP\",35:\"STYLE_SEPARATOR\",37:\"PS\",38:\"PE\",39:\"(-\",40:\"-)\",41:\"STADIUMSTART\",42:\"STADIUMEND\",43:\"SUBROUTINESTART\",44:\"SUBROUTINEEND\",45:\"CYLINDERSTART\",46:\"CYLINDEREND\",47:\"DIAMOND_START\",48:\"DIAMOND_STOP\",49:\"TAGEND\",50:\"TRAPSTART\",51:\"TRAPEND\",52:\"INVTRAPSTART\",53:\"INVTRAPEND\",56:\"TESTSTR\",57:\"START_LINK\",58:\"LINK\",59:\"PIPE\",61:\"STR\",63:\"STYLE\",64:\"LINKSTYLE\",65:\"CLASSDEF\",66:\"CLASS\",67:\"CLICK\",68:\"DOWN\",69:\"UP\",72:\"DEFAULT\",75:\"HEX\",77:\"INTERPOLATE\",78:\"NUM\",79:\"COMMA\",82:\"ALPHA\",83:\"COLON\",84:\"MINUS\",85:\"UNIT\",86:\"BRKT\",87:\"DOT\",88:\"PCT\",89:\"TAGSTART\",93:\"PUNCTUATION\",94:\"UNICODE_TEXT\",95:\"PLUS\",96:\"EQUALS\",97:\"MULT\",98:\"UNDERSCORE\",100:\"ARROW_CROSS\",101:\"ARROW_POINT\",102:\"ARROW_CIRCLE\",103:\"ARROW_OPEN\",104:\"QUOTE\"},\nproductions_: [0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,3],[15,2],[15,1],[16,1],[16,1],[16,1],[14,1],[14,1],[14,2],[18,2],[18,2],[18,1],[18,1],[17,2],[17,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[20,1],[20,1],[20,1],[19,3],[19,4],[19,2],[19,1],[32,1],[32,5],[32,3],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,4],[33,6],[33,4],[33,4],[33,4],[33,4],[33,4],[33,1],[31,2],[31,3],[31,3],[31,1],[31,3],[54,1],[55,3],[27,1],[27,2],[27,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[70,1],[70,2],[23,5],[23,5],[24,5],[25,5],[25,7],[25,5],[25,7],[21,5],[21,5],[22,5],[22,5],[22,9],[22,9],[22,7],[22,7],[76,1],[76,3],[73,1],[73,3],[80,1],[80,2],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[81,1],[60,1],[60,1],[60,1],[60,1],[60,1],[60,1],[71,1],[71,1],[71,1],[71,1],[36,1],[36,2],[74,1],[74,2],[92,1],[92,1],[92,1],[92,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 2:\n this.$ = [];\nbreak;\ncase 3:\n\n\t if($$[$0] !== []){\n\t $$[$0-1].push($$[$0]);\n\t }\n\t this.$=$$[$0-1];\nbreak;\ncase 4: case 67: case 69: case 81: case 127: case 129: case 130:\nthis.$=$$[$0];\nbreak;\ncase 11:\n yy.setDirection($$[$0-1]);this.$ = $$[$0-1];\nbreak;\ncase 26:\n /* console.warn('finat vs', $$[$0-1].nodes); */ this.$=$$[$0-1].nodes\nbreak;\ncase 27: case 28: case 29: case 30: case 31:\nthis.$=[];\nbreak;\ncase 32:\nthis.$=yy.addSubGraph($$[$0-6],$$[$0-1],$$[$0-4]);\nbreak;\ncase 33:\nthis.$=yy.addSubGraph($$[$0-3],$$[$0-1],$$[$0-3]);\nbreak;\ncase 34:\nthis.$=yy.addSubGraph(undefined,$$[$0-1],undefined);\nbreak;\ncase 38:\n /* console.warn('vs',$$[$0-2].stmt,$$[$0]); */ yy.addLink($$[$0-2].stmt,$$[$0],$$[$0-1]); this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0-2].nodes) } \nbreak;\ncase 39:\n /* console.warn('vs',$$[$0-3].stmt,$$[$0-1]); */ yy.addLink($$[$0-3].stmt,$$[$0-1],$$[$0-2]); this.$ = { stmt: $$[$0-1], nodes: $$[$0-1].concat($$[$0-3].nodes) } \nbreak;\ncase 40:\n/*console.warn('noda', $$[$0-1]);*/ this.$ = {stmt: $$[$0-1], nodes:$$[$0-1] }\nbreak;\ncase 41:\n /*console.warn('noda', $$[$0]);*/ this.$ = {stmt: $$[$0], nodes:$$[$0] }\nbreak;\ncase 42:\n /* console.warn('nod', $$[$0]); */ this.$ = [$$[$0]];\nbreak;\ncase 43:\n this.$ = $$[$0-4].concat($$[$0]); /* console.warn('pip', $$[$0-4][0], $$[$0], this.$); */ \nbreak;\ncase 44:\nthis.$ = [$$[$0-2]];yy.setClass($$[$0-2],$$[$0])\nbreak;\ncase 45:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'square');\nbreak;\ncase 46:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'circle');\nbreak;\ncase 47:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'ellipse');\nbreak;\ncase 48:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'stadium');\nbreak;\ncase 49:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'subroutine');\nbreak;\ncase 50:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'cylinder');\nbreak;\ncase 51:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'round');\nbreak;\ncase 52:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'diamond');\nbreak;\ncase 53:\nthis.$ = $$[$0-5];yy.addVertex($$[$0-5],$$[$0-2],'hexagon');\nbreak;\ncase 54:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'odd');\nbreak;\ncase 55:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'trapezoid');\nbreak;\ncase 56:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'inv_trapezoid');\nbreak;\ncase 57:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_right');\nbreak;\ncase 58:\nthis.$ = $$[$0-3];yy.addVertex($$[$0-3],$$[$0-1],'lean_left');\nbreak;\ncase 59:\n /*console.warn('h: ', $$[$0]);*/this.$ = $$[$0];yy.addVertex($$[$0]);\nbreak;\ncase 60:\n$$[$0-1].text = $$[$0];this.$ = $$[$0-1];\nbreak;\ncase 61: case 62:\n$$[$0-2].text = $$[$0-1];this.$ = $$[$0-2];\nbreak;\ncase 63:\nthis.$ = $$[$0];\nbreak;\ncase 64:\nvar inf = yy.destructLink($$[$0], $$[$0-2]); this.$ = {\"type\":inf.type,\"stroke\":inf.stroke,\"text\":$$[$0-1]};\nbreak;\ncase 65:\nvar inf = yy.destructLink($$[$0]);this.$ = {\"type\":inf.type,\"stroke\":inf.stroke};\nbreak;\ncase 66:\nthis.$ = $$[$0-1];\nbreak;\ncase 68: case 82: case 128:\nthis.$=$$[$0-1]+''+$$[$0];\nbreak;\ncase 83: case 84:\nthis.$ = $$[$0-4];yy.addClass($$[$0-2],$$[$0]);\nbreak;\ncase 85:\nthis.$ = $$[$0-4];yy.setClass($$[$0-2], $$[$0]);\nbreak;\ncase 86:\nthis.$ = $$[$0-4];yy.setClickEvent($$[$0-2], $$[$0], undefined);\nbreak;\ncase 87:\nthis.$ = $$[$0-6];yy.setClickEvent($$[$0-4], $$[$0-2], $$[$0]) ;\nbreak;\ncase 88:\nthis.$ = $$[$0-4];yy.setLink($$[$0-2], $$[$0], undefined);\nbreak;\ncase 89:\nthis.$ = $$[$0-6];yy.setLink($$[$0-4], $$[$0-2], $$[$0] );\nbreak;\ncase 90:\nthis.$ = $$[$0-4];yy.addVertex($$[$0-2],undefined,undefined,$$[$0]);\nbreak;\ncase 91: case 93:\nthis.$ = $$[$0-4];yy.updateLink($$[$0-2],$$[$0]);\nbreak;\ncase 92:\nthis.$ = $$[$0-4];yy.updateLink([$$[$0-2]],$$[$0]);\nbreak;\ncase 94:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate([$$[$0-6]],$$[$0-2]);yy.updateLink([$$[$0-6]],$$[$0]);\nbreak;\ncase 95:\nthis.$ = $$[$0-8];yy.updateLinkInterpolate($$[$0-6],$$[$0-2]);yy.updateLink($$[$0-6],$$[$0]);\nbreak;\ncase 96:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate([$$[$0-4]],$$[$0]);\nbreak;\ncase 97:\nthis.$ = $$[$0-6];yy.updateLinkInterpolate($$[$0-4],$$[$0]);\nbreak;\ncase 98: case 100:\nthis.$ = [$$[$0]]\nbreak;\ncase 99: case 101:\n$$[$0-2].push($$[$0]);this.$ = $$[$0-2];\nbreak;\ncase 103:\nthis.$ = $$[$0-1] + $$[$0];\nbreak;\ncase 125:\nthis.$=$$[$0]\nbreak;\ncase 126:\nthis.$=$$[$0-1]+''+$$[$0]\nbreak;\ncase 131:\nthis.$='v';\nbreak;\ncase 132:\nthis.$='-';\nbreak;\n}\n},\ntable: [{3:1,4:2,9:$V0,10:$V1,12:$V2},{1:[3]},o($V3,$V4,{5:6}),{4:7,9:$V0,10:$V1,12:$V2},{4:8,9:$V0,10:$V1,12:$V2},{13:[1,9]},{1:[2,1],6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($V3,[2,9]),o($V3,[2,10]),{8:[1,48],9:[1,49],10:$Vu,14:47,17:50},o($Vv,[2,3]),o($Vv,[2,4]),o($Vv,[2,5]),o($Vv,[2,6]),o($Vv,[2,7]),o($Vv,[2,8]),{8:$Vw,9:$Vx,11:$Vy,20:52,31:53,54:57,57:[1,58],58:[1,59]},{8:$Vw,9:$Vx,11:$Vy,20:60},{8:$Vw,9:$Vx,11:$Vy,20:61},{8:$Vw,9:$Vx,11:$Vy,20:62},{8:$Vw,9:$Vx,11:$Vy,20:63},{8:$Vw,9:$Vx,11:$Vy,20:64},{8:$Vw,9:$Vx,10:[1,65],11:$Vy,20:66},o($Vz,[2,41],{17:67,10:$Vu}),{10:[1,68]},{10:[1,69]},{10:[1,70]},{10:[1,71]},{10:[1,72]},o($VA,[2,42],{35:[1,73]}),o($VB,[2,59],{91:84,28:[1,74],34:$Va,37:[1,75],39:[1,76],41:[1,77],43:[1,78],45:[1,79],47:[1,80],49:[1,81],50:[1,82],52:[1,83],68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),o($VC,[2,125]),o($VC,[2,146]),o($VC,[2,147]),o($VC,[2,148]),o($VC,[2,149]),o($VC,[2,150]),o($VC,[2,151]),o($VC,[2,152]),o($VC,[2,153]),o($VC,[2,154]),o($VC,[2,155]),o($VC,[2,156]),o($VC,[2,157]),o($VC,[2,158]),o($VC,[2,159]),o($VC,[2,160]),o($V3,[2,11]),o($V3,[2,17]),o($V3,[2,18]),{9:[1,85]},o($VD,[2,25],{17:86,10:$Vu}),o($Vv,[2,26]),{32:87,33:29,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($Vv,[2,35]),o($Vv,[2,36]),o($Vv,[2,37]),o($VE,[2,63],{55:88,56:[1,89],59:[1,90]}),{10:$VF,12:$VG,13:$VH,26:$VI,27:91,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o([34,56,59,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,65]),o($Vv,[2,27]),o($Vv,[2,28]),o($Vv,[2,29]),o($Vv,[2,30]),o($Vv,[2,31]),{10:$VF,12:$VG,13:$VH,26:$VI,27:128,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:129}),o($Vz,[2,40],{34:$Va1}),{13:$Vb1,34:$VK,68:$Vc1,74:131,75:[1,132],78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{72:[1,138],76:139,78:[1,140]},{13:$Vb1,34:$VK,68:$Vc1,72:[1,141],74:142,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:143,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:144,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{34:$Va,36:145,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$VF,12:$VG,13:$VH,26:$VI,27:146,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:148,30:$VJ,34:$VK,37:[1,147],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:149,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:150,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:151,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:152,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:153,30:$VJ,34:$VK,47:[1,154],49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:155,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:156,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:157,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VC,[2,126]),o($V3,[2,19]),o($VD,[2,24]),o($Vz,[2,38],{17:158,10:$Vu}),o($VE,[2,60],{10:[1,159]}),{10:[1,160]},{10:$VF,12:$VG,13:$VH,26:$VI,27:161,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,58:[1,162],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Ve1,[2,67]),o($Ve1,[2,69]),o($Ve1,[2,115]),o($Ve1,[2,116]),o($Ve1,[2,117]),o($Ve1,[2,118]),o($Ve1,[2,119]),o($Ve1,[2,120]),o($Ve1,[2,121]),o($Ve1,[2,122]),o($Ve1,[2,123]),o($Ve1,[2,124]),o($Ve1,[2,133]),o($Ve1,[2,134]),o($Ve1,[2,135]),o($Ve1,[2,136]),o($Ve1,[2,137]),o($Ve1,[2,138]),o($Ve1,[2,139]),o($Ve1,[2,140]),o($Ve1,[2,141]),o($Ve1,[2,142]),o($Ve1,[2,143]),o($Ve1,[2,144]),o($Ve1,[2,145]),o($Ve1,[2,70]),o($Ve1,[2,71]),o($Ve1,[2,72]),o($Ve1,[2,73]),o($Ve1,[2,74]),o($Ve1,[2,75]),o($Ve1,[2,76]),o($Ve1,[2,77]),o($Ve1,[2,78]),o($Ve1,[2,79]),o($Ve1,[2,80]),{8:$Vw,9:$Vx,10:$VF,11:$Vy,12:$VG,13:$VH,20:165,26:$VI,28:[1,164],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,166],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vu,17:167},{10:[1,168],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,170]},o($Vf1,[2,127]),o($Vf1,[2,129]),o($Vf1,[2,130]),o($Vf1,[2,131]),o($Vf1,[2,132]),{10:[1,171]},{10:[1,172],79:[1,173]},o($Vg1,[2,98]),{10:[1,174]},{10:[1,175],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,176],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:[1,177],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:169,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VA,[2,44],{91:84,34:$Va,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt}),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,178],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:179,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,180],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,40:[1,181],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,42:[1,182],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,44:[1,183],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,46:[1,184],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,185],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,27:186,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,187],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,188],53:[1,189],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,51:[1,191],53:[1,190],57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($Vz,[2,39],{34:$Va1}),o($VE,[2,62]),o($VE,[2,61]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,49:$VL,57:$VM,59:[1,192],60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VE,[2,64]),o($Ve1,[2,68]),{10:$VF,12:$VG,13:$VH,26:$VI,27:193,30:$VJ,34:$VK,49:$VL,57:$VM,60:92,61:$VN,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($V91,$V4,{5:194}),o($Vv,[2,34]),{33:195,34:$Va,36:30,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:196,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vf1,[2,128]),{10:$Vh1,63:$Vi1,73:210,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:211,75:$Vj1,77:[1,212],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:213,75:$Vj1,77:[1,214],78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{78:[1,215]},{10:$Vh1,63:$Vi1,73:216,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:217,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{13:$Vb1,34:$VK,68:$Vc1,74:218,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,61:[1,220],68:$Vc1,74:219,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,45]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,38:[1,221],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,51]),o($VB,[2,47]),o($VB,[2,48]),o($VB,[2,49]),o($VB,[2,50]),o($VB,[2,52]),{10:$VF,12:$VG,13:$VH,26:$VI,30:$VJ,34:$VK,48:[1,222],49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},o($VB,[2,54]),o($VB,[2,55]),o($VB,[2,57]),o($VB,[2,56]),o($VB,[2,58]),o([10,34,68,78,79,82,83,84,86,87,93,94,95,96,97,98],[2,66]),{10:$VF,12:$VG,13:$VH,26:$VI,29:[1,223],30:$VJ,34:$VK,49:$VL,57:$VM,60:163,62:103,63:$VO,64:$VP,65:$VQ,66:$VR,67:$VS,68:$VT,69:$VU,71:94,72:$VV,78:$VW,79:$VX,82:$VY,83:$VZ,84:$V_,86:$V$,87:$V01,88:$V11,89:$V21,90:100,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,224],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},o($VA,[2,43]),o($Vs1,[2,90],{79:$Vt1}),o($Vu1,[2,100],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vv1,[2,102]),o($Vv1,[2,104]),o($Vv1,[2,105]),o($Vv1,[2,106]),o($Vv1,[2,107]),o($Vv1,[2,108]),o($Vv1,[2,109]),o($Vv1,[2,110]),o($Vv1,[2,111]),o($Vv1,[2,112]),o($Vv1,[2,113]),o($Vv1,[2,114]),o($Vs1,[2,91],{79:$Vt1}),o($Vs1,[2,92],{79:$Vt1}),{10:[1,227]},o($Vs1,[2,93],{79:$Vt1}),{10:[1,228]},o($Vg1,[2,99]),o($Vs1,[2,83],{79:$Vt1}),o($Vs1,[2,84],{79:$Vt1}),o($Vs1,[2,85],{90:135,92:169,13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,86],{90:135,92:169,10:[1,229],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,88],{10:[1,230]}),{38:[1,231]},{48:[1,232]},{8:$Vw,9:$Vx,11:$Vy,20:233},o($Vv,[2,33]),{10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,80:234,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv1,[2,103]),{13:$Vb1,34:$VK,68:$Vc1,74:235,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{13:$Vb1,34:$VK,68:$Vc1,74:236,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,90:135,92:133,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81},{61:[1,237]},{61:[1,238]},o($VB,[2,46]),o($VB,[2,53]),o($V91,$V4,{5:239}),o($Vu1,[2,101],{81:226,10:$Vh1,63:$Vi1,75:$Vj1,78:$Vk1,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1}),o($Vs1,[2,96],{90:135,92:169,10:[1,240],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,97],{90:135,92:169,10:[1,241],13:$Vb1,34:$VK,68:$Vc1,78:$VW,79:$VX,82:$VY,83:$VZ,84:$Vd1,86:$V$,87:$V01,93:$V31,94:$V41,95:$V51,96:$V61,97:$V71,98:$V81}),o($Vs1,[2,87]),o($Vs1,[2,89]),{6:10,7:11,8:$V5,9:$V6,10:$V7,11:$V8,19:16,21:17,22:18,23:19,24:20,25:21,26:$V9,30:[1,242],32:23,33:29,34:$Va,36:30,63:$Vb,64:$Vc,65:$Vd,66:$Ve,67:$Vf,68:$Vg,78:$Vh,79:$Vi,82:$Vj,83:$Vk,84:$Vl,86:$Vm,87:$Vn,91:31,93:$Vo,94:$Vp,95:$Vq,96:$Vr,97:$Vs,98:$Vt},{10:$Vh1,63:$Vi1,73:243,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},{10:$Vh1,63:$Vi1,73:244,75:$Vj1,78:$Vk1,80:197,81:198,82:$Vl1,83:$Vm1,84:$Vn1,85:$Vo1,86:$Vp1,87:$Vq1,88:$Vr1},o($Vv,[2,32]),o($Vs1,[2,94],{79:$Vt1}),o($Vs1,[2,95],{79:$Vt1})],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:this.begin(\"string\");\nbreak;\ncase 2:this.popState();\nbreak;\ncase 3:return \"STR\";\nbreak;\ncase 4:return 63;\nbreak;\ncase 5:return 72;\nbreak;\ncase 6:return 64;\nbreak;\ncase 7:return 77;\nbreak;\ncase 8:return 65;\nbreak;\ncase 9:return 66;\nbreak;\ncase 10:return 67;\nbreak;\ncase 11:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 12:if(yy.lex.firstGraph()){this.begin(\"dir\");} return 12;\nbreak;\ncase 13:return 26;\nbreak;\ncase 14:return 30;\nbreak;\ncase 15: this.popState(); return 13; \nbreak;\ncase 16: this.popState(); return 13; \nbreak;\ncase 17: this.popState(); return 13; \nbreak;\ncase 18: this.popState(); return 13; \nbreak;\ncase 19: this.popState(); return 13; \nbreak;\ncase 20: this.popState(); return 13; \nbreak;\ncase 21: this.popState(); return 13; \nbreak;\ncase 22: this.popState(); return 13; \nbreak;\ncase 23: this.popState(); return 13; \nbreak;\ncase 24: this.popState(); return 13; \nbreak;\ncase 25: return 78;\nbreak;\ncase 26:return 86;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 83;\nbreak;\ncase 29:return 34;\nbreak;\ncase 30:return 8;\nbreak;\ncase 31:return 79;\nbreak;\ncase 32:return 97;\nbreak;\ncase 33:return 58;\nbreak;\ncase 34:return 58;\nbreak;\ncase 35:return 58;\nbreak;\ncase 36:return 58;\nbreak;\ncase 37:return 58;\nbreak;\ncase 38:return 58;\nbreak;\ncase 39:return 58;\nbreak;\ncase 40:return 58;\nbreak;\ncase 41:return 58;\nbreak;\ncase 42:return 58;\nbreak;\ncase 43:return 58;\nbreak;\ncase 44:return 58;\nbreak;\ncase 45:return 58;\nbreak;\ncase 46:return 58;\nbreak;\ncase 47:return 58;\nbreak;\ncase 48:return 58;\nbreak;\ncase 49:return 58;\nbreak;\ncase 50:return 58;\nbreak;\ncase 51:return 58;\nbreak;\ncase 52:return 58;\nbreak;\ncase 53:return 58;\nbreak;\ncase 54:return 58;\nbreak;\ncase 55:return 58;\nbreak;\ncase 56:return 58;\nbreak;\ncase 57:return 58;\nbreak;\ncase 58:return 58;\nbreak;\ncase 59:return 58;\nbreak;\ncase 60:return 58;\nbreak;\ncase 61:return 57;\nbreak;\ncase 62:return 57;\nbreak;\ncase 63:return 57;\nbreak;\ncase 64:return 57;\nbreak;\ncase 65:return 57;\nbreak;\ncase 66:return 57;\nbreak;\ncase 67:return 57;\nbreak;\ncase 68:return 57;\nbreak;\ncase 69:return 57;\nbreak;\ncase 70:return 57;\nbreak;\ncase 71:return 57;\nbreak;\ncase 72:return 57;\nbreak;\ncase 73:return 39;\nbreak;\ncase 74:return 40;\nbreak;\ncase 75:return 41;\nbreak;\ncase 76:return 42;\nbreak;\ncase 77:return 43;\nbreak;\ncase 78:return 44;\nbreak;\ncase 79:return 45;\nbreak;\ncase 80:return 46;\nbreak;\ncase 81:return 84;\nbreak;\ncase 82:return 87;\nbreak;\ncase 83:return 98;\nbreak;\ncase 84:return 95;\nbreak;\ncase 85:return 88;\nbreak;\ncase 86:return 96;\nbreak;\ncase 87:return 96;\nbreak;\ncase 88:return 89;\nbreak;\ncase 89:return 49;\nbreak;\ncase 90:return 69;\nbreak;\ncase 91:return 'SEP';\nbreak;\ncase 92:return 68;\nbreak;\ncase 93:return 82;\nbreak;\ncase 94:return 51;\nbreak;\ncase 95:return 50;\nbreak;\ncase 96:return 53;\nbreak;\ncase 97:return 52;\nbreak;\ncase 98:return 93;\nbreak;\ncase 99:return 94;\nbreak;\ncase 100:return 59;\nbreak;\ncase 101:return 37;\nbreak;\ncase 102:return 38;\nbreak;\ncase 103:return 28;\nbreak;\ncase 104:return 29;\nbreak;\ncase 105:return 47\nbreak;\ncase 106:return 48\nbreak;\ncase 107:return 104;\nbreak;\ncase 108:return 9;\nbreak;\ncase 109:return 10;\nbreak;\ncase 110:return 11;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:style\\b)/,/^(?:default\\b)/,/^(?:linkStyle\\b)/,/^(?:interpolate\\b)/,/^(?:classDef\\b)/,/^(?:class\\b)/,/^(?:click\\b)/,/^(?:graph\\b)/,/^(?:flowchart\\b)/,/^(?:subgraph\\b)/,/^(?:end\\b\\s*)/,/^(?:\\s*LR\\b)/,/^(?:\\s*RL\\b)/,/^(?:\\s*TB\\b)/,/^(?:\\s*BT\\b)/,/^(?:\\s*TD\\b)/,/^(?:\\s*BR\\b)/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\))/,/^(?:\\[\\[)/,/^(?:\\]\\])/,/^(?:\\[\\()/,/^(?:\\)\\])/,/^(?:-)/,/^(?:\\.)/,/^(?:[\\_])/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\\^)/,/^(?:\\\\\\|)/,/^(?:v\\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\\\\])/,/^(?:\\[\\/)/,/^(?:\\/\\])/,/^(?:\\[\\\\)/,/^(?:[!\"#$%&'*+,-.`?\\\\_/])/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0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C-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\|)/,/^(?:\\()/,/^(?:\\))/,/^(?:\\[)/,/^(?:\\])/,/^(?:\\{)/,/^(?:\\})/,/^(?:\")/,/^(?:(\\r|\\n|\\r\\n)+)/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"vertex\":{\"rules\":[],\"inclusive\":false},\"dir\":{\"rules\":[15,16,17,18,19,20,21,22,23,24],\"inclusive\":false},\"string\":{\"rules\":[2,3],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,4,5,6,7,8,9,10,11,12,13,14,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 11, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/parser/gantt.jison", - "name": "./src/diagrams/gantt/parser/gantt.jison", - "index": 31, - "index2": 29, - "size": 25297, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gantt", - "loc": "2:0-40" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "5:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "25:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "26:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "29:0-56" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "38:18-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "84:26-32" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/parser/gantt", - "loc": "98:15-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gantt", - "loc": "281:113-119" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13,14,15,16,17,19,21],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],$V7=[1,15],$V8=[1,17],$V9=[1,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"gantt\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"dateFormat\":11,\"inclusiveEndDates\":12,\"axisFormat\":13,\"excludes\":14,\"todayMarker\":15,\"title\":16,\"section\":17,\"clickStatement\":18,\"taskTxt\":19,\"taskData\":20,\"click\":21,\"callbackname\":22,\"callbackargs\":23,\"href\":24,\"clickStatementDebug\":25,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"gantt\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"dateFormat\",12:\"inclusiveEndDates\",13:\"axisFormat\",14:\"excludes\",15:\"todayMarker\",16:\"title\",17:\"section\",19:\"taskTxt\",20:\"taskData\",21:\"click\",22:\"callbackname\",23:\"callbackargs\",24:\"href\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[18,2],[18,3],[18,3],[18,4],[18,3],[18,4],[18,2],[25,2],[25,3],[25,3],[25,4],[25,3],[25,4],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setDateFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 9:\nyy.enableInclusiveEndDates();this.$=$$[$0].substr(18);\nbreak;\ncase 10:\nyy.setAxisFormat($$[$0].substr(11));this.$=$$[$0].substr(11);\nbreak;\ncase 11:\nyy.setExcludes($$[$0].substr(9));this.$=$$[$0].substr(9);\nbreak;\ncase 12:\nyy.setTodayMarker($$[$0].substr(12));this.$=$$[$0].substr(12);\nbreak;\ncase 13:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 14:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 16:\nyy.addTask($$[$0-1],$$[$0]);this.$='task';\nbreak;\ncase 17:\nthis.$ = $$[$0-1];yy.setClickEvent($$[$0-1], $$[$0], null);\nbreak;\ncase 18:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 19:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0-1], null);yy.setLink($$[$0-2],$$[$0]);\nbreak;\ncase 20:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-2], $$[$0-1]);yy.setLink($$[$0-3],$$[$0]);\nbreak;\ncase 21:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-2], $$[$0], null);yy.setLink($$[$0-2],$$[$0-1]);\nbreak;\ncase 22:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-3], $$[$0-1], $$[$0]);yy.setLink($$[$0-3],$$[$0-2]);\nbreak;\ncase 23:\nthis.$ = $$[$0-1];yy.setLink($$[$0-1], $$[$0]);\nbreak;\ncase 24: case 30:\nthis.$=$$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 25: case 26: case 28:\nthis.$=$$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\ncase 27: case 29:\nthis.$=$$[$0-3] + ' ' + $$[$0-2] + ' ' + $$[$0-1] + ' ' + $$[$0];\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:19,11:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6,17:$V7,18:16,19:$V8,21:$V9},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,11]),o($V0,[2,12]),o($V0,[2,13]),o($V0,[2,14]),o($V0,[2,15]),{20:[1,20]},{22:[1,21],24:[1,22]},o($V0,[2,4]),o($V0,[2,16]),o($V0,[2,17],{23:[1,23],24:[1,24]}),o($V0,[2,23],{22:[1,25]}),o($V0,[2,18],{24:[1,26]}),o($V0,[2,19]),o($V0,[2,21],{23:[1,27]}),o($V0,[2,20]),o($V0,[2,22])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:this.begin(\"href\");\nbreak;\ncase 5:this.popState();\nbreak;\ncase 6:return 24;\nbreak;\ncase 7:this.begin(\"callbackname\");\nbreak;\ncase 8:this.popState();\nbreak;\ncase 9:this.popState(); this.begin(\"callbackargs\");\nbreak;\ncase 10:return 22;\nbreak;\ncase 11:this.popState();\nbreak;\ncase 12:return 23;\nbreak;\ncase 13:this.begin(\"click\");\nbreak;\ncase 14:this.popState();\nbreak;\ncase 15:return 21;\nbreak;\ncase 16:return 4;\nbreak;\ncase 17:return 11;\nbreak;\ncase 18:return 12;\nbreak;\ncase 19:return 13;\nbreak;\ncase 20:return 14;\nbreak;\ncase 21:return 15;\nbreak;\ncase 22:return 'date';\nbreak;\ncase 23:return 16;\nbreak;\ncase 24:return 17;\nbreak;\ncase 25:return 19;\nbreak;\ncase 26:return 20;\nbreak;\ncase 27:return ':';\nbreak;\ncase 28:return 6;\nbreak;\ncase 29:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:href[\\s]+[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:call[\\s]+)/i,/^(?:\\([\\s]*\\))/i,/^(?:\\()/i,/^(?:[^(]*)/i,/^(?:\\))/i,/^(?:[^)]*)/i,/^(?:click[\\s]+)/i,/^(?:[\\s\\n])/i,/^(?:[^\\s\\n]*)/i,/^(?:gantt\\b)/i,/^(?:dateFormat\\s[^#\\n;]+)/i,/^(?:inclusiveEndDates\\b)/i,/^(?:axisFormat\\s[^#\\n;]+)/i,/^(?:excludes\\s[^#\\n;]+)/i,/^(?:todayMarker\\s[^\\n;]+)/i,/^(?:\\d\\d\\d\\d-\\d\\d-\\d\\d\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"callbackargs\":{\"rules\":[11,12],\"inclusive\":false},\"callbackname\":{\"rules\":[8,9,10],\"inclusive\":false},\"href\":{\"rules\":[5,6],\"inclusive\":false},\"click\":{\"rules\":[14,15],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,7,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 12, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/parser/journey.jison", - "name": "./src/diagrams/user-journey/parser/journey.jison", - "index": 43, - "index2": 41, - "size": 21995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/journey", - "loc": "2:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "5:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "51:0-67" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "71:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "72:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "77:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "78:14-20" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/journey", - "loc": "79:19-25" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/parser/journey", - "loc": "137:15-28" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,8,10,11,12,13],$V1=[1,9],$V2=[1,10],$V3=[1,11];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"journey\":4,\"document\":5,\"EOF\":6,\"line\":7,\"SPACE\":8,\"statement\":9,\"NL\":10,\"title\":11,\"section\":12,\"taskName\":13,\"taskData\":14,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"journey\",6:\"EOF\",8:\"SPACE\",10:\"NL\",11:\"title\",12:\"section\",13:\"taskName\",14:\"taskData\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\n this.$ = [] \nbreak;\ncase 3:\n$$[$0-1].push($$[$0]);this.$ = $$[$0-1]\nbreak;\ncase 4: case 5:\n this.$ = $$[$0] \nbreak;\ncase 6: case 7:\n this.$=[];\nbreak;\ncase 8:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\ncase 9:\nyy.addSection($$[$0].substr(8));this.$=$$[$0].substr(8);\nbreak;\ncase 10:\nyy.addTask($$[$0-1], $$[$0]);this.$='task';\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,13:$V3},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:12,11:$V1,12:$V2,13:$V3},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),o($V0,[2,9]),{14:[1,13]},o($V0,[2,4]),o($V0,[2,10])],\ndefaultActions: {},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 10;\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 11;\nbreak;\ncase 6:return 12;\nbreak;\ncase 7:return 13;\nbreak;\ncase 8:return 14;\nbreak;\ncase 9:return ':';\nbreak;\ncase 10:return 6;\nbreak;\ncase 11:return 'INVALID';\nbreak;\n}\n},\nrules: [/^(?:[\\n]+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:journey\\b)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:section\\s[^#:\\n;]+)/i,/^(?:[^#:\\n;]+)/i,/^(?::[^#\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 13, - "identifier": "external \"dagre\"", - "name": "external \"dagre\"", - "index": 53, - "index2": 49, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1802, - "building": 543, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "1:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "2:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre", - "loc": "5:0-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "91:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "98:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "201:2-7" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre", - "loc": "243:2-7" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 14, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/package.json", - "name": "./package.json", - "index": 79, - "index2": 77, - "size": 3186, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "../package.json", - "loc": "17:0-34" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "365:35-38" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "371:34-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "376:33-36" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "381:38-41" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "386:27-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "../package.json", - "loc": "543:50-53" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "name", - "version", - "description", - "main", - "keywords", - "scripts", - "repository", - "author", - "license", - "standard", - "dependencies", - "devDependencies", - "files", - "yarn-upgrade-all", - "sideEffects", - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "{\n \"name\": \"mermaid\",\n \"version\": \"8.6.0\",\n \"description\": \"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.\",\n \"main\": \"dist/mermaid.core.js\",\n \"keywords\": [\n \"diagram\",\n \"markdown\",\n \"flowchart\",\n \"sequence diagram\",\n \"gantt\",\n \"class diagram\",\n \"git graph\"\n ],\n \"scripts\": {\n \"build:development\": \"webpack --progress --colors\",\n \"build:production\": \"yarn build:development -p --config webpack.config.prod.babel.js\",\n \"build\": \"yarn build:development && yarn build:production\",\n \"postbuild\": \"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false -o docs/Setup.md\",\n \"build:watch\": \"yarn build --watch\",\n \"minify\": \"minify ./dist/mermaid.js > ./dist/mermaid.min.js\",\n \"release\": \"yarn build\",\n \"lint\": \"eslint src\",\n \"e2e:depr\": \"yarn lint && jest e2e --config e2e/jest.config.js\",\n \"cypress\": \"percy exec -- cypress run\",\n \"e2e\": \"start-server-and-test dev http://localhost:9000/ cypress\",\n \"e2e-upd\": \"yarn lint && jest e2e -u --config e2e/jest.config.js\",\n \"dev\": \"webpack-dev-server --config webpack.config.e2e.js\",\n \"test\": \"yarn lint && jest src/.*\",\n \"test:watch\": \"jest --watch src\",\n \"prepublishOnly\": \"yarn build && yarn test && yarn e2e\",\n \"prepush\": \"yarn test\",\n \"prepare\": \"yarn build\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/knsv/mermaid\"\n },\n \"author\": \"Knut Sveidqvist\",\n \"license\": \"MIT\",\n \"standard\": {\n \"ignore\": [\n \"**/parser/*.js\",\n \"dist/**/*.js\",\n \"cypress/**/*.js\"\n ],\n \"globals\": [\n \"page\"\n ]\n },\n \"dependencies\": {\n \"@braintree/sanitize-url\": \"^3.1.0\",\n \"crypto-random-string\": \"^3.0.1\",\n \"d3\": \"^5.7.0\",\n \"dagre\": \"^0.8.4\",\n \"dagre-d3\": \"^0.6.4\",\n \"entity-decode\": \"^2.0.2\",\n \"graphlib\": \"^2.1.7\",\n \"he\": \"^1.2.0\",\n \"minify\": \"^4.1.1\",\n \"moment-mini\": \"^2.22.1\",\n \"scope-css\": \"^1.2.1\"\n },\n \"devDependencies\": {\n \"@babel/core\": \"^7.2.2\",\n \"@babel/preset-env\": \"^7.8.4\",\n \"@babel/register\": \"^7.0.0\",\n \"@percy/cypress\": \"*\",\n \"babel-core\": \"7.0.0-bridge.0\",\n \"babel-jest\": \"^24.9.0\",\n \"babel-loader\": \"^8.0.4\",\n \"coveralls\": \"^3.0.2\",\n \"css-loader\": \"^2.0.1\",\n \"css-to-string-loader\": \"^0.1.3\",\n \"cypress\": \"4.0.1\",\n \"documentation\": \"^12.0.1\",\n \"eslint\": \"^6.3.0\",\n \"eslint-config-prettier\": \"^6.3.0\",\n \"eslint-plugin-prettier\": \"^3.1.0\",\n \"husky\": \"^1.2.1\",\n \"identity-obj-proxy\": \"^3.0.0\",\n \"jest\": \"^24.9.0\",\n \"jison\": \"^0.4.18\",\n \"moment\": \"^2.23.0\",\n \"node-sass\": \"^4.12.0\",\n \"prettier\": \"^1.18.2\",\n \"puppeteer\": \"^1.17.0\",\n \"sass-loader\": \"^7.1.0\",\n \"start-server-and-test\": \"^1.10.6\",\n \"terser-webpack-plugin\": \"^2.2.2\",\n \"webpack\": \"^4.41.2\",\n \"webpack-bundle-analyzer\": \"^3.7.0\",\n \"webpack-cli\": \"^3.1.2\",\n \"webpack-dev-server\": \"^3.4.1\",\n \"webpack-node-externals\": \"^1.7.2\",\n \"yarn-upgrade-all\": \"^0.5.0\"\n },\n \"files\": [\n \"dist\"\n ],\n \"yarn-upgrade-all\": {\n \"ignore\": [\n \"babel-core\"\n ]\n },\n \"sideEffects\": [\n \"**/*.css\",\n \"**/*.scss\"\n ]\n}\n" - }, - { - "id": 15, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/parser/classDiagram.jison", - "name": "./src/diagrams/class/parser/classDiagram.jison", - "index": 33, - "index2": 31, - "size": 32826, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/classDiagram", - "loc": "6:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "8:0-6" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "32:0-63" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "59:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/classDiagram", - "loc": "60:2-8" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/parser/classDiagram", - "loc": "103:15-26" - } - ], - "usedExports": [ - "default", - "parser" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,13],$V1=[1,16],$V2=[1,14],$V3=[1,15],$V4=[1,17],$V5=[1,18],$V6=[1,20],$V7=[1,21],$V8=[1,22],$V9=[6,8],$Va=[1,31],$Vb=[1,32],$Vc=[1,33],$Vd=[1,34],$Ve=[1,35],$Vf=[1,36],$Vg=[6,8,14,20,28,31,32,33,34,35,36],$Vh=[6,8,12,14,20,24,28,31,32,33,34,35,36,52,53,54],$Vi=[28,52,53,54],$Vj=[28,35,36,52,53,54],$Vk=[28,31,32,33,34,52,53,54],$Vl=[6,8,14],$Vm=[1,59];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"mermaidDoc\":3,\"graphConfig\":4,\"CLASS_DIAGRAM\":5,\"NEWLINE\":6,\"statements\":7,\"EOF\":8,\"statement\":9,\"className\":10,\"alphaNumToken\":11,\"GENERICTYPE\":12,\"relationStatement\":13,\"LABEL\":14,\"classStatement\":15,\"methodStatement\":16,\"annotationStatement\":17,\"clickStatement\":18,\"CLASS\":19,\"STRUCT_START\":20,\"members\":21,\"STRUCT_STOP\":22,\"ANNOTATION_START\":23,\"ANNOTATION_END\":24,\"MEMBER\":25,\"SEPARATOR\":26,\"relation\":27,\"STR\":28,\"relationType\":29,\"lineType\":30,\"AGGREGATION\":31,\"EXTENSION\":32,\"COMPOSITION\":33,\"DEPENDENCY\":34,\"LINE\":35,\"DOTTED_LINE\":36,\"CALLBACK\":37,\"LINK\":38,\"commentToken\":39,\"textToken\":40,\"graphCodeTokens\":41,\"textNoTagsToken\":42,\"TAGSTART\":43,\"TAGEND\":44,\"==\":45,\"--\":46,\"PCT\":47,\"DEFAULT\":48,\"SPACE\":49,\"MINUS\":50,\"keywords\":51,\"UNICODE_TEXT\":52,\"NUM\":53,\"ALPHA\":54,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",5:\"CLASS_DIAGRAM\",6:\"NEWLINE\",8:\"EOF\",12:\"GENERICTYPE\",14:\"LABEL\",19:\"CLASS\",20:\"STRUCT_START\",22:\"STRUCT_STOP\",23:\"ANNOTATION_START\",24:\"ANNOTATION_END\",25:\"MEMBER\",26:\"SEPARATOR\",28:\"STR\",31:\"AGGREGATION\",32:\"EXTENSION\",33:\"COMPOSITION\",34:\"DEPENDENCY\",35:\"LINE\",36:\"DOTTED_LINE\",37:\"CALLBACK\",38:\"LINK\",41:\"graphCodeTokens\",43:\"TAGSTART\",44:\"TAGEND\",45:\"==\",46:\"--\",47:\"PCT\",48:\"DEFAULT\",49:\"SPACE\",50:\"MINUS\",51:\"keywords\",52:\"UNICODE_TEXT\",53:\"NUM\",54:\"ALPHA\"},\nproductions_: [0,[3,1],[4,4],[7,1],[7,2],[7,3],[10,2],[10,1],[10,3],[10,2],[9,1],[9,2],[9,1],[9,1],[9,1],[9,1],[15,2],[15,5],[17,4],[21,1],[21,2],[16,1],[16,2],[16,1],[16,1],[13,3],[13,4],[13,4],[13,5],[27,3],[27,2],[27,2],[27,1],[29,1],[29,1],[29,1],[29,1],[30,1],[30,1],[18,3],[18,4],[18,3],[18,4],[39,1],[39,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[42,1],[42,1],[42,1],[42,1],[11,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 6:\n this.$=$$[$0-1]+$$[$0]; \nbreak;\ncase 7:\n this.$=$$[$0]; \nbreak;\ncase 8:\n this.$=$$[$0-2]+'~'+$$[$0-1]+$$[$0]; \nbreak;\ncase 9:\n this.$=$$[$0-1]+'~'+$$[$0]; \nbreak;\ncase 10:\n yy.addRelation($$[$0]); \nbreak;\ncase 11:\n $$[$0-1].title = yy.cleanupLabel($$[$0]); yy.addRelation($$[$0-1]); \nbreak;\ncase 16:\nyy.addClass($$[$0]);\nbreak;\ncase 17:\n/*console.log($$[$0-3],JSON.stringify($$[$0-1]));*/yy.addClass($$[$0-3]);yy.addMembers($$[$0-3],$$[$0-1]);\nbreak;\ncase 18:\n yy.addAnnotation($$[$0],$$[$0-2]); \nbreak;\ncase 19:\n this.$ = [$$[$0]]; \nbreak;\ncase 20:\n $$[$0].push($$[$0-1]);this.$=$$[$0];\nbreak;\ncase 21:\n/*console.log('Rel found',$$[$0]);*/\nbreak;\ncase 22:\nyy.addMember($$[$0-1],yy.cleanupLabel($$[$0]));\nbreak;\ncase 23:\n/*console.warn('Member',$$[$0]);*/\nbreak;\ncase 24:\n/*console.log('sep found',$$[$0]);*/\nbreak;\ncase 25:\n this.$ = {'id1':$$[$0-2],'id2':$$[$0], relation:$$[$0-1], relationTitle1:'none', relationTitle2:'none'}; \nbreak;\ncase 26:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-1], relationTitle1:$$[$0-2], relationTitle2:'none'}\nbreak;\ncase 27:\n this.$ = {id1:$$[$0-3], id2:$$[$0], relation:$$[$0-2], relationTitle1:'none', relationTitle2:$$[$0-1]}; \nbreak;\ncase 28:\n this.$ = {id1:$$[$0-4], id2:$$[$0], relation:$$[$0-2], relationTitle1:$$[$0-3], relationTitle2:$$[$0-1]} \nbreak;\ncase 29:\n this.$={type1:$$[$0-2],type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 30:\n this.$={type1:'none',type2:$$[$0],lineType:$$[$0-1]}; \nbreak;\ncase 31:\n this.$={type1:$$[$0-1],type2:'none',lineType:$$[$0]}; \nbreak;\ncase 32:\n this.$={type1:'none',type2:'none',lineType:$$[$0]}; \nbreak;\ncase 33:\n this.$=yy.relationType.AGGREGATION;\nbreak;\ncase 34:\n this.$=yy.relationType.EXTENSION;\nbreak;\ncase 35:\n this.$=yy.relationType.COMPOSITION;\nbreak;\ncase 36:\n this.$=yy.relationType.DEPENDENCY;\nbreak;\ncase 37:\nthis.$=yy.lineType.LINE;\nbreak;\ncase 38:\nthis.$=yy.lineType.DOTTED_LINE;\nbreak;\ncase 39:\nthis.$ = $$[$0-2];yy.setClickEvent($$[$0-1], $$[$0], undefined);\nbreak;\ncase 40:\nthis.$ = $$[$0-3];yy.setClickEvent($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\ncase 41:\nthis.$ = $$[$0-2];yy.setLink($$[$0-1], $$[$0], undefined);\nbreak;\ncase 42:\nthis.$ = $$[$0-3];yy.setLink($$[$0-2], $$[$0-1], $$[$0]);\nbreak;\n}\n},\ntable: [{3:1,4:2,5:[1,3]},{1:[3]},{1:[2,1]},{6:[1,4]},{7:5,9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},{8:[1,23]},{6:[1,24],8:[2,3]},o($V9,[2,10],{14:[1,25]}),o($V9,[2,12]),o($V9,[2,13]),o($V9,[2,14]),o($V9,[2,15]),o($V9,[2,21],{27:26,29:29,30:30,14:[1,28],28:[1,27],31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf}),{10:37,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,23]),o($V9,[2,24]),{11:38,52:$V6,53:$V7,54:$V8},{10:39,11:19,52:$V6,53:$V7,54:$V8},{10:40,11:19,52:$V6,53:$V7,54:$V8},o($Vg,[2,7],{11:19,10:41,12:[1,42],52:$V6,53:$V7,54:$V8}),o($Vh,[2,56]),o($Vh,[2,57]),o($Vh,[2,58]),{1:[2,2]},{7:43,8:[2,4],9:6,10:12,11:19,13:7,15:8,16:9,17:10,18:11,19:$V0,23:$V1,25:$V2,26:$V3,37:$V4,38:$V5,52:$V6,53:$V7,54:$V8},o($V9,[2,11]),{10:44,11:19,28:[1,45],52:$V6,53:$V7,54:$V8},{27:46,29:29,30:30,31:$Va,32:$Vb,33:$Vc,34:$Vd,35:$Ve,36:$Vf},o($V9,[2,22]),{30:47,35:$Ve,36:$Vf},o($Vi,[2,32],{29:48,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vj,[2,33]),o($Vj,[2,34]),o($Vj,[2,35]),o($Vj,[2,36]),o($Vk,[2,37]),o($Vk,[2,38]),o($V9,[2,16],{20:[1,49]}),{24:[1,50]},{28:[1,51]},{28:[1,52]},o($Vg,[2,6]),o($Vg,[2,9],{11:19,10:53,52:$V6,53:$V7,54:$V8}),{8:[2,5]},o($Vl,[2,25]),{10:54,11:19,52:$V6,53:$V7,54:$V8},{10:55,11:19,28:[1,56],52:$V6,53:$V7,54:$V8},o($Vi,[2,31],{29:57,31:$Va,32:$Vb,33:$Vc,34:$Vd}),o($Vi,[2,30]),{21:58,25:$Vm},{10:60,11:19,52:$V6,53:$V7,54:$V8},o($V9,[2,39],{28:[1,61]}),o($V9,[2,41],{28:[1,62]}),o($Vg,[2,8]),o($Vl,[2,27]),o($Vl,[2,26]),{10:63,11:19,52:$V6,53:$V7,54:$V8},o($Vi,[2,29]),{22:[1,64]},{21:65,22:[2,19],25:$Vm},o($V9,[2,18]),o($V9,[2,40]),o($V9,[2,42]),o($Vl,[2,28]),o($V9,[2,17]),{22:[2,20]}],\ndefaultActions: {2:[2,1],23:[2,2],43:[2,5],65:[2,20]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:return 6;\nbreak;\ncase 2:/* skip whitespace */\nbreak;\ncase 3:return 5;\nbreak;\ncase 4: this.begin(\"struct\"); /*console.log('Starting struct');*/return 20;\nbreak;\ncase 5:return \"EOF_IN_STRUCT\";\nbreak;\ncase 6:return \"OPEN_IN_STRUCT\";\nbreak;\ncase 7: /*console.log('Ending struct');*/this.popState(); return 22;\nbreak;\ncase 8:/* nothing */\nbreak;\ncase 9: /*console.log('lex-member: ' + yy_.yytext);*/ return \"MEMBER\";\nbreak;\ncase 10:return 19;\nbreak;\ncase 11:return 37;\nbreak;\ncase 12:return 38;\nbreak;\ncase 13:return 23;\nbreak;\ncase 14:return 24;\nbreak;\ncase 15:this.begin(\"generic\");\nbreak;\ncase 16:this.popState();\nbreak;\ncase 17:return \"GENERICTYPE\";\nbreak;\ncase 18:this.begin(\"string\");\nbreak;\ncase 19:this.popState();\nbreak;\ncase 20:return \"STR\";\nbreak;\ncase 21:return 32;\nbreak;\ncase 22:return 32;\nbreak;\ncase 23:return 34;\nbreak;\ncase 24:return 34;\nbreak;\ncase 25:return 33;\nbreak;\ncase 26:return 31;\nbreak;\ncase 27:return 35;\nbreak;\ncase 28:return 36;\nbreak;\ncase 29:return 14;\nbreak;\ncase 30:return 50;\nbreak;\ncase 31:return 'DOT';\nbreak;\ncase 32:return 'PLUS';\nbreak;\ncase 33:return 47;\nbreak;\ncase 34:return 'EQUALS';\nbreak;\ncase 35:return 'EQUALS';\nbreak;\ncase 36:return 54;\nbreak;\ncase 37:return 'PUNCTUATION';\nbreak;\ncase 38:return 53;\nbreak;\ncase 39:return 52;\nbreak;\ncase 40:return 49;\nbreak;\ncase 41:return 8;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*\\n*)/,/^(?:\\n+)/,/^(?:\\s+)/,/^(?:classDiagram\\b)/,/^(?:[\\{])/,/^(?:$)/,/^(?:[\\{])/,/^(?:\\})/,/^(?:[\\n])/,/^(?:[^\\{\\}\\n]*)/,/^(?:class\\b)/,/^(?:callback\\b)/,/^(?:link\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\"])/,/^(?:[\"])/,/^(?:[^\"]*)/,/^(?:\\s*<\\|)/,/^(?:\\s*\\|>)/,/^(?:\\s*>)/,/^(?:\\s*<)/,/^(?:\\s*\\*)/,/^(?:\\s*o\\b)/,/^(?:--)/,/^(?:\\.\\.)/,/^(?::[^\\n;]+)/,/^(?:-)/,/^(?:\\.)/,/^(?:\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\w+)/,/^(?:[!\"#$%&'*+,-.`?\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6]|[\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377]|[\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5]|[\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA]|[\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE]|[\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA]|[\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0]|[\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977]|[\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2]|[\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A]|[\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39]|[\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8]|[\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C]|[\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C]|[\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99]|[\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0]|[\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D]|[\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3]|[\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10]|[\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1]|[\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81]|[\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3]|[\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6]|[\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A]|[\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081]|[\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D]|[\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0]|[\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310]|[\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C]|[\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711]|[\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7]|[\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C]|[\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16]|[\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF]|[\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC]|[\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D]|[\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D]|[\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3]|[\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F]|[\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128]|[\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184]|[\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3]|[\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6]|[\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE]|[\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C]|[\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D]|[\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC]|[\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B]|[\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788]|[\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805]|[\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB]|[\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28]|[\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5]|[\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4]|[\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E]|[\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D]|[\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36]|[\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D]|[\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC]|[\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF]|[\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC])/,/^(?:\\s)/,/^(?:$)/],\nconditions: {\"string\":{\"rules\":[19,20],\"inclusive\":false},\"generic\":{\"rules\":[16,17],\"inclusive\":false},\"struct\":{\"rules\":[5,6,7,8,9],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,10,11,12,13,14,15,18,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 16, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/runtime/api.js", - "name": "./node_modules/css-loader/dist/runtime/api.js", - "index": 8, - "index2": 3, - "size": 2406, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 32, - "issuerName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "profile": { - "factory": 45, - "building": 2971 - } - } - ], - "profile": { - "factory": 20, - "building": 8 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 28, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 30, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 32, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - }, - { - "moduleId": 34, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "moduleName": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "../../../node_modules/css-loader/dist/runtime/api.js", - "loc": "1:27-90" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 5, - "source": "\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return '@media ' + item[2] + '{' + content + '}';\n } else {\n return content;\n }\n }).join('');\n }; // import a list of modules into the list\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (i = 0; i < modules.length; i++) {\n var item = modules[i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || '';\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n return '/*# ' + data + ' */';\n}" - }, - { - "id": 17, - "identifier": "external \"@braintree/sanitize-url\"", - "name": "external \"@braintree/sanitize-url\"", - "index": 16, - "index2": 13, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 179, - "building": 892 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "10:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "@braintree/sanitize-url", - "loc": "15:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "278:13-24" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "@braintree/sanitize-url", - "loc": "479:14-25" - } - ], - "usedExports": [ - "sanitizeUrl" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 18, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/parser/gitGraph.jison", - "name": "./src/diagrams/git/parser/gitGraph.jison", - "index": 20, - "index2": 22, - "size": 23638, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/gitGraph", - "loc": "3:0-47" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "39:0-60" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/parser/gitGraph", - "loc": "76:15-29" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/gitGraph", - "loc": "237:17-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[2,3],$V1=[1,7],$V2=[7,12,15,17,19,20,21],$V3=[7,11,12,15,17,19,20,21],$V4=[2,20],$V5=[1,32];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"GG\":4,\":\":5,\"document\":6,\"EOF\":7,\"DIR\":8,\"options\":9,\"body\":10,\"OPT\":11,\"NL\":12,\"line\":13,\"statement\":14,\"COMMIT\":15,\"commit_arg\":16,\"BRANCH\":17,\"ID\":18,\"CHECKOUT\":19,\"MERGE\":20,\"RESET\":21,\"reset_arg\":22,\"STR\":23,\"HEAD\":24,\"reset_parents\":25,\"CARET\":26,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"GG\",5:\":\",7:\"EOF\",8:\"DIR\",11:\"OPT\",12:\"NL\",15:\"COMMIT\",17:\"BRANCH\",18:\"ID\",19:\"CHECKOUT\",20:\"MERGE\",21:\"RESET\",23:\"STR\",24:\"HEAD\",26:\"CARET\"},\nproductions_: [0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return $$[$0-1]; \nbreak;\ncase 2:\nyy.setDirection($$[$0-3]); return $$[$0-1];\nbreak;\ncase 4:\n yy.setOptions($$[$0-1]); this.$ = $$[$0]\nbreak;\ncase 5:\n$$[$0-1] +=$$[$0]; this.$=$$[$0-1]\nbreak;\ncase 7:\nthis.$ = []\nbreak;\ncase 8:\n$$[$0-1].push($$[$0]); this.$=$$[$0-1];\nbreak;\ncase 9:\nthis.$ =$$[$0-1]\nbreak;\ncase 11:\nyy.commit($$[$0])\nbreak;\ncase 12:\nyy.branch($$[$0])\nbreak;\ncase 13:\nyy.checkout($$[$0])\nbreak;\ncase 14:\nyy.merge($$[$0])\nbreak;\ncase 15:\nyy.reset($$[$0])\nbreak;\ncase 16:\nthis.$ = \"\"\nbreak;\ncase 17:\nthis.$=$$[$0]\nbreak;\ncase 18:\nthis.$ = $$[$0-1]+ \":\" + $$[$0] \nbreak;\ncase 19:\nthis.$ = $$[$0-1]+ \":\" + yy.count; yy.count = 0\nbreak;\ncase 20:\nyy.count = 0\nbreak;\ncase 21:\n yy.count += 1 \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:$V0,9:6,12:$V1},{5:[1,8]},{7:[1,9]},o($V2,[2,7],{10:10,11:[1,11]}),o($V3,[2,6]),{6:12,7:$V0,9:6,12:$V1},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},o($V3,[2,5]),{7:[1,21]},o($V2,[2,8]),{12:[1,22]},o($V2,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},o($V2,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:$V4,25:31,26:$V5},{12:$V4,25:33,26:$V5},{12:[2,18]},{12:$V4,25:34,26:$V5},{12:[2,19]},{12:[2,21]}],\ndefaultActions: {9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 12;\nbreak;\ncase 1:/* skip all whitespace */\nbreak;\ncase 2:/* skip comments */\nbreak;\ncase 3:/* skip comments */\nbreak;\ncase 4:return 4;\nbreak;\ncase 5:return 15;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 20;\nbreak;\ncase 8:return 21;\nbreak;\ncase 9:return 19;\nbreak;\ncase 10:return 8;\nbreak;\ncase 11:return 8;\nbreak;\ncase 12:return 5;\nbreak;\ncase 13:return 26\nbreak;\ncase 14:this.begin(\"options\");\nbreak;\ncase 15:this.popState();\nbreak;\ncase 16:return 11;\nbreak;\ncase 17:this.begin(\"string\");\nbreak;\ncase 18:this.popState();\nbreak;\ncase 19:return 23;\nbreak;\ncase 20:return 18;\nbreak;\ncase 21:return 7;\nbreak;\n}\n},\nrules: [/^(?:(\\r?\\n)+)/i,/^(?:\\s+)/i,/^(?:#[^\\n]*)/i,/^(?:%[^\\n]*)/i,/^(?:gitGraph\\b)/i,/^(?:commit\\b)/i,/^(?:branch\\b)/i,/^(?:merge\\b)/i,/^(?:reset\\b)/i,/^(?:checkout\\b)/i,/^(?:LR\\b)/i,/^(?:BT\\b)/i,/^(?::)/i,/^(?:\\^)/i,/^(?:options\\r?\\n)/i,/^(?:end\\r?\\n)/i,/^(?:[^\\n]+\\r?\\n)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?:[a-zA-Z][-_\\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],\nconditions: {\"options\":{\"rules\":[15,16],\"inclusive\":false},\"string\":{\"rules\":[18,19],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 19, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/parser/info.jison", - "name": "./src/diagrams/info/parser/info.jison", - "index": 37, - "index2": 35, - "size": 21150, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/info", - "loc": "6:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/info", - "loc": "23:17-27" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/parser/info", - "loc": "43:0-53" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/parser/info", - "loc": "119:15-25" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"info\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"showInfo\":10,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"info\",6:\"EOF\",9:\"NL\",10:\"showInfo\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n return yy; \nbreak;\ncase 4:\n \nbreak;\ncase 6:\n yy.setInfo(true); \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:return 4 ;\nbreak;\ncase 1:return 9 ;\nbreak;\ncase 2:return 'space';\nbreak;\ncase 3:return 10;\nbreak;\ncase 4:return 6 ;\nbreak;\ncase 5:return 'TXT' ;\nbreak;\n}\n},\nrules: [/^(?:info\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:showInfo\\b)/i,/^(?:$)/i,/^(?:.)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 20, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/parser/pie.jison", - "name": "./src/diagrams/pie/parser/pie.jison", - "index": 39, - "index2": 37, - "size": 21750, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/pie", - "loc": "6:0-37" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/pie", - "loc": "24:17-26" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "46:0-50" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/parser/pie", - "loc": "125:15-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,9,10,12];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"pie\":4,\"document\":5,\"EOF\":6,\"line\":7,\"statement\":8,\"NL\":9,\"STR\":10,\"VALUE\":11,\"title\":12,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"pie\",6:\"EOF\",9:\"NL\",10:\"STR\",11:\"VALUE\",12:\"title\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,2],[8,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 4:\n \nbreak;\ncase 6:\n\n\t\t/*console.log('str:'+$$[$0-1]+' value: '+$$[$0])*/\n\t\tyy.addSection($$[$0-1],yy.cleanupValue($$[$0])); \nbreak;\ncase 7:\nyy.setTitle($$[$0].substr(6));this.$=$$[$0].substr(6);\nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],12:[1,9]},{1:[2,1]},o($V0,[2,3]),o($V0,[2,4]),o($V0,[2,5]),{11:[1,10]},o($V0,[2,7]),o($V0,[2,6])],\ndefaultActions: {4:[2,1]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\n\t// Pre-lexer code can go here\n\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* do nothing */\nbreak;\ncase 1:/* skip whitespace */\nbreak;\ncase 2:return 4 ;\nbreak;\ncase 3:return 9 ;\nbreak;\ncase 4:return 'space';\nbreak;\ncase 5:return 12;\nbreak;\ncase 6:/*console.log('begin str');*/this.begin(\"string\");\nbreak;\ncase 7:/*console.log('pop-state');*/this.popState();\nbreak;\ncase 8:/*console.log('ending string')*/return \"STR\";\nbreak;\ncase 9:return \"VALUE\";\nbreak;\ncase 10:return 6 ;\nbreak;\n}\n},\nrules: [/^(?:%%[^\\n]*)/i,/^(?:\\s+)/i,/^(?:pie\\b)/i,/^(?:[\\s\\n\\r]+)/i,/^(?:[\\s]+)/i,/^(?:title\\s[^#\\n;]+)/i,/^(?:[\"])/i,/^(?:[\"])/i,/^(?:[^\"]*)/i,/^(?::[\\s]*[\\d]+(?:\\.[\\d]+)?)/i,/^(?:$)/i],\nconditions: {\"string\":{\"rules\":[7,8],\"inclusive\":false},\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,9,10],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 21, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/jisonLoader.js??ref--7!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/parser/erDiagram.jison", - "name": "./src/diagrams/er/parser/erDiagram.jison", - "index": 41, - "index2": 39, - "size": 23211, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./parser/erDiagram", - "loc": "4:0-42" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "49:0-54" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/parser/erDiagram", - "loc": "131:15-23" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./parser/erDiagram", - "loc": "190:15-23" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2, - "source": "/* parser generated by jison 0.4.18 */\n/*\n Returns a Parser object of the following structure:\n\n Parser: {\n yy: {}\n }\n\n Parser.prototype: {\n yy: {},\n trace: function(),\n symbols_: {associative list: name ==> number},\n terminals_: {associative list: number ==> name},\n productions_: [...],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),\n table: [...],\n defaultActions: {...},\n parseError: function(str, hash),\n parse: function(input),\n\n lexer: {\n EOF: 1,\n parseError: function(str, hash),\n setInput: function(input),\n input: function(),\n unput: function(str),\n more: function(),\n less: function(n),\n pastInput: function(),\n upcomingInput: function(),\n showPosition: function(),\n test_match: function(regex_match_array, rule_index),\n next: function(),\n lex: function(),\n begin: function(condition),\n popState: function(),\n _currentRules: function(),\n topState: function(),\n pushState: function(condition),\n\n options: {\n ranges: boolean (optional: true ==> token location info will include a .range[] member)\n flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)\n backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)\n },\n\n performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),\n rules: [...],\n conditions: {associative list: name ==> set},\n }\n }\n\n\n token location info (@$, _$, etc.): {\n first_line: n,\n last_line: n,\n first_column: n,\n last_column: n,\n range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)\n }\n\n\n the parseError function receives a 'hash' object with these members for lexer and parser errors: {\n text: (matched text)\n token: (the produced terminal token, if any)\n line: (yylineno)\n }\n while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {\n loc: (yylloc)\n expected: (string describing the set of expected tokens)\n recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)\n }\n*/\nvar parser = (function(){\nvar o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[6,12],$V1=[1,7],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[12,19,20],$V7=[15,16,17,18];\nvar parser = {trace: function trace () { },\nyy: {},\nsymbols_: {\"error\":2,\"start\":3,\"ER_DIAGRAM\":4,\"document\":5,\"EOF\":6,\"statement\":7,\"entityName\":8,\"relSpec\":9,\":\":10,\"role\":11,\"ALPHANUM\":12,\"cardinality\":13,\"relType\":14,\"ZERO_OR_ONE\":15,\"ZERO_OR_MORE\":16,\"ONE_OR_MORE\":17,\"ONLY_ONE\":18,\"NON_IDENTIFYING\":19,\"IDENTIFYING\":20,\"WORD\":21,\"$accept\":0,\"$end\":1},\nterminals_: {2:\"error\",4:\"ER_DIAGRAM\",6:\"EOF\",10:\":\",12:\"ALPHANUM\",15:\"ZERO_OR_ONE\",16:\"ZERO_OR_MORE\",17:\"ONE_OR_MORE\",18:\"ONLY_ONE\",19:\"NON_IDENTIFYING\",20:\"IDENTIFYING\",21:\"WORD\"},\nproductions_: [0,[3,3],[5,0],[5,2],[7,5],[8,1],[9,3],[13,1],[13,1],[13,1],[13,1],[14,1],[14,1],[11,1],[11,1]],\nperformAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {\n/* this == yyval */\n\nvar $0 = $$.length - 1;\nswitch (yystate) {\ncase 1:\n /*console.log('finished parsing');*/ \nbreak;\ncase 4:\n\n yy.addEntity($$[$0-4]); \n yy.addEntity($$[$0-2]); \n yy.addRelationship($$[$0-4], $$[$0], $$[$0-2], $$[$0-3]);\n /*console.log($$[$0-4] + $$[$0-3] + $$[$0-2] + ':' + $$[$0]);*/\n \nbreak;\ncase 5:\n this.$ = $$[$0]; /*console.log('Entity: ' + $$[$0]);*/ \nbreak;\ncase 6:\n\n this.$ = { cardA: $$[$0], relType: $$[$0-1], cardB: $$[$0-2] };\n /*console.log('relSpec: ' + $$[$0] + $$[$0-1] + $$[$0-2]);*/\n \nbreak;\ncase 7:\n this.$ = yy.Cardinality.ZERO_OR_ONE; \nbreak;\ncase 8:\n this.$ = yy.Cardinality.ZERO_OR_MORE; \nbreak;\ncase 9:\n this.$ = yy.Cardinality.ONE_OR_MORE; \nbreak;\ncase 10:\n this.$ = yy.Cardinality.ONLY_ONE; \nbreak;\ncase 11:\n this.$ = yy.Identification.NON_IDENTIFYING; \nbreak;\ncase 12:\n this.$ = yy.Identification.IDENTIFYING; \nbreak;\ncase 13:\n this.$ = $$[$0].replace(/\"/g, ''); \nbreak;\ncase 14:\n this.$ = $$[$0]; \nbreak;\n}\n},\ntable: [{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:6,12:$V1},{1:[2,1]},o($V0,[2,3]),{9:8,13:9,15:$V2,16:$V3,17:$V4,18:$V5},o([10,15,16,17,18],[2,5]),{8:14,12:$V1},{14:15,19:[1,16],20:[1,17]},o($V6,[2,7]),o($V6,[2,8]),o($V6,[2,9]),o($V6,[2,10]),{10:[1,18]},{13:19,15:$V2,16:$V3,17:$V4,18:$V5},o($V7,[2,11]),o($V7,[2,12]),{11:20,12:[1,22],21:[1,21]},{12:[2,6]},o($V0,[2,4]),o($V0,[2,13]),o($V0,[2,14])],\ndefaultActions: {4:[2,1],19:[2,6]},\nparseError: function parseError (str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n},\nparse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer;\n sharedState.yy.parser = this;\n if (typeof lexer.yylloc == 'undefined') {\n lexer.yylloc = {};\n }\n var yyloc = lexer.yylloc;\n lstack.push(yyloc);\n var ranges = lexer.options && lexer.options.ranges;\n if (typeof sharedState.yy.parseError === 'function') {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function popStack(n) {\n stack.length = stack.length - 2 * n;\n vstack.length = vstack.length - n;\n lstack.length = lstack.length - n;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer.lex() || EOF;\n if (typeof token !== 'number') {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == 'undefined') {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === 'undefined' || !action.length || !action[0]) {\n var errStr = '';\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push('\\'' + this.terminals_[p] + '\\'');\n }\n }\n if (lexer.showPosition) {\n errStr = 'Parse error on line ' + (yylineno + 1) + ':\\n' + lexer.showPosition() + '\\nExpecting ' + expected.join(', ') + ', got \\'' + (this.terminals_[symbol] || symbol) + '\\'';\n } else {\n errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\\'' + (this.terminals_[symbol] || symbol) + '\\'');\n }\n this.parseError(errStr, {\n text: lexer.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer.yylineno,\n loc: yyloc,\n expected: expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer.yytext);\n lstack.push(lexer.yylloc);\n stack.push(action[1]);\n symbol = null;\n if (!preErrorSymbol) {\n yyleng = lexer.yyleng;\n yytext = lexer.yytext;\n yylineno = lexer.yylineno;\n yyloc = lexer.yylloc;\n if (recovering > 0) {\n recovering--;\n }\n } else {\n symbol = preErrorSymbol;\n preErrorSymbol = null;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== 'undefined') {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n}};\n\n/* generated by jison-lex 0.3.4 */\nvar lexer = (function(){\nvar lexer = ({\n\nEOF:1,\n\nparseError:function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n\n// resets the lexer, sets new input\nsetInput:function (input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = '';\n this.conditionStack = ['INITIAL'];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0,0];\n }\n this.offset = 0;\n return this;\n },\n\n// consumes and returns one char from the input\ninput:function () {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n\n this._input = this._input.slice(1);\n return ch;\n },\n\n// unshifts one char (or a string) into the input\nunput:function (ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n //this.yyleng -= len;\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ?\n (lines.length === oldLines.length ? this.yylloc.first_column : 0)\n + oldLines[oldLines.length - lines.length].length - lines[0].length :\n this.yylloc.first_column - len\n };\n\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n\n// When called from action, caches matched text and appends it on next action\nmore:function () {\n this._more = true;\n return this;\n },\n\n// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\nreject:function () {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n\n }\n return this;\n },\n\n// retain first n characters of the match\nless:function (n) {\n this.unput(this.match.slice(n));\n },\n\n// displays already matched input, i.e. for error messages\npastInput:function () {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\\n/g, \"\");\n },\n\n// displays upcoming input, i.e. for error messages\nupcomingInput:function () {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20-next.length);\n }\n return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\\n/g, \"\");\n },\n\n// displays the character position where the lexing error occurred, i.e. for error messages\nshowPosition:function () {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n\n// test the lexed token: return FALSE when not a match, otherwise return token\ntest_match:function(match, indexed_rule) {\n var token,\n lines,\n backup;\n\n if (this.options.backtrack_lexer) {\n // save context\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ?\n lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length :\n this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n // recover context\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false; // rule action called reject() implying the next rule should be tested instead.\n }\n return false;\n },\n\n// return next match in input\nnext:function () {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n\n var token,\n match,\n tempMatch,\n index;\n if (!this._more) {\n this.yytext = '';\n this.match = '';\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue; // rule action called reject() implying a rule MISmatch.\n } else {\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\\n' + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n\n// return next match that has a token\nlex:function lex () {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n\n// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\nbegin:function begin (condition) {\n this.conditionStack.push(condition);\n },\n\n// pop the previously active lexer condition state off the condition stack\npopState:function popState () {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n\n// produce the lexer rule set which is active for the currently active lexer condition state\n_currentRules:function _currentRules () {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n\n// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\ntopState:function topState (n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n\n// alias for begin(condition)\npushState:function pushState (condition) {\n this.begin(condition);\n },\n\n// return the number of states currently on the stack\nstateStackSize:function stateStackSize() {\n return this.conditionStack.length;\n },\noptions: {\"case-insensitive\":true},\nperformAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {\nvar YYSTATE=YY_START;\nswitch($avoiding_name_collisions) {\ncase 0:/* skip whitespace */\nbreak;\ncase 1:return 'SPACE';\nbreak;\ncase 2:return 21;\nbreak;\ncase 3:return 4;\nbreak;\ncase 4:return 15;\nbreak;\ncase 5:return 16;\nbreak;\ncase 6:return 17;\nbreak;\ncase 7:return 18;\nbreak;\ncase 8:return 15;\nbreak;\ncase 9:return 16;\nbreak;\ncase 10:return 17;\nbreak;\ncase 11:return 19;\nbreak;\ncase 12:return 20;\nbreak;\ncase 13:return 19;\nbreak;\ncase 14:return 19;\nbreak;\ncase 15:return 12;\nbreak;\ncase 16:return yy_.yytext[0];\nbreak;\ncase 17:return 6;\nbreak;\n}\n},\nrules: [/^(?:\\s+)/i,/^(?:[\\s]+)/i,/^(?:\"[^\"]*\")/i,/^(?:erDiagram\\b)/i,/^(?:\\|o\\b)/i,/^(?:\\}o\\b)/i,/^(?:\\}\\|)/i,/^(?:\\|\\|)/i,/^(?:o\\|)/i,/^(?:o\\{)/i,/^(?:\\|\\{)/i,/^(?:\\.\\.)/i,/^(?:--)/i,/^(?:\\.-)/i,/^(?:-\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\-]*)/i,/^(?:.)/i,/^(?:$)/i],\nconditions: {\"INITIAL\":{\"rules\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],\"inclusive\":true}}\n});\nreturn lexer;\n})();\nparser.lexer = lexer;\nfunction Parser () {\n this.yy = {};\n}\nParser.prototype = parser;parser.Parser = Parser;\nreturn new Parser;\n})();\n\n\nif (typeof require !== 'undefined' && typeof exports !== 'undefined') {\nexports.parser = parser;\nexports.Parser = parser.Parser;\nexports.parse = function () { return parser.parse.apply(parser, arguments); };\nexports.main = function commonjsMain (args) {\n if (!args[1]) {\n console.log('Usage: '+args[0]+' FILE');\n process.exit(1);\n }\n var source = require('fs').readFileSync(require('path').normalize(args[1]), \"utf8\");\n return exports.parser.parse(source);\n};\nif (typeof module !== 'undefined' && require.main === module) {\n exports.main(process.argv.slice(1));\n}\n}" - }, - { - "id": 22, - "identifier": "external \"dagre-d3/lib/label/add-html-label.js\"", - "name": "external \"dagre-d3/lib/label/add-html-label.js\"", - "index": 48, - "index2": 45, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "7:0-64" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "55:19-31" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "dagre-d3/lib/label/add-html-label.js", - "loc": "56:19-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3 - }, - { - "id": 23, - "identifier": "external \"entity-decode/browser\"", - "name": "external \"entity-decode/browser\"", - "index": 1, - "index2": 0, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "entity-decode/browser", - "loc": "6:0-43" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "entity-decode/browser", - "loc": "100:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 1 - }, - { - "id": 24, - "identifier": "external \"scope-css\"", - "name": "external \"scope-css\"", - "index": 4, - "index2": 2, - "size": 42, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "scope-css", - "loc": "16:0-30" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "scope-css", - "loc": "292:21-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 25, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-node.js", - "name": "./src/dagre-wrapper/intersect/intersect-node.js", - "index": 58, - "index2": 52, - "size": 138, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-node.js", - "loc": "4:0-39" - }, - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "harmony import specifier", - "userRequest": "./intersect-node.js", - "loc": "10:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 6, - "source": "module.exports = intersectNode;\n\nfunction intersectNode(node, point) {\n console.info('Intersect Node');\n return node.intersect(point);\n}" - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "index": 5, - "index2": 12, - "size": 256, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 35, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "module": "./src/mermaid.js + 50 modules", - "moduleName": "./src/mermaid.js + 50 modules", - "type": "cjs require context", - "userRequest": "./themes", - "loc": "59:22-75" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 2 - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "index": 6, - "index2": 5, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./dark/index.scss", - "loc": "./dark/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 28, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/dark/index.scss", - "index": 7, - "index2": 4, - "size": 8104, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "issuerId": 27, - "issuerName": "./src/themes/dark/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 27, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "name": "./src/themes/dark/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 2, - "building": 3019, - "dependencies": 15 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 27, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/dark/index.scss", - "module": "./src/themes/dark/index.scss", - "moduleName": "./src/themes/dark/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#d3d3d3}.edgePath .path{stroke:#d3d3d3;stroke-width:1.5px}.flowchart-link{stroke:#d3d3d3;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#474949;stroke:rgba(255,255,255,0.25);stroke-width:1px}.cluster text{fill:#F9FFFE}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#474949;border:1px solid rgba(255,255,255,0.25);border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#81B1DB;fill:#1f2020}text.actor>tspan{fill:#d3d3d3;stroke:none}.actor-line{stroke:#d3d3d3}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#d3d3d3}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#d3d3d3}#arrowhead path{fill:#d3d3d3;stroke:#d3d3d3}.sequenceNumber{fill:#000}#sequencenumber{fill:#d3d3d3}#crosshead path{fill:#d3d3d3;stroke:#d3d3d3}.messageText{fill:#d3d3d3;stroke:#d3d3d3}.labelBox{stroke:#81B1DB;fill:#1f2020}.labelText,.labelText>tspan{fill:#d3d3d3;stroke:none}.loopText,.loopText>tspan{fill:#d3d3d3;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#81B1DB;fill:#81B1DB}.note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.noteText,.noteText>tspan{fill:#1f2020;stroke:none}.activation0{fill:#474949;stroke:#81B1DB}.activation1{fill:#474949;stroke:#81B1DB}.activation2{fill:#474949;stroke:#81B1DB}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(255,255,255,0.3)}.section2{fill:#EAE8B9}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#F9FFFE}.sectionTitle1{fill:#F9FFFE}.sectionTitle2{fill:#F9FFFE}.sectionTitle3{fill:#F9FFFE}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#DB5757;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#323D47;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#323D47;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#323D47}.task0,.task1,.task2,.task3{fill:#1f2020;stroke:rgba(255,255,255,0.5)}.taskTextOutside0,.taskTextOutside2{fill:#d3d3d3}.taskTextOutside1,.taskTextOutside3{fill:#d3d3d3}.active0,.active1,.active2,.active3{fill:#81B1DB;stroke:rgba(255,255,255,0.5)}.activeText0,.activeText1,.activeText2,.activeText3{fill:#323D47 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#323D47 !important}.crit0,.crit1,.crit2,.crit3{stroke:#E83737;fill:#E83737;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#E83737;fill:#81B1DB;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#E83737;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#323D47 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#323D47 !important}.titleText{text-anchor:middle;font-size:18px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#81B1DB;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#1f2020;stroke:#81B1DB}g.classGroup line{stroke:#81B1DB;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.classLabel .label{fill:#81B1DB;font-size:10px}.relation{stroke:#81B1DB;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#compositionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#aggregationStart{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#aggregationEnd{fill:#1f2020;stroke:#81B1DB;stroke-width:1}#dependencyStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#dependencyEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionStart{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}#extensionEnd{fill:#81B1DB;stroke:#81B1DB;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#323D47;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#81B1DB;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#1f2020;stroke:#81B1DB}g.stateGroup line{stroke:#81B1DB;stroke-width:1}.transition{stroke:#81B1DB;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:rgba(255,255,255,0.25);fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#1f2020;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#81B1DB}.statediagram-cluster rect{fill:#1f2020;stroke:#81B1DB;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#81B1DB}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:rgba(255,255,255,0.25);stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#a44141}.error-text{fill:#ddd;stroke:#ddd}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#d3d3d3}.marker.cross{stroke:#d3d3d3}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "index": 9, - "index2": 7, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./default/index.scss", - "loc": "./default/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 30, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/default/index.scss", - "index": 10, - "index2": 6, - "size": 7841, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "issuerId": 29, - "issuerName": "./src/themes/default/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 29, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "name": "./src/themes/default/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 45, - "building": 2986, - "dependencies": 5 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 29, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/default/index.scss", - "module": "./src/themes/default/index.scss", - "moduleName": "./src/themes/default/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#333;stroke-width:1.5px}.flowchart-link{stroke:#333;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#ccf;fill:#ECECFF}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#ccf;fill:#ECECFF}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}.note{stroke:#aa3;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:rgba(102,102,255,0.49)}.section2{fill:#fff400}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#8a90dd;stroke:#534fbc}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#bfc7ff;stroke:#534fbc}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#ECECFF;stroke:#9370db}g.classGroup line{stroke:#9370db;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.classLabel .label{fill:#9370db;font-size:10px}.relation{stroke:#9370db;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#9370db;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#ECECFF;stroke:#9370db}g.stateGroup line{stroke:#9370db;stroke-width:1}.transition{stroke:#9370db;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#aa3;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#9370db}.statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#9370db}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#333}.marker.cross{stroke:#333}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "index": 11, - "index2": 9, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./forest/index.scss", - "loc": "./forest/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 32, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/forest/index.scss", - "index": 12, - "index2": 8, - "size": 7858, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "issuerId": 31, - "issuerName": "./src/themes/forest/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 31, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "name": "./src/themes/forest/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 45, - "building": 2971 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 31, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/forest/index.scss", - "module": "./src/themes/forest/index.scss", - "moduleName": "./src/themes/forest/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#cde498;stroke:#13540c;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:green}.edgePath .path{stroke:green;stroke-width:1.5px}.flowchart-link{stroke:green;fill:none}.edgeLabel{background-color:#e8e8e8;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#cdffb2;stroke:#6eaa49;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#cdffb2;border:1px solid #6eaa49;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#13540c;fill:#cde498}text.actor>tspan{fill:#000;stroke:none}.actor-line{stroke:grey}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#326932;fill:#cde498}.labelText,.labelText>tspan{fill:#000;stroke:none}.loopText,.loopText>tspan{fill:#000;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#326932;fill:#326932}.note{stroke:#6eaa49;fill:#fff5ad}.noteText,.noteText>tspan{fill:#000;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#6eaa49}.section2{fill:#6eaa49}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:red;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#487e3a;stroke:#13540c}.taskTextOutside0,.taskTextOutside2{fill:#000}.taskTextOutside1,.taskTextOutside3{fill:#000}.active0,.active1,.active2,.active3{fill:#cde498;stroke:#13540c}.activeText0,.activeText1,.activeText2,.activeText3{fill:#000 !important}.done0,.done1,.done2,.done3{stroke:grey;fill:#d3d3d3;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#000 !important}.crit0,.crit1,.crit2,.crit3{stroke:#f88;fill:red;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#f88;fill:#cde498;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#000 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#000 !important}.titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#13540c;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#cde498;stroke:#13540c}g.classGroup line{stroke:#13540c;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.classLabel .label{fill:#13540c;font-size:10px}.relation{stroke:#13540c;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#compositionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#aggregationStart{fill:#cde498;stroke:#13540c;stroke-width:1}#aggregationEnd{fill:#cde498;stroke:#13540c;stroke-width:1}#dependencyStart{fill:#13540c;stroke:#13540c;stroke-width:1}#dependencyEnd{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionStart{fill:#13540c;stroke:#13540c;stroke-width:1}#extensionEnd{fill:#13540c;stroke:#13540c;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#13540c;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#cde498;stroke:#13540c}g.stateGroup line{stroke:#13540c;stroke-width:1}.transition{stroke:#13540c;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#6eaa49;fill:#fff5ad}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#cde498;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#13540c}.statediagram-cluster rect{fill:#cde498;stroke:#13540c;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#13540c}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#fff5ad;stroke:#6eaa49;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:green}.marker.cross{stroke:green}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "index": 13, - "index2": 11, - "size": 429, - "cacheable": true, - "built": true, - "optional": true, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "issuerId": 26, - "issuerName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1711, - "building": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 26, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "module": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "moduleName": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "type": "context element", - "userRequest": "./neutral/index.scss", - "loc": "./neutral/index.scss" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 3, - "source": "// css-to-string-loader: transforms styles from css-loader to a string output\n\n// Get the styles\nvar styles = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\");\n\nif (typeof styles === 'string') {\n // Return an existing string\n module.exports = styles;\n} else {\n // Call the custom toString method from css-loader module\n module.exports = styles.toString();\n}" - }, - { - "id": 34, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/themes/neutral/index.scss", - "index": 14, - "index2": 10, - "size": 7696, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "issuerId": 33, - "issuerName": "./src/themes/neutral/index.scss", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": 26, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/src/themes sync /^\\.\\/.*\\/index\\.scss$/", - "name": "./src/themes sync ^\\.\\/.*\\/index\\.scss$", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": 33, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "name": "./src/themes/neutral/index.scss", - "profile": { - "factory": 1711, - "building": 0 - } - } - ], - "profile": { - "factory": 44, - "building": 3036, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": 33, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-to-string-loader/index.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/css-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/node_modules/sass-loader/dist/cjs.js!/Users/knuts/source/priv/atlantica/mermaid/src/themes/neutral/index.scss", - "module": "./src/themes/neutral/index.scss", - "moduleName": "./src/themes/neutral/index.scss", - "type": "cjs require", - "userRequest": "!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss", - "loc": "4:13-129" - } - ], - "usedExports": true, - "providedExports": null, - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is not an ECMAScript module" - ], - "depth": 4, - "source": "exports = module.exports = require(\"../../../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \".label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}.label text{fill:#333}.node rect,.node circle,.node ellipse,.node polygon,.node path{fill:#eee;stroke:#999;stroke-width:1px}.node .label{text-align:center}.node.clickable{cursor:pointer}.arrowheadPath{fill:#333}.edgePath .path{stroke:#666;stroke-width:1.5px}.flowchart-link{stroke:#666;fill:none}.edgeLabel{background-color:#fff;text-align:center}.edgeLabel rect{opacity:0.5}.cluster rect{fill:#eaf2fb;stroke:#26a;stroke-width:1px}.cluster text{fill:#333}div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#eaf2fb;border:1px solid #26a;border-radius:2px;pointer-events:none;z-index:100}.actor{stroke:#999;fill:#eee}text.actor>tspan{fill:#333;stroke:none}.actor-line{stroke:#666}.messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}.messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#arrowhead path{fill:#333;stroke:#333}.sequenceNumber{fill:#fff}#sequencenumber{fill:#333}#crosshead path{fill:#333;stroke:#333}.messageText{fill:#333;stroke:#333}.labelBox{stroke:#999;fill:#eee}.labelText,.labelText>tspan{fill:#333;stroke:none}.loopText,.loopText>tspan{fill:#333;stroke:none}.loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#999;fill:#999}.note{stroke:#770;fill:#ffa}.noteText,.noteText>tspan{fill:#333;stroke:none}.activation0{fill:#f4f4f4;stroke:#666}.activation1{fill:#f4f4f4;stroke:#666}.activation2{fill:#f4f4f4;stroke:#666}.mermaid-main-font{font-family:\\\"trebuchet ms\\\", verdana, arial;font-family:var(--mermaid-font-family)}.section{stroke:none;opacity:0.2}.section0{fill:#80b3e6}.section2{fill:#80b3e6}.section1,.section3{fill:#fff;opacity:0.2}.sectionTitle0{fill:#333}.sectionTitle1{fill:#333}.sectionTitle2{fill:#333}.sectionTitle3{fill:#333}.sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid .tick{stroke:#e6e6e6;opacity:0.8;shape-rendering:crispEdges}.grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.grid path{stroke-width:0}.today{fill:none;stroke:#d42;stroke-width:2px}.task{stroke-width:2}.taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskText:not([font-size]){font-size:11px}.taskTextOutsideRight{fill:#333;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.taskTextOutsideLeft{fill:#333;text-anchor:end;font-size:11px}.task.clickable{cursor:pointer}.taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}.taskText0,.taskText1,.taskText2,.taskText3{fill:#fff}.task0,.task1,.task2,.task3{fill:#26a;stroke:#1a4d80}.taskTextOutside0,.taskTextOutside2{fill:#333}.taskTextOutside1,.taskTextOutside3{fill:#333}.active0,.active1,.active2,.active3{fill:#eee;stroke:#1a4d80}.activeText0,.activeText1,.activeText2,.activeText3{fill:#333 !important}.done0,.done1,.done2,.done3{stroke:#666;fill:#bbb;stroke-width:2}.doneText0,.doneText1,.doneText2,.doneText3{fill:#333 !important}.crit0,.crit1,.crit2,.crit3{stroke:#b1361b;fill:#d42;stroke-width:2}.activeCrit0,.activeCrit1,.activeCrit2,.activeCrit3{stroke:#b1361b;fill:#eee;stroke-width:2}.doneCrit0,.doneCrit1,.doneCrit2,.doneCrit3{stroke:#b1361b;fill:#bbb;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}.milestone{transform:rotate(45deg) scale(0.8, 0.8)}.milestoneText{font-style:italic}.doneCritText0,.doneCritText1,.doneCritText2,.doneCritText3{fill:#333 !important}.activeCritText0,.activeCritText1,.activeCritText2,.activeCritText3{fill:#333 !important}.titleText{text-anchor:middle;font-size:18px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.classGroup text{fill:#999;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}g.classGroup text .title{font-weight:bolder}g.clickable{cursor:pointer}g.classGroup rect{fill:#eee;stroke:#999}g.classGroup line{stroke:#999;stroke-width:1}.classLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.classLabel .label{fill:#999;font-size:10px}.relation{stroke:#999;stroke-width:1;fill:none}.dashed-line{stroke-dasharray:3}#compositionStart{fill:#999;stroke:#999;stroke-width:1}#compositionEnd{fill:#999;stroke:#999;stroke-width:1}#aggregationStart{fill:#eee;stroke:#999;stroke-width:1}#aggregationEnd{fill:#eee;stroke:#999;stroke-width:1}#dependencyStart{fill:#999;stroke:#999;stroke-width:1}#dependencyEnd{fill:#999;stroke:#999;stroke-width:1}#extensionStart{fill:#999;stroke:#999;stroke-width:1}#extensionEnd{fill:#999;stroke:#999;stroke-width:1}.commit-id,.commit-msg,.branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.pieTitleText{text-anchor:middle;font-size:25px;fill:#333;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.legend text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:17px}g.stateGroup text{fill:#999;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}g.stateGroup text{fill:#999;stroke:none;font-size:10px}g.stateGroup .state-title{font-weight:bolder;fill:#000}g.stateGroup rect{fill:#eee;stroke:#999}g.stateGroup line{stroke:#999;stroke-width:1}.transition{stroke:#999;stroke-width:1;fill:none}.stateGroup .composit{fill:white;border-bottom:1px}.stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}.state-note{stroke:#770;fill:#ffa}.state-note text{fill:black;stroke:none;font-size:10px}.stateLabel .box{stroke:none;stroke-width:0;fill:#eee;opacity:0.5}.stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}.node circle.state-start{fill:black;stroke:black}.node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#statediagram-barbEnd{fill:#999}.statediagram-cluster rect{fill:#eee;stroke:#999;stroke-width:1px}.statediagram-cluster rect.outer{rx:5px;ry:5px}.statediagram-state .divider{stroke:#999}.statediagram-state .title-state{rx:5px;ry:5px}.statediagram-cluster.statediagram-cluster .inner{fill:white}.statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}.statediagram-cluster .inner{rx:0;ry:0}.statediagram-state rect.basic{rx:5px;ry:5px}.statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}.note-edge{stroke-dasharray:5}.statediagram-note rect{fill:#ffa;stroke:#770;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '\\\"trebuchet ms\\\", verdana, arial';font-family:'\\\"trebuchet ms\\\", verdana, arial';font-family:var(--mermaid-font-family);font-size:16px}.error-icon{fill:#522}.error-text{fill:#522;stroke:#522}.edge-thickness-normal{stroke-width:2px}.edge-thickness-thick{stroke-width:3.5px}.edge-pattern-solid{stroke-dasharray:0}.edge-pattern-dashed{stroke-dasharray:3}.edge-pattern-dotted{stroke-dasharray:2}.marker{fill:#666}.marker.cross{stroke:#666}svg{font-family:var(--mermaid-font-family);font-size:24px}\\n\", \"\"]);\n\n" - }, - { - "id": 35, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js b8cf8b3aa3c09f74d3bf83bfeffb136d", - "name": "./src/mermaid.js + 50 modules", - "index": 0, - "index2": 85, - "size": 419844, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [ - 0 - ], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/class/parser/classDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/er/parser/erDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/flowchart/parser/flow.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/gantt/parser/gantt.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/git/parser/gitGraph.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/info/parser/info.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/pie/parser/pie.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/sequence/parser/sequenceDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/state/parser/stateDiagram.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/diagrams/user-journey/parser/journey.jison (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./src/dagre-wrapper/intersect/intersect-node.js (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with ./package.json (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"@braintree/sanitize-url\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"d3\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre-d3\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"dagre-d3/lib/label/add-html-label.js\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"entity-decode/browser\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"graphlib\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"moment-mini\" (<- Module is not an ECMAScript module)", - "ModuleConcatenation bailout: Cannot concat with external \"scope-css\" (<- Module is not an ECMAScript module)" - ], - "depth": 0, - "modules": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "index": 0, - "index2": 85, - "size": 5291, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": null, - "issuerId": null, - "issuerName": null, - "issuerPath": null, - "profile": { - "factory": 34, - "building": 203 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": null, - "module": null, - "moduleName": null, - "type": "single entry", - "userRequest": "./src/mermaid.js", - "loc": "mermaid" - } - ], - "usedExports": true, - "providedExports": [ - "default" - ], - "optimizationBailout": [ - "ModuleConcatenation bailout: Module is an entry point" - ], - "depth": 0, - "source": "/**\n * Web page integration module for the mermaid framework. It uses the mermaidAPI for mermaid functionality and to render\n * the diagrams to svg code.\n */\n// import { decode } from 'he';\nimport decode from 'entity-decode/browser';\nimport mermaidAPI from './mermaidAPI';\nimport { logger } from './logger';\nimport utils from './utils';\n/**\n * ## init\n * Function that goes through the document to find the chart definitions in there and render them.\n *\n * The function tags the processed attributes with the attribute data-processed and ignores found elements with the\n * attribute already set. This way the init function can be triggered several times.\n *\n * Optionally, `init` can accept in the second argument one of the following:\n * - a DOM Node\n * - an array of DOM nodes (as would come from a jQuery selector)\n * - a W3C selector, a la `.mermaid`\n *\n * ```mermaid\n * graph LR;\n * a(Find elements)-->b{Processed}\n * b-->|Yes|c(Leave element)\n * b-->|No |d(Transform)\n * ```\n * Renders the mermaid diagrams\n * @param nodes a css selector or an array of nodes\n */\n\nvar init = function init() {\n var _this = this;\n\n var conf = mermaidAPI.getConfig(); // console.log('Starting rendering diagrams (init) - mermaid.init');\n\n var nodes;\n\n if (arguments.length >= 2) {\n /*! sequence config was passed as #1 */\n if (typeof arguments[0] !== 'undefined') {\n mermaid.sequenceConfig = arguments[0];\n }\n\n nodes = arguments[1];\n } else {\n nodes = arguments[0];\n } // if last argument is a function this is the callback function\n\n\n var callback;\n\n if (typeof arguments[arguments.length - 1] === 'function') {\n callback = arguments[arguments.length - 1];\n logger.debug('Callback function found');\n } else {\n if (typeof conf.mermaid !== 'undefined') {\n if (typeof conf.mermaid.callback === 'function') {\n callback = conf.mermaid.callback;\n logger.debug('Callback function found');\n } else {\n logger.debug('No Callback function found');\n }\n }\n }\n\n nodes = nodes === undefined ? document.querySelectorAll('.mermaid') : typeof nodes === 'string' ? document.querySelectorAll(nodes) : nodes instanceof window.Node ? [nodes] : nodes; // Last case - sequence config was passed pick next\n\n logger.debug('Start On Load before: ' + mermaid.startOnLoad);\n\n if (typeof mermaid.startOnLoad !== 'undefined') {\n logger.debug('Start On Load inner: ' + mermaid.startOnLoad);\n mermaidAPI.initialize({\n startOnLoad: mermaid.startOnLoad\n });\n }\n\n if (typeof mermaid.ganttConfig !== 'undefined') {\n mermaidAPI.initialize({\n gantt: mermaid.ganttConfig\n });\n }\n\n var txt;\n\n var _loop = function _loop(i) {\n var element = nodes[i];\n /*! Check if previously processed */\n\n if (!element.getAttribute('data-processed')) {\n element.setAttribute('data-processed', true);\n } else {\n return \"continue\";\n }\n\n var id = \"mermaid-\".concat(Date.now()); // Fetch the graph definition including tags\n\n txt = element.innerHTML; // transforms the html to pure text\n\n txt = decode(txt).trim().replace(//gi, '
');\n var init = utils.detectInit(txt);\n\n if (init) {\n logger.debug('Detected early reinit: ', init);\n }\n\n try {\n mermaidAPI.render(id, txt, function (svgCode, bindFunctions) {\n element.innerHTML = svgCode;\n\n if (typeof callback !== 'undefined') {\n callback(id);\n }\n\n if (bindFunctions) bindFunctions(element);\n }, element);\n } catch (e) {\n logger.warn('Syntax Error rendering');\n logger.warn(e);\n\n if (_this.parseError) {\n _this.parseError(e);\n }\n }\n };\n\n for (var i = 0; i < nodes.length; i++) {\n var _ret = _loop(i);\n\n if (_ret === \"continue\") continue;\n }\n};\n\nvar initialize = function initialize(config) {\n mermaidAPI.reset();\n\n if (typeof config.mermaid !== 'undefined') {\n if (typeof config.mermaid.startOnLoad !== 'undefined') {\n mermaid.startOnLoad = config.mermaid.startOnLoad;\n }\n\n if (typeof config.mermaid.htmlLabels !== 'undefined') {\n mermaid.htmlLabels = config.mermaid.htmlLabels;\n }\n }\n\n mermaidAPI.initialize(config);\n};\n/**\n * ##contentLoaded\n * Callback function that is called when page is loaded. This functions fetches configuration for mermaid rendering and\n * calls init for rendering the mermaid diagrams on the page.\n */\n\n\nvar contentLoaded = function contentLoaded() {\n var config;\n\n if (mermaid.startOnLoad) {\n // No config found, do check API config\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n } else {\n if (typeof mermaid.startOnLoad === 'undefined') {\n logger.debug('In start, no config');\n config = mermaidAPI.getConfig();\n\n if (config.startOnLoad) {\n mermaid.init();\n }\n }\n }\n};\n\nif (typeof document !== 'undefined') {\n /*!\n * Wait for document loaded before starting the execution\n */\n window.addEventListener('load', function () {\n contentLoaded();\n }, false);\n}\n\nvar mermaid = {\n startOnLoad: true,\n htmlLabels: true,\n mermaidAPI: mermaidAPI,\n parse: mermaidAPI.parse,\n render: mermaidAPI.render,\n init: init,\n initialize: initialize,\n contentLoaded: contentLoaded\n};\nexport default mermaid;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/logger.js", - "name": "./src/logger.js", - "index": 17, - "index2": 15, - "size": 1937, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "1:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "2:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "2:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "2:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "3:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "4:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "5:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "8:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "module": "./src/diagrams/info/infoDb.js", - "moduleName": "./src/diagrams/info/infoDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "8:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "../logger", - "loc": "9:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "9:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../logger", - "loc": "11:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "module": "./src/diagrams/pie/pieDb.js", - "moduleName": "./src/diagrams/pie/pieDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "11:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "12:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "12:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "module": "./src/dagre-wrapper/markers.js", - "moduleName": "./src/dagre-wrapper/markers.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "13:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "14:0-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "14:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "17:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./logger", - "loc": "19:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "20:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "21:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "22:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "22:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "23:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "23:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "24:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "25:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "26:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "26:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "28:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "30:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "30:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "31:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "34:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "35:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "36:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "37:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "38:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "39:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "module": "./src/errorRenderer.js", - "moduleName": "./src/errorRenderer.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "39:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "42:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "42:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "43:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "module": "./src/diagrams/er/erDb.js", - "moduleName": "./src/diagrams/er/erDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "46:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "47:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "50:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "51:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "55:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "55:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "56:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "59:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "60:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "60:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "60:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "61:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "61:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "62:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "62:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "66:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "67:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "67:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "68:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "69:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "69:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "70:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "72:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "72:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "74:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "76:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "77:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "78:8-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "79:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "79:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "81:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "81:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "83:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "83:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "85:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "86:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "87:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "88:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "88:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "89:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "90:10-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "92:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "93:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "94:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "95:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "95:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "96:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "97:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "98:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "99:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "100:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "101:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "104:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "106:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "107:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "117:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "118:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "119:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "120:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "123:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "124:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "124:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "125:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "126:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "127:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "129:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "130:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "130:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "130:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "132:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "133:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "136:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "136:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "137:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "140:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "144:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "148:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "148:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "151:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "152:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "152:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "153:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "156:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "158:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "159:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "161:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "165:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "167:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "168:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "170:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "171:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "179:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "182:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "182:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "183:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "184:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "185:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "186:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "188:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "188:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "189:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "193:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "194:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "196:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "196:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "197:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "202:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "205:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "206:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "208:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "209:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "211:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "214:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "222:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "223:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "223:12-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "228:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "234:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "235:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "236:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "240:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "240:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "module": "./src/diagrams/git/gitGraphAst.js", - "moduleName": "./src/diagrams/git/gitGraphAst.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "242:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "243:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "244:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "247:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "249:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "249:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "251:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "253:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "254:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "262:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "265:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "271:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "272:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "275:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "282:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "288:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "291:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "292:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "293:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "297:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "299:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "303:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "306:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "314:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "314:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "323:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "324:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "326:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "327:6-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "332:2-5" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "module": "./src/dagre-wrapper/mermaid-graphlib.js", - "moduleName": "./src/dagre-wrapper/mermaid-graphlib.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "337:4-7" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "349:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "353:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "358:8-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "360:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "376:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "389:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "403:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "416:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "420:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "430:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "444:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "462:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "469:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "470:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "475:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "516:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "547:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "548:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "556:2-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "557:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../logger", - "loc": "559:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "584:0-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "595:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "616:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "642:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "715:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "800:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./logger", - "loc": "912:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../logger", - "loc": "944:2-8" - } - ], - "usedExports": [ - "logger", - "setLogLevel" - ], - "providedExports": [ - "LEVELS", - "logger", - "setLogLevel" - ], - "optimizationBailout": [], - "depth": 1, - "source": "import moment from 'moment-mini'; //\n\nexport var LEVELS = {\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n fatal: 5\n};\nexport var logger = {\n debug: function debug() {},\n info: function info() {},\n warn: function warn() {},\n error: function error() {},\n fatal: function fatal() {}\n};\nexport var setLogLevel = function setLogLevel() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fatal';\n\n if (isNaN(level)) {\n level = level.toLowerCase();\n\n if (LEVELS[level] !== undefined) {\n level = LEVELS[level];\n }\n }\n\n logger.trace = function () {};\n\n logger.debug = function () {};\n\n logger.info = function () {};\n\n logger.warn = function () {};\n\n logger.error = function () {};\n\n logger.fatal = function () {};\n\n if (level <= LEVELS.fatal) {\n logger.fatal = console.error ? console.error.bind(console, format('FATAL'), 'color: orange') : console.log.bind(console, '\\x1b[35m', format('FATAL'));\n }\n\n if (level <= LEVELS.error) {\n logger.error = console.error ? console.error.bind(console, format('ERROR'), 'color: orange') : console.log.bind(console, '\\x1b[31m', format('ERROR'));\n }\n\n if (level <= LEVELS.warn) {\n logger.warn = console.warn ? console.warn.bind(console, format('WARN'), 'color: orange') : console.log.bind(console, \"\\x1B[33m\", format('WARN'));\n }\n\n if (level <= LEVELS.info) {\n logger.info = console.info ? // ? console.info.bind(console, '\\x1b[34m', format('INFO'), 'color: blue')\n console.info.bind(console, format('INFO'), 'color: lightblue') : console.log.bind(console, '\\x1b[34m', format('INFO'));\n }\n\n if (level <= LEVELS.debug) {\n logger.debug = console.debug ? console.debug.bind(console, format('DEBUG'), 'color: lightgreen') : console.log.bind(console, '\\x1b[32m', format('DEBUG'));\n }\n};\n\nvar format = function format(level) {\n var time = moment().format('ss.SSS');\n return \"%c\".concat(time, \" : \").concat(level, \" : \");\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "index": 15, - "index2": 17, - "size": 24774, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "6:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../utils", - "loc": "6:0-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "7:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "9:0-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "10:0-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../utils", - "loc": "13:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./utils", - "loc": "20:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "37:14-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "42:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "43:17-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../utils", - "loc": "48:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "module": "./src/diagrams/state/stateDb.js", - "moduleName": "./src/diagrams/state/stateDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "56:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "58:22-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "63:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "65:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "66:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "70:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "101:15-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "160:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "172:25-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "174:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "188:24-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "197:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "214:19-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "217:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "223:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "227:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "229:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "231:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "233:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "250:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "252:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "252:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "254:23-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "262:10-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "280:17-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "282:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "337:32-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "396:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "437:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "441:19-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "527:29-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:6-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "548:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "673:38-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "674:30-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "736:26-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "739:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:23-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "770:66-71" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:21-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "788:64-69" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "797:24-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "821:16-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "824:18-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../utils", - "loc": "847:13-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "854:17-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "855:20-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "866:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "869:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "878:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "890:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "899:9-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "930:2-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "module": "./src/config.js", - "moduleName": "./src/config.js", - "type": "harmony import specifier", - "userRequest": "./utils", - "loc": "933:2-17" - } - ], - "usedExports": [ - "default", - "assignWithDepth", - "getStylesFromArray", - "interpolateToCurve", - "generateId" - ], - "providedExports": [ - "detectInit", - "detectDirective", - "detectType", - "isSubstringInArray", - "interpolateToCurve", - "formatUrl", - "runFunc", - "getStylesFromArray", - "generateId", - "random", - "assignWithDepth", - "getTextObj", - "drawSimpleText", - "wrapLabel", - "calculateTextHeight", - "calculateTextWidth", - "calculateTextDimensions", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "var _this = this;\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport { curveBasis, curveBasisClosed, curveBasisOpen, curveLinear, curveLinearClosed, curveMonotoneX, curveMonotoneY, curveNatural, curveStep, curveStepAfter, curveStepBefore, select } from 'd3';\nimport { logger } from './logger';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport common from './diagrams/common/common'; // import cryptoRandomString from 'crypto-random-string';\n// Effectively an enum of the supported curve types, accessible by name\n\nvar d3CurveTypes = {\n curveBasis: curveBasis,\n curveBasisClosed: curveBasisClosed,\n curveBasisOpen: curveBasisOpen,\n curveLinear: curveLinear,\n curveLinearClosed: curveLinearClosed,\n curveMonotoneX: curveMonotoneX,\n curveMonotoneY: curveMonotoneY,\n curveNatural: curveNatural,\n curveStep: curveStep,\n curveStepAfter: curveStepAfter,\n curveStepBefore: curveStepBefore\n};\nvar directive = /[%]{2}[{]\\s*(?:(?:(\\w+)\\s*:|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar directiveWithoutOpen = /\\s*(?:(?:(\\w+)(?=:):|(\\w+))\\s*(?:(?:(\\w+))|((?:(?![}][%]{2}).|\\r?\\n)*))?\\s*)(?:[}][%]{2})?/gi;\nvar anyComment = /\\s*%%.*\\n/gm;\n/**\n * @function detectInit\n * Detects the init config object from the text\n * ```mermaid\n * %%{init: {\"theme\": \"debug\", \"logLevel\": 1 }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n * or\n * ```mermaid\n * %%{initialize: {\"theme\": \"dark\", logLevel: \"debug\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {object} the json object representing the init passed to mermaid.initialize()\n */\n\nexport var detectInit = function detectInit(text) {\n var inits = detectDirective(text, /(?:init\\b)|(?:initialize\\b)/);\n var results = {};\n\n if (Array.isArray(inits)) {\n var args = inits.map(function (init) {\n return init.args;\n });\n results = assignWithDepth(results, _toConsumableArray(args));\n } else {\n results = inits.args;\n }\n\n if (results) {\n var type = detectType(text);\n ['config'].forEach(function (prop) {\n if (typeof results[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n results[type] = results[prop];\n delete results[prop];\n }\n });\n }\n\n return results;\n};\n/**\n * @function detectDirective\n * Detects the directive from the text. Text can be single line or multiline. If type is null or omitted\n * the first directive encountered in text will be returned\n * ```mermaid\n * graph LR\n * %%{somedirective}%%\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @param {string|RegExp} type The directive to return (default: null)\n * @returns {object | Array} An object or Array representing the directive(s): { type: string, args: object|null } matched by the input type\n * if a single directive was found, that directive object will be returned.\n */\n\nexport var detectDirective = function detectDirective(text) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n try {\n var commentWithoutDirectives = new RegExp(\"[%]{2}(?![{]\".concat(directiveWithoutOpen.source, \")(?=[}][%]{2}).*\\n\"), 'ig');\n text = text.trim().replace(commentWithoutDirectives, '').replace(/'/gm, '\"');\n logger.debug(\"Detecting diagram directive\".concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n var match,\n result = [];\n\n while ((match = directive.exec(text)) !== null) {\n // This is necessary to avoid infinite loops with zero-width matches\n if (match.index === directive.lastIndex) {\n directive.lastIndex++;\n }\n\n if (match && !type || type && match[1] && match[1].match(type) || type && match[2] && match[2].match(type)) {\n var _type = match[1] ? match[1] : match[2];\n\n var args = match[3] ? match[3].trim() : match[4] ? JSON.parse(match[4].trim()) : null;\n result.push({\n type: _type,\n args: args\n });\n }\n }\n\n if (result.length === 0) {\n result.push({\n type: text,\n args: null\n });\n }\n\n return result.length === 1 ? result[0] : result;\n } catch (error) {\n logger.error(\"ERROR: \".concat(error.message, \" - Unable to parse directive\").concat(type !== null ? ' type:' + type : '', \" based on the text:\").concat(text));\n return {\n type: null,\n args: null\n };\n }\n};\n/**\n * @function detectType\n * Detects the type of the graph text. Takes into consideration the possible existence of an %%init\n * directive\n * ```mermaid\n * %%{initialize: {\"startOnLoad\": true, logLevel: \"fatal\" }}%%\n * graph LR\n * a-->b\n * b-->c\n * c-->d\n * d-->e\n * e-->f\n * f-->g\n * g-->h\n * ```\n *\n * @param {string} text The text defining the graph\n * @returns {string} A graph definition key\n */\n\nexport var detectType = function detectType(text) {\n text = text.replace(directive, '').replace(anyComment, '\\n');\n logger.debug('Detecting diagram type based on the text ' + text);\n\n if (text.match(/^\\s*sequenceDiagram/)) {\n return 'sequence';\n }\n\n if (text.match(/^\\s*gantt/)) {\n return 'gantt';\n }\n\n if (text.match(/^\\s*classDiagram/)) {\n return 'class';\n }\n\n if (text.match(/^\\s*stateDiagram-v2/)) {\n return 'stateDiagram';\n }\n\n if (text.match(/^\\s*stateDiagram/)) {\n return 'state';\n }\n\n if (text.match(/^\\s*gitGraph/)) {\n return 'git';\n }\n\n if (text.match(/^\\s*flowchart/)) {\n return 'flowchart-v2';\n }\n\n if (text.match(/^\\s*info/)) {\n return 'info';\n }\n\n if (text.match(/^\\s*pie/)) {\n return 'pie';\n }\n\n if (text.match(/^\\s*erDiagram/)) {\n return 'er';\n }\n\n if (text.match(/^\\s*journey/)) {\n return 'journey';\n }\n\n return 'flowchart';\n};\n\nvar memoize = function memoize(fn, resolver) {\n var cache = {};\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var n = resolver ? resolver.apply(_this, args) : args[0];\n\n if (n in cache) {\n return cache[n];\n } else {\n var result = fn.apply(void 0, args);\n cache[n] = result;\n return result;\n }\n };\n};\n/**\n * @function isSubstringInArray\n * Detects whether a substring in present in a given array\n * @param {string} str The substring to detect\n * @param {array} arr The array to search\n * @returns {number} the array index containing the substring or -1 if not present\n **/\n\n\nexport var isSubstringInArray = function isSubstringInArray(str, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i].match(str)) return i;\n }\n\n return -1;\n};\nexport var interpolateToCurve = function interpolateToCurve(interpolate, defaultCurve) {\n if (!interpolate) {\n return defaultCurve;\n }\n\n var curveName = \"curve\".concat(interpolate.charAt(0).toUpperCase() + interpolate.slice(1));\n return d3CurveTypes[curveName] || defaultCurve;\n};\nexport var formatUrl = function formatUrl(linkStr, config) {\n var url = linkStr.trim();\n\n if (url) {\n if (config.securityLevel !== 'loose') {\n return sanitizeUrl(url);\n }\n\n return url;\n }\n};\nexport var runFunc = function runFunc(functionName) {\n var _obj;\n\n var arrPaths = functionName.split('.');\n var len = arrPaths.length - 1;\n var fnName = arrPaths[len];\n var obj = window;\n\n for (var i = 0; i < len; i++) {\n obj = obj[arrPaths[i]];\n if (!obj) return;\n }\n\n for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n params[_key2 - 1] = arguments[_key2];\n }\n\n (_obj = obj)[fnName].apply(_obj, params);\n};\n\nvar distance = function distance(p1, p2) {\n return p1 && p2 ? Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)) : 0;\n};\n\nvar traverseEdge = function traverseEdge(points) {\n var prevPoint;\n var totalDistance = 0;\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse half of total distance along points\n\n var remainingDistance = totalDistance / 2;\n var center = undefined;\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n });\n return center;\n};\n\nvar calcLabelPosition = function calcLabelPosition(points) {\n return traverseEdge(points);\n};\n\nvar calcCardinalityPosition = function calcCardinalityPosition(isRelationTypePresent, points, initialPosition) {\n var prevPoint;\n var totalDistance = 0; // eslint-disable-line\n\n if (points[0] !== initialPosition) {\n points = points.reverse();\n }\n\n points.forEach(function (point) {\n totalDistance += distance(point, prevPoint);\n prevPoint = point;\n }); // Traverse only 25 total distance along points to find cardinality point\n\n var distanceToCardinalityPoint = 25;\n var remainingDistance = distanceToCardinalityPoint;\n var center = {\n x: 0,\n y: 0\n };\n prevPoint = undefined;\n points.forEach(function (point) {\n if (prevPoint && !center) {\n var vectorDistance = distance(point, prevPoint);\n\n if (vectorDistance < remainingDistance) {\n remainingDistance -= vectorDistance;\n } else {\n // The point is remainingDistance from prevPoint in the vector between prevPoint and point\n // Calculate the coordinates\n var distanceRatio = remainingDistance / vectorDistance;\n if (distanceRatio <= 0) center = prevPoint;\n if (distanceRatio >= 1) center = {\n x: point.x,\n y: point.y\n };\n\n if (distanceRatio > 0 && distanceRatio < 1) {\n center = {\n x: (1 - distanceRatio) * prevPoint.x + distanceRatio * point.x,\n y: (1 - distanceRatio) * prevPoint.y + distanceRatio * point.y\n };\n }\n }\n }\n\n prevPoint = point;\n }); // if relation is present (Arrows will be added), change cardinality point off-set distance (d)\n\n var d = isRelationTypePresent ? 10 : 5; //Calculate Angle for x and y axis\n\n var angle = Math.atan2(points[0].y - center.y, points[0].x - center.x);\n var cardinalityPosition = {\n x: 0,\n y: 0\n }; //Calculation cardinality position using angle, center point on the line/curve but pendicular and with offset-distance\n\n cardinalityPosition.x = Math.sin(angle) * d + (points[0].x + center.x) / 2;\n cardinalityPosition.y = -Math.cos(angle) * d + (points[0].y + center.y) / 2;\n return cardinalityPosition;\n};\n\nexport var getStylesFromArray = function getStylesFromArray(arr) {\n var style = '';\n var labelStyle = '';\n\n for (var i = 0; i < arr.length; i++) {\n if (typeof arr[i] !== 'undefined') {\n // add text properties to label style definition\n if (arr[i].startsWith('color:') || arr[i].startsWith('text-align:')) {\n labelStyle = labelStyle + arr[i] + ';';\n } else {\n style = style + arr[i] + ';';\n }\n }\n }\n\n return {\n style: style,\n labelStyle: labelStyle\n };\n};\nvar cnt = 0;\nexport var generateId = function generateId() {\n cnt++;\n return 'id-' + Math.random().toString(36).substr(2, 12) + '-' + cnt;\n};\nexport var random = function random(options) {\n // return cryptoRandomString(options);\n return 'apa';\n};\n/**\n * @function assignWithDepth\n * Extends the functionality of {@link ObjectConstructor.assign} with the ability to merge arbitrary-depth objects\n * For each key in src with path `k` (recursively) performs an Object.assign(dst[`k`], src[`k`]) with\n * a slight change from the typical handling of undefined for dst[`k`]: instead of raising an error,\n * dst[`k`] is auto-initialized to {} and effectively merged with src[`k`]\n *

\n * Additionally, dissimilar types will not clobber unless the config.clobber parameter === true. Example:\n * ```\n * let config_0 = { foo: { bar: 'bar' }, bar: 'foo' };\n * let config_1 = { foo: 'foo', bar: 'bar' };\n * let result = assignWithDepth(config_0, config_1);\n * console.log(result);\n * //-> result: { foo: { bar: 'bar' }, bar: 'bar' }\n * ```\n *

\n * Traditional Object.assign would have clobbered foo in config_0 with foo in config_1.\n *

\n * If src is a destructured array of objects and dst is not an array, assignWithDepth will apply each element of src to dst\n * in order.\n * @param dst:any - the destination of the merge\n * @param src:any - the source object(s) to merge into destination\n * @param config:{ depth: number, clobber: boolean } - depth: depth to traverse within src and dst for merging -\n * clobber: should dissimilar types clobber (default: { depth: 2, clobber: false })\n * @returns {*}\n */\n\nexport var assignWithDepth = function assignWithDepth(dst, src, config) {\n var _Object$assign = Object.assign({\n depth: 2,\n clobber: false\n }, config),\n depth = _Object$assign.depth,\n clobber = _Object$assign.clobber;\n\n if (Array.isArray(src) && !Array.isArray(dst)) {\n src.forEach(function (s) {\n return assignWithDepth(dst, s, config);\n });\n return dst;\n } else if (Array.isArray(src) && Array.isArray(dst)) {\n src.forEach(function (s) {\n if (dst.indexOf(s) === -1) {\n dst.push(s);\n }\n });\n return dst;\n }\n\n if (typeof dst === 'undefined' || depth <= 0) {\n if (dst !== undefined && dst !== null && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n return Object.assign(dst, src);\n } else {\n return src;\n }\n }\n\n if (typeof src !== 'undefined' && _typeof(dst) === 'object' && _typeof(src) === 'object') {\n Object.keys(src).forEach(function (key) {\n if (_typeof(src[key]) === 'object' && (dst[key] === undefined || _typeof(dst[key]) === 'object')) {\n if (dst[key] === undefined) {\n dst[key] = Array.isArray(src[key]) ? [] : {};\n }\n\n dst[key] = assignWithDepth(dst[key], src[key], {\n depth: depth - 1,\n clobber: clobber\n });\n } else if (clobber || _typeof(dst[key]) !== 'object' && _typeof(src[key]) !== 'object') {\n dst[key] = src[key];\n }\n });\n }\n\n return dst;\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: 'start',\n style: '#666',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0,\n valign: undefined\n };\n};\nexport var drawSimpleText = function drawSimpleText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.style('font-family', textData.fontFamily);\n textElem.style('font-size', textData.fontSize);\n textElem.style('font-weight', textData.fontWeight);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\nexport var wrapLabel = memoize(function (label, maxWidth, config) {\n if (!label) {\n return label;\n }\n\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n joinWith: '
'\n }, config);\n\n if (common.lineBreakRegex.test(label)) {\n return label;\n }\n\n var words = label.split(' ');\n var completedLines = [];\n var nextLine = '';\n words.forEach(function (word, index) {\n var wordLength = calculateTextWidth(\"\".concat(word, \" \"), config);\n var nextLineLength = calculateTextWidth(nextLine, config);\n\n if (wordLength > maxWidth) {\n var _breakString = breakString(word, maxWidth, '-', config),\n hyphenatedStrings = _breakString.hyphenatedStrings,\n remainingWord = _breakString.remainingWord;\n\n completedLines.push.apply(completedLines, [nextLine].concat(_toConsumableArray(hyphenatedStrings)));\n nextLine = remainingWord;\n } else if (nextLineLength + wordLength >= maxWidth) {\n completedLines.push(nextLine);\n nextLine = word;\n } else {\n nextLine = [nextLine, word].filter(Boolean).join(' ');\n }\n\n var currentWord = index + 1;\n var isLastWord = currentWord === words.length;\n\n if (isLastWord) {\n completedLines.push(nextLine);\n }\n });\n return completedLines.filter(function (line) {\n return line !== '';\n }).join(config.joinWith);\n}, function (label, maxWidth, config) {\n return \"\".concat(label, \"-\").concat(maxWidth, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily, \"-\").concat(config.joinWith);\n});\nvar breakString = memoize(function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 0\n }, config);\n var characters = word.split('');\n var lines = [];\n var currentLine = '';\n characters.forEach(function (character, index) {\n var nextLine = \"\".concat(currentLine).concat(character);\n var lineWidth = calculateTextWidth(nextLine, config);\n\n if (lineWidth >= maxWidth) {\n var currentCharacter = index + 1;\n var isLastLine = characters.length === currentCharacter;\n var hyphenatedNextLine = \"\".concat(nextLine).concat(hyphenCharacter);\n lines.push(isLastLine ? nextLine : hyphenatedNextLine);\n currentLine = '';\n } else {\n currentLine = nextLine;\n }\n });\n return {\n hyphenatedStrings: lines,\n remainingWord: currentLine\n };\n}, function (word, maxWidth) {\n var hyphenCharacter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';\n var config = arguments.length > 3 ? arguments[3] : undefined;\n return \"\".concat(word, \"-\").concat(maxWidth, \"-\").concat(hyphenCharacter, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\n/**\n * This calculates the text's height, taking into account the wrap breaks and\n * both the statically configured height, width, and the length of the text (in pixels).\n *\n * If the wrapped text text has greater height, we extend the height, so it's\n * value won't overflow.\n *\n * @return - The height for the given text\n * @param text the text to measure\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextHeight = function calculateTextHeight(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial',\n margin: 15\n }, config);\n return calculateTextDimensions(text, config).height;\n};\n/**\n * This calculates the width of the given text, font size and family.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, and fontWeight all impacting the resulting size\n */\n\nexport var calculateTextWidth = function calculateTextWidth(text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n return calculateTextDimensions(text, config).width;\n};\n/**\n * This calculates the dimensions of the given text, font size, font family, font weight, and margins.\n *\n * @return - The width for the given text\n * @param text - The text to calculate the width of\n * @param config - the config for fontSize, fontFamily, fontWeight, and margin all impacting the resulting size\n */\n\nexport var calculateTextDimensions = memoize(function (text, config) {\n config = Object.assign({\n fontSize: 12,\n fontWeight: 400,\n fontFamily: 'Arial'\n }, config);\n var _config = config,\n fontSize = _config.fontSize,\n fontFamily = _config.fontFamily,\n fontWeight = _config.fontWeight;\n\n if (!text) {\n return {\n width: 0,\n height: 0\n };\n } // We can't really know if the user supplied font family will render on the user agent;\n // thus, we'll take the max width between the user supplied font family, and a default\n // of sans-serif.\n\n\n var fontFamilies = ['sans-serif', fontFamily];\n var lines = text.split(common.lineBreakRegex);\n var dims = [];\n var body = select('body'); // We don't want to leak DOM elements - if a removal operation isn't available\n // for any reason, do not continue.\n\n if (!body.remove) {\n return {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n }\n\n var g = body.append('svg');\n\n for (var _i = 0, _fontFamilies = fontFamilies; _i < _fontFamilies.length; _i++) {\n var _fontFamily = _fontFamilies[_i];\n var cheight = 0;\n var dim = {\n width: 0,\n height: 0,\n lineHeight: 0\n };\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var line = _step.value;\n var textObj = getTextObj();\n textObj.text = line;\n var textElem = drawSimpleText(g, textObj).style('font-size', fontSize).style('font-weight', fontWeight).style('font-family', _fontFamily);\n var bBox = (textElem._groups || textElem)[0][0].getBBox();\n dim.width = Math.round(Math.max(dim.width, bBox.width));\n cheight = Math.round(bBox.height);\n dim.height += cheight;\n dim.lineHeight = Math.round(Math.max(dim.lineHeight, cheight));\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n dims.push(dim);\n }\n\n g.remove();\n var index = isNaN(dims[1].height) || isNaN(dims[1].width) || isNaN(dims[1].lineHeight) || dims[0].height > dims[1].height && dims[0].width > dims[1].width && dims[0].lineHeight > dims[1].lineHeight ? 0 : 1;\n return dims[index];\n}, function (text, config) {\n return \"\".concat(text, \"-\").concat(config.fontSize, \"-\").concat(config.fontWeight, \"-\").concat(config.fontFamily);\n});\nexport default {\n assignWithDepth: assignWithDepth,\n wrapLabel: wrapLabel,\n calculateTextHeight: calculateTextHeight,\n calculateTextWidth: calculateTextWidth,\n calculateTextDimensions: calculateTextDimensions,\n detectInit: detectInit,\n detectDirective: detectDirective,\n detectType: detectType,\n isSubstringInArray: isSubstringInArray,\n interpolateToCurve: interpolateToCurve,\n calcLabelPosition: calcLabelPosition,\n calcCardinalityPosition: calcCardinalityPosition,\n formatUrl: formatUrl,\n getStylesFromArray: getStylesFromArray,\n generateId: generateId,\n random: random,\n memoize: memoize,\n runFunc: runFunc\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "index": 2, - "index2": 84, - "size": 19471, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "issuerId": null, - "issuerName": "./src/mermaid.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - } - ], - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../mermaidAPI", - "loc": "1:0-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaidAPI", - "loc": "7:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../mermaidAPI", - "loc": "14:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "35:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "73:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "79:4-14" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "108:6-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "135:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "147:2-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "161:13-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "169:15-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "190:14-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "191:9-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "module": "./src/mermaid.js", - "moduleName": "./src/mermaid.js", - "type": "harmony import specifier", - "userRequest": "./mermaidAPI", - "loc": "192:10-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "encodeEntities", - "decodeEntities", - "default" - ], - "optimizationBailout": [], - "depth": 1, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/**\n * This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.\n *\n * The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph\n * definition as text, renders the graph/diagram and returns an svg element for the graph.\n *\n * It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.\n *\n * In addition to the render function, a number of behavioral configuration options are available.\n *\n * @name mermaidAPI\n */\nimport { select } from 'd3';\nimport scope from 'scope-css';\nimport pkg from '../package.json';\nimport { setConfig, getConfig, setSiteConfig, getSiteConfig } from './config';\nimport { logger, setLogLevel } from './logger';\nimport utils, { assignWithDepth } from './utils';\nimport flowRenderer from './diagrams/flowchart/flowRenderer';\nimport flowRendererV2 from './diagrams/flowchart/flowRenderer-v2';\nimport flowParser from './diagrams/flowchart/parser/flow';\nimport flowDb from './diagrams/flowchart/flowDb';\nimport sequenceRenderer from './diagrams/sequence/sequenceRenderer';\nimport sequenceParser from './diagrams/sequence/parser/sequenceDiagram';\nimport sequenceDb from './diagrams/sequence/sequenceDb';\nimport ganttRenderer from './diagrams/gantt/ganttRenderer';\nimport ganttParser from './diagrams/gantt/parser/gantt';\nimport ganttDb from './diagrams/gantt/ganttDb';\nimport classRenderer from './diagrams/class/classRenderer';\nimport classParser from './diagrams/class/parser/classDiagram';\nimport classDb from './diagrams/class/classDb';\nimport stateRenderer from './diagrams/state/stateRenderer';\nimport stateRendererV2 from './diagrams/state/stateRenderer-v2';\nimport stateParser from './diagrams/state/parser/stateDiagram';\nimport stateDb from './diagrams/state/stateDb';\nimport gitGraphRenderer from './diagrams/git/gitGraphRenderer';\nimport gitGraphParser from './diagrams/git/parser/gitGraph';\nimport gitGraphAst from './diagrams/git/gitGraphAst';\nimport infoRenderer from './diagrams/info/infoRenderer';\nimport errorRenderer from './errorRenderer';\nimport infoParser from './diagrams/info/parser/info';\nimport infoDb from './diagrams/info/infoDb';\nimport pieRenderer from './diagrams/pie/pieRenderer';\nimport pieParser from './diagrams/pie/parser/pie';\nimport pieDb from './diagrams/pie/pieDb';\nimport erDb from './diagrams/er/erDb';\nimport erParser from './diagrams/er/parser/erDiagram';\nimport erRenderer from './diagrams/er/erRenderer';\nimport journeyParser from './diagrams/user-journey/parser/journey';\nimport journeyDb from './diagrams/user-journey/journeyDb';\nimport journeyRenderer from './diagrams/user-journey/journeyRenderer';\nimport configApi from './config';\nvar themes = {};\n\nfor (var _i = 0, _arr = ['default', 'forest', 'dark', 'neutral']; _i < _arr.length; _i++) {\n var themeName = _arr[_i];\n themes[themeName] = require(\"./themes/\".concat(themeName, \"/index.scss\"));\n}\n\nfunction parse(text) {\n var graphInit = utils.detectInit(text);\n\n if (graphInit) {\n reinitialize(graphInit);\n logger.debug('reinit ', graphInit);\n }\n\n var graphType = utils.detectType(text);\n var parser;\n logger.debug('Type ' + graphType);\n\n switch (graphType) {\n case 'git':\n parser = gitGraphParser;\n parser.parser.yy = gitGraphAst;\n break;\n\n case 'flowchart':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'flowchart-v2':\n flowDb.clear();\n parser = flowParser;\n parser.parser.yy = flowDb;\n break;\n\n case 'sequence':\n parser = sequenceParser;\n parser.parser.yy = sequenceDb;\n break;\n\n case 'gantt':\n parser = ganttParser;\n parser.parser.yy = ganttDb;\n break;\n\n case 'class':\n parser = classParser;\n parser.parser.yy = classDb;\n break;\n\n case 'state':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'stateDiagram':\n parser = stateParser;\n parser.parser.yy = stateDb;\n break;\n\n case 'info':\n logger.debug('info info info');\n parser = infoParser;\n parser.parser.yy = infoDb;\n break;\n\n case 'pie':\n logger.debug('pie');\n parser = pieParser;\n parser.parser.yy = pieDb;\n break;\n\n case 'er':\n logger.debug('er');\n parser = erParser;\n parser.parser.yy = erDb;\n break;\n\n case 'journey':\n logger.debug('Journey');\n parser = journeyParser;\n parser.parser.yy = journeyDb;\n break;\n }\n\n parser.parser.yy.graphType = graphType;\n\n parser.parser.yy.parseError = function (str, hash) {\n var error = {\n str: str,\n hash: hash\n };\n throw error;\n };\n\n parser.parse(text);\n return parser;\n}\n\nexport var encodeEntities = function encodeEntities(text) {\n var txt = text;\n txt = txt.replace(/style.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/classDef.*:\\S*#.*;/g, function (s) {\n var innerTxt = s.substring(0, s.length - 1);\n return innerTxt;\n });\n txt = txt.replace(/#\\w+;/g, function (s) {\n var innerTxt = s.substring(1, s.length - 1);\n var isInt = /^\\+?\\d+$/.test(innerTxt);\n\n if (isInt) {\n return 'fl°°' + innerTxt + '¶ß';\n } else {\n return 'fl°' + innerTxt + '¶ß';\n }\n });\n return txt;\n};\nexport var decodeEntities = function decodeEntities(text) {\n var txt = text;\n txt = txt.replace(/fl°°/g, function () {\n return '&#';\n });\n txt = txt.replace(/fl°/g, function () {\n return '&';\n });\n txt = txt.replace(/¶ß/g, function () {\n return ';';\n });\n return txt;\n};\n/**\n * Function that renders an svg with a graph from a chart definition. Usage example below.\n *\n * ```js\n * mermaidAPI.initialize({\n * startOnLoad:true\n * });\n * $(function(){\n * const graphDefinition = 'graph TB\\na-->b';\n * const cb = function(svgGraph){\n * console.log(svgGraph);\n * };\n * mermaidAPI.render('id1',graphDefinition,cb);\n * });\n *```\n * @param id the id of the element to be rendered\n * @param _txt the graph definition\n * @param cb callback which is called after rendering is finished with the svg code as inparam.\n * @param container selector to element in which a div with the graph temporarily will be inserted. In one is\n * provided a hidden div will be inserted in the body of the page instead. The element will be removed when rendering is\n * completed.\n */\n\nvar render = function render(id, _txt, cb, container) {\n var cnf = getConfig(); // Check the maximum allowed text size\n\n var txt = _txt;\n\n if (_txt.length > cnf.maxTextSize) {\n txt = 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa';\n }\n\n var graphInit = utils.detectInit(txt);\n\n if (graphInit) {\n reinitialize(graphInit);\n assignWithDepth(cnf, getConfig());\n }\n\n if (typeof container !== 'undefined') {\n container.innerHTML = '';\n select(container).append('div').attr('id', 'd' + id).attr('style', 'font-family: ' + cnf.fontFamily).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n } else {\n var existingSvg = document.getElementById(id);\n\n if (existingSvg) {\n existingSvg.remove();\n }\n\n var _element = document.querySelector('#' + 'd' + id);\n\n if (_element) {\n _element.remove();\n }\n\n select('body').append('div').attr('id', 'd' + id).append('svg').attr('id', id).attr('width', '100%').attr('xmlns', 'http://www.w3.org/2000/svg').append('g');\n }\n\n window.txt = txt;\n txt = encodeEntities(txt);\n var element = select('#d' + id).node();\n var graphType = utils.detectType(txt); // insert inline style into svg\n\n var svg = element.firstChild;\n var firstChild = svg.firstChild; // pre-defined theme\n\n var style = themes[cnf.theme];\n\n if (style === undefined) {\n style = '';\n } // user provided theme CSS\n\n\n if (cnf.themeCSS !== undefined) {\n style += \"\\n\".concat(cnf.themeCSS);\n } // user provided theme CSS\n\n\n if (cnf.fontFamily !== undefined) {\n style += \"\\n:root { --mermaid-font-family: \".concat(cnf.fontFamily, \"}\");\n } // user provided theme CSS\n\n\n if (cnf.altFontFamily !== undefined) {\n style += \"\\n:root { --mermaid-alt-font-family: \".concat(cnf.altFontFamily, \"}\");\n } // classDef\n\n\n if (graphType === 'flowchart' || graphType === 'flowchart-v2' || graphType === 'graph') {\n var classes = flowRenderer.getClasses(txt);\n\n for (var className in classes) {\n style += \"\\n.\".concat(className, \" > * { \").concat(classes[className].styles.join(' !important; '), \" !important; }\");\n\n if (classes[className].textStyles) {\n style += \"\\n.\".concat(className, \" tspan { \").concat(classes[className].textStyles.join(' !important; '), \" !important; }\");\n }\n }\n }\n\n var style1 = document.createElement('style');\n style1.innerHTML = scope(style, \"#\".concat(id));\n svg.insertBefore(style1, firstChild); // Verify that the generated svgs are ok before removing this\n // const style2 = document.createElement('style');\n // const cs = window.getComputedStyle(svg);\n // style2.innerHTML = `#d${id} * {\n // color: ${cs.color};\n // // font: ${cs.font};\n // // font-family: Arial;\n // // font-size: 24px;\n // }`;\n // svg.insertBefore(style2, firstChild);\n\n try {\n switch (graphType) {\n case 'git':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n gitGraphRenderer.setConf(cnf.git);\n gitGraphRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRenderer.setConf(cnf.flowchart);\n flowRenderer.draw(txt, id, false);\n break;\n\n case 'flowchart-v2':\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n flowRendererV2.setConf(cnf.flowchart);\n flowRendererV2.draw(txt, id, false);\n break;\n\n case 'sequence':\n cnf.sequence.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n\n if (cnf.sequenceDiagram) {\n // backwards compatibility\n sequenceRenderer.setConf(Object.assign(cnf.sequence, cnf.sequenceDiagram));\n console.error('`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.');\n } else {\n sequenceRenderer.setConf(cnf.sequence);\n }\n\n sequenceRenderer.draw(txt, id);\n break;\n\n case 'gantt':\n cnf.gantt.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n ganttRenderer.setConf(cnf.gantt);\n ganttRenderer.draw(txt, id);\n break;\n\n case 'class':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n classRenderer.setConf(cnf.class);\n classRenderer.draw(txt, id);\n break;\n\n case 'state':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRenderer.setConf(cnf.state);\n stateRenderer.draw(txt, id);\n break;\n\n case 'stateDiagram':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n stateRendererV2.setConf(cnf.state);\n stateRendererV2.draw(txt, id);\n break;\n\n case 'info':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n infoRenderer.setConf(cnf.class);\n infoRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'pie':\n cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n pieRenderer.setConf(cnf.class);\n pieRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'er':\n erRenderer.setConf(cnf.er);\n erRenderer.draw(txt, id, pkg.version);\n break;\n\n case 'journey':\n journeyRenderer.setConf(cnf.journey);\n journeyRenderer.draw(txt, id, pkg.version);\n break;\n }\n } catch (e) {\n // errorRenderer.setConf(cnf.class);\n errorRenderer.draw(id, pkg.version);\n throw e;\n }\n\n select(\"[id=\\\"\".concat(id, \"\\\"]\")).selectAll('foreignobject > *').attr('xmlns', 'http://www.w3.org/1999/xhtml'); // if (cnf.arrowMarkerAbsolute) {\n // url =\n // window.location.protocol +\n // '//' +\n // window.location.host +\n // window.location.pathname +\n // window.location.search;\n // url = url.replace(/\\(/g, '\\\\(');\n // url = url.replace(/\\)/g, '\\\\)');\n // }\n // Fix for when the base tag is used\n\n var svgCode = select('#d' + id).node().innerHTML;\n logger.debug('cnf.arrowMarkerAbsolute', cnf.arrowMarkerAbsolute);\n\n if (!cnf.arrowMarkerAbsolute || cnf.arrowMarkerAbsolute === 'false') {\n svgCode = svgCode.replace(/marker-end=\"url\\(.*?#/g, 'marker-end=\"url(#', 'g');\n }\n\n svgCode = decodeEntities(svgCode);\n\n if (typeof cb !== 'undefined') {\n switch (graphType) {\n case 'flowchart':\n case 'flowchart-v2':\n cb(svgCode, flowDb.bindFunctions);\n break;\n\n case 'gantt':\n cb(svgCode, ganttDb.bindFunctions);\n break;\n\n case 'class':\n cb(svgCode, classDb.bindFunctions);\n break;\n\n default:\n cb(svgCode);\n }\n } else {\n logger.debug('CB = undefined!');\n }\n\n var node = select('#d' + id).node();\n\n if (node !== null && typeof node.remove === 'function') {\n select('#d' + id).node().remove();\n }\n\n return svgCode;\n};\n\nvar currentDirective = {};\n\nvar parseDirective = function parseDirective(statement, context, type) {\n try {\n if (statement !== undefined) {\n statement = statement.trim();\n\n switch (context) {\n case 'open_directive':\n currentDirective = {};\n break;\n\n case 'type_directive':\n currentDirective.type = statement.toLowerCase();\n break;\n\n case 'arg_directive':\n currentDirective.args = JSON.parse(statement);\n break;\n\n case 'close_directive':\n handleDirective(currentDirective, type);\n currentDirective = null;\n break;\n }\n }\n } catch (error) {\n logger.error(\"Error while rendering sequenceDiagram directive: \".concat(statement, \" jison context: \").concat(context));\n logger.error(error.message);\n }\n};\n\nvar handleDirective = function handleDirective(directive, type) {\n logger.debug(\"Directive type=\".concat(directive.type, \" with args:\"), directive.args);\n\n switch (directive.type) {\n case 'init':\n case 'initialize':\n {\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n }\n\n case 'wrap':\n case 'nowrap':\n directive.args = {\n config: {\n wrap: directive.type === 'wrap'\n }\n };\n ['config'].forEach(function (prop) {\n if (typeof directive.args[prop] !== 'undefined') {\n if (type === 'flowchart-v2') {\n type = 'flowchart';\n }\n\n directive.args[type] = directive.args[prop];\n delete directive.args[prop];\n }\n });\n reinitialize(directive.args);\n break;\n\n default:\n logger.warn(\"Unhandled directive: source: '%%{\".concat(directive.type, \": \").concat(JSON.stringify(directive.args ? directive.args : {}), \"}%%\"), directive);\n break;\n }\n};\n\nfunction updateRendererConfigs(conf) {\n gitGraphRenderer.setConf(conf.git);\n flowRenderer.setConf(conf.flowchart);\n flowRendererV2.setConf(conf.flowchart);\n\n if (typeof conf['sequenceDiagram'] !== 'undefined') {\n sequenceRenderer.setConf(assignWithDepth(conf.sequence, conf['sequenceDiagram']));\n }\n\n sequenceRenderer.setConf(conf.sequence);\n ganttRenderer.setConf(conf.gantt);\n classRenderer.setConf(conf.class);\n stateRenderer.setConf(conf.state);\n stateRendererV2.setConf(conf.state);\n infoRenderer.setConf(conf.class);\n pieRenderer.setConf(conf.class);\n erRenderer.setConf(conf.er);\n journeyRenderer.setConf(conf.journey);\n errorRenderer.setConf(conf.class);\n}\n\nfunction reinitialize(options) {\n console.log(\"mermaidAPI.reinitialize: v\".concat(pkg.version), options); // Set default options\n\n var config = _typeof(options) === 'object' ? setConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.reinitialize: ', config);\n}\n\nfunction initialize(options) {\n // console.log(`mermaidAPI.initialize: v${pkg.version}`);\n // Set default options\n var config = _typeof(options) === 'object' ? setSiteConfig(options) : getSiteConfig();\n updateRendererConfigs(config);\n setLogLevel(config.logLevel);\n logger.debug('mermaidAPI.initialize: ', config);\n} // function getConfig () {\n// console.warn('get config')\n// return config\n// }\n\n\nvar mermaidAPI = Object.freeze({\n render: render,\n parse: parse,\n parseDirective: parseDirective,\n initialize: initialize,\n reinitialize: reinitialize,\n getConfig: getConfig,\n getSiteConfig: getSiteConfig,\n reset: function reset() {\n // console.warn('reset');\n configApi.reset();\n var siteConfig = getSiteConfig();\n updateRendererConfigs(siteConfig);\n },\n globalReset: function globalReset() {\n configApi.reset(configApi.defaultConfig);\n updateRendererConfigs(getConfig());\n },\n defaultConfig: configApi.defaultConfig\n});\nsetLogLevel(getConfig().logLevel);\nconfigApi.reset(getConfig());\nexport default mermaidAPI;\n/**\n * ## mermaidAPI configuration defaults\n *

\n *\n * <script>\n *   var config = {\n *     theme:'default',\n *     logLevel:'fatal',\n *     securityLevel:'strict',\n *     startOnLoad:true,\n *     arrowMarkerAbsolute:false,\n *\n *     er:{\n *       diagramPadding:20,\n *       layoutDirection:'TB',\n *       minEntityWidth:100,\n *       minEntityHeight:75,\n *       entityPadding:15,\n *       stroke:'gray',\n *       fill:'honeydew',\n *       fontSize:12,\n *       useMaxWidth:true,\n *     },\n *     flowchart:{\n *       diagramPadding:8,\n *       htmlLabels:true,\n *       curve:'linear',\n *     },\n *     sequence:{\n *       diagramMarginX:50,\n *       diagramMarginY:10,\n *       actorMargin:50,\n *       width:150,\n *       height:65,\n *       boxMargin:10,\n *       boxTextMargin:5,\n *       noteMargin:10,\n *       messageMargin:35,\n *       messageAlign:'center',\n *       mirrorActors:true,\n *       bottomMarginAdj:1,\n *       useMaxWidth:true,\n *       rightAngles:false,\n *       showSequenceNumbers:false,\n *     },\n *     gantt:{\n *       titleTopMargin:25,\n *       barHeight:20,\n *       barGap:4,\n *       topPadding:50,\n *       leftPadding:75,\n *       gridLineStartPadding:35,\n *       fontSize:11,\n *       fontFamily:'\"Open-Sans\", \"sans-serif\"',\n *       numberSectionStyles:4,\n *       axisFormat:'%Y-%m-%d',\n *     }\n *   };\n *   mermaid.initialize(config);\n * </script>\n *
\n */" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/common/common.js", - "name": "./src/diagrams/common/common.js", - "index": 19, - "index2": 16, - "size": 1849, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "issuerId": null, - "issuerName": "./src/utils.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "name": "./src/utils.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 179, - "building": 892 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "1:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "4:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "8:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../common/common", - "loc": "9:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/common/common", - "loc": "16:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:50-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "22:98-104" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "55:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "60:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "61:34-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "111:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "150:53-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "170:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "175:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "197:33-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "209:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "239:21-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "249:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "271:43-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "279:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "295:28-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "341:15-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "module": "./src/diagrams/sequence/svgDraw.js", - "moduleName": "./src/diagrams/sequence/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "391:30-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../common/common", - "loc": "436:10-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "536:36-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "568:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/utils.js", - "module": "./src/utils.js", - "moduleName": "./src/utils.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/common/common", - "loc": "708:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "getRows", - "removeScript", - "sanitizeText", - "lineBreakRegex", - "hasBreaks", - "splitBreaks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "export var getRows = function getRows(s) {\n if (!s) return 1;\n var str = breakToPlaceholder(s);\n str = str.replace(/\\\\n/g, '#br#');\n return str.split('#br#');\n};\nexport var removeScript = function removeScript(txt) {\n var rs = '';\n var idx = 0;\n\n while (idx >= 0) {\n idx = txt.indexOf('= 0) {\n rs += txt.substr(0, idx);\n txt = txt.substr(idx + 1);\n idx = txt.indexOf('');\n\n if (idx >= 0) {\n idx += 9;\n txt = txt.substr(idx);\n }\n } else {\n rs += txt;\n idx = -1;\n break;\n }\n }\n\n return rs;\n};\nexport var sanitizeText = function sanitizeText(text, config) {\n var txt = text;\n var htmlLabels = true;\n if (config.flowchart && (config.flowchart.htmlLabels === false || config.flowchart.htmlLabels === 'false')) htmlLabels = false;\n\n if (htmlLabels) {\n var level = config.securityLevel;\n\n if (level == 'antiscript') {\n txt = removeScript(txt);\n } else if (level !== 'loose') {\n // eslint-disable-line\n txt = breakToPlaceholder(txt);\n txt = txt.replace(//g, '>');\n txt = txt.replace(/=/g, '=');\n txt = placeholderToBreak(txt);\n }\n }\n\n return txt;\n};\nexport var lineBreakRegex = //gi;\nexport var hasBreaks = function hasBreaks(text) {\n return //gi.test(text);\n};\nexport var splitBreaks = function splitBreaks(text) {\n return text.split(//gi);\n};\n\nvar breakToPlaceholder = function breakToPlaceholder(s) {\n return s.replace(lineBreakRegex, '#br#');\n};\n\nvar placeholderToBreak = function placeholderToBreak(s) {\n return s.replace(/#br#/g, '
');\n};\n\nexport default {\n getRows: getRows,\n sanitizeText: sanitizeText,\n hasBreaks: hasBreaks,\n splitBreaks: splitBreaks,\n lineBreakRegex: lineBreakRegex,\n removeScript: removeScript\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/config.js", - "name": "./src/config.js", - "index": 27, - "index2": 24, - "size": 29029, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "2:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "3:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "5:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "5:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "6:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "7:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "module": "./src/diagrams/class/classDb.js", - "moduleName": "./src/diagrams/class/classDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "7:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "10:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "11:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony side effect evaluation", - "userRequest": "../../config", - "loc": "12:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:192-201" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "14:220-229" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "18:0-78" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "20:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:92-101" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "21:158-167" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "23:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony side effect evaluation", - "userRequest": "../config", - "loc": "26:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:117-126" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "28:162-171" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:144-153" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:208-217" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "30:246-255" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "32:9-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "41:219-228" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "44:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:119-128" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "48:164-173" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "49:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:64-73" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:98-107" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "52:132-141" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./config", - "loc": "54:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:52-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:142-151" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "64:184-193" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "67:35-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:45-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:82-91" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:135-144" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:213-222" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "69:251-260" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "module": "./src/dagre-wrapper/createLabel.js", - "moduleName": "./src/dagre-wrapper/createLabel.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "74:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "82:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "85:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "86:19-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "90:102-111" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "97:124-133" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "137:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:176-185" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "139:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "143:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:18-27" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "144:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:63-72" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:94-103" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "146:255-264" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:79-88" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:108-117" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:150-159" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:178-187" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:207-216" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:249-258" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:277-286" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "151:306-315" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:86-95" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:125-134" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:153-162" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:196-205" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "152:224-233" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "156:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "157:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "159:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:128-137" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "165:165-174" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "172:15-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "173:241-250" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "198:23-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "215:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "220:27-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "221:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "227:25-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "233:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "244:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "module": "./src/diagrams/flowchart/flowDb.js", - "moduleName": "./src/diagrams/flowchart/flowDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "248:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "253:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "260:39-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "261:33-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "265:10-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "269:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "288:41-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "289:43-52" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "module": "./src/diagrams/sequence/sequenceDb.js", - "moduleName": "./src/diagrams/sequence/sequenceDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "306:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "308:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "326:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "331:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "341:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "../config", - "loc": "354:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:91-100" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:152-161" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:214-223" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "375:268-277" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "478:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "module": "./src/diagrams/gantt/ganttDb.js", - "moduleName": "./src/diagrams/gantt/ganttDb.js", - "type": "harmony import specifier", - "userRequest": "../../config", - "loc": "510:6-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:47-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "545:68-81" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:47-60" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "554:72-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "570:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "571:17-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "574:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "575:21-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:4-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "579:20-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "580:26-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "582:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "584:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:0-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./config", - "loc": "585:16-25" - } - ], - "usedExports": [ - "getConfig", - "setConfig", - "getSiteConfig", - "setSiteConfig", - "default" - ], - "providedExports": [ - "defaultConfig", - "setSiteConfig", - "getSiteConfig", - "setConfig", - "getConfig", - "sanitize", - "reset", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { assignWithDepth } from './utils';\nimport { logger } from './logger';\n/**\n * These are the default options which can be overridden with the initialization call like so:\n * **Example 1:**\n *
\n * mermaid.initialize({\n *   flowchart:{\n *     htmlLabels: false\n *   }\n * });\n * 
\n *\n * **Example 2:**\n *
\n * <script>\n *   var config = {\n *     startOnLoad:true,\n *     flowchart:{\n *       useMaxWidth:true,\n *       htmlLabels:true,\n *       curve:'cardinal',\n *     },\n *\n *     securityLevel:'loose',\n *   };\n *   mermaid.initialize(config);\n * </script>\n * 
\n * A summary of all options and their defaults is found [here](https://github.com/knsv/mermaid/blob/master/docs/Setup.md#mermaidapi-configuration-defaults). A description of each option follows below.\n *\n * @name Configuration\n */\n\nvar config = {\n /** theme , the CSS style sheet\n *\n * theme , the CSS style sheet\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| Theme |Built in Themes| String | Optional | Values include, default, forest, dark, neutral, null|\n ***Notes:**To disable any pre-defined mermaid theme, use \"null\".\n *
\n   *  \"theme\": \"forest\",\n   *  \"themeCSS\": \".node rect { fill: red; }\"\n   * 
\n */\n theme: 'default',\n themeCSS: undefined,\n\n /* **maxTextSize** - The maximum allowed size of the users text diamgram */\n maxTextSize: 50000,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *|fontFamily | specifies the font to be used in the rendered diagrams| String | Required | Verdana, Arial, Trebuchet MS,|\n *\n ***notes: Default value is \\\\\"trebuchet ms\\\\\".\n */\n fontFamily: '\"trebuchet ms\", verdana, arial;',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| logLevel |This option decides the amount of logging to be used.| String | Required | 1, 2, 3, 4, 5 |\n *\n *\n ***Notes:**\n *- debug: 1.\n *- info: 2.\n *- warn: 3.\n *- error: 4.\n *- fatal: 5(default).\n */\n logLevel: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| securitylevel | Level of trust for parsed diagram|String | Required | Strict, Loose, antiscript |\n *\n ***Notes:\n *- **strict**: (**default**) tags in text are encoded, click functionality is disabeled\n *- **loose**: tags in text are allowed, click functionality is enabled\n *- **antiscript**: html tags in text are allowed, (only script element is removed), click functionality is enabled\n */\n securityLevel: 'strict',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| startOnLoad| Dictates whether mermaind starts on Page load | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value: true**\n */\n startOnLoad: true,\n\n /**\n *| Parameter | Description |Type | Required |Values|\n *| --- | --- | --- | --- | --- |\n *| arrowMarkerAbsolute | Controls whether or arrow markers in html code are absolute paths or anchors | Boolean | Required | True, False |\n *\n *\n *## Notes**: This matters if you are using base tag settings.\n ***Default value: false**.\n */\n arrowMarkerAbsolute: false,\n\n /**\n * This option controls which currentConfig keys are considered _secure_ and can only be changed via\n * call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to\n * the `secure` keys in the current currentConfig. This prevents malicious graph directives from\n * overriding a site's default security.\n */\n secure: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize'],\n\n /**\n * The object containing configurations specific for flowcharts\n */\n flowchart: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 8**.\n */\n diagramPadding: 8,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| htmlLabels | Flag for setting whether or not a html tag should be used for rendering labels on the edges. | Boolean| Required | True, False|\n *\n ***Notes: Default value: true**.\n */\n htmlLabels: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| nodeSpacing | Defines the spacing between nodes on the same level | Integer| Required | Any positive Numbers |\n *\n ***Notes:\n *Pertains to horizontal spacing for TB (top to bottom) or BT (bottom to top) graphs, and the vertical spacing for LR as well as RL graphs.**\n ***Default value 50**.\n */\n nodeSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rankSpacing | Defines the spacing between nodes on different levels | Integer | Required| Any Positive Numbers |\n *\n ***Notes: pertains to vertical spacing for TB (top to bottom) or BT (bottom to top), and the horizontal spacing for LR as well as RL graphs.\n ***Default value 50**.\n */\n rankSpacing: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| curve | Defines how mermaid renders curves for flowcharts. | String | Required | Basis, Linear, Cardinal|\n *\n ***Notes:\n *Default Vaue: Linear**\n */\n curve: 'linear',\n // Only used in new experimental rendering\n // repreesents the padding between the labels and the shape\n padding: 15\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n sequence: {\n /**\n * widt of the activation rect\n * **Default value 10**.\n */\n activationWidth: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Values |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | Margin to the over and under the sequence diagram | Integer | Required | Any Positive Values|\n *\n ***Notes:**\n ***Default value 10**.\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 65**..\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin| margin around the text in loop/alt/opt boxes | Integer | Required| Any Positive Value|\n *\n ***Notes:**\n *\n ***Default value 5**.\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin | Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign | Multiline message alignment | Integer | Required | left, center, right |\n *\n ***Notes:**center **default**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| mirrorActors | mirror actors under diagram. | Boolean| Required | True, False |\n *\n ***Notes:**\n *\n ***Default value true**.\n */\n mirrorActors: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | Required | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | True, False |\n *\n ***Notes:**\n *when this flag is set to true, the height and width is set to 100% and is then scaling with the\n *available space. If set to false, the absolute space required is used.\n ***Default value: True**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | display curve arrows as right angles| Boolean | Required | True, False |\n *\n ***Notes:**\n *\n *This will display arrows that start and begin at the same node as right angles, rather than a curve\n ***Default value false**.\n */\n rightAngles: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| showSequenceNumbers | This will show the node numbers | Boolean | Required | True, False |\n *\n ***Notes:**\n ***Default value false**.\n */\n showSequenceNumbers: false,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontSize| This sets the font size of the actor's description | Integer | Require | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n actorFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorFontFamily |This sets the font family of the actor's description | 3 | 4 | Open-Sans, Sans-Serif |\n *\n ***Notes:**\n ***Default value \"Open-Sans\", \"sans-serif\"**.\n */\n actorFontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n * This sets the font weight of the actor's description\n * **Default value 400.\n */\n actorFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontSize |This sets the font size of actor-attached notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 14**..\n */\n noteFontSize: 14,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteFontFamily| This sets the font family of actor-attached notes. | String | Required | trebuchet ms, verdana, arial |\n *\n ***Notes:**\n ***Default value: trebuchet ms **.\n */\n noteFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the note's description\n * **Default value 400.\n */\n noteFontWeight: 400,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteAlign | This sets the text alignment of actor-attached notes. | string | required | left, center, right|\n *\n ***Notes:**\n ***Default value center**.\n */\n noteAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontSize | This sets the font size of actor messages. | Integer | Required | Any Positive Number |\n *\n ***Notes:**\n ***Default value 16**.\n */\n messageFontSize: 16,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageFontFamily | This sets the font family of actor messages. | String| Required | trebuchet ms\", verdana, aria |\n *\n ***Notes:**\n ***Default value:\"trebuchet ms**.\n */\n messageFontFamily: '\"trebuchet ms\", verdana, arial',\n\n /**\n * This sets the font weight of the message's description\n * **Default value 400.\n */\n messageFontWeight: 400,\n\n /**\n * This sets the auto-wrap state for the diagram\n * **Default value false.\n */\n wrap: false,\n\n /**\n * This sets the auto-wrap padding for the diagram (sides only)\n * **Default value 10.\n */\n wrapPadding: 10,\n\n /**\n * This sets the width of the loop-box (loop, alt, opt, par)\n * **Default value 50.\n */\n labelBoxWidth: 50,\n\n /**\n * This sets the height of the loop-box (loop, alt, opt, par)\n * **Default value 20.\n */\n labelBoxHeight: 20,\n messageFont: function messageFont() {\n return {\n fontFamily: this.messageFontFamily,\n fontSize: this.messageFontSize,\n fontWeight: this.messageFontWeight\n };\n },\n noteFont: function noteFont() {\n return {\n fontFamily: this.noteFontFamily,\n fontSize: this.noteFontSize,\n fontWeight: this.noteFontWeight\n };\n },\n actorFont: function actorFont() {\n return {\n fontFamily: this.actorFontFamily,\n fontSize: this.actorFontSize,\n fontWeight: this.actorFontWeight\n };\n }\n },\n\n /**\n * The object containing configurations specific for gantt diagrams*\n */\n gantt: {\n /**\n *### titleTopMargin\n *\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| titleTopMargin | Margin top for the text over the gantt diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 25**.\n */\n titleTopMargin: 25,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barHeight | The height of the bars in the graph | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 20**.\n */\n barHeight: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| barGap | The margin between the different activities in the gantt diagram. | Integer | Optional |Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n barGap: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| topPadding | Margin between title and gantt diagram and between axis and gantt diagram. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n topPadding: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| leftPadding | The space allocated for the section name to the left of the activities. | Integer| Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 75**.\n */\n leftPadding: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| gridLineStartPadding | Vertical starting position of the grid lines. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 35**.\n */\n gridLineStartPadding: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize | Font size| Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 11**.\n */\n fontSize: 11,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontFamily | font Family | string | required |\"Open-Sans\", \"sans-serif\" |\n *\n ***Notes:**\n *\n ***Default value '\"Open-Sans\", \"sans-serif\"'**.\n */\n fontFamily: '\"Open-Sans\", \"sans-serif\"',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| numberSectionStyles | The number of alternating section styles | Integer | 4 | Any Positive Value |\n *\n ***Notes:**\n ***Default value 4**.\n */\n numberSectionStyles: 4,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| axisFormat | Datetime format of the axis. | 3 | Required | Date in yy-mm-dd |\n *\n ***Notes:**\n *\n * This might need adjustment to match your locale and preferences\n ***Default value '%Y-%m-%d'**.\n */\n axisFormat: '%Y-%m-%d'\n },\n\n /**\n * The object containing configurations specific for sequence diagrams\n */\n journey: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginX | margin to the right and left of the sequence diagram | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 50**.\n */\n diagramMarginX: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramMarginY | margin to the over and under the sequence diagram. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 10**..\n */\n diagramMarginY: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| actorMargin | Margin between actors. | Integer | Required | Any Positive Value|\n *\n ***Notes:**\n ***Default value 50**.\n */\n actorMargin: 50,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| width | Width of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 150**.\n */\n width: 150,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| height | Height of actor boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 65**.\n */\n height: 65,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxMargin | Margin around loop boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n boxMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| boxTextMargin | margin around the text in loop/alt/opt boxes | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n */\n boxTextMargin: 5,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| noteMargin | margin around notes. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n ***Default value 10**.\n */\n noteMargin: 10,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageMargin |Space between messages. | Integer | Required | Any Positive Value |\n *\n ***Notes:**\n *\n *Space between messages.\n ***Default value 35**.\n */\n messageMargin: 35,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| messageAlign |Multiline message alignment | 3 | 4 | left, center, right |\n *\n ***Notes:**default:center**\n */\n messageAlign: 'center',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| bottomMarginAdj | Prolongs the edge of the diagram downwards. | Integer | 4 | Any Positive Value |\n *\n ***Notes:**Depending on css styling this might need adjustment.\n ***Default value 1**.\n */\n bottomMarginAdj: 1,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See notes | Boolean | 4 | True, False |\n *\n ***Notes:**when this flag is set the height and width is set to 100% and is then scaling with the\n *available space if not the absolute space required is used.\n *\n ***Default value true**.\n */\n useMaxWidth: true,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| rightAngles | Curved Arrows become Right Angles, | 3 | 4 | True, False |\n *\n ***Notes:**This will display arrows that start and begin at the same node as right angles, rather than a curves\n ***Default value false**.\n */\n rightAngles: false\n },\n class: {\n arrowMarkerAbsolute: false\n },\n git: {\n arrowMarkerAbsolute: false\n },\n state: {\n dividerMargin: 10,\n sizeUnit: 5,\n padding: 8,\n textHeight: 10,\n titleShift: -15,\n noteMargin: 10,\n forkWidth: 70,\n forkHeight: 7,\n // Used\n miniPadding: 2,\n // Font size factor, this is used to guess the width of the edges labels before rendering by dagre\n // layout. This might need updating if/when switching font\n fontSizeFactor: 5.02,\n fontSize: 24,\n labelHeight: 16,\n edgeLengthFactor: '20',\n compositTitleSize: 35,\n radius: 5\n },\n\n /**\n * The object containing configurations specific for entity relationship diagrams\n */\n er: {\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| diagramPadding | amount of padding around the diagram as a whole | Integer | Required | Any Positive Value |\n *\n ***Notes:**The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels\n ***Default value: 20**.\n */\n diagramPadding: 20,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| layoutDirection | Directional bias for layout of entities. | String | Required | \"TB\", \"BT\",\"LR\",\"RL\" |\n *\n ***Notes:**\n *'TB' for Top-Bottom, 'BT'for Bottom-Top, 'LR' for Left-Right, or 'RL' for Right to Left.\n * T = top, B = bottom, L = left, and R = right.\n ***Default value: TB **.\n */\n layoutDirection: 'TB',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityWidth | The mimimum width of an entity box, | Integer | Required| Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 100**.\n */\n minEntityWidth: 100,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| minEntityHeight| The minimum height of an entity box, | Integer | 4 | Any Positive Value |\n *\n ***Notes:**expressed in pixels\n ***Default value: 75 **\n */\n minEntityHeight: 75,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| entityPadding|minimum internal padding betweentext in box and box borders| Integer | 4 | Any Positive Value |\n *\n ***Notes:**The minimum internal padding betweentext in an entity box and the enclosing box borders, expressed in pixels.\n ***Default value: 15 **\n */\n entityPadding: 15,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| stroke | Stroke color of box edges and lines | String | 4 | Any recognized color |\n ***Default value: gray **\n */\n stroke: 'gray',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fill | Fill color of entity boxes | String | 4 | Any recognized color |\n *\n ***Notes:**\n ***Default value:'honeydew'**\n */\n fill: 'honeydew',\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| fontSize| Font Size in pixels| Integer | | Any Positive Value |\n *\n ***Notes:**Font size (expressed as an integer representing a number of pixels)\n ***Default value: 12 **\n */\n fontSize: 12,\n\n /**\n *| Parameter | Description |Type | Required | Values|\n *| --- | --- | --- | --- | --- |\n *| useMaxWidth | See Notes | Boolean | Required | true, false |\n *\n ***Notes:**\n *When this flag is set to true, the diagram width is locked to 100% and\n *scaled based on available space. If set to false, the diagram reserves its\n *absolute width.\n ***Default value: true**.\n */\n useMaxWidth: true\n }\n};\nconfig.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nconfig.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;\nexport var defaultConfig = Object.freeze(config);\nvar siteConfig = assignWithDepth({}, defaultConfig);\nvar currentConfig = assignWithDepth({}, defaultConfig);\n/**\n * Sets the siteConfig. The siteConfig is a protected configuration for repeat use. Calls to reset() will reset\n * the currentConfig to siteConfig. Calls to reset(configApi.defaultConfig) will reset siteConfig and currentConfig\n * to the defaultConfig\n * Note: currentConfig is set in this function\n * @param conf - the base currentConfig to use as siteConfig\n * @returns {*} - the siteConfig\n */\n\nexport var setSiteConfig = function setSiteConfig(conf) {\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n assignWithDepth(siteConfig, conf);\n return getSiteConfig();\n};\n/**\n * Obtains the current siteConfig base configuration\n * @returns {*}\n */\n\nexport var getSiteConfig = function getSiteConfig() {\n return assignWithDepth({}, siteConfig);\n};\n/**\n * Sets the currentConfig. The param conf is sanitized based on the siteConfig.secure keys. Any\n * values found in conf with key found in siteConfig.secure will be replaced with the corresponding\n * siteConfig value.\n * @param conf - the potential currentConfig\n * @returns {*} - the currentConfig merged with the sanitized conf\n */\n\nexport var setConfig = function setConfig(conf) {\n sanitize(conf);\n assignWithDepth(currentConfig, conf);\n return getConfig();\n};\n/**\n * Obtains the currentConfig\n * @returns {*} - the currentConfig\n */\n\nexport var getConfig = function getConfig() {\n return assignWithDepth({}, currentConfig);\n};\n/**\n * Ensures options parameter does not attempt to override siteConfig secure keys\n * Note: modifies options in-place\n * @param options - the potential setConfig parameter\n */\n\nexport var sanitize = function sanitize(options) {\n Object.keys(siteConfig.secure).forEach(function (key) {\n if (typeof options[siteConfig.secure[key]] !== 'undefined') {\n // DO NOT attempt to print options[siteConfig.secure[key]] within `${}` as a malicious script\n // can exploit the logger's attempt to stringify the value and execute arbitrary code\n logger.warn(\"Denied attempt to modify a secure key \".concat(siteConfig.secure[key]), options[siteConfig.secure[key]]);\n delete options[siteConfig.secure[key]];\n }\n });\n};\n/**\n * Resets this currentConfig to conf\n * @param conf - the base currentConfig to reset to (default: current siteConfig )\n */\n\nexport var reset = function reset() {\n var conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getSiteConfig();\n Object.keys(siteConfig).forEach(function (key) {\n return delete siteConfig[key];\n });\n Object.keys(currentConfig).forEach(function (key) {\n return delete currentConfig[key];\n });\n assignWithDepth(siteConfig, conf, {\n clobber: true\n });\n assignWithDepth(currentConfig, conf, {\n clobber: true\n });\n};\nvar configApi = Object.freeze({\n sanitize: sanitize,\n setSiteConfig: setSiteConfig,\n getSiteConfig: getSiteConfig,\n setConfig: setConfig,\n getConfig: getConfig,\n reset: reset,\n defaultConfig: defaultConfig\n});\nexport default configApi;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowDb.js", - "name": "./src/diagrams/flowchart/flowDb.js", - "index": 26, - "index2": 25, - "size": 18389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowDb", - "loc": "3:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "24:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "81:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "83:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "87:6-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "89:25-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "272:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "276:16-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "279:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "292:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "294:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "296:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "302:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "305:9-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "315:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "317:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:12-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "325:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "329:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "333:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "334:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "348:18-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "354:4-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "358:13-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "359:14-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "372:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "383:11-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "392:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./flowDb", - "loc": "402:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowDb", - "loc": "415:20-26" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addVertex", - "addSingleLink", - "addLink", - "updateLinkInterpolate", - "updateLink", - "addClass", - "setDirection", - "setClass", - "setLink", - "getTooltip", - "setClickEvent", - "bindFunctions", - "getDirection", - "getVertices", - "getEdges", - "getClasses", - "clear", - "defaultStyle", - "addSubGraph", - "getDepthFirstPos", - "indexNodes", - "getSubGraphs", - "firstGraph", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { select } from 'd3';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport utils from '../../utils';\nimport { getConfig } from '../../config';\nimport common from '../common/common'; // const MERMAID_DOM_ID_PREFIX = 'mermaid-dom-id-';\n\nvar MERMAID_DOM_ID_PREFIX = '';\nvar config = getConfig();\nvar vertices = {};\nvar edges = [];\nvar classes = [];\nvar subGraphs = [];\nvar subGraphLookup = {};\nvar tooltips = {};\nvar subCount = 0;\nvar firstGraphFlag = true;\nvar direction; // Functions to be run after graph rendering\n\nvar funs = [];\n/**\n * Function called by parser when a node definition has been found\n * @param id\n * @param text\n * @param type\n * @param style\n * @param classes\n */\n\nexport var addVertex = function addVertex(_id, text, type, style, classes) {\n var txt;\n var id = _id;\n\n if (typeof id === 'undefined') {\n return;\n }\n\n if (id.trim().length === 0) {\n return;\n }\n\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] === 'undefined') {\n vertices[id] = {\n id: id,\n styles: [],\n classes: []\n };\n }\n\n if (typeof text !== 'undefined') {\n txt = common.sanitizeText(text.trim(), config); // strip quotes if string starts and ends with a quote\n\n if (txt[0] === '\"' && txt[txt.length - 1] === '\"') {\n txt = txt.substring(1, txt.length - 1);\n }\n\n vertices[id].text = txt;\n } else {\n if (typeof vertices[id].text === 'undefined') {\n vertices[id].text = _id;\n }\n }\n\n if (typeof type !== 'undefined') {\n vertices[id].type = type;\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n vertices[id].styles.push(s);\n });\n }\n }\n\n if (typeof classes !== 'undefined') {\n if (classes !== null) {\n classes.forEach(function (s) {\n vertices[id].classes.push(s);\n });\n }\n }\n};\n/**\n * Function called by parser when a link/edge definition has been found\n * @param start\n * @param end\n * @param type\n * @param linktext\n */\n\nexport var addSingleLink = function addSingleLink(_start, _end, type, linktext) {\n var start = _start;\n var end = _end;\n if (start[0].match(/\\d/)) start = MERMAID_DOM_ID_PREFIX + start;\n if (end[0].match(/\\d/)) end = MERMAID_DOM_ID_PREFIX + end; // logger.info('Got edge...', start, end);\n\n var edge = {\n start: start,\n end: end,\n type: undefined,\n text: ''\n };\n linktext = type.text;\n\n if (typeof linktext !== 'undefined') {\n edge.text = common.sanitizeText(linktext.trim(), config); // strip quotes if string starts and exnds with a quote\n\n if (edge.text[0] === '\"' && edge.text[edge.text.length - 1] === '\"') {\n edge.text = edge.text.substring(1, edge.text.length - 1);\n }\n }\n\n if (typeof type !== 'undefined') {\n edge.type = type.type;\n edge.stroke = type.stroke;\n }\n\n edges.push(edge);\n};\nexport var addLink = function addLink(_start, _end, type, linktext) {\n var i, j;\n\n for (i = 0; i < _start.length; i++) {\n for (j = 0; j < _end.length; j++) {\n addSingleLink(_start[i], _end[j], type, linktext);\n }\n }\n};\n/**\n * Updates a link's line interpolation algorithm\n * @param pos\n * @param interpolate\n */\n\nexport var updateLinkInterpolate = function updateLinkInterpolate(positions, interp) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultInterpolate = interp;\n } else {\n edges[pos].interpolate = interp;\n }\n });\n};\n/**\n * Updates a link with a style\n * @param pos\n * @param style\n */\n\nexport var updateLink = function updateLink(positions, style) {\n positions.forEach(function (pos) {\n if (pos === 'default') {\n edges.defaultStyle = style;\n } else {\n if (utils.isSubstringInArray('fill', style) === -1) {\n style.push('fill:none');\n }\n\n edges[pos].style = style;\n }\n });\n};\nexport var addClass = function addClass(id, style) {\n if (typeof classes[id] === 'undefined') {\n classes[id] = {\n id: id,\n styles: [],\n textStyles: []\n };\n }\n\n if (typeof style !== 'undefined') {\n if (style !== null) {\n style.forEach(function (s) {\n if (s.match('color')) {\n var newStyle1 = s.replace('fill', 'bgFill');\n var newStyle2 = newStyle1.replace('color', 'fill');\n classes[id].textStyles.push(newStyle2);\n }\n\n classes[id].styles.push(s);\n });\n }\n }\n};\n/**\n * Called by parser when a graph definition is found, stores the direction of the chart.\n * @param dir\n */\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n\n if (direction.match(/.*/)) {\n direction = 'LR';\n }\n\n if (direction.match(/.*v/)) {\n direction = 'TB';\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].classes.push(className);\n }\n\n if (typeof subGraphLookup[id] !== 'undefined') {\n subGraphLookup[id].classes.push(className);\n }\n });\n};\n\nvar setTooltip = function setTooltip(ids, tooltip) {\n ids.split(',').forEach(function (id) {\n if (typeof tooltip !== 'undefined') {\n tooltips[id] = common.sanitizeText(tooltip, config);\n }\n });\n};\n\nvar setClickFun = function setClickFun(_id, functionName) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof vertices[id] !== 'undefined') {\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, id);\n }, false);\n }\n });\n }\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof vertices[id] !== 'undefined') {\n vertices[id].link = utils.formatUrl(linkStr, config);\n }\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var getTooltip = function getTooltip(id) {\n return tooltips[id];\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName);\n });\n setTooltip(ids, tooltip);\n setClass(ids, 'clickable');\n};\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var getDirection = function getDirection() {\n return direction.trim();\n};\n/**\n * Retrieval function for fetching the found nodes after parsing has completed.\n * @returns {{}|*|vertices}\n */\n\nexport var getVertices = function getVertices() {\n return vertices;\n};\n/**\n * Retrieval function for fetching the found links after parsing has completed.\n * @returns {{}|*|edges}\n */\n\nexport var getEdges = function getEdges() {\n return edges;\n};\n/**\n * Retrieval function for fetching the found class definitions after parsing has completed.\n * @returns {{}|*|classes}\n */\n\nexport var getClasses = function getClasses() {\n return classes;\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var clear = function clear() {\n vertices = {};\n classes = {};\n edges = [];\n funs = [];\n funs.push(setupToolTips);\n subGraphs = [];\n subGraphLookup = {};\n subCount = 0;\n tooltips = [];\n firstGraphFlag = true;\n};\n/**\n *\n * @returns {string}\n */\n\nexport var defaultStyle = function defaultStyle() {\n return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;';\n};\n/**\n * Clears the internal graph db so that a new graph can be parsed.\n */\n\nexport var addSubGraph = function addSubGraph(_id, list, _title) {\n var id = _id.trim();\n\n var title = _title;\n\n if (_id === _title && _title.match(/\\s/)) {\n id = undefined;\n }\n\n function uniq(a) {\n var prims = {\n boolean: {},\n number: {},\n string: {}\n };\n var objs = [];\n return a.filter(function (item) {\n var type = _typeof(item);\n\n if (item.trim() === '') {\n return false;\n }\n\n if (type in prims) {\n return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true; // eslint-disable-line\n } else {\n return objs.indexOf(item) >= 0 ? false : objs.push(item);\n }\n });\n }\n\n var nodeList = [];\n nodeList = uniq(nodeList.concat.apply(nodeList, list));\n\n for (var i = 0; i < nodeList.length; i++) {\n if (nodeList[i][0].match(/\\d/)) nodeList[i] = MERMAID_DOM_ID_PREFIX + nodeList[i];\n }\n\n id = id || 'subGraph' + subCount;\n if (id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n title = title || '';\n title = common.sanitizeText(title, config);\n subCount = subCount + 1;\n var subGraph = {\n id: id,\n nodes: nodeList,\n title: title.trim(),\n classes: []\n };\n subGraphs.push(subGraph);\n subGraphLookup[id] = subGraph;\n return id;\n};\n\nvar getPosForId = function getPosForId(id) {\n for (var i = 0; i < subGraphs.length; i++) {\n if (subGraphs[i].id === id) {\n return i;\n }\n }\n\n return -1;\n};\n\nvar secCount = -1;\nvar posCrossRef = [];\n\nvar indexNodes2 = function indexNodes2(id, pos) {\n var nodes = subGraphs[pos].nodes;\n secCount = secCount + 1;\n\n if (secCount > 2000) {\n return;\n }\n\n posCrossRef[secCount] = pos; // Check if match\n\n if (subGraphs[pos].id === id) {\n return {\n result: true,\n count: 0\n };\n }\n\n var count = 0;\n var posCount = 1;\n\n while (count < nodes.length) {\n var childPos = getPosForId(nodes[count]); // Ignore regular nodes (pos will be -1)\n\n if (childPos >= 0) {\n var res = indexNodes2(id, childPos);\n\n if (res.result) {\n return {\n result: true,\n count: posCount + res.count\n };\n } else {\n posCount = posCount + res.count;\n }\n }\n\n count = count + 1;\n }\n\n return {\n result: false,\n count: posCount\n };\n};\n\nexport var getDepthFirstPos = function getDepthFirstPos(pos) {\n return posCrossRef[pos];\n};\nexport var indexNodes = function indexNodes() {\n secCount = -1;\n\n if (subGraphs.length > 0) {\n indexNodes2('none', subGraphs.length - 1, 0);\n }\n};\nexport var getSubGraphs = function getSubGraphs() {\n return subGraphs;\n};\nexport var firstGraph = function firstGraph() {\n if (firstGraphFlag) {\n firstGraphFlag = false;\n return true;\n }\n\n return false;\n};\n\nvar destructStartLink = function destructStartLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '<--':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case 'x--':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '<-.':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case 'x-.':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case 'o-.':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case 'x==':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case 'o==':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '--':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '==':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n\n case '-.':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n }\n};\n\nvar destructEndLink = function destructEndLink(_str) {\n var str = _str.trim();\n\n switch (str) {\n case '--x':\n return {\n type: 'arrow_cross',\n stroke: 'normal'\n };\n\n case '-->':\n return {\n type: 'arrow_point',\n stroke: 'normal'\n };\n\n case '<-->':\n return {\n type: 'double_arrow_point',\n stroke: 'normal'\n };\n\n case 'x--x':\n return {\n type: 'double_arrow_cross',\n stroke: 'normal'\n };\n\n case 'o--o':\n return {\n type: 'double_arrow_circle',\n stroke: 'normal'\n };\n\n case 'o.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '<==>':\n return {\n type: 'double_arrow_point',\n stroke: 'thick'\n };\n\n case 'o==o':\n return {\n type: 'double_arrow_circle',\n stroke: 'thick'\n };\n\n case 'x==x':\n return {\n type: 'double_arrow_cross',\n stroke: 'thick'\n };\n\n case 'x.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case 'x-.-x':\n return {\n type: 'double_arrow_cross',\n stroke: 'dotted'\n };\n\n case '<.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case '<-.->':\n return {\n type: 'double_arrow_point',\n stroke: 'dotted'\n };\n\n case 'o-.-o':\n return {\n type: 'double_arrow_circle',\n stroke: 'dotted'\n };\n\n case '--o':\n return {\n type: 'arrow_circle',\n stroke: 'normal'\n };\n\n case '---':\n return {\n type: 'arrow_open',\n stroke: 'normal'\n };\n\n case '-.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '-.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '-.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '-.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '.-x':\n return {\n type: 'arrow_cross',\n stroke: 'dotted'\n };\n\n case '.->':\n return {\n type: 'arrow_point',\n stroke: 'dotted'\n };\n\n case '.-o':\n return {\n type: 'arrow_circle',\n stroke: 'dotted'\n };\n\n case '.-':\n return {\n type: 'arrow_open',\n stroke: 'dotted'\n };\n\n case '==x':\n return {\n type: 'arrow_cross',\n stroke: 'thick'\n };\n\n case '==>':\n return {\n type: 'arrow_point',\n stroke: 'thick'\n };\n\n case '==o':\n return {\n type: 'arrow_circle',\n stroke: 'thick'\n };\n\n case '===':\n return {\n type: 'arrow_open',\n stroke: 'thick'\n };\n }\n};\n\nvar destructLink = function destructLink(_str, _startStr) {\n var info = destructEndLink(_str);\n var startInfo;\n\n if (_startStr) {\n startInfo = destructStartLink(_startStr);\n\n if (startInfo.stroke !== info.stroke) {\n return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n }\n\n if (startInfo.type === 'arrow_open') {\n // -- xyz --> - take arrow type form ending\n startInfo.type = info.type;\n } else {\n // x-- xyz --> - not supported\n if (startInfo.type !== info.type) return {\n type: 'INVALID',\n stroke: 'INVALID'\n };\n startInfo.type = 'double_' + startInfo.type;\n }\n\n if (startInfo.type === 'double_arrow') {\n startInfo.type = 'double_arrow_point';\n }\n\n return startInfo;\n }\n\n return info;\n};\n\nexport default {\n addVertex: addVertex,\n addLink: addLink,\n updateLinkInterpolate: updateLinkInterpolate,\n updateLink: updateLink,\n addClass: addClass,\n setDirection: setDirection,\n setClass: setClass,\n getTooltip: getTooltip,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n getDirection: getDirection,\n getVertices: getVertices,\n getEdges: getEdges,\n getClasses: getClasses,\n clear: clear,\n defaultStyle: defaultStyle,\n addSubGraph: addSubGraph,\n getDepthFirstPos: getDepthFirstPos,\n indexNodes: indexNodes,\n getSubGraphs: getSubGraphs,\n destructLink: destructLink,\n lex: {\n firstGraph: firstGraph\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "index": 45, - "index2": 47, - "size": 14240, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "21:0-61" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "280:18-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "314:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "315:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer", - "loc": "523:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport dagreD3 from 'dagre-d3';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nimport flowChartShapes from './flowChartShapes';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found in the graph definition to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelType: 'svg',\n labelStyle: styles.labelStyle,\n shape: _shape,\n label: vertexNode,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n break;\n\n case 'dotted':\n style = 'fill:none;stroke-width:2px;stroke-dasharray:3;';\n break;\n\n case 'thick':\n style = ' stroke-width: 3.5px;fill:none';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels) {\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.class = linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n\n try {\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n\n parser.parse(text);\n return flowDb.getClasses();\n } catch (e) {\n return;\n }\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Create the renderer\n\n var Render = dagreD3.render;\n var render = new Render(); // Add custom shapes\n\n flowChartShapes.addToRender(render); // Add our custom arrow - an empty arrowhead\n\n render.arrows().none = function normal(parent, id, edge, type) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n var path = marker.append('path').attr('d', 'M 0 0 L 0 0 L 0 0 z');\n dagreD3.util.applyStyle(path, edge[type + 'Style']);\n }; // Override normal arrowhead defined in d3. Remove style & add class to allow css styling.\n\n\n render.arrows().normal = function normal(parent, id) {\n var marker = parent.append('marker').attr('id', id).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'strokeWidth').attr('markerWidth', 8).attr('markerHeight', 6).attr('orient', 'auto');\n marker.append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowheadPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n }; // Set up an SVG group so that we can translate the final graph.\n\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g);\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // reposition labels\n\n for (i = 0; i < subGraphs.length; i++) {\n subG = subGraphs[i];\n\n if (subG.title !== 'undefined') {\n var clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n var clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n var xPos = clusterRects[0].x.baseVal.value;\n var yPos = clusterRects[0].y.baseVal.value;\n var _width = clusterRects[0].width.baseVal.value;\n var cluster = select(clusterEl[0]);\n var te = cluster.select('.label');\n te.attr('transform', \"translate(\".concat(xPos + _width / 2, \", \").concat(yPos + 14, \")\"));\n te.attr('id', id + 'Text');\n\n for (var _j = 0; _j < subG.classes.length; _j++) {\n clusterEl[0].classList.add(subG.classes[_j]);\n }\n }\n } // Add label rects for non html labels\n\n\n if (!conf.htmlLabels || true) {\n // eslint-disable-line\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "index": 51, - "index2": 66, - "size": 14132, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "22:0-66" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "320:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "321:8-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/flowchart/flowRenderer-v2", - "loc": "524:2-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "addVertices", - "addEdges", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select, curveLinear, selectAll } from 'd3';\nimport flowDb from './flowDb';\nimport flow from './parser/flow';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport addHtmlLabel from 'dagre-d3/lib/label/add-html-label.js';\nimport { logger } from '../../logger';\nimport common from '../common/common';\nimport { interpolateToCurve, getStylesFromArray } from '../../utils';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Function that adds the vertices found during parsing to the graph to be rendered.\n * @param vert Object containing the vertices.\n * @param g The graph that is to be drawn.\n */\n\nexport var addVertices = function addVertices(vert, g, svgId) {\n var svg = select(\"[id=\\\"\".concat(svgId, \"\\\"]\"));\n var keys = Object.keys(vert); // Iterate through each item in the vertex object (containing all the vertices found) in the graph definition\n\n keys.forEach(function (id) {\n var vertex = vert[id];\n /**\n * Variable for storing the classes for the vertex\n * @type {string}\n */\n\n var classStr = 'default';\n\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(' ');\n }\n\n var styles = getStylesFromArray(vertex.styles); // Use vertex id as text in the box if no text is provided by the graph definition\n\n var vertexText = vertex.text !== undefined ? vertex.text : vertex.id; // We create a SVG label, either by delegating to addHtmlLabel or manually\n\n var vertexNode;\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n var node = {\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n var rows = vertexText.split(common.lineBreakRegex);\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '1');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n vertexNode = svgLabel;\n }\n\n var radious = 0;\n var _shape = ''; // Set the shape based parameters\n\n switch (vertex.type) {\n case 'round':\n radious = 5;\n _shape = 'rect';\n break;\n\n case 'square':\n _shape = 'rect';\n break;\n\n case 'diamond':\n _shape = 'question';\n break;\n\n case 'hexagon':\n _shape = 'hexagon';\n break;\n\n case 'odd':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'lean_right':\n _shape = 'lean_right';\n break;\n\n case 'lean_left':\n _shape = 'lean_left';\n break;\n\n case 'trapezoid':\n _shape = 'trapezoid';\n break;\n\n case 'inv_trapezoid':\n _shape = 'inv_trapezoid';\n break;\n\n case 'odd_right':\n _shape = 'rect_left_inv_arrow';\n break;\n\n case 'circle':\n _shape = 'circle';\n break;\n\n case 'ellipse':\n _shape = 'ellipse';\n break;\n\n case 'stadium':\n _shape = 'stadium';\n break;\n\n case 'subroutine':\n _shape = 'subroutine';\n break;\n\n case 'cylinder':\n _shape = 'cylinder';\n break;\n\n case 'group':\n _shape = 'rect';\n break;\n\n default:\n _shape = 'rect';\n } // Add the node\n\n\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n logger.info('setNode', {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n width: vertex.type === 'group' ? 500 : undefined,\n type: vertex.type,\n padding: getConfig().flowchart.padding\n });\n });\n};\n/**\n * Add edges to graph based on parsed graph defninition\n * @param {Object} edges The edges to add to the graph\n * @param {Object} g The graph object\n */\n\nexport var addEdges = function addEdges(edges, g) {\n var cnt = 0;\n var defaultStyle;\n var defaultLabelStyle;\n\n if (typeof edges.defaultStyle !== 'undefined') {\n var defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n\n edges.forEach(function (edge) {\n cnt++; // Identify Link\n\n var linkId = 'L-' + edge.start + '-' + edge.end;\n var linkNameStart = 'LS-' + edge.start;\n var linkNameEnd = 'LE-' + edge.end;\n var edgeData = {}; //edgeData.id = 'id' + cnt;\n // Set link type for rendering\n\n if (edge.type === 'arrow_open') {\n edgeData.arrowhead = 'none';\n } else {\n edgeData.arrowhead = 'normal';\n }\n\n logger.info(edgeData, edge);\n edgeData.arrowType = edge.type;\n var style = '';\n var labelStyle = '';\n\n if (typeof edge.style !== 'undefined') {\n var styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n } else {\n switch (edge.stroke) {\n case 'normal':\n style = 'fill:none';\n\n if (typeof defaultStyle !== 'undefined') {\n style = defaultStyle;\n }\n\n if (typeof defaultLabelStyle !== 'undefined') {\n labelStyle = defaultLabelStyle;\n }\n\n edgeData.thickness = 'normal';\n edgeData.pattern = 'solid';\n break;\n\n case 'dotted':\n edgeData.thickness = 'normal';\n edgeData.pattern = 'dotted';\n break;\n\n case 'thick':\n edgeData.thickness = 'thick';\n edgeData.pattern = 'solid';\n break;\n }\n }\n\n edgeData.style = style;\n edgeData.labelStyle = labelStyle;\n\n if (typeof edge.interpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (typeof edges.defaultInterpolate !== 'undefined') {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n\n if (typeof edge.text === 'undefined') {\n if (typeof edge.style !== 'undefined') {\n edgeData.arrowheadStyle = 'fill: #333';\n }\n } else {\n edgeData.arrowheadStyle = 'fill: #333';\n edgeData.labelpos = 'c';\n\n if (getConfig().flowchart.htmlLabels && false) {\n // eslint-disable-line\n edgeData.labelType = 'html';\n edgeData.label = \"\").concat(edge.text, \"\");\n } else {\n edgeData.labelType = 'text';\n edgeData.label = edge.text.replace(common.lineBreakRegex, '\\n');\n\n if (typeof edge.style === 'undefined') {\n edgeData.style = edgeData.style || 'stroke: #333; stroke-width: 1.5px;fill:none';\n }\n\n edgeData.labelStyle = edgeData.labelStyle.replace('color:', 'fill:');\n }\n }\n\n edgeData.id = linkId;\n edgeData.classes = 'flowchart-link ' + linkNameStart + ' ' + linkNameEnd; // Add the edge to the graph\n\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.info('Extracting classes');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb;\n\n try {\n // Parse the graph definition\n parser.parse(text);\n } catch (e) {\n return;\n }\n\n return flowDb.getClasses();\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing flowchart');\n flowDb.clear();\n var parser = flow.parser;\n parser.yy = flowDb; // Parse the graph definition\n // try {\n\n parser.parse(text); // } catch (err) {\n // logger.debug('Parsing failed');\n // }\n // Fetch the default direction, use TD if none was found\n\n var dir = flowDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'TD';\n }\n\n var conf = getConfig().flowchart;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n var subG;\n var subGraphs = flowDb.getSubGraphs();\n logger.info('Subgraphs - ', subGraphs);\n\n for (var _i = subGraphs.length - 1; _i >= 0; _i--) {\n subG = subGraphs[_i];\n logger.info('Subgraph - ', subG);\n flowDb.addVertex(subG.id, subG.title, 'group', undefined, subG.classes);\n } // Fetch the verices/nodes and edges/links from the parsed graph definition\n\n\n var vert = flowDb.getVertices();\n var edges = flowDb.getEdges();\n logger.info(edges);\n var i = 0;\n\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll('cluster').append('text');\n\n for (var j = 0; j < subG.nodes.length; j++) {\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n\n addVertices(vert, g, id);\n addEdges(edges, g); // Add custom shapes\n // flowChartShapes.addToRenderV2(addShape);\n // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['point', 'circle', 'cross'], 'flowchart', id); // dagre.layout(g);\n\n element.selectAll('g.node').attr('title', function () {\n return flowDb.getTooltip(this.id);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n logger.debug(\"new ViewBox 0 0 \".concat(width, \" \").concat(height), \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - g._label.marginy, \")\"));\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"0 0 \".concat(width, \" \").concat(height));\n svg.select('g').attr('transform', \"translate(\".concat(padding - g._label.marginx, \", \").concat(padding - svgBounds.y, \")\")); // Index nodes\n\n flowDb.indexNodes('subGraph' + i); // // reposition labels\n // for (i = 0; i < subGraphs.length; i++) {\n // subG = subGraphs[i];\n // if (subG.title !== 'undefined') {\n // const clusterRects = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"] rect');\n // const clusterEl = document.querySelectorAll('#' + id + ' [id=\"' + subG.id + '\"]');\n // const xPos = clusterRects[0].x.baseVal.value;\n // const yPos = clusterRects[0].y.baseVal.value;\n // const width = clusterRects[0].width.baseVal.value;\n // const cluster = d3.select(clusterEl[0]);\n // const te = cluster.select('.label');\n // te.attr('transform', `translate(${xPos + width / 2}, ${yPos + 14})`);\n // te.attr('id', id + 'Text');\n // for (let j = 0; j < subG.classes.length; j++) {\n // clusterEl[0].classList.add(subG.classes[j]);\n // }\n // }\n // }\n // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n } // If node has a link, wrap it in an anchor SVG object.\n\n\n var keys = Object.keys(vert);\n keys.forEach(function (key) {\n var vertex = vert[key];\n\n if (vertex.link) {\n var node = select('#' + id + ' [id=\"' + key + '\"]');\n\n if (node) {\n var link = document.createElementNS('http://www.w3.org/2000/svg', 'a');\n link.setAttributeNS('http://www.w3.org/2000/svg', 'class', vertex.classes.join(' '));\n link.setAttributeNS('http://www.w3.org/2000/svg', 'href', vertex.link);\n link.setAttributeNS('http://www.w3.org/2000/svg', 'rel', 'noopener');\n var linkNode = node.insert(function () {\n return link;\n }, ':first-child');\n var shape = node.select('.label-container');\n\n if (shape) {\n linkNode.append(function () {\n return shape.node();\n });\n }\n\n var _label = node.select('.label');\n\n if (_label) {\n linkNode.append(function () {\n return _label.node();\n });\n }\n }\n }\n });\n};\nexport default {\n setConf: setConf,\n addVertices: addVertices,\n addEdges: addEdges,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceDb.js", - "name": "./src/diagrams/sequence/sequenceDb.js", - "index": 30, - "index2": 28, - "size": 8123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./sequenceDb", - "loc": "6:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "8:12-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "27:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceDb", - "loc": "94:25-35" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./sequenceDb", - "loc": "360:6-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "parseDirective", - "addActor", - "addMessage", - "addSignal", - "getMessages", - "getActors", - "getActor", - "getActorKeys", - "getTitle", - "getTitleWrapped", - "enableSequenceNumbers", - "showSequenceNumbers", - "setWrap", - "autoWrap", - "clear", - "parseMessage", - "LINETYPE", - "ARROWTYPE", - "PLACEMENT", - "addNote", - "setTitle", - "apply", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import mermaidAPI from '../../mermaidAPI';\nimport configApi from '../../config';\nimport common from '../common/common';\nimport { logger } from '../../logger';\nvar prevActor = undefined;\nvar actors = {};\nvar messages = [];\nvar notes = [];\nvar title = '';\nvar titleWrapped = false;\nvar sequenceNumbersEnabled = false;\nvar wrapEnabled = false;\nexport var parseDirective = function parseDirective(statement, context, type) {\n mermaidAPI.parseDirective(statement, context, type);\n};\nexport var addActor = function addActor(id, name, description) {\n // Don't allow description nulling\n var old = actors[id];\n if (old && name === old.name && description == null) return; // Don't allow null descriptions, either\n\n if (description == null || description.text == null) {\n description = {\n text: name,\n wrap: null\n };\n }\n\n actors[id] = {\n name: name,\n description: description.text,\n wrap: description.wrap === undefined && autoWrap() || !!description.wrap,\n prevActor: prevActor\n };\n\n if (prevActor && actors[prevActor]) {\n actors[prevActor].nextActor = id;\n }\n\n prevActor = id;\n};\n\nvar activationCount = function activationCount(part) {\n var i;\n var count = 0;\n\n for (i = 0; i < messages.length; i++) {\n // console.warn(i, messages[i]);\n if (messages[i].type === LINETYPE.ACTIVE_START) {\n if (messages[i].from.actor === part) {\n count++;\n }\n }\n\n if (messages[i].type === LINETYPE.ACTIVE_END) {\n if (messages[i].from.actor === part) {\n count--;\n }\n }\n }\n\n return count;\n};\n\nexport var addMessage = function addMessage(idFrom, idTo, message, answer) {\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n answer: answer\n });\n};\nexport var addSignal = function addSignal(idFrom, idTo) {\n var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n text: undefined,\n wrap: undefined\n };\n var messageType = arguments.length > 3 ? arguments[3] : undefined;\n\n if (messageType === LINETYPE.ACTIVE_END) {\n var cnt = activationCount(idFrom.actor);\n\n if (cnt < 1) {\n // Bail out as there is an activation signal from an inactive participant\n var error = new Error('Trying to inactivate an inactive participant (' + idFrom.actor + ')');\n error.hash = {\n text: '->>-',\n token: '->>-',\n line: '1',\n loc: {\n first_line: 1,\n last_line: 1,\n first_column: 1,\n last_column: 1\n },\n expected: [\"'ACTIVE_PARTICIPANT'\"]\n };\n throw error;\n }\n }\n\n messages.push({\n from: idFrom,\n to: idTo,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: messageType\n });\n return true;\n};\nexport var getMessages = function getMessages() {\n return messages;\n};\nexport var getActors = function getActors() {\n return actors;\n};\nexport var getActor = function getActor(id) {\n return actors[id];\n};\nexport var getActorKeys = function getActorKeys() {\n return Object.keys(actors);\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var getTitleWrapped = function getTitleWrapped() {\n return titleWrapped;\n};\nexport var enableSequenceNumbers = function enableSequenceNumbers() {\n sequenceNumbersEnabled = true;\n};\nexport var showSequenceNumbers = function showSequenceNumbers() {\n return sequenceNumbersEnabled;\n};\nexport var setWrap = function setWrap(wrapSetting) {\n wrapEnabled = wrapSetting;\n};\nexport var autoWrap = function autoWrap() {\n return wrapEnabled;\n};\nexport var clear = function clear() {\n actors = {};\n messages = [];\n};\nexport var parseMessage = function parseMessage(str) {\n var _str = str.trim();\n\n var message = {\n text: _str.replace(/^[:]?(?:no)?wrap:/, '').trim(),\n wrap: _str.match(/^[:]?(?:no)?wrap:/) === null ? common.hasBreaks(_str) || autoWrap() : _str.match(/^[:]?wrap:/) !== null ? true : _str.match(/^[:]?nowrap:/) !== null ? false : autoWrap()\n };\n logger.debug('parseMessage:', message);\n return message;\n};\nexport var LINETYPE = {\n SOLID: 0,\n DOTTED: 1,\n NOTE: 2,\n SOLID_CROSS: 3,\n DOTTED_CROSS: 4,\n SOLID_OPEN: 5,\n DOTTED_OPEN: 6,\n LOOP_START: 10,\n LOOP_END: 11,\n ALT_START: 12,\n ALT_ELSE: 13,\n ALT_END: 14,\n OPT_START: 15,\n OPT_END: 16,\n ACTIVE_START: 17,\n ACTIVE_END: 18,\n PAR_START: 19,\n PAR_AND: 20,\n PAR_END: 21,\n RECT_START: 22,\n RECT_END: 23\n};\nexport var ARROWTYPE = {\n FILLED: 0,\n OPEN: 1\n};\nexport var PLACEMENT = {\n LEFTOF: 0,\n RIGHTOF: 1,\n OVER: 2\n};\nexport var addNote = function addNote(actor, placement, message) {\n var note = {\n actor: actor,\n placement: placement,\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap\n }; // Coerce actor into a [to, from, ...] array\n\n var actors = [].concat(actor, actor);\n notes.push(note);\n messages.push({\n from: actors[0],\n to: actors[1],\n message: message.text,\n wrap: message.wrap === undefined && autoWrap() || !!message.wrap,\n type: LINETYPE.NOTE,\n placement: placement\n });\n};\nexport var setTitle = function setTitle(titleWrap) {\n title = titleWrap.text;\n titleWrapped = titleWrap.wrap === undefined && autoWrap() || !!titleWrap.wrap;\n};\nexport var apply = function apply(param) {\n if (param instanceof Array) {\n param.forEach(function (item) {\n apply(item);\n });\n } else {\n switch (param.type) {\n case 'addActor':\n addActor(param.actor, param.actor, param.description);\n break;\n\n case 'activeStart':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'activeEnd':\n addSignal(param.actor, undefined, undefined, param.signalType);\n break;\n\n case 'addNote':\n addNote(param.actor, param.placement, param.text);\n break;\n\n case 'addMessage':\n addSignal(param.from, param.to, param.msg, param.signalType);\n break;\n\n case 'loopStart':\n addSignal(undefined, undefined, param.loopText, param.signalType);\n break;\n\n case 'loopEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'rectStart':\n addSignal(undefined, undefined, param.color, param.signalType);\n break;\n\n case 'rectEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'optStart':\n addSignal(undefined, undefined, param.optText, param.signalType);\n break;\n\n case 'optEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'altStart':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'else':\n addSignal(undefined, undefined, param.altText, param.signalType);\n break;\n\n case 'altEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n\n case 'setTitle':\n setTitle(param.text);\n break;\n\n case 'parStart':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'and':\n addSignal(undefined, undefined, param.parText, param.signalType);\n break;\n\n case 'parEnd':\n addSignal(undefined, undefined, undefined, param.signalType);\n break;\n }\n }\n};\nexport default {\n addActor: addActor,\n addMessage: addMessage,\n addSignal: addSignal,\n autoWrap: autoWrap,\n setWrap: setWrap,\n enableSequenceNumbers: enableSequenceNumbers,\n showSequenceNumbers: showSequenceNumbers,\n getMessages: getMessages,\n getActors: getActors,\n getActor: getActor,\n getActorKeys: getActorKeys,\n getTitle: getTitle,\n parseDirective: parseDirective,\n getConfig: function getConfig() {\n return configApi.getConfig().sequence;\n },\n getTitleWrapped: getTitleWrapped,\n clear: clear,\n parseMessage: parseMessage,\n LINETYPE: LINETYPE,\n ARROWTYPE: ARROWTYPE,\n PLACEMENT: PLACEMENT,\n addNote: addNote,\n setTitle: setTitle,\n apply: apply\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "index": 69, - "index2": 68, - "size": 35513, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "25:0-68" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "329:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "332:10-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "335:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "527:4-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/sequence/sequenceRenderer", - "loc": "530:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "bounds", - "drawActors", - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, selectAll } from 'd3';\nimport svgDraw, { drawText } from './svgDraw';\nimport { logger } from '../../logger';\nimport { parser } from './parser/sequenceDiagram';\nimport common from '../common/common';\nimport sequenceDb from './sequenceDb';\nimport utils, { assignWithDepth } from '../../utils';\nparser.yy = sequenceDb;\nvar conf = {};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n activations: [],\n models: {\n getHeight: function getHeight() {\n return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map(function (actor) {\n return actor.height || 0;\n })) + (this.loops.length === 0 ? 0 : this.loops.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.messages.length === 0 ? 0 : this.messages.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n })) + (this.notes.length === 0 ? 0 : this.notes.map(function (it) {\n return it.height || 0;\n }).reduce(function (acc, h) {\n return acc + h;\n }));\n },\n clear: function clear() {\n this.actors = [];\n this.loops = [];\n this.messages = [];\n this.notes = [];\n },\n addActor: function addActor(actorModel) {\n this.actors.push(actorModel);\n },\n addLoop: function addLoop(loopModel) {\n this.loops.push(loopModel);\n },\n addMessage: function addMessage(msgModel) {\n this.messages.push(msgModel);\n },\n addNote: function addNote(noteModel) {\n this.notes.push(noteModel);\n },\n lastActor: function lastActor() {\n return this.actors[this.actors.length - 1];\n },\n lastLoop: function lastLoop() {\n return this.loops[this.loops.length - 1];\n },\n lastMessage: function lastMessage() {\n return this.messages[this.messages.length - 1];\n },\n lastNote: function lastNote() {\n return this.notes[this.notes.length - 1];\n },\n actors: [],\n loops: [],\n messages: [],\n notes: []\n },\n init: function init() {\n this.sequenceItems = [];\n this.activations = [];\n this.models.clear();\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n setConf(parser.yy.getConfig());\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n this.activations.forEach(updateFn('activation'));\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n newActivation: function newActivation(message, diagram, actors) {\n var actorRect = actors[message.from.actor];\n var stackedSize = actorActivations(message.from.actor).length || 0;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n this.activations.push({\n startx: x,\n starty: this.verticalPos + 2,\n stopx: x + conf.activationWidth,\n stopy: undefined,\n actor: message.from.actor,\n anchored: svgDraw.anchorElement(diagram)\n });\n },\n endActivation: function endActivation(message) {\n // find most recent activation for given actor\n var lastActorActivationIdx = this.activations.map(function (activation) {\n return activation.actor;\n }).lastIndexOf(message.from.actor);\n return this.activations.splice(lastActorActivationIdx, 1)[0];\n },\n createLoop: function createLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n return {\n startx: undefined,\n starty: this.verticalPos,\n stopx: undefined,\n stopy: undefined,\n title: title.message,\n wrap: title.wrap,\n width: title.width,\n height: 0,\n fill: fill\n };\n },\n newLoop: function newLoop() {\n var title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n message: undefined,\n wrap: false,\n width: undefined\n };\n var fill = arguments.length > 1 ? arguments[1] : undefined;\n this.sequenceItems.push(this.createLoop(title, fill));\n },\n endLoop: function endLoop() {\n return this.sequenceItems.pop();\n },\n addSectionToLoop: function addSectionToLoop(message) {\n var loop = this.sequenceItems.pop();\n loop.sections = loop.sections || [];\n loop.sectionTitles = loop.sectionTitles || [];\n loop.sections.push({\n y: bounds.getVerticalPos(),\n height: 0\n });\n loop.sectionTitles.push(message);\n this.sequenceItems.push(loop);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return {\n bounds: this.data,\n models: this.models\n };\n }\n};\n/**\n * Draws an note in the diagram with the attached line\n * @param elem - The diagram to draw to.\n * @param noteModel:{x: number, y: number, message: string, width: number} - startx: x axis start position, verticalPos: y axis position, messsage: the message to be shown, width: Set this with a custom width to override the default configured width.\n */\n\nvar drawNote = function drawNote(elem, noteModel) {\n bounds.bumpVerticalPos(conf.boxMargin);\n noteModel.height = conf.boxMargin;\n noteModel.starty = bounds.getVerticalPos();\n var rect = svgDraw.getNoteRect();\n rect.x = noteModel.startx;\n rect.y = noteModel.starty;\n rect.width = noteModel.width || conf.width;\n rect.class = 'note';\n var g = elem.append('g');\n var rectElem = svgDraw.drawRect(g, rect);\n var textObj = svgDraw.getTextObj();\n textObj.x = noteModel.startx;\n textObj.y = noteModel.starty;\n textObj.width = rect.width;\n textObj.dy = '1em';\n textObj.text = noteModel.message;\n textObj.class = 'noteText';\n textObj.fontFamily = conf.noteFontFamily;\n textObj.fontSize = conf.noteFontSize;\n textObj.fontWeight = conf.noteFontWeight;\n textObj.anchor = conf.noteAlign;\n textObj.textMargin = conf.noteMargin;\n textObj.valign = conf.noteAlign;\n textObj.wrap = true;\n var textElem = drawText(g, textObj);\n var textHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n rectElem.attr('height', textHeight + 2 * conf.noteMargin);\n noteModel.height += textHeight + 2 * conf.noteMargin;\n bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);\n noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;\n noteModel.stopx = noteModel.startx + rect.width;\n bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);\n bounds.models.addNote(noteModel);\n};\n/**\n * Draws a message\n * @param g - the parent of the message element\n * @param msgModel - the model containing fields describing a message\n */\n\n\nvar drawMessage = function drawMessage(g, msgModel) {\n bounds.bumpVerticalPos(10);\n var startx = msgModel.startx,\n stopx = msgModel.stopx,\n starty = msgModel.starty,\n message = msgModel.message,\n type = msgModel.type,\n sequenceIndex = msgModel.sequenceIndex,\n wrap = msgModel.wrap;\n var lines = common.splitBreaks(message).length;\n var textDims = utils.calculateTextDimensions(message, conf.messageFont());\n var lineHeight = textDims.height / lines;\n msgModel.height += lineHeight;\n bounds.bumpVerticalPos(lineHeight);\n var textObj = svgDraw.getTextObj();\n textObj.x = startx;\n textObj.y = starty + 10;\n textObj.width = stopx - startx;\n textObj.class = 'messageText';\n textObj.dy = '1em';\n textObj.text = message;\n textObj.fontFamily = conf.messageFontFamily;\n textObj.fontSize = conf.messageFontSize;\n textObj.fontWeight = conf.messageFontWeight;\n textObj.anchor = conf.messageAlign;\n textObj.valign = conf.messageAlign;\n textObj.textMargin = conf.wrapPadding;\n textObj.tspan = false;\n textObj.wrap = wrap;\n drawText(g, textObj);\n var totalOffset = textDims.height - 10;\n var textWidth = textDims.width;\n var line, lineStarty;\n\n if (startx === stopx) {\n lineStarty = bounds.getVerticalPos() + totalOffset;\n\n if (conf.rightAngles) {\n line = g.append('path').attr('d', \"M \".concat(startx, \",\").concat(lineStarty, \" H \").concat(startx + Math.max(conf.width / 2, textWidth / 2), \" V \").concat(lineStarty + 25, \" H \").concat(startx));\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('path').attr('d', 'M ' + startx + ',' + lineStarty + ' C ' + (startx + 60) + ',' + (lineStarty - 10) + ' ' + (startx + 60) + ',' + (lineStarty + 30) + ' ' + startx + ',' + (lineStarty + 20));\n }\n\n totalOffset += 30;\n var dx = Math.max(textWidth / 2, conf.width / 2);\n bounds.insert(startx - dx, bounds.getVerticalPos() - 10 + totalOffset, stopx + dx, bounds.getVerticalPos() + 30 + totalOffset);\n } else {\n totalOffset += conf.boxMargin;\n lineStarty = bounds.getVerticalPos() + totalOffset;\n line = g.append('line');\n line.attr('x1', startx);\n line.attr('y1', lineStarty);\n line.attr('x2', stopx);\n line.attr('y2', lineStarty);\n bounds.insert(startx, lineStarty - 10, stopx, lineStarty);\n } // Make an SVG Container\n // Draw the line\n\n\n if (type === parser.yy.LINETYPE.DOTTED || type === parser.yy.LINETYPE.DOTTED_CROSS || type === parser.yy.LINETYPE.DOTTED_OPEN) {\n line.style('stroke-dasharray', '3, 3');\n line.attr('class', 'messageLine1');\n } else {\n line.attr('class', 'messageLine0');\n }\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n line.attr('stroke-width', 2);\n line.attr('stroke', 'none'); // handled by theme/css anyway\n\n line.style('fill', 'none'); // remove any fill colour\n\n if (type === parser.yy.LINETYPE.SOLID || type === parser.yy.LINETYPE.DOTTED) {\n line.attr('marker-end', 'url(' + url + '#arrowhead)');\n }\n\n if (type === parser.yy.LINETYPE.SOLID_CROSS || type === parser.yy.LINETYPE.DOTTED_CROSS) {\n line.attr('marker-end', 'url(' + url + '#crosshead)');\n } // add node number\n\n\n if (sequenceDb.showSequenceNumbers() || conf.showSequenceNumbers) {\n line.attr('marker-start', 'url(' + url + '#sequencenumber)');\n g.append('text').attr('x', startx).attr('y', lineStarty + 4).attr('font-family', 'sans-serif').attr('font-size', '12px').attr('text-anchor', 'middle').attr('textLength', '16px').attr('class', 'sequenceNumber').text(sequenceIndex);\n }\n\n bounds.bumpVerticalPos(totalOffset);\n msgModel.height += totalOffset;\n msgModel.stopy = msgModel.starty + msgModel.height;\n bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);\n};\n\nexport var drawActors = function drawActors(diagram, actors, actorKeys, verticalPos) {\n // Draw the actors\n var prevWidth = 0;\n var prevMargin = 0;\n\n for (var i = 0; i < actorKeys.length; i++) {\n var actor = actors[actorKeys[i]]; // Add some rendering data to the object\n\n actor.width = actor.width || conf.width;\n actor.height = Math.max(actor.height || conf.height, conf.height);\n actor.margin = actor.margin || conf.actorMargin;\n actor.x = prevWidth + prevMargin;\n actor.y = verticalPos; // Draw the box with the attached line\n\n svgDraw.drawActor(diagram, actor, conf);\n bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);\n prevWidth += actor.width;\n prevMargin += actor.margin;\n bounds.models.addActor(actor);\n } // Add a margin between the actor boxes and the first arrow\n\n\n bounds.bumpVerticalPos(conf.height);\n};\nexport var setConf = function setConf(cnf) {\n assignWithDepth(conf, cnf);\n\n if (cnf.fontFamily) {\n conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;\n }\n\n if (cnf.fontSize) {\n conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;\n }\n\n if (cnf.fontWeight) {\n conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;\n }\n};\n\nvar actorActivations = function actorActivations(actor) {\n return bounds.activations.filter(function (activation) {\n return activation.actor === actor;\n });\n};\n\nvar activationBounds = function activationBounds(actor, actors) {\n // handle multiple stacked activations for same actor\n var actorObj = actors[actor];\n var activations = actorActivations(actor);\n var left = activations.reduce(function (acc, activation) {\n return Math.min(acc, activation.startx);\n }, actorObj.x + actorObj.width / 2);\n var right = activations.reduce(function (acc, activation) {\n return Math.max(acc, activation.stopx);\n }, actorObj.x + actorObj.width / 2);\n return [left, right];\n};\n\nfunction adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {\n bounds.bumpVerticalPos(preMargin);\n var heightAdjust = postMargin;\n\n if (msg.id && msg.message && loopWidths[msg.id]) {\n var loopWidth = loopWidths[msg.id].width;\n var textConf = conf.messageFont();\n msg.message = utils.wrapLabel(\"[\".concat(msg.message, \"]\"), loopWidth - 2 * conf.wrapPadding, textConf);\n msg.width = loopWidth;\n msg.wrap = true; // const lines = common.splitBreaks(msg.message).length;\n\n var textDims = utils.calculateTextDimensions(msg.message, textConf);\n var totalOffset = Math.max(textDims.height, conf.labelBoxHeight);\n heightAdjust = postMargin + totalOffset;\n logger.debug(\"\".concat(totalOffset, \" - \").concat(msg.message));\n }\n\n addLoopFn(msg);\n bounds.bumpVerticalPos(heightAdjust);\n}\n/**\n * Draws a sequenceDiagram in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.yy.setWrap(conf.wrap);\n parser.parse(text + '\\n');\n bounds.init();\n logger.debug(\"C:\".concat(JSON.stringify(conf, null, 2)));\n var diagram = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Fetch data from the parsing\n\n var actors = parser.yy.getActors();\n var actorKeys = parser.yy.getActorKeys();\n var messages = parser.yy.getMessages();\n var title = parser.yy.getTitle();\n var maxMessageWidthPerActor = getMaxMessageWidthPerActor(actors, messages);\n conf.height = calculateActorMargins(actors, maxMessageWidthPerActor);\n drawActors(diagram, actors, actorKeys, 0);\n var loopWidths = calculateLoopBounds(messages, actors, maxMessageWidthPerActor); // The arrow head definition is attached to the svg once\n\n svgDraw.insertArrowHead(diagram);\n svgDraw.insertArrowCrossHead(diagram);\n svgDraw.insertSequenceNumber(diagram);\n\n function activeEnd(msg, verticalPos) {\n var activationData = bounds.endActivation(msg);\n\n if (activationData.starty + 18 > verticalPos) {\n activationData.starty = verticalPos - 6;\n verticalPos += 12;\n }\n\n svgDraw.drawActivation(diagram, activationData, verticalPos, conf, actorActivations(msg.from.actor).length);\n bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);\n } // Draw the messages/signals\n\n\n var sequenceIndex = 1;\n messages.forEach(function (msg) {\n var loopModel, noteModel, msgModel;\n\n switch (msg.type) {\n case parser.yy.LINETYPE.NOTE:\n noteModel = msg.noteModel;\n drawNote(diagram, noteModel);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n bounds.newActivation(msg, diagram, actors);\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n activeEnd(msg, bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.LOOP_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'loop', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.RECT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, function (message) {\n return bounds.newLoop(undefined, message.message);\n });\n break;\n\n case parser.yy.LINETYPE.RECT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawBackgroundRect(diagram, loopModel);\n bounds.models.addLoop(loopModel);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n break;\n\n case parser.yy.LINETYPE.OPT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.OPT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'opt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.ALT_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.ALT_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'alt', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n case parser.yy.LINETYPE.PAR_START:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, function (message) {\n return bounds.newLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_AND:\n adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, function (message) {\n return bounds.addSectionToLoop(message);\n });\n break;\n\n case parser.yy.LINETYPE.PAR_END:\n loopModel = bounds.endLoop();\n svgDraw.drawLoop(diagram, loopModel, 'par', conf);\n bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());\n bounds.models.addLoop(loopModel);\n break;\n\n default:\n try {\n // lastMsg = msg\n msgModel = msg.msgModel;\n msgModel.starty = bounds.getVerticalPos();\n msgModel.sequenceIndex = sequenceIndex;\n drawMessage(diagram, msgModel);\n bounds.models.addMessage(msgModel);\n } catch (e) {\n logger.error('error while drawing message', e);\n }\n\n } // Increment sequence counter if msg.type is a line (and not another event like activation or note, etc)\n\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n sequenceIndex++;\n }\n });\n\n if (conf.mirrorActors) {\n // Draw actors below diagram\n bounds.bumpVerticalPos(conf.boxMargin * 2);\n drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());\n }\n\n var _bounds$getBounds = bounds.getBounds(),\n box = _bounds$getBounds.bounds; // Adjust line height of actor lines now that the height of the diagram is known\n\n\n logger.debug('For line height fix Querying: #' + id + ' .actor-line');\n var actorLines = selectAll('#' + id + ' .actor-line');\n actorLines.attr('y2', box.stopy);\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n\n if (conf.mirrorActors) {\n height = height - conf.boxMargin + conf.bottomMarginAdj;\n }\n\n var width = box.stopx - box.startx + 2 * conf.diagramMarginX;\n\n if (title) {\n diagram.append('text').text(title).attr('x', (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr('y', -25);\n }\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;'); // diagram.attr('style', 'max-width:100%;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n }\n\n var extraVertForTitle = title ? 40 : 0;\n diagram.attr('viewBox', box.startx - conf.diagramMarginX + ' -' + (conf.diagramMarginY + extraVertForTitle) + ' ' + width + ' ' + (height + extraVertForTitle));\n logger.debug(\"models:\", bounds.models);\n};\n/**\n * Retrieves the max message width of each actor, supports signals (messages, loops)\n * and notes.\n *\n * It will enumerate each given message, and will determine its text width, in relation\n * to the actor it originates from, and destined to.\n *\n * @param actors - The actors map\n * @param messages - A list of message objects to iterate\n */\n\nvar getMaxMessageWidthPerActor = function getMaxMessageWidthPerActor(actors, messages) {\n var maxMessageWidthPerActor = {};\n messages.forEach(function (msg) {\n if (actors[msg.to] && actors[msg.from]) {\n var actor = actors[msg.to]; // If this is the first actor, and the message is left of it, no need to calculate the margin\n\n if (msg.placement === parser.yy.PLACEMENT.LEFTOF && !actor.prevActor) {\n return;\n } // If this is the last actor, and the message is right of it, no need to calculate the margin\n\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF && !actor.nextActor) {\n return;\n }\n\n var isNote = msg.placement !== undefined;\n var isMessage = !isNote;\n var textFont = isNote ? conf.noteFont() : conf.messageFont();\n var wrappedMessage = msg.wrap ? utils.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;\n var messageDimensions = utils.calculateTextDimensions(wrappedMessage, textFont);\n var messageWidth = messageDimensions.width + 2 * conf.wrapPadding;\n /*\n * The following scenarios should be supported:\n *\n * - There's a message (non-note) between fromActor and toActor\n * - If fromActor is on the right and toActor is on the left, we should\n * define the toActor's margin\n * - If fromActor is on the left and toActor is on the right, we should\n * define the fromActor's margin\n * - There's a note, in which case fromActor == toActor\n * - If the note is to the left of the actor, we should define the previous actor\n * margin\n * - If the note is on the actor, we should define both the previous and next actor\n * margins, each being the half of the note size\n * - If the note is on the right of the actor, we should define the current actor\n * margin\n */\n\n if (isMessage && msg.from === actor.nextActor) {\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth);\n } else if (isMessage && msg.from === actor.prevActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (isMessage && msg.from === msg.to) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n maxMessageWidthPerActor[msg.to] = Math.max(maxMessageWidthPerActor[msg.to] || 0, messageWidth / 2);\n } else if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth);\n } else if (msg.placement === parser.yy.PLACEMENT.OVER) {\n if (actor.prevActor) {\n maxMessageWidthPerActor[actor.prevActor] = Math.max(maxMessageWidthPerActor[actor.prevActor] || 0, messageWidth / 2);\n }\n\n if (actor.nextActor) {\n maxMessageWidthPerActor[msg.from] = Math.max(maxMessageWidthPerActor[msg.from] || 0, messageWidth / 2);\n }\n }\n }\n });\n logger.debug('maxMessageWidthPerActor:', maxMessageWidthPerActor);\n return maxMessageWidthPerActor;\n};\n/**\n * This will calculate the optimal margin for each given actor, for a given\n * actor->messageWidth map.\n *\n * An actor's margin is determined by the width of the actor, the width of the\n * largest message that originates from it, and the configured conf.actorMargin.\n *\n * @param actors - The actors map to calculate margins for\n * @param actorToMessageWidth - A map of actor key -> max message width it holds\n */\n\n\nvar calculateActorMargins = function calculateActorMargins(actors, actorToMessageWidth) {\n var maxHeight = 0;\n Object.keys(actors).forEach(function (prop) {\n var actor = actors[prop];\n\n if (actor.wrap) {\n actor.description = utils.wrapLabel(actor.description, conf.width - 2 * conf.wrapPadding, conf.actorFont());\n }\n\n var actDims = utils.calculateTextDimensions(actor.description, conf.actorFont());\n actor.width = actor.wrap ? conf.width : Math.max(conf.width, actDims.width + 2 * conf.wrapPadding);\n actor.height = actor.wrap ? Math.max(actDims.height, conf.height) : conf.height;\n maxHeight = Math.max(maxHeight, actor.height);\n });\n\n for (var actorKey in actorToMessageWidth) {\n var actor = actors[actorKey];\n\n if (!actor) {\n continue;\n }\n\n var nextActor = actors[actor.nextActor]; // No need to space out an actor that doesn't have a next link\n\n if (!nextActor) {\n continue;\n }\n\n var messageWidth = actorToMessageWidth[actorKey];\n var actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;\n actor.margin = Math.max(actorWidth, conf.actorMargin);\n }\n\n return Math.max(maxHeight, conf.height);\n};\n\nvar buildNoteModel = function buildNoteModel(msg, actors) {\n var startx = actors[msg.from].x;\n var stopx = actors[msg.to].x;\n var shouldWrap = msg.wrap && msg.message;\n var textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, conf.width, conf.noteFont()) : msg.message, conf.noteFont());\n var noteModel = {\n width: shouldWrap ? conf.width : Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin),\n height: 0,\n startx: actors[msg.from].x,\n stopx: 0,\n starty: 0,\n stopy: 0,\n message: msg.message\n };\n\n if (msg.placement === parser.yy.PLACEMENT.RIGHTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width + conf.actorMargin) / 2;\n } else if (msg.placement === parser.yy.PLACEMENT.LEFTOF) {\n noteModel.width = shouldWrap ? Math.max(conf.width, textDimensions.width + 2 * conf.noteMargin) : Math.max(actors[msg.from].width / 2 + actors[msg.to].width / 2, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx - noteModel.width + (actors[msg.from].width - conf.actorMargin) / 2;\n } else if (msg.to === msg.from) {\n textDimensions = utils.calculateTextDimensions(shouldWrap ? utils.wrapLabel(msg.message, Math.max(conf.width, actors[msg.from].width), conf.noteFont()) : msg.message, conf.noteFont());\n noteModel.width = shouldWrap ? Math.max(conf.width, actors[msg.from].width) : Math.max(actors[msg.from].width, conf.width, textDimensions.width + 2 * conf.noteMargin);\n noteModel.startx = startx + (actors[msg.from].width - noteModel.width) / 2;\n } else {\n noteModel.width = Math.abs(startx + actors[msg.from].width / 2 - (stopx + actors[msg.to].width / 2)) + conf.actorMargin;\n noteModel.startx = startx < stopx ? startx + actors[msg.from].width / 2 - conf.actorMargin / 2 : stopx + actors[msg.to].width / 2 - conf.actorMargin / 2;\n }\n\n if (shouldWrap) {\n noteModel.message = utils.wrapLabel(msg.message, noteModel.width - 2 * conf.wrapPadding, conf.noteFont());\n }\n\n logger.debug(\"NM:[\".concat(noteModel.startx, \",\").concat(noteModel.stopx, \",\").concat(noteModel.starty, \",\").concat(noteModel.stopy, \":\").concat(noteModel.width, \",\").concat(noteModel.height, \"=\").concat(msg.message, \"]\"));\n return noteModel;\n};\n\nvar buildMessageModel = function buildMessageModel(msg, actors) {\n var process = false;\n\n if ([parser.yy.LINETYPE.SOLID_OPEN, parser.yy.LINETYPE.DOTTED_OPEN, parser.yy.LINETYPE.SOLID, parser.yy.LINETYPE.DOTTED, parser.yy.LINETYPE.SOLID_CROSS, parser.yy.LINETYPE.DOTTED_CROSS].includes(msg.type)) {\n process = true;\n }\n\n if (!process) {\n return {};\n }\n\n var fromBounds = activationBounds(msg.from, actors);\n var toBounds = activationBounds(msg.to, actors);\n var fromIdx = fromBounds[0] <= toBounds[0] ? 1 : 0;\n var toIdx = fromBounds[0] < toBounds[0] ? 0 : 1;\n var allBounds = fromBounds.concat(toBounds);\n var boundedWidth = Math.abs(toBounds[toIdx] - fromBounds[fromIdx]);\n var msgDims = utils.calculateTextDimensions(msg.message, conf.messageFont());\n\n if (msg.wrap && msg.message) {\n msg.message = utils.wrapLabel(msg.message, Math.max(boundedWidth + 2 * conf.wrapPadding, conf.width), conf.messageFont());\n }\n\n return {\n width: Math.max(msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding, boundedWidth + 2 * conf.wrapPadding, conf.width),\n height: 0,\n startx: fromBounds[fromIdx],\n stopx: toBounds[toIdx],\n starty: 0,\n stopy: 0,\n message: msg.message,\n type: msg.type,\n wrap: msg.wrap,\n fromBounds: Math.min.apply(null, allBounds),\n toBounds: Math.max.apply(null, allBounds)\n };\n};\n\nvar calculateLoopBounds = function calculateLoopBounds(messages, actors) {\n var loops = {};\n var stack = [];\n var current, noteModel, msgModel;\n messages.forEach(function (msg) {\n msg.id = utils.random({\n length: 10\n });\n\n switch (msg.type) {\n case parser.yy.LINETYPE.LOOP_START:\n case parser.yy.LINETYPE.ALT_START:\n case parser.yy.LINETYPE.OPT_START:\n case parser.yy.LINETYPE.PAR_START:\n stack.push({\n id: msg.id,\n msg: msg.message,\n from: Number.MAX_SAFE_INTEGER,\n to: Number.MIN_SAFE_INTEGER,\n width: 0\n });\n break;\n\n case parser.yy.LINETYPE.ALT_ELSE:\n case parser.yy.LINETYPE.PAR_AND:\n if (msg.message) {\n current = stack.pop();\n loops[current.id] = current;\n loops[msg.id] = current;\n stack.push(current);\n }\n\n break;\n\n case parser.yy.LINETYPE.LOOP_END:\n case parser.yy.LINETYPE.ALT_END:\n case parser.yy.LINETYPE.OPT_END:\n case parser.yy.LINETYPE.PAR_END:\n current = stack.pop();\n loops[current.id] = current;\n break;\n\n case parser.yy.LINETYPE.ACTIVE_START:\n {\n var actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];\n var stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;\n var x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;\n var toAdd = {\n startx: x,\n stopx: x + conf.activationWidth,\n actor: msg.from.actor,\n enabled: true\n };\n bounds.activations.push(toAdd);\n }\n break;\n\n case parser.yy.LINETYPE.ACTIVE_END:\n {\n var lastActorActivationIdx = bounds.activations.map(function (a) {\n return a.actor;\n }).lastIndexOf(msg.from.actor);\n delete bounds.activations.splice(lastActorActivationIdx, 1)[0];\n }\n break;\n }\n\n var isNote = msg.placement !== undefined;\n\n if (isNote) {\n noteModel = buildNoteModel(msg, actors);\n msg.noteModel = noteModel;\n stack.forEach(function (stk) {\n current = stk;\n current.from = Math.min(current.from, noteModel.startx);\n current.to = Math.max(current.to, noteModel.startx + noteModel.width);\n current.width = Math.max(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;\n });\n } else {\n msgModel = buildMessageModel(msg, actors);\n msg.msgModel = msgModel;\n\n if (msgModel.startx && msgModel.stopx && stack.length > 0) {\n stack.forEach(function (stk) {\n current = stk;\n\n if (msgModel.startx === msgModel.stopx) {\n var from = actors[msg.from];\n var to = actors[msg.to];\n current.from = Math.min(from.x - msgModel.width / 2, from.x - from.width / 2, current.from);\n current.to = Math.max(to.x + msgModel.width / 2, to.x + from.width / 2, current.to);\n current.width = Math.max(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;\n } else {\n current.from = Math.min(msgModel.startx, current.from);\n current.to = Math.max(msgModel.stopx, current.to);\n current.width = Math.max(current.width, msgModel.width) - conf.labelBoxWidth;\n }\n });\n }\n }\n });\n bounds.activations = [];\n logger.debug('Loop type widths:', loops);\n return loops;\n};\n\nexport default {\n bounds: bounds,\n drawActors: drawActors,\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttDb.js", - "name": "./src/diagrams/gantt/ganttDb.js", - "index": 32, - "index2": 30, - "size": 16304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./ganttDb", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "5:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "30:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "99:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "module": "./src/diagrams/gantt/ganttRenderer.js", - "moduleName": "./src/diagrams/gantt/ganttRenderer.js", - "type": "harmony import specifier", - "userRequest": "./ganttDb", - "loc": "331:22-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttDb", - "loc": "419:20-27" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setAxisFormat", - "getAxisFormat", - "setTodayMarker", - "getTodayMarker", - "setDateFormat", - "enableInclusiveEndDates", - "endDatesAreInclusive", - "getDateFormat", - "setExcludes", - "getExcludes", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "findTaskById", - "addTaskOrg", - "setLink", - "setClass", - "setClickEvent", - "bindFunctions", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nimport moment from 'moment-mini';\nimport { sanitizeUrl } from '@braintree/sanitize-url';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport utils from '../../utils';\nvar dateFormat = '';\nvar axisFormat = '';\nvar todayMarker = '';\nvar excludes = [];\nvar title = '';\nvar sections = [];\nvar tasks = [];\nvar currentSection = '';\nvar tags = ['active', 'done', 'crit', 'milestone'];\nvar funs = [];\nvar inclusiveEndDates = false; // The serial order of the task in the script\n\nvar lastOrder = 0;\nexport var clear = function clear() {\n sections = [];\n tasks = [];\n currentSection = '';\n funs = [];\n title = '';\n taskCnt = 0;\n lastTask = undefined;\n lastTaskID = undefined;\n rawTasks = [];\n dateFormat = '';\n axisFormat = '';\n todayMarker = '';\n excludes = [];\n inclusiveEndDates = false;\n lastOrder = 0;\n};\nexport var setAxisFormat = function setAxisFormat(txt) {\n axisFormat = txt;\n};\nexport var getAxisFormat = function getAxisFormat() {\n return axisFormat;\n};\nexport var setTodayMarker = function setTodayMarker(txt) {\n todayMarker = txt;\n};\nexport var getTodayMarker = function getTodayMarker() {\n return todayMarker;\n};\nexport var setDateFormat = function setDateFormat(txt) {\n dateFormat = txt;\n};\nexport var enableInclusiveEndDates = function enableInclusiveEndDates() {\n inclusiveEndDates = true;\n};\nexport var endDatesAreInclusive = function endDatesAreInclusive() {\n return inclusiveEndDates;\n};\nexport var getDateFormat = function getDateFormat() {\n return dateFormat;\n};\nexport var setExcludes = function setExcludes(txt) {\n excludes = txt.toLowerCase().split(/[\\s,]+/);\n};\nexport var getExcludes = function getExcludes() {\n return excludes;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsPricessed = compileTasks();\n var maxDepth = 10;\n var iterationCount = 0;\n\n while (!allItemsPricessed && iterationCount < maxDepth) {\n allItemsPricessed = compileTasks();\n iterationCount++;\n }\n\n tasks = rawTasks;\n return tasks;\n};\n\nvar isInvalidDate = function isInvalidDate(date, dateFormat, excludes) {\n if (date.isoWeekday() >= 6 && excludes.indexOf('weekends') >= 0) {\n return true;\n }\n\n if (excludes.indexOf(date.format('dddd').toLowerCase()) >= 0) {\n return true;\n }\n\n return excludes.indexOf(date.format(dateFormat.trim())) >= 0;\n};\n\nvar checkTaskDates = function checkTaskDates(task, dateFormat, excludes) {\n if (!excludes.length || task.manualEndTime) return;\n var startTime = moment(task.startTime, dateFormat, true);\n startTime.add(1, 'd');\n var endTime = moment(task.endTime, dateFormat, true);\n var renderEndTime = fixTaskDates(startTime, endTime, dateFormat, excludes);\n task.endTime = endTime.toDate();\n task.renderEndTime = renderEndTime;\n};\n\nvar fixTaskDates = function fixTaskDates(startTime, endTime, dateFormat, excludes) {\n var invalid = false;\n var renderEndTime = null;\n\n while (startTime <= endTime) {\n if (!invalid) {\n renderEndTime = endTime.toDate();\n }\n\n invalid = isInvalidDate(startTime, dateFormat, excludes);\n\n if (invalid) {\n endTime.add(1, 'd');\n }\n\n startTime.add(1, 'd');\n }\n\n return renderEndTime;\n};\n\nvar getStartDate = function getStartDate(prevTime, dateFormat, str) {\n str = str.trim(); // Test for after\n\n var re = /^after\\s+([\\d\\w- ]+)/;\n var afterStatement = re.exec(str.trim());\n\n if (afterStatement !== null) {\n // check all after ids and take the latest\n var latestEndingTask = null;\n afterStatement[1].split(' ').forEach(function (id) {\n var task = findTaskById(id);\n\n if (typeof task !== 'undefined') {\n if (!latestEndingTask) {\n latestEndingTask = task;\n } else {\n if (task.endTime > latestEndingTask.endTime) {\n latestEndingTask = task;\n }\n }\n }\n });\n\n if (!latestEndingTask) {\n var dt = new Date();\n dt.setHours(0, 0, 0, 0);\n return dt;\n } else {\n return latestEndingTask.endTime;\n }\n } // Check for actual date set\n\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n return mDate.toDate();\n } else {\n logger.debug('Invalid date:' + str);\n logger.debug('With date format:' + dateFormat.trim());\n } // Default date - now\n\n\n return new Date();\n};\n\nvar durationToDate = function durationToDate(durationStatement, relativeTime) {\n if (durationStatement !== null) {\n switch (durationStatement[2]) {\n case 's':\n relativeTime.add(durationStatement[1], 'seconds');\n break;\n\n case 'm':\n relativeTime.add(durationStatement[1], 'minutes');\n break;\n\n case 'h':\n relativeTime.add(durationStatement[1], 'hours');\n break;\n\n case 'd':\n relativeTime.add(durationStatement[1], 'days');\n break;\n\n case 'w':\n relativeTime.add(durationStatement[1], 'weeks');\n break;\n }\n } // Default date - now\n\n\n return relativeTime.toDate();\n};\n\nvar getEndDate = function getEndDate(prevTime, dateFormat, str, inclusive) {\n inclusive = inclusive || false;\n str = str.trim(); // Check for actual date\n\n var mDate = moment(str, dateFormat.trim(), true);\n\n if (mDate.isValid()) {\n if (inclusive) {\n mDate.add(1, 'd');\n }\n\n return mDate.toDate();\n }\n\n return durationToDate(/^([\\d]+)([wdhms])/.exec(str.trim()), moment(prevTime));\n};\n\nvar taskCnt = 0;\n\nvar parseId = function parseId(idStr) {\n if (typeof idStr === 'undefined') {\n taskCnt = taskCnt + 1;\n return 'task' + taskCnt;\n }\n\n return idStr;\n}; // id, startDate, endDate\n// id, startDate, length\n// id, after x, endDate\n// id, after x, length\n// startDate, endDate\n// startDate, length\n// after x, endDate\n// after x, length\n// endDate\n// length\n\n\nvar compileData = function compileData(prevTask, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n var endTimeData = '';\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = prevTask.endTime;\n endTimeData = data[0];\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = getStartDate(undefined, dateFormat, data[0]);\n endTimeData = data[1];\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = getStartDate(undefined, dateFormat, data[1]);\n endTimeData = data[2];\n break;\n\n default:\n }\n\n if (endTimeData) {\n task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);\n task.manualEndTime = moment(endTimeData, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(task, dateFormat, excludes);\n }\n\n return task;\n};\n\nvar parseData = function parseData(prevTaskId, dataStr) {\n var ds;\n\n if (dataStr.substr(0, 1) === ':') {\n ds = dataStr.substr(1, dataStr.length);\n } else {\n ds = dataStr;\n }\n\n var data = ds.split(',');\n var task = {}; // Get tags like active, done, crit and milestone\n\n getTaskTags(data, task, tags);\n\n for (var i = 0; i < data.length; i++) {\n data[i] = data[i].trim();\n }\n\n switch (data.length) {\n case 1:\n task.id = parseId();\n task.startTime = {\n type: 'prevTaskEnd',\n id: prevTaskId\n };\n task.endTime = {\n data: data[0]\n };\n break;\n\n case 2:\n task.id = parseId();\n task.startTime = {\n type: 'getStartDate',\n startData: data[0]\n };\n task.endTime = {\n data: data[1]\n };\n break;\n\n case 3:\n task.id = parseId(data[0]);\n task.startTime = {\n type: 'getStartDate',\n startData: data[1]\n };\n task.endTime = {\n data: data[2]\n };\n break;\n\n default:\n }\n\n return task;\n};\n\nvar lastTask;\nvar lastTaskID;\nvar rawTasks = [];\nvar taskDb = {};\nexport var addTask = function addTask(descr, data) {\n var rawTask = {\n section: currentSection,\n type: currentSection,\n processed: false,\n manualEndTime: false,\n renderEndTime: null,\n raw: {\n data: data\n },\n task: descr,\n classes: []\n };\n var taskInfo = parseData(lastTaskID, data);\n rawTask.raw.startTime = taskInfo.startTime;\n rawTask.raw.endTime = taskInfo.endTime;\n rawTask.id = taskInfo.id;\n rawTask.prevTaskId = lastTaskID;\n rawTask.active = taskInfo.active;\n rawTask.done = taskInfo.done;\n rawTask.crit = taskInfo.crit;\n rawTask.milestone = taskInfo.milestone;\n rawTask.order = lastOrder;\n lastOrder++;\n var pos = rawTasks.push(rawTask);\n lastTaskID = rawTask.id; // Store cross ref\n\n taskDb[rawTask.id] = pos - 1;\n};\nexport var findTaskById = function findTaskById(id) {\n var pos = taskDb[id];\n return rawTasks[pos];\n};\nexport var addTaskOrg = function addTaskOrg(descr, data) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n var taskInfo = compileData(lastTask, data);\n newTask.startTime = taskInfo.startTime;\n newTask.endTime = taskInfo.endTime;\n newTask.id = taskInfo.id;\n newTask.active = taskInfo.active;\n newTask.done = taskInfo.done;\n newTask.crit = taskInfo.crit;\n newTask.milestone = taskInfo.milestone;\n lastTask = newTask;\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n var task = rawTasks[pos];\n var startTime = '';\n\n switch (rawTasks[pos].raw.startTime.type) {\n case 'prevTaskEnd':\n {\n var prevTask = findTaskById(task.prevTaskId);\n task.startTime = prevTask.endTime;\n break;\n }\n\n case 'getStartDate':\n startTime = getStartDate(undefined, dateFormat, rawTasks[pos].raw.startTime.startData);\n\n if (startTime) {\n rawTasks[pos].startTime = startTime;\n }\n\n break;\n }\n\n if (rawTasks[pos].startTime) {\n rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);\n\n if (rawTasks[pos].endTime) {\n rawTasks[pos].processed = true;\n rawTasks[pos].manualEndTime = moment(rawTasks[pos].raw.endTime.data, 'YYYY-MM-DD', true).isValid();\n checkTaskDates(rawTasks[pos], dateFormat, excludes);\n }\n }\n\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n */\n\n\nexport var setLink = function setLink(ids, _linkStr) {\n var linkStr = _linkStr;\n\n if (getConfig().securityLevel !== 'loose') {\n linkStr = sanitizeUrl(_linkStr);\n }\n\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n window.open(linkStr, '_self');\n });\n }\n });\n setClass(ids, 'clickable');\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setClass = function setClass(ids, className) {\n ids.split(',').forEach(function (id) {\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n rawTask.classes.push(className);\n }\n });\n};\n\nvar setClickFun = function setClickFun(id, functionName, functionArgs) {\n if (getConfig().securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n var argList = [];\n\n if (typeof functionArgs === 'string') {\n /* Splits functionArgs by ',', ignoring all ',' in double quoted strings */\n argList = functionArgs.split(/,(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/);\n\n for (var i = 0; i < argList.length; i++) {\n var item = argList[i].trim();\n /* Removes all double quotes at the start and end of an argument */\n\n /* This preserves all starting and ending whitespace inside */\n\n if (item.charAt(0) === '\"' && item.charAt(item.length - 1) === '\"') {\n item = item.substr(1, item.length - 2);\n }\n\n argList[i] = item;\n }\n }\n /* if no arguments passed into callback, default to passing in id */\n\n\n if (argList.length === 0) {\n argList.push(id);\n }\n\n var rawTask = findTaskById(id);\n\n if (typeof rawTask !== 'undefined') {\n pushFun(id, function () {\n utils.runFunc.apply(utils, [functionName].concat(_toConsumableArray(argList)));\n });\n }\n};\n/**\n * The callbackFunction is executed in a click event bound to the task with the specified id or the task's assigned text\n * @param id The task's id\n * @param callbackFunction A function to be executed when clicked on the task or the task's text\n */\n\n\nvar pushFun = function pushFun(id, callbackFunction) {\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n funs.push(function () {\n // const elem = d3.select(element).select(`[id=\"${id}-text\"]`)\n var elem = document.querySelector(\"[id=\\\"\".concat(id, \"-text\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n callbackFunction();\n });\n }\n });\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param functionArgs Function args the function should be called with\n */\n\n\nexport var setClickEvent = function setClickEvent(ids, functionName, functionArgs) {\n ids.split(',').forEach(function (id) {\n setClickFun(id, functionName, functionArgs);\n });\n setClass(ids, 'clickable');\n};\n/**\n * Binds all functions previously added to fun (specified through click) to the element\n * @param element\n */\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport default {\n clear: clear,\n setDateFormat: setDateFormat,\n getDateFormat: getDateFormat,\n enableInclusiveEndDates: enableInclusiveEndDates,\n endDatesAreInclusive: endDatesAreInclusive,\n setAxisFormat: setAxisFormat,\n getAxisFormat: getAxisFormat,\n setTodayMarker: setTodayMarker,\n getTodayMarker: getTodayMarker,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n findTaskById: findTaskById,\n addTaskOrg: addTaskOrg,\n setExcludes: setExcludes,\n getExcludes: getExcludes,\n setClickEvent: setClickEvent,\n setLink: setLink,\n bindFunctions: bindFunctions,\n durationToDate: durationToDate\n};\n\nfunction getTaskTags(data, task, tags) {\n var matchFound = true;\n\n while (matchFound) {\n matchFound = false;\n tags.forEach(function (t) {\n var pattern = '^\\\\s*' + t + '\\\\s*$';\n var regex = new RegExp(pattern);\n\n if (data[0].match(regex)) {\n task[t] = true;\n data.shift(1);\n matchFound = true;\n }\n });\n }\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/gantt/ganttRenderer.js", - "name": "./src/diagrams/gantt/ganttRenderer.js", - "index": 71, - "index2": 69, - "size": 12233, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "28:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "340:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "341:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/gantt/ganttRenderer", - "loc": "531:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select, scaleTime, min, max, scaleLinear, interpolateHcl, axisBottom, timeFormat } from 'd3';\nimport { parser } from './parser/gantt';\nimport common from '../common/common';\nimport ganttDb from './ganttDb';\nparser.yy = ganttDb;\nvar conf = {\n titleTopMargin: 25,\n barHeight: 20,\n barGap: 4,\n topPadding: 50,\n rightPadding: 75,\n leftPadding: 75,\n gridLineStartPadding: 35,\n fontSize: 11,\n fontFamily: '\"Open-Sans\", \"sans-serif\"'\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar w;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text);\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var taskArray = parser.yy.getTasks(); // Set height based on number of tasks\n\n var h = taskArray.length * (conf.barHeight + conf.barGap) + 2 * conf.topPadding;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h);\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Set timescale\n\n var timeScale = scaleTime().domain([min(taskArray, function (d) {\n return d.startTime;\n }), max(taskArray, function (d) {\n return d.endTime;\n })]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);\n var categories = [];\n\n for (var i = 0; i < taskArray.length; i++) {\n categories.push(taskArray[i].type);\n }\n\n var catsUnfiltered = categories; // for vert labels\n\n categories = checkUnique(categories);\n\n function taskCompare(a, b) {\n var taskA = a.startTime;\n var taskB = b.startTime;\n var result = 0;\n\n if (taskA > taskB) {\n result = 1;\n } else if (taskA < taskB) {\n result = -1;\n }\n\n return result;\n } // Sort the task array using the above taskCompare() so that\n // tasks are created based on their order of startTime\n\n\n taskArray.sort(taskCompare);\n makeGant(taskArray, w, h);\n\n if (typeof conf.useWidth !== 'undefined') {\n elem.setAttribute('width', w);\n }\n\n svg.append('text').text(parser.yy.getTitle()).attr('x', w / 2).attr('y', conf.titleTopMargin).attr('class', 'titleText');\n\n function makeGant(tasks, pageWidth, pageHeight) {\n var barHeight = conf.barHeight;\n var gap = barHeight + conf.barGap;\n var topPadding = conf.topPadding;\n var leftPadding = conf.leftPadding;\n var colorScale = scaleLinear().domain([0, categories.length]).range(['#00B9FA', '#F95002']).interpolate(interpolateHcl);\n makeGrid(leftPadding, topPadding, pageWidth, pageHeight);\n drawRects(tasks, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);\n vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);\n drawToday(leftPadding, topPadding, pageWidth, pageHeight);\n }\n\n function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w) {\n // Draw background rects covering the entire width of the graph, these form the section rows.\n svg.append('g').selectAll('rect').data(theArray).enter().append('rect').attr('x', 0).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad - 2;\n }).attr('width', function () {\n return w - conf.rightPadding / 2;\n }).attr('height', theGap).attr('class', function (d) {\n for (var _i = 0; _i < categories.length; _i++) {\n if (d.type === categories[_i]) {\n return 'section section' + _i % conf.numberSectionStyles;\n }\n }\n\n return 'section section0';\n }); // Draw the rects representing the tasks\n\n var rectangles = svg.append('g').selectAll('rect').data(theArray).enter();\n rectangles.append('rect').attr('id', function (d) {\n return d.id;\n }).attr('rx', 3).attr('ry', 3).attr('x', function (d) {\n if (d.milestone) {\n return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n return timeScale(d.startTime) + theSidePad;\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + theTopPad;\n }).attr('width', function (d) {\n if (d.milestone) {\n return theBarHeight;\n }\n\n return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);\n }).attr('height', theBarHeight).attr('transform-origin', function (d, i) {\n return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + 'px ' + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + 'px';\n }).attr('class', function (d) {\n var res = 'task';\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n\n for (var _i2 = 0; _i2 < categories.length; _i2++) {\n if (d.type === categories[_i2]) {\n secNum = _i2 % conf.numberSectionStyles;\n }\n }\n\n var taskClass = '';\n\n if (d.active) {\n if (d.crit) {\n taskClass += ' activeCrit';\n } else {\n taskClass = ' active';\n }\n } else if (d.done) {\n if (d.crit) {\n taskClass = ' doneCrit';\n } else {\n taskClass = ' done';\n }\n } else {\n if (d.crit) {\n taskClass += ' crit';\n }\n }\n\n if (taskClass.length === 0) {\n taskClass = ' task';\n }\n\n if (d.milestone) {\n taskClass = ' milestone ' + taskClass;\n }\n\n taskClass += secNum;\n taskClass += ' ' + classStr;\n return res + taskClass;\n }); // Append task labels\n\n rectangles.append('text').attr('id', function (d) {\n return d.id + '-text';\n }).text(function (d) {\n return d.task;\n }).attr('font-size', conf.fontSize).attr('x', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.renderEndTime || d.endTime);\n\n if (d.milestone) {\n startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;\n }\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width; // Check id text width > width of rectangle\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return startX + theSidePad - 5;\n } else {\n return endX + theSidePad + 5;\n }\n } else {\n return (endX - startX) / 2 + startX + theSidePad;\n }\n }).attr('y', function (d, i) {\n // Ignore the incoming i value and use our order instead\n i = d.order;\n return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;\n }).attr('text-height', theBarHeight).attr('class', function (d) {\n var startX = timeScale(d.startTime);\n var endX = timeScale(d.endTime);\n\n if (d.milestone) {\n endX = startX + theBarHeight;\n }\n\n var textWidth = this.getBBox().width;\n var classStr = '';\n\n if (d.classes.length > 0) {\n classStr = d.classes.join(' ');\n }\n\n var secNum = 0;\n console.log(conf);\n\n for (var _i3 = 0; _i3 < categories.length; _i3++) {\n if (d.type === categories[_i3]) {\n secNum = _i3 % conf.numberSectionStyles;\n }\n }\n\n var taskType = '';\n\n if (d.active) {\n if (d.crit) {\n taskType = 'activeCritText' + secNum;\n } else {\n taskType = 'activeText' + secNum;\n }\n }\n\n if (d.done) {\n if (d.crit) {\n taskType = taskType + ' doneCritText' + secNum;\n } else {\n taskType = taskType + ' doneText' + secNum;\n }\n } else {\n if (d.crit) {\n taskType = taskType + ' critText' + secNum;\n }\n }\n\n if (d.milestone) {\n taskType += ' milestoneText';\n } // Check id text width > width of rectangle\n\n\n if (textWidth > endX - startX) {\n if (endX + textWidth + 1.5 * conf.leftPadding > w) {\n return classStr + ' taskTextOutsideLeft taskTextOutside' + secNum + ' ' + taskType;\n } else {\n return classStr + ' taskTextOutsideRight taskTextOutside' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n } else {\n return classStr + ' taskText taskText' + secNum + ' ' + taskType + ' width-' + textWidth;\n }\n });\n }\n\n function makeGrid(theSidePad, theTopPad, w, h) {\n var xAxis = axisBottom(timeScale).tickSize(-h + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'));\n svg.append('g').attr('class', 'grid').attr('transform', 'translate(' + theSidePad + ', ' + (h - 50) + ')').call(xAxis).selectAll('text').style('text-anchor', 'middle').attr('fill', '#000').attr('stroke', 'none').attr('font-size', 10).attr('dy', '1em');\n }\n\n function vertLabels(theGap, theTopPad) {\n var numOccurances = [];\n var prevGap = 0;\n\n for (var _i4 = 0; _i4 < categories.length; _i4++) {\n numOccurances[_i4] = [categories[_i4], getCount(categories[_i4], catsUnfiltered)];\n }\n\n svg.append('g') // without doing this, impossible to put grid lines behind text\n .selectAll('text').data(numOccurances).enter().append(function (d) {\n var rows = d[0].split(common.lineBreakRegex);\n var dy = -(rows.length - 1) / 2;\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('dy', dy + 'em');\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttribute('alignment-baseline', 'central');\n tspan.setAttribute('x', '10');\n if (j > 0) tspan.setAttribute('dy', '1em');\n tspan.textContent = rows[j];\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }).attr('x', 10).attr('y', function (d, i) {\n if (i > 0) {\n for (var j = 0; j < i; j++) {\n prevGap += numOccurances[i - 1][1];\n return d[1] * theGap / 2 + prevGap * theGap + theTopPad;\n }\n } else {\n return d[1] * theGap / 2 + theTopPad;\n }\n }).attr('class', function (d) {\n for (var _i5 = 0; _i5 < categories.length; _i5++) {\n if (d[0] === categories[_i5]) {\n return 'sectionTitle sectionTitle' + _i5 % conf.numberSectionStyles;\n }\n }\n\n return 'sectionTitle';\n });\n }\n\n function drawToday(theSidePad, theTopPad, w, h) {\n var todayMarker = ganttDb.getTodayMarker();\n\n if (todayMarker === 'off') {\n return;\n }\n\n var todayG = svg.append('g').attr('class', 'today');\n var today = new Date();\n var todayLine = todayG.append('line');\n todayLine.attr('x1', timeScale(today) + theSidePad).attr('x2', timeScale(today) + theSidePad).attr('y1', conf.titleTopMargin).attr('y2', h - conf.titleTopMargin).attr('class', 'today');\n\n if (todayMarker !== '') {\n todayLine.attr('style', todayMarker.replace(/,/g, ';'));\n }\n } // from this stackexchange question: http://stackoverflow.com/questions/1890203/unique-for-arrays-in-javascript\n\n\n function checkUnique(arr) {\n var hash = {};\n var result = [];\n\n for (var _i6 = 0, l = arr.length; _i6 < l; ++_i6) {\n if (!hash.hasOwnProperty(arr[_i6])) {\n // eslint-disable-line\n // it works with objects! in FF, at least\n hash[arr[_i6]] = true;\n result.push(arr[_i6]);\n }\n }\n\n return result;\n } // from this stackexchange question: http://stackoverflow.com/questions/14227981/count-how-many-strings-in-an-array-have-duplicates-in-the-same-array\n\n\n function getCounts(arr) {\n var i = arr.length; // const to loop over\n\n var obj = {}; // obj to store results\n\n while (i) {\n obj[arr[--i]] = (obj[arr[i]] || 0) + 1; // count occurrences\n }\n\n return obj;\n } // get specific from everything\n\n\n function getCount(word, arr) {\n return getCounts(arr)[word] || 0;\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classDb.js", - "name": "./src/diagrams/class/classDb.js", - "index": 34, - "index2": 32, - "size": 8112, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "2:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./classDb", - "loc": "5:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "8:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "9:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "12:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "15:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "18:11-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classDb", - "loc": "33:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "77:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "91:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "102:19-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "104:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "module": "./src/diagrams/class/svgDraw.js", - "moduleName": "./src/diagrams/class/svgDraw.js", - "type": "harmony import specifier", - "userRequest": "./classDb", - "loc": "115:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classDb", - "loc": "423:20-27" - } - ], - "usedExports": [ - "default", - "lookUpDomId", - "relationType" - ], - "providedExports": [ - "addClass", - "lookUpDomId", - "clear", - "getClass", - "getClasses", - "getRelations", - "addRelation", - "addAnnotation", - "addMember", - "addMembers", - "cleanupLabel", - "setCssClass", - "setLink", - "setClickEvent", - "bindFunctions", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { logger } from '../../logger';\nimport { getConfig } from '../../config';\nimport common from '../common/common';\nimport utils from '../../utils';\nvar MERMAID_DOM_ID_PREFIX = 'classid-';\nvar config = getConfig();\nvar relations = [];\nvar classes = {};\nvar classCounter = 0;\nvar funs = [];\n\nvar splitClassNameAndType = function splitClassNameAndType(id) {\n var genericType = '';\n var className = id;\n\n if (id.indexOf('~') > 0) {\n var split = id.split('~');\n className = split[0];\n genericType = split[1];\n }\n\n return {\n className: className,\n type: genericType\n };\n};\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @public\n */\n\n\nexport var addClass = function addClass(id) {\n var classId = splitClassNameAndType(id); // Only add class if not exists\n\n if (typeof classes[classId.className] !== 'undefined') return;\n classes[classId.className] = {\n id: classId.className,\n type: classId.type,\n cssClasses: [],\n methods: [],\n members: [],\n annotations: [],\n domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter\n };\n classCounter++;\n};\n/**\n * Function to lookup domId from id in the graph definition.\n * @param id\n * @public\n */\n\nexport var lookUpDomId = function lookUpDomId(id) {\n var classKeys = Object.keys(classes);\n\n for (var i = 0; i < classKeys.length; i++) {\n if (classes[classKeys[i]].id === id) {\n return classes[classKeys[i]].domId;\n }\n }\n};\nexport var clear = function clear() {\n relations = [];\n classes = {};\n funs = [];\n funs.push(setupToolTips);\n};\nexport var getClass = function getClass(id) {\n return classes[id];\n};\nexport var getClasses = function getClasses() {\n return classes;\n};\nexport var getRelations = function getRelations() {\n return relations;\n};\nexport var addRelation = function addRelation(relation) {\n logger.debug('Adding relation: ' + JSON.stringify(relation));\n addClass(relation.id1);\n addClass(relation.id2);\n relation.id1 = splitClassNameAndType(relation.id1).className;\n relation.id2 = splitClassNameAndType(relation.id2).className;\n relations.push(relation);\n};\n/**\n * Adds an annotation to the specified class\n * Annotations mark special properties of the given type (like 'interface' or 'service')\n * @param className The class name\n * @param annotation The name of the annotation without any brackets\n * @public\n */\n\nexport var addAnnotation = function addAnnotation(className, annotation) {\n var validatedClassName = splitClassNameAndType(className).className;\n classes[validatedClassName].annotations.push(annotation);\n};\n/**\n * Adds a member to the specified class\n * @param className The class name\n * @param member The full name of the member.\n * If the member is enclosed in <> it is treated as an annotation\n * If the member is ending with a closing bracket ) it is treated as a method\n * Otherwise the member will be treated as a normal property\n * @public\n */\n\nexport var addMember = function addMember(className, member) {\n var validatedClassName = splitClassNameAndType(className).className;\n var theClass = classes[validatedClassName];\n\n if (typeof member === 'string') {\n // Member can contain white spaces, we trim them out\n var memberString = member.trim();\n\n if (memberString.startsWith('<<') && memberString.endsWith('>>')) {\n // Remove leading and trailing brackets\n theClass.annotations.push(memberString.substring(2, memberString.length - 2));\n } else if (memberString.indexOf(')') > 0) {\n theClass.methods.push(memberString);\n } else if (memberString) {\n theClass.members.push(memberString);\n }\n }\n};\nexport var addMembers = function addMembers(className, members) {\n if (Array.isArray(members)) {\n members.reverse();\n members.forEach(function (member) {\n return addMember(className, member);\n });\n }\n};\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(1).trim();\n } else {\n return label.trim();\n }\n};\n/**\n * Called by parser when a special node is found, e.g. a clickable element.\n * @param ids Comma separated list of ids\n * @param className Class to add\n */\n\nexport var setCssClass = function setCssClass(ids, className) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].cssClasses.push(className);\n }\n });\n};\n/**\n * Called by parser when a link is found. Adds the URL to the vertex data.\n * @param ids Comma separated list of ids\n * @param linkStr URL to create a link for\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setLink = function setLink(ids, linkStr, tooltip) {\n ids.split(',').forEach(function (_id) {\n var id = _id;\n if (_id[0].match(/\\d/)) id = MERMAID_DOM_ID_PREFIX + id;\n\n if (typeof classes[id] !== 'undefined') {\n classes[id].link = utils.formatUrl(linkStr, config);\n\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n }\n });\n setCssClass(ids, 'clickable');\n};\n/**\n * Called by parser when a click definition is found. Registers an event handler.\n * @param ids Comma separated list of ids\n * @param functionName Function to be called on click\n * @param tooltip Tooltip for the clickable element\n */\n\nexport var setClickEvent = function setClickEvent(ids, functionName, tooltip) {\n ids.split(',').forEach(function (id) {\n setClickFunc(id, functionName, tooltip);\n });\n setCssClass(ids, 'clickable');\n};\n\nvar setClickFunc = function setClickFunc(domId, functionName, tooltip) {\n var id = domId;\n var elemId = lookUpDomId(id);\n\n if (config.securityLevel !== 'loose') {\n return;\n }\n\n if (typeof functionName === 'undefined') {\n return;\n }\n\n if (typeof classes[id] !== 'undefined') {\n if (tooltip) {\n classes[id].tooltip = common.sanitizeText(tooltip, config);\n }\n\n funs.push(function () {\n var elem = document.querySelector(\"[id=\\\"\".concat(elemId, \"\\\"]\"));\n\n if (elem !== null) {\n elem.addEventListener('click', function () {\n utils.runFunc(functionName, elemId);\n }, false);\n }\n });\n }\n};\n\nexport var bindFunctions = function bindFunctions(element) {\n funs.forEach(function (fun) {\n fun(element);\n });\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar setupToolTips = function setupToolTips(element) {\n var tooltipElem = select('.mermaidTooltip');\n\n if ((tooltipElem._groups || tooltipElem)[0][0] === null) {\n tooltipElem = select('body').append('div').attr('class', 'mermaidTooltip').style('opacity', 0);\n }\n\n var svg = select(element).select('svg');\n var nodes = svg.selectAll('g.node');\n nodes.on('mouseover', function () {\n var el = select(this);\n var title = el.attr('title'); // Dont try to draw a tooltip if no data is provided\n\n if (title === null) {\n return;\n }\n\n var rect = this.getBoundingClientRect();\n tooltipElem.transition().duration(200).style('opacity', '.9');\n tooltipElem.html(el.attr('title')).style('left', window.scrollX + rect.left + (rect.right - rect.left) / 2 + 'px').style('top', window.scrollY + rect.top - 14 + document.body.scrollTop + 'px');\n el.classed('hover', true);\n }).on('mouseout', function () {\n tooltipElem.transition().duration(500).style('opacity', 0);\n var el = select(this);\n el.classed('hover', false);\n });\n};\n\nfuns.push(setupToolTips);\nexport default {\n addClass: addClass,\n bindFunctions: bindFunctions,\n clear: clear,\n getClass: getClass,\n getClasses: getClasses,\n addAnnotation: addAnnotation,\n getRelations: getRelations,\n addRelation: addRelation,\n addMember: addMember,\n addMembers: addMembers,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n setClickEvent: setClickEvent,\n setCssClass: setCssClass,\n setLink: setLink,\n lookUpDomId: lookUpDomId\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "index": 72, - "index2": 71, - "size": 5731, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/class/classRenderer", - "loc": "31:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "346:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "347:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/class/classRenderer", - "loc": "532:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport classDb, { lookUpDomId } from './classDb';\nimport { parser } from './parser/classDiagram';\nimport svgDraw from './svgDraw';\nparser.yy = classDb;\nvar idCache = {};\nvar padding = 20;\nvar conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10\n}; // Todo optimize\n\nvar getGraphId = function getGraphId(label) {\n var keys = Object.keys(idCache);\n\n for (var i = 0; i < keys.length; i++) {\n if (idCache[keys[i]].label === label) {\n return keys[i];\n }\n }\n\n return undefined;\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'extensionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', 'extensionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n\n elem.append('defs').append('marker').attr('id', 'compositionStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'compositionEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'aggregationEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyStart').attr('class', 'extension').attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(text, id) {\n idCache = {};\n parser.yy.clear();\n parser.parse(text);\n logger.info('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var g = new graphlib.Graph({\n multigraph: true\n }); // Set an object for the graph label\n\n g.setGraph({\n isMultiGraph: true\n }); // Default to assigning a new object as a label for each new edge.\n\n g.setDefaultEdgeLabel(function () {\n return {};\n });\n var classes = classDb.getClasses();\n var keys = Object.keys(classes);\n\n for (var i = 0; i < keys.length; i++) {\n var classDef = classes[keys[i]];\n var node = svgDraw.drawClass(diagram, classDef, conf);\n idCache[node.id] = node; // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n\n g.setNode(node.id, node);\n logger.info('Org height: ' + node.height);\n }\n\n var relations = classDb.getRelations();\n relations.forEach(function (relation) {\n logger.info('tjoho' + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation));\n g.setEdge(getGraphId(relation.id1), getGraphId(relation.id2), {\n relation: relation\n }, relation.title || 'DEFAULT');\n });\n dagre.layout(g);\n g.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof g.node(v) !== 'undefined') {\n logger.debug('Node ' + v + ': ' + JSON.stringify(g.node(v)));\n select('#' + lookUpDomId(v)).attr('transform', 'translate(' + (g.node(v).x - g.node(v).width / 2) + ',' + (g.node(v).y - g.node(v).height / 2) + ' )');\n }\n });\n g.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof g.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(g.edge(e)));\n svgDraw.drawEdge(diagram, g.edge(e), g.edge(e).relation, conf);\n }\n });\n var svgBounds = diagram.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n diagram.attr('viewBox', vBox);\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateDb.js", - "name": "./src/diagrams/state/stateDb.js", - "index": 36, - "index2": 34, - "size": 6456, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "3:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./stateDb", - "loc": "5:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "11:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "24:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "26:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "29:9-16" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateDb", - "loc": "37:0-47" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "51:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "109:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateDb", - "loc": "114:25-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "121:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "122:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "123:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "215:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "218:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "227:12-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "249:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "250:18-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "251:14-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "252:26-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "298:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "301:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "304:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "307:11-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./stateDb", - "loc": "332:66-73" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addState", - "clear", - "getState", - "getStates", - "logDocuments", - "getRelations", - "addRelation", - "cleanupLabel", - "lineType", - "relationType", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { logger } from '../../logger';\nimport { generateId } from '../../utils';\n\nvar clone = function clone(o) {\n return JSON.parse(JSON.stringify(o));\n};\n\nvar rootDoc = [];\n\nvar setRootDoc = function setRootDoc(o) {\n logger.info('Setting root doc', o); // rootDoc = { id: 'root', doc: o };\n\n rootDoc = o;\n};\n\nvar getRootDoc = function getRootDoc() {\n return rootDoc;\n};\n\nvar docTranslator = function docTranslator(parent, node, first) {\n if (node.stmt === 'relation') {\n docTranslator(parent, node.state1, true);\n docTranslator(parent, node.state2, false);\n } else {\n if (node.stmt === 'state') {\n if (node.id === '[*]') {\n node.id = first ? parent.id + '_start' : parent.id + '_end';\n node.start = first;\n }\n }\n\n if (node.doc) {\n var doc = []; // Check for concurrency\n\n var i = 0;\n var currentDoc = [];\n\n for (i = 0; i < node.doc.length; i++) {\n if (node.doc[i].type === 'divider') {\n // debugger;\n var newNode = clone(node.doc[i]);\n newNode.doc = clone(currentDoc);\n doc.push(newNode);\n currentDoc = [];\n } else {\n currentDoc.push(node.doc[i]);\n }\n } // If any divider was encountered\n\n\n if (doc.length > 0 && currentDoc.length > 0) {\n var _newNode = {\n stmt: 'state',\n id: generateId(),\n type: 'divider',\n doc: clone(currentDoc)\n };\n doc.push(clone(_newNode));\n node.doc = doc;\n }\n\n node.doc.forEach(function (docNode) {\n return docTranslator(node, docNode, true);\n });\n }\n }\n};\n\nvar getRootDocV2 = function getRootDocV2() {\n docTranslator({\n id: 'root'\n }, {\n id: 'root',\n doc: rootDoc\n }, true);\n return {\n id: 'root',\n doc: rootDoc\n };\n};\n\nvar extract = function extract(_doc) {\n // const res = { states: [], relations: [] };\n var doc;\n\n if (_doc.doc) {\n doc = _doc.doc;\n } else {\n doc = _doc;\n } // let doc = root.doc;\n // if (!doc) {\n // doc = root;\n // }\n\n\n logger.info(doc);\n clear();\n logger.info('Extract', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state') {\n addState(item.id, item.type, item.doc, item.description, item.note);\n }\n\n if (item.stmt === 'relation') {\n addRelation(item.state1.id, item.state2.id, item.description);\n }\n });\n};\n\nvar newDoc = function newDoc() {\n return {\n relations: [],\n states: {},\n documents: {}\n };\n};\n\nvar documents = {\n root: newDoc()\n};\nvar currentDocument = documents.root;\nvar startCnt = 0;\nvar endCnt = 0; // eslint-disable-line\n// let stateCnt = 0;\n\n/**\n * Function called by parser when a node definition has been found.\n * @param id\n * @param text\n * @param type\n * @param style\n */\n\nexport var addState = function addState(id, type, doc, descr, note) {\n if (typeof currentDocument.states[id] === 'undefined') {\n currentDocument.states[id] = {\n id: id,\n descriptions: [],\n type: type,\n doc: doc,\n note: note\n };\n } else {\n if (!currentDocument.states[id].doc) {\n currentDocument.states[id].doc = doc;\n }\n\n if (!currentDocument.states[id].type) {\n currentDocument.states[id].type = type;\n }\n }\n\n if (descr) {\n logger.info('Adding state ', id, descr);\n if (typeof descr === 'string') addDescription(id, descr.trim());\n\n if (_typeof(descr) === 'object') {\n descr.forEach(function (des) {\n return addDescription(id, des.trim());\n });\n }\n }\n\n if (note) currentDocument.states[id].note = note;\n};\nexport var clear = function clear() {\n documents = {\n root: newDoc()\n };\n currentDocument = documents.root;\n currentDocument = documents.root;\n startCnt = 0;\n endCnt = 0; // eslint-disable-line\n\n classes = [];\n};\nexport var getState = function getState(id) {\n return currentDocument.states[id];\n};\nexport var getStates = function getStates() {\n return currentDocument.states;\n};\nexport var logDocuments = function logDocuments() {\n logger.info('Documents = ', documents);\n};\nexport var getRelations = function getRelations() {\n return currentDocument.relations;\n};\nexport var addRelation = function addRelation(_id1, _id2, title) {\n var id1 = _id1;\n var id2 = _id2;\n var type1 = 'default';\n var type2 = 'default';\n\n if (_id1 === '[*]') {\n startCnt++;\n id1 = 'start' + startCnt;\n type1 = 'start';\n }\n\n if (_id2 === '[*]') {\n endCnt++;\n id2 = 'end' + startCnt;\n type2 = 'end';\n }\n\n addState(id1, type1);\n addState(id2, type2);\n currentDocument.relations.push({\n id1: id1,\n id2: id2,\n title: title\n });\n};\n\nvar addDescription = function addDescription(id, _descr) {\n var theState = currentDocument.states[id];\n var descr = _descr;\n\n if (descr[0] === ':') {\n descr = descr.substr(1).trim();\n }\n\n theState.descriptions.push(descr);\n};\n\nexport var cleanupLabel = function cleanupLabel(label) {\n if (label.substring(0, 1) === ':') {\n return label.substr(2).trim();\n } else {\n return label.trim();\n }\n};\nexport var lineType = {\n LINE: 0,\n DOTTED_LINE: 1\n};\nvar dividerCnt = 0;\n\nvar getDividerId = function getDividerId() {\n dividerCnt++;\n return 'divider-id-' + dividerCnt;\n};\n\nvar classes = [];\n\nvar getClasses = function getClasses() {\n return classes;\n};\n\nvar getDirection = function getDirection() {\n return 'TB';\n};\n\nexport var relationType = {\n AGGREGATION: 0,\n EXTENSION: 1,\n COMPOSITION: 2,\n DEPENDENCY: 3\n};\n\nvar trimColon = function trimColon(str) {\n return str && str[0] === ':' ? str.substr(1).trim() : str.trim();\n};\n\nexport default {\n addState: addState,\n clear: clear,\n getState: getState,\n getStates: getStates,\n getRelations: getRelations,\n getClasses: getClasses,\n getDirection: getDirection,\n addRelation: addRelation,\n getDividerId: getDividerId,\n // addDescription,\n cleanupLabel: cleanupLabel,\n lineType: lineType,\n relationType: relationType,\n logDocuments: logDocuments,\n getRootDoc: getRootDoc,\n setRootDoc: setRootDoc,\n getRootDocV2: getRootDocV2,\n extract: extract,\n trimColon: trimColon\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "index": 74, - "index2": 74, - "size": 8188, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "34:0-59" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "352:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "353:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer", - "loc": "533:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport { logger } from '../../logger';\nimport stateDb from './stateDb';\nimport common from '../common/common';\nimport { parser } from './parser/stateDiagram'; // import idCache from './id-cache';\n\nimport { drawState, addTitleAndBox, drawEdge } from './shapes';\nimport { getConfig } from '../../config';\nparser.yy = stateDb; // TODO Move conf object to main conf in mermaidAPI\n\nvar conf;\nvar transformationLog = {};\nexport var setConf = function setConf() {}; // Todo optimize\n\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nvar insertMarkers = function insertMarkers(elem) {\n elem.append('defs').append('marker').attr('id', 'dependencyEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n conf = getConfig().state;\n parser.yy.clear();\n parser.parse(text);\n logger.debug('Rendering diagram ' + text); // Fetch the default direction, use TD if none was found\n\n var diagram = select(\"[id='\".concat(id, \"']\"));\n insertMarkers(diagram); // Layout graph, Create a new directed graph\n\n var graph = new graphlib.Graph({\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n rankdir: 'RL' // ranksep: '20'\n\n }); // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n var rootDoc = stateDb.getRootDoc();\n renderDoc(rootDoc, diagram, undefined, false);\n var padding = conf.padding;\n var bounds = diagram.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n diagram.attr('width', '100%');\n diagram.attr('style', \"max-width: \".concat(width * 1.75, \"px;\"));\n } else {\n // Zoom in a bit\n diagram.attr('width', width * 1.75);\n } // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n\n\n diagram.attr('viewBox', \"\".concat(bounds.x - conf.padding, \" \").concat(bounds.y - conf.padding, \" \") + width + ' ' + height);\n};\n\nvar getLabelWidth = function getLabelWidth(text) {\n return text ? text.length * conf.fontSizeFactor : 1;\n};\n\nvar renderDoc = function renderDoc(doc, diagram, parentId, altBkg) {\n // // Layout graph, Create a new directed graph\n var graph = new graphlib.Graph({\n compound: true,\n multigraph: true\n });\n var i;\n var edgeFreeDoc = true;\n\n for (i = 0; i < doc.length; i++) {\n if (doc[i].stmt === 'relation') {\n edgeFreeDoc = false;\n break;\n }\n } // Set an object for the graph label\n\n\n if (parentId) graph.setGraph({\n rankdir: 'LR',\n multigraph: true,\n compound: true,\n // acyclicer: 'greedy',\n ranker: 'tight-tree',\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n isMultiGraph: true // ranksep: 5,\n // nodesep: 1\n\n });else {\n graph.setGraph({\n rankdir: 'TB',\n multigraph: true,\n compound: true,\n // isCompound: true,\n // acyclicer: 'greedy',\n // ranker: 'longest-path'\n ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,\n nodeSep: edgeFreeDoc ? 1 : 50,\n ranker: 'tight-tree',\n // ranker: 'network-simplex'\n isMultiGraph: true\n });\n } // Default to assigning a new object as a label for each new edge.\n\n graph.setDefaultEdgeLabel(function () {\n return {};\n });\n stateDb.extract(doc);\n var states = stateDb.getStates();\n var relations = stateDb.getRelations();\n var keys = Object.keys(states);\n var first = true;\n\n for (var _i = 0; _i < keys.length; _i++) {\n var stateDef = states[keys[_i]];\n\n if (parentId) {\n stateDef.parentId = parentId;\n }\n\n var node = void 0;\n\n if (stateDef.doc) {\n var sub = diagram.append('g').attr('id', stateDef.id).attr('class', 'stateGroup');\n node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg);\n\n if (first) {\n // first = false;\n sub = addTitleAndBox(sub, stateDef, altBkg);\n var boxBounds = sub.node().getBBox();\n node.width = boxBounds.width;\n node.height = boxBounds.height + conf.padding / 2;\n transformationLog[stateDef.id] = {\n y: conf.compositTitleSize\n };\n } else {\n // sub = addIdAndBox(sub, stateDef);\n var _boxBounds = sub.node().getBBox();\n\n node.width = _boxBounds.width;\n node.height = _boxBounds.height; // transformationLog[stateDef.id] = { y: conf.compositTitleSize };\n }\n } else {\n node = drawState(diagram, stateDef, graph);\n }\n\n if (stateDef.note) {\n // Draw note note\n var noteDef = {\n descriptions: [],\n id: stateDef.id + '-note',\n note: stateDef.note,\n type: 'note'\n };\n var note = drawState(diagram, noteDef, graph); // graph.setNode(node.id, node);\n\n if (stateDef.note.position === 'left of') {\n graph.setNode(node.id + '-note', note);\n graph.setNode(node.id, node);\n } else {\n graph.setNode(node.id, node);\n graph.setNode(node.id + '-note', note);\n } // graph.setNode(node.id);\n\n\n graph.setParent(node.id, node.id + '-group');\n graph.setParent(node.id + '-note', node.id + '-group');\n } else {\n // Add nodes to the graph. The first argument is the node id. The second is\n // metadata about the node. In this case we're going to add labels to each of\n // our nodes.\n graph.setNode(node.id, node);\n }\n }\n\n logger.debug('Count=', graph.nodeCount(), graph);\n var cnt = 0;\n relations.forEach(function (relation) {\n cnt++;\n logger.debug('Setting edge', relation);\n graph.setEdge(relation.id1, relation.id2, {\n relation: relation,\n width: getLabelWidth(relation.title),\n height: conf.labelHeight * common.getRows(relation.title).length,\n labelpos: 'c'\n }, 'id' + cnt);\n });\n dagre.layout(graph);\n logger.debug('Graph after layout', graph.nodes());\n var svgElem = diagram.node();\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n logger.warn('Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n select('#' + svgElem.id + ' #' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + ' )');\n select('#' + svgElem.id + ' #' + v).attr('data-x-shift', graph.node(v).x - graph.node(v).width / 2);\n var dividers = document.querySelectorAll('#' + svgElem.id + ' #' + v + ' .divider');\n dividers.forEach(function (divider) {\n var parent = divider.parentElement;\n var pWidth = 0;\n var pShift = 0;\n\n if (parent) {\n if (parent.parentElement) pWidth = parent.parentElement.getBBox().width;\n pShift = parseInt(parent.getAttribute('data-x-shift'), 10);\n\n if (Number.isNaN(pShift)) {\n pShift = 0;\n }\n }\n\n divider.setAttribute('x1', 0 - pShift + 8);\n divider.setAttribute('x2', pWidth - pShift - 8);\n });\n } else {\n logger.debug('No Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n }\n });\n var stateBox = svgElem.getBBox();\n graph.edges().forEach(function (e) {\n if (typeof e !== 'undefined' && typeof graph.edge(e) !== 'undefined') {\n logger.debug('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n drawEdge(diagram, graph.edge(e), graph.edge(e).relation);\n }\n });\n stateBox = svgElem.getBBox();\n var stateInfo = {\n id: parentId ? parentId : 'root',\n label: parentId ? parentId : 'root',\n width: 0,\n height: 0\n };\n stateInfo.width = stateBox.width + 2 * conf.padding;\n stateInfo.height = stateBox.height + 2 * conf.padding;\n logger.debug('Doc rendered', stateInfo, graph);\n return stateInfo;\n};\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "name": "./src/diagrams/state/stateRenderer-v2.js", - "index": 77, - "index2": 75, - "size": 9719, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "35:0-64" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "358:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "359:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/state/stateRenderer-v2", - "loc": "534:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "getClasses", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { select } from 'd3';\nimport stateDb from './stateDb';\nimport state from './parser/stateDiagram';\nimport { getConfig } from '../../config';\nimport { render } from '../../dagre-wrapper/index.js';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\nvar nodeDb = {};\n/**\n * Returns the all the styles from classDef statements in the graph definition.\n * @returns {object} classDef styles\n */\n\nexport var getClasses = function getClasses(text) {\n logger.trace('Extracting classes');\n stateDb.clear();\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n parser.parse(text);\n return stateDb.getClasses();\n};\n\nvar setupNode = function setupNode(g, parent, node, altFlag) {\n // Add the node\n if (node.id !== 'root') {\n var shape = 'rect';\n\n if (node.start === true) {\n shape = 'start';\n }\n\n if (node.start === false) {\n shape = 'end';\n }\n\n if (node.type !== 'default') {\n shape = node.type;\n }\n\n if (!nodeDb[node.id]) {\n nodeDb[node.id] = {\n id: node.id,\n shape: shape,\n description: node.id,\n classes: 'statediagram-state'\n };\n } // Build of the array of description strings accordinging\n\n\n if (node.description) {\n if (Array.isArray(nodeDb[node.id].description)) {\n // There already is an array of strings,add to it\n nodeDb[node.id].shape = 'rectWithTitle';\n nodeDb[node.id].description.push(node.description);\n } else {\n if (nodeDb[node.id].description.length > 0) {\n // if there is a description already transformit to an array\n nodeDb[node.id].shape = 'rectWithTitle';\n\n if (nodeDb[node.id].description === node.id) {\n // If the previous description was the is, remove it\n nodeDb[node.id].description = [node.description];\n } else {\n nodeDb[node.id].description = [nodeDb[node.id].description, node.description];\n }\n } else {\n nodeDb[node.id].shape = 'rect';\n nodeDb[node.id].description = node.description;\n }\n }\n } // Save data for description and group so that for instance a statement without description overwrites\n // one with description\n // group\n\n\n if (!nodeDb[node.id].type && node.doc) {\n logger.info('Setting cluser for ', node.id);\n nodeDb[node.id].type = 'group';\n nodeDb[node.id].shape = node.type === 'divider' ? 'divider' : 'roundedWithTitle';\n nodeDb[node.id].classes = nodeDb[node.id].classes + ' ' + (altFlag ? 'statediagram-cluster statediagram-cluster-alt' : 'statediagram-cluster');\n }\n\n var nodeData = {\n labelStyle: '',\n shape: nodeDb[node.id].shape,\n labelText: nodeDb[node.id].description,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id,\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n\n if (node.note) {\n // Todo: set random id\n var noteData = {\n labelStyle: '',\n shape: 'note',\n labelText: node.note.text,\n classes: 'statediagram-note',\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----note',\n type: nodeDb[node.id].type,\n padding: 15 //getConfig().flowchart.padding\n\n };\n var groupData = {\n labelStyle: '',\n shape: 'noteGroup',\n labelText: node.note.text,\n classes: nodeDb[node.id].classes,\n //classStr,\n style: '',\n //styles.style,\n id: node.id + '----parent',\n type: 'group',\n padding: 0 //getConfig().flowchart.padding\n\n };\n g.setNode(node.id + '----parent', groupData);\n g.setNode(noteData.id, noteData);\n g.setNode(node.id, nodeData);\n g.setParent(node.id, node.id + '----parent');\n g.setParent(noteData.id, node.id + '----parent');\n var from = node.id;\n var to = noteData.id;\n\n if (node.note.position === 'left of') {\n from = noteData.id;\n to = node.id;\n }\n\n g.setEdge(from, to, {\n arrowhead: 'none',\n arrowType: '',\n style: 'fill:none',\n labelStyle: '',\n classes: 'transition note-edge',\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal'\n });\n } else {\n g.setNode(node.id, nodeData);\n }\n }\n\n if (parent) {\n if (parent.id !== 'root') {\n logger.info('Setting node ', node.id, ' to be child of its parent ', parent.id);\n g.setParent(node.id, parent.id);\n }\n }\n\n if (node.doc) {\n logger.info('Adding nodes children ');\n setupDoc(g, node, node.doc, !altFlag);\n }\n};\n\nvar cnt = 0;\n\nvar setupDoc = function setupDoc(g, parent, doc, altFlag) {\n logger.trace('items', doc);\n doc.forEach(function (item) {\n if (item.stmt === 'state' || item.stmt === 'default') {\n setupNode(g, parent, item, altFlag);\n } else if (item.stmt === 'relation') {\n setupNode(g, parent, item.state1, altFlag);\n setupNode(g, parent, item.state2, altFlag);\n var edgeData = {\n id: 'edge' + cnt,\n arrowhead: 'normal',\n arrowType: 'arrow_barb',\n style: 'fill:none',\n labelStyle: '',\n label: item.description,\n arrowheadStyle: 'fill: #333',\n labelpos: 'c',\n labelType: 'text',\n thickness: 'normal',\n classes: 'transition'\n };\n var startId = item.state1.id;\n var endId = item.state2.id;\n g.setEdge(startId, endId, edgeData, cnt);\n cnt++;\n }\n });\n};\n/**\n * Draws a flowchart in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing state diagram (v2)', id);\n stateDb.clear();\n nodeDb = {};\n var parser = state.parser;\n parser.yy = stateDb; // Parse the graph definition\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Fetch the default direction, use TD if none was found\n\n\n var dir = stateDb.getDirection();\n\n if (typeof dir === 'undefined') {\n dir = 'LR';\n }\n\n var conf = getConfig().state;\n var nodeSpacing = conf.nodeSpacing || 50;\n var rankSpacing = conf.rankSpacing || 50; // Create the input mermaid.graph\n\n var g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: 'TB',\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n logger.info(stateDb.getRootDocV2());\n stateDb.extract(stateDb.getRootDocV2());\n logger.info(stateDb.getRootDocV2());\n setupNode(g, undefined, stateDb.getRootDocV2(), true); // Set up an SVG group so that we can translate the final graph.\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\")); // Run the renderer. This is what draws the final graph.\n\n var element = select('#' + id + ' g');\n render(element, g, ['barb'], 'statediagram', id);\n var padding = 8; // const svgBounds = svg.node().getBBox();\n // const width = svgBounds.width + padding * 2;\n // const height = svgBounds.height + padding * 2;\n // logger.debug(\n // `new ViewBox 0 0 ${width} ${height}`,\n // `translate(${padding + g._label.marginx}, ${padding + g._label.marginy})`\n // );\n // if (conf.useMaxWidth) {\n // svg.attr('width', '100%');\n // svg.attr('style', `max-width: ${width}px;`);\n // } else {\n // svg.attr('height', height);\n // svg.attr('width', width);\n // }\n // svg.attr('viewBox', `0 0 ${width} ${height}`);\n // svg\n // .select('g')\n // .attr('transform', `translate(${padding - g._label.marginx}, ${padding - svgBounds.y})`);\n\n var bounds = svg.node().getBBox();\n var width = bounds.width + padding * 2;\n var height = bounds.height + padding * 2; // diagram.attr('height', '100%');\n // diagram.attr('style', `width: ${bounds.width * 3 + conf.padding * 2};`);\n // diagram.attr('height', height);\n // Zoom in a bit\n\n svg.attr('width', width * 1.75);\n svg.attr('class', 'statediagram'); // diagram.attr('height', bounds.height * 3 + conf.padding * 2);\n // svg.attr(\n // 'viewBox',\n // `${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + ' ' + height\n // );\n\n var svgBounds = svg.node().getBBox();\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n } // Ensure the viewBox includes the whole svgBounds area with extra space for padding\n\n\n var vBox = \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height);\n logger.debug(\"viewBox \".concat(vBox));\n svg.attr('viewBox', vBox); // Add label rects for non html labels\n\n if (!conf.htmlLabels) {\n var labels = document.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n\n for (var k = 0; k < labels.length; k++) {\n var label = labels[k]; // Get dimensions of label\n\n var dim = label.getBBox();\n var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');\n rect.setAttribute('rx', 0);\n rect.setAttribute('ry', 0);\n rect.setAttribute('width', dim.width);\n rect.setAttribute('height', dim.height);\n rect.setAttribute('style', 'fill:#e8e8e8;');\n label.insertBefore(rect, label.firstChild);\n }\n }\n};\nexport default {\n setConf: setConf,\n getClasses: getClasses,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphAst.js", - "name": "./src/diagrams/git/gitGraphAst.js", - "index": 25, - "index2": 23, - "size": 6939, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./gitGraphAst", - "loc": "2:0-31" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "40:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphAst", - "loc": "77:25-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "238:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "243:46-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "245:20-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "246:21-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "module": "./src/diagrams/git/gitGraphRenderer.js", - "moduleName": "./src/diagrams/git/gitGraphRenderer.js", - "type": "harmony import specifier", - "userRequest": "./gitGraphAst", - "loc": "247:19-21" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setDirection", - "setOptions", - "getOptions", - "commit", - "branch", - "merge", - "checkout", - "reset", - "prettyPrint", - "clear", - "getBranchesAsObjArray", - "getBranches", - "getCommits", - "getCommitsArray", - "getCurrentBranch", - "getDirection", - "getHead", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { logger } from '../../logger';\nvar commits = {};\nvar head = null;\nvar branches = {\n master: head\n};\nvar curBranch = 'master';\nvar direction = 'LR';\nvar seq = 0;\n\nfunction makeid(length) {\n var result = '';\n var characters = '0123456789abcdef';\n var charactersLength = characters.length;\n\n for (var i = 0; i < length; i++) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n\n return result;\n}\n\nfunction getId() {\n return makeid(7);\n}\n\nfunction isfastforwardable(currentCommit, otherCommit) {\n logger.debug('Entering isfastforwardable:', currentCommit.id, otherCommit.id);\n\n while (currentCommit.seq <= otherCommit.seq && currentCommit !== otherCommit) {\n // only if other branch has more commits\n if (otherCommit.parent == null) break;\n\n if (Array.isArray(otherCommit.parent)) {\n logger.debug('In merge commit:', otherCommit.parent);\n return isfastforwardable(currentCommit, commits[otherCommit.parent[0]]) || isfastforwardable(currentCommit, commits[otherCommit.parent[1]]);\n } else {\n otherCommit = commits[otherCommit.parent];\n }\n }\n\n logger.debug(currentCommit.id, otherCommit.id);\n return currentCommit.id === otherCommit.id;\n}\n\nfunction isReachableFrom(currentCommit, otherCommit) {\n var currentSeq = currentCommit.seq;\n var otherSeq = otherCommit.seq;\n if (currentSeq > otherSeq) return isfastforwardable(otherCommit, currentCommit);\n return false;\n}\n\nfunction uniqBy(list, fn) {\n var recordMap = Object.create(null);\n return list.reduce(function (out, item) {\n var key = fn(item);\n\n if (!recordMap[key]) {\n recordMap[key] = true;\n out.push(item);\n }\n\n return out;\n }, []);\n}\n\nexport var setDirection = function setDirection(dir) {\n direction = dir;\n};\nvar options = {};\nexport var setOptions = function setOptions(rawOptString) {\n logger.debug('options str', rawOptString);\n rawOptString = rawOptString && rawOptString.trim();\n rawOptString = rawOptString || '{}';\n\n try {\n options = JSON.parse(rawOptString);\n } catch (e) {\n logger.error('error while parsing gitGraph options', e.message);\n }\n};\nexport var getOptions = function getOptions() {\n return options;\n};\nexport var commit = function commit(msg) {\n var commit = {\n id: getId(),\n message: msg,\n seq: seq++,\n parent: head == null ? null : head.id\n };\n head = commit;\n commits[commit.id] = commit;\n branches[curBranch] = commit.id;\n logger.debug('in pushCommit ' + commit.id);\n};\nexport var branch = function branch(name) {\n branches[name] = head != null ? head.id : null;\n logger.debug('in createBranch');\n};\nexport var merge = function merge(otherBranch) {\n var currentCommit = commits[branches[curBranch]];\n var otherCommit = commits[branches[otherBranch]];\n\n if (isReachableFrom(currentCommit, otherCommit)) {\n logger.debug('Already merged');\n return;\n }\n\n if (isfastforwardable(currentCommit, otherCommit)) {\n branches[curBranch] = branches[otherBranch];\n head = commits[branches[curBranch]];\n } else {\n // create merge commit\n var _commit = {\n id: getId(),\n message: 'merged branch ' + otherBranch + ' into ' + curBranch,\n seq: seq++,\n parent: [head == null ? null : head.id, branches[otherBranch]]\n };\n head = _commit;\n commits[_commit.id] = _commit;\n branches[curBranch] = _commit.id;\n }\n\n logger.debug(branches);\n logger.debug('in mergeBranch');\n};\nexport var checkout = function checkout(branch) {\n logger.debug('in checkout');\n curBranch = branch;\n var id = branches[curBranch];\n head = commits[id];\n};\nexport var reset = function reset(commitRef) {\n logger.debug('in reset', commitRef);\n var ref = commitRef.split(':')[0];\n var parentCount = parseInt(commitRef.split(':')[1]);\n var commit = ref === 'HEAD' ? head : commits[branches[ref]];\n logger.debug(commit, parentCount);\n\n while (parentCount > 0) {\n commit = commits[commit.parent];\n parentCount--;\n\n if (!commit) {\n var err = 'Critical error - unique parent commit not found during reset';\n logger.error(err);\n throw err;\n }\n }\n\n head = commit;\n branches[curBranch] = commit.id;\n};\n\nfunction upsert(arr, key, newval) {\n var index = arr.indexOf(key);\n\n if (index === -1) {\n arr.push(newval);\n } else {\n arr.splice(index, 1, newval);\n }\n}\n\nfunction prettyPrintCommitHistory(commitArr) {\n var commit = commitArr.reduce(function (out, commit) {\n if (out.seq > commit.seq) return out;\n return commit;\n }, commitArr[0]);\n var line = '';\n commitArr.forEach(function (c) {\n if (c === commit) {\n line += '\\t*';\n } else {\n line += '\\t|';\n }\n });\n var label = [line, commit.id, commit.seq];\n\n for (var _branch in branches) {\n if (branches[_branch] === commit.id) label.push(_branch);\n }\n\n logger.debug(label.join(' '));\n\n if (Array.isArray(commit.parent)) {\n var newCommit = commits[commit.parent[0]];\n upsert(commitArr, commit, newCommit);\n commitArr.push(commits[commit.parent[1]]);\n } else if (commit.parent == null) {\n return;\n } else {\n var nextCommit = commits[commit.parent];\n upsert(commitArr, commit, nextCommit);\n }\n\n commitArr = uniqBy(commitArr, function (c) {\n return c.id;\n });\n prettyPrintCommitHistory(commitArr);\n}\n\nexport var prettyPrint = function prettyPrint() {\n logger.debug(commits);\n var node = getCommitsArray()[0];\n prettyPrintCommitHistory([node]);\n};\nexport var clear = function clear() {\n commits = {};\n head = null;\n branches = {\n master: head\n };\n curBranch = 'master';\n seq = 0;\n};\nexport var getBranchesAsObjArray = function getBranchesAsObjArray() {\n var branchArr = [];\n\n for (var _branch2 in branches) {\n branchArr.push({\n name: _branch2,\n commit: commits[branches[_branch2]]\n });\n }\n\n return branchArr;\n};\nexport var getBranches = function getBranches() {\n return branches;\n};\nexport var getCommits = function getCommits() {\n return commits;\n};\nexport var getCommitsArray = function getCommitsArray() {\n var commitArr = Object.keys(commits).map(function (key) {\n return commits[key];\n });\n commitArr.forEach(function (o) {\n logger.debug(o.id);\n });\n commitArr.sort(function (a, b) {\n return b.seq - a.seq;\n });\n return commitArr;\n};\nexport var getCurrentBranch = function getCurrentBranch() {\n return curBranch;\n};\nexport var getDirection = function getDirection() {\n return direction;\n};\nexport var getHead = function getHead() {\n return head;\n};\nexport default {\n setDirection: setDirection,\n setOptions: setOptions,\n getOptions: getOptions,\n commit: commit,\n branch: branch,\n merge: merge,\n checkout: checkout,\n reset: reset,\n prettyPrint: prettyPrint,\n clear: clear,\n getBranchesAsObjArray: getBranchesAsObjArray,\n getBranches: getBranches,\n getCommits: getCommits,\n getCommitsArray: getCommitsArray,\n getCurrentBranch: getCurrentBranch,\n getDirection: getDirection,\n getHead: getHead\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/git/gitGraphRenderer.js", - "name": "./src/diagrams/git/gitGraphRenderer.js", - "index": 50, - "index2": 48, - "size": 9304, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "38:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "308:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "309:8-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/git/gitGraphRenderer", - "loc": "522:2-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { curveBasis, line, select } from 'd3';\nimport db from './gitGraphAst';\nimport gitGraphParser from './parser/gitGraph';\nimport { logger } from '../../logger';\nimport { interpolateToCurve } from '../../utils';\nvar allCommitsDict = {};\nvar branchNum;\nvar config = {\n nodeSpacing: 150,\n nodeFillColor: 'yellow',\n nodeStrokeWidth: 2,\n nodeStrokeColor: 'grey',\n lineStrokeWidth: 4,\n branchOffset: 50,\n lineColor: 'grey',\n leftMargin: 50,\n branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],\n nodeRadius: 10,\n nodeLabel: {\n width: 75,\n height: 100,\n x: -25,\n y: 0\n }\n};\nvar apiConfig = {};\nexport var setConf = function setConf(c) {\n apiConfig = c;\n};\n\nfunction svgCreateDefs(svg) {\n svg.append('defs').append('g').attr('id', 'def-commit').append('circle').attr('r', config.nodeRadius).attr('cx', 0).attr('cy', 0);\n svg.select('#def-commit').append('foreignObject').attr('width', config.nodeLabel.width).attr('height', config.nodeLabel.height).attr('x', config.nodeLabel.x).attr('y', config.nodeLabel.y).attr('class', 'node-label').attr('requiredFeatures', 'http://www.w3.org/TR/SVG11/feature#Extensibility').append('p').html('');\n}\n\nfunction svgDrawLine(svg, points, colorIdx, interpolate) {\n var curve = interpolateToCurve(interpolate, curveBasis);\n var color = config.branchColors[colorIdx % config.branchColors.length];\n var lineGen = line().x(function (d) {\n return Math.round(d.x);\n }).y(function (d) {\n return Math.round(d.y);\n }).curve(curve);\n svg.append('svg:path').attr('d', lineGen(points)).style('stroke', color).style('stroke-width', config.lineStrokeWidth).style('fill', 'none');\n} // Pass in the element and its pre-transform coords\n\n\nfunction getElementCoords(element, coords) {\n coords = coords || element.node().getBBox();\n var ctm = element.node().getCTM();\n var xn = ctm.e + coords.x * ctm.a;\n var yn = ctm.f + coords.y * ctm.d;\n return {\n left: xn,\n top: yn,\n width: coords.width,\n height: coords.height\n };\n}\n\nfunction svgDrawLineForCommits(svg, fromId, toId, direction, color) {\n logger.debug('svgDrawLineForCommits: ', fromId, toId);\n var fromBbox = getElementCoords(svg.select('#node-' + fromId + ' circle'));\n var toBbox = getElementCoords(svg.select('#node-' + toId + ' circle'));\n\n switch (direction) {\n case 'LR':\n // (toBbox)\n // +--------\n // + (fromBbox)\n if (fromBbox.left - toBbox.left > config.nodeSpacing) {\n var lineStart = {\n x: fromBbox.left - config.nodeSpacing,\n y: toBbox.top + toBbox.height / 2\n };\n var lineEnd = {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n };\n svgDrawLine(svg, [lineStart, lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: lineStart.y\n }, lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: fromBbox.top + fromBbox.height / 2\n }, {\n x: fromBbox.left - config.nodeSpacing / 2,\n y: toBbox.top + toBbox.height / 2\n }, {\n x: toBbox.left + toBbox.width,\n y: toBbox.top + toBbox.height / 2\n }], color);\n }\n\n break;\n\n case 'BT':\n // + (fromBbox)\n // |\n // |\n // + (toBbox)\n if (toBbox.top - fromBbox.top > config.nodeSpacing) {\n var _lineStart = {\n x: toBbox.left + toBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing\n };\n var _lineEnd = {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n };\n svgDrawLine(svg, [_lineStart, _lineEnd], color, 'linear');\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: _lineStart.y - config.nodeSpacing / 2\n }, _lineStart], color);\n } else {\n svgDrawLine(svg, [{\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + fromBbox.height\n }, {\n x: fromBbox.left + fromBbox.width / 2,\n y: fromBbox.top + config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top - config.nodeSpacing / 2\n }, {\n x: toBbox.left + toBbox.width / 2,\n y: toBbox.top\n }], color);\n }\n\n break;\n }\n}\n\nfunction cloneNode(svg, selector) {\n return svg.select(selector).node().cloneNode(true);\n}\n\nfunction renderCommitHistory(svg, commitid, branches, direction) {\n var commit;\n var numCommits = Object.keys(allCommitsDict).length;\n\n if (typeof commitid === 'string') {\n do {\n commit = allCommitsDict[commitid];\n logger.debug('in renderCommitHistory', commit.id, commit.seq);\n\n if (svg.select('#node-' + commitid).size() > 0) {\n return;\n }\n\n svg.append(function () {\n return cloneNode(svg, '#def-commit');\n }).attr('class', 'commit').attr('id', function () {\n return 'node-' + commit.id;\n }).attr('transform', function () {\n switch (direction) {\n case 'LR':\n return 'translate(' + (commit.seq * config.nodeSpacing + config.leftMargin) + ', ' + branchNum * config.branchOffset + ')';\n\n case 'BT':\n return 'translate(' + (branchNum * config.branchOffset + config.leftMargin) + ', ' + (numCommits - commit.seq) * config.nodeSpacing + ')';\n }\n }).attr('fill', config.nodeFillColor).attr('stroke', config.nodeStrokeColor).attr('stroke-width', config.nodeStrokeWidth);\n var branch = void 0;\n\n for (var branchName in branches) {\n if (branches[branchName].commit === commit) {\n branch = branches[branchName];\n break;\n }\n }\n\n if (branch) {\n logger.debug('found branch ', branch.name);\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'branch-label').text(branch.name + ', ');\n }\n\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-id').text(commit.id);\n\n if (commit.message !== '' && direction === 'BT') {\n svg.select('#node-' + commit.id + ' p').append('xhtml:span').attr('class', 'commit-msg').text(', ' + commit.message);\n }\n\n commitid = commit.parent;\n } while (commitid && allCommitsDict[commitid]);\n }\n\n if (Array.isArray(commitid)) {\n logger.debug('found merge commmit', commitid);\n renderCommitHistory(svg, commitid[0], branches, direction);\n branchNum++;\n renderCommitHistory(svg, commitid[1], branches, direction);\n branchNum--;\n }\n}\n\nfunction renderLines(svg, commit, direction, branchColor) {\n branchColor = branchColor || 0;\n\n while (commit.seq > 0 && !commit.lineDrawn) {\n if (typeof commit.parent === 'string') {\n svgDrawLineForCommits(svg, commit.id, commit.parent, direction, branchColor);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent];\n } else if (Array.isArray(commit.parent)) {\n svgDrawLineForCommits(svg, commit.id, commit.parent[0], direction, branchColor);\n svgDrawLineForCommits(svg, commit.id, commit.parent[1], direction, branchColor + 1);\n renderLines(svg, allCommitsDict[commit.parent[1]], direction, branchColor + 1);\n commit.lineDrawn = true;\n commit = allCommitsDict[commit.parent[0]];\n }\n }\n}\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = gitGraphParser.parser;\n parser.yy = db;\n parser.yy.clear();\n logger.debug('in gitgraph renderer', txt + '\\n', 'id:', id, ver); // Parse the graph definition\n\n parser.parse(txt + '\\n');\n config = Object.assign(config, apiConfig, db.getOptions());\n logger.debug('effective options', config);\n var direction = db.getDirection();\n allCommitsDict = db.getCommits();\n var branches = db.getBranchesAsObjArray();\n\n if (direction === 'BT') {\n config.nodeLabel.x = branches.length * config.branchOffset;\n config.nodeLabel.width = '100%';\n config.nodeLabel.y = -1 * 2 * config.nodeRadius;\n }\n\n var svg = select(\"[id=\\\"\".concat(id, \"\\\"]\"));\n svgCreateDefs(svg);\n branchNum = 1;\n\n for (var branch in branches) {\n var v = branches[branch];\n renderCommitHistory(svg, v.commit.id, branches, direction);\n renderLines(svg, v.commit, direction);\n branchNum++;\n }\n\n svg.attr('height', function () {\n if (direction === 'BT') return Object.keys(allCommitsDict).length * config.nodeSpacing;\n return (branches.length + 1) * config.branchOffset;\n });\n } catch (e) {\n logger.error('Error while rendering gitgraph');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoDb.js", - "name": "./src/diagrams/info/infoDb.js", - "index": 38, - "index2": 36, - "size": 645, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./infoDb", - "loc": "5:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "module": "./src/diagrams/info/infoRenderer.js", - "moduleName": "./src/diagrams/info/infoRenderer.js", - "type": "harmony import specifier", - "userRequest": "./infoDb", - "loc": "24:16-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoDb", - "loc": "44:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoDb", - "loc": "120:25-31" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setMessage", - "getMessage", - "setInfo", - "getInfo", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 15-01-14.\n */\nimport { logger } from '../../logger';\nvar message = '';\nvar info = false;\nexport var setMessage = function setMessage(txt) {\n logger.debug('Setting message to: ' + txt);\n message = txt;\n};\nexport var getMessage = function getMessage() {\n return message;\n};\nexport var setInfo = function setInfo(inf) {\n info = inf;\n};\nexport var getInfo = function getInfo() {\n return info;\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\nexport default {\n setMessage: setMessage,\n getMessage: getMessage,\n setInfo: setInfo,\n getInfo: getInfo // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/info/infoRenderer.js", - "name": "./src/diagrams/info/infoRenderer.js", - "index": 78, - "index2": 76, - "size": 1276, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "41:0-56" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "364:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "365:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/info/infoRenderer", - "loc": "535:2-14" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport db from './infoDb';\nimport infoParser from './parser/info';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(txt, id, ver) {\n try {\n var parser = infoParser.parser;\n parser.yy = db;\n logger.debug('Renering info diagram\\n' + txt); // Parse the graph definition\n\n parser.parse(txt);\n logger.debug('Parsed info diagram'); // Fetch the default direction, use TD if none was found\n\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('text') // text label for the x axis\n .attr('x', 100).attr('y', 40).attr('class', 'version').attr('font-size', '32px').style('text-anchor', 'middle').text('v ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400); // svg.attr('viewBox', '0 0 300 150');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/errorRenderer.js", - "name": "./src/errorRenderer.js", - "index": 85, - "index2": 83, - "size": 2972, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./errorRenderer", - "loc": "42:0-44" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "386:4-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./errorRenderer", - "loc": "539:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by knut on 14-12-11.\n */\nimport { select } from 'd3';\nimport { logger } from './logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a an info picture in the tag with id: id based on the graph definition in text.\n * @param text\n * @param id\n */\n\nexport var draw = function draw(id, ver) {\n try {\n logger.debug('Renering svg for syntax error\\n');\n var svg = select('#' + id);\n var g = svg.append('g');\n g.append('path').attr('class', 'error-icon').attr('d', 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z');\n g.append('path').attr('class', 'error-icon').attr('d', 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1240).attr('y', 250).attr('font-size', '150px').style('text-anchor', 'middle').text('Syntax error in graph');\n g.append('text') // text label for the x axis\n .attr('class', 'error-text').attr('x', 1050).attr('y', 400).attr('font-size', '100px').style('text-anchor', 'middle').text('mermaid version ' + ver);\n svg.attr('height', 100);\n svg.attr('width', 400);\n svg.attr('viewBox', '768 0 512 512');\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieDb.js", - "name": "./src/diagrams/pie/pieDb.js", - "index": 40, - "index2": 38, - "size": 995, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./pieDb", - "loc": "5:0-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "25:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieDb", - "loc": "47:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "module": "./src/diagrams/pie/pieRenderer.js", - "moduleName": "./src/diagrams/pie/pieRenderer.js", - "type": "harmony import specifier", - "userRequest": "./pieDb", - "loc": "55:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieDb", - "loc": "126:25-30" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar sections = {};\nvar title = '';\n\nvar addSection = function addSection(id, value) {\n if (typeof sections[id] === 'undefined') {\n sections[id] = value;\n logger.debug('Added new section :', id);\n }\n};\n\nvar getSections = function getSections() {\n return sections;\n};\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar cleanupValue = function cleanupValue(value) {\n if (value.substring(0, 1) === ':') {\n value = value.substring(1).trim();\n return Number(value.trim());\n } else {\n return Number(value.trim());\n }\n};\n\nvar clear = function clear() {\n sections = {};\n title = '';\n}; // export const parseError = (err, hash) => {\n// global.mermaidAPI.parseError(err, hash)\n// }\n\n\nexport default {\n addSection: addSection,\n getSections: getSections,\n cleanupValue: cleanupValue,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle // parseError\n\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/pie/pieRenderer.js", - "name": "./src/diagrams/pie/pieRenderer.js", - "index": 80, - "index2": 78, - "size": 3794, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "45:0-53" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "370:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "371:8-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/pie/pieRenderer", - "loc": "536:2-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n * Created by AshishJ on 11-09-2019.\n */\nimport { select, scaleOrdinal, schemeSet2, pie as d3pie, entries, arc } from 'd3';\nimport pieData from './pieDb';\nimport pieParser from './parser/pie';\nimport { logger } from '../../logger';\nvar conf = {};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\n/**\n * Draws a Pie Chart with the data given in text.\n * @param text\n * @param id\n */\n\nvar w;\nexport var draw = function draw(txt, id) {\n try {\n var parser = pieParser.parser;\n parser.yy = pieData;\n logger.debug('Rendering info diagram\\n' + txt); // Parse the Pie Chart definition\n\n parser.yy.clear();\n parser.parse(txt);\n logger.debug('Parsed info diagram');\n var elem = document.getElementById(id);\n w = elem.parentElement.offsetWidth;\n\n if (typeof w === 'undefined') {\n w = 1200;\n }\n\n if (typeof conf.useWidth !== 'undefined') {\n w = conf.useWidth;\n }\n\n var h = 450;\n elem.setAttribute('height', '100%'); // Set viewBox\n\n elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h); // Fetch the default direction, use TD if none was found\n\n var width = w; // 450\n\n var height = 450;\n var margin = 40;\n var legendRectSize = 18;\n var legendSpacing = 4;\n var radius = Math.min(width, height) / 2 - margin;\n var svg = select('#' + id).append('svg').attr('width', width).attr('height', height).append('g').attr('transform', 'translate(' + width / 2 + ',' + height / 2 + ')');\n var data = pieData.getSections();\n var sum = 0;\n Object.keys(data).forEach(function (key) {\n sum += data[key];\n });\n logger.info(data); // set the color scale\n\n var color = scaleOrdinal().domain(data).range(schemeSet2); // Compute the position of each group on the pie:\n\n var pie = d3pie().value(function (d) {\n return d.value;\n });\n var dataReady = pie(entries(data)); // shape helper to build arcs:\n\n var arcGenerator = arc().innerRadius(0).outerRadius(radius); // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n\n svg.selectAll('mySlices').data(dataReady).enter().append('path').attr('d', arcGenerator).attr('fill', function (d) {\n return color(d.data.key);\n }).attr('stroke', 'black').style('stroke-width', '2px').style('opacity', 0.7); // Now add the Percentage. Use the centroid method to get the best coordinates\n\n svg.selectAll('mySlices').data(dataReady).enter().append('text').text(function (d) {\n return (d.data.value / sum * 100).toFixed(0) + '%';\n }).attr('transform', function (d) {\n return 'translate(' + arcGenerator.centroid(d) + ')';\n }).style('text-anchor', 'middle').attr('class', 'slice').style('font-size', 17);\n svg.append('text').text(parser.yy.getTitle()).attr('x', 0).attr('y', -(h - 50) / 2).attr('class', 'pieTitleText'); //Add the slegend/annotations for each section\n\n var legend = svg.selectAll('.legend').data(color.domain()).enter().append('g').attr('class', 'legend').attr('transform', function (d, i) {\n var height = legendRectSize + legendSpacing;\n var offset = height * color.domain().length / 2;\n var horz = 12 * legendRectSize;\n var vert = i * height - offset;\n return 'translate(' + horz + ',' + vert + ')';\n });\n legend.append('rect').attr('width', legendRectSize).attr('height', legendRectSize).style('fill', color).style('stroke', color);\n legend.append('text').attr('x', legendRectSize + legendSpacing).attr('y', legendRectSize - legendSpacing).text(function (d) {\n return d;\n });\n } catch (e) {\n logger.error('Error while rendering info diagram');\n logger.error(e.message);\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erDb.js", - "name": "./src/diagrams/er/erDb.js", - "index": 42, - "index2": 40, - "size": 1728, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erDb", - "loc": "3:0-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erDb", - "loc": "48:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "115:30-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "132:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erDb", - "loc": "132:25-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "136:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "140:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "144:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "150:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "154:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "158:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "162:9-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "189:2-6" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "191:14-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "239:38-42" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erDb", - "loc": "242:39-43" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "/**\n *\n */\nimport { logger } from '../../logger';\nvar entities = {};\nvar relationships = [];\nvar title = '';\nvar Cardinality = {\n ZERO_OR_ONE: 'ZERO_OR_ONE',\n ZERO_OR_MORE: 'ZERO_OR_MORE',\n ONE_OR_MORE: 'ONE_OR_MORE',\n ONLY_ONE: 'ONLY_ONE'\n};\nvar Identification = {\n NON_IDENTIFYING: 'NON_IDENTIFYING',\n IDENTIFYING: 'IDENTIFYING'\n};\n\nvar addEntity = function addEntity(name) {\n if (typeof entities[name] === 'undefined') {\n entities[name] = name;\n logger.debug('Added new entity :', name);\n }\n};\n\nvar getEntities = function getEntities() {\n return entities;\n};\n/**\n * Add a relationship\n * @param entA The first entity in the relationship\n * @param rolA The role played by the first entity in relation to the second\n * @param entB The second entity in the relationship\n * @param rSpec The details of the relationship between the two entities\n */\n\n\nvar addRelationship = function addRelationship(entA, rolA, entB, rSpec) {\n var rel = {\n entityA: entA,\n roleA: rolA,\n entityB: entB,\n relSpec: rSpec\n };\n relationships.push(rel);\n logger.debug('Added new relationship :', rel);\n};\n\nvar getRelationships = function getRelationships() {\n return relationships;\n}; // Keep this - TODO: revisit...allow the diagram to have a title\n\n\nvar setTitle = function setTitle(txt) {\n title = txt;\n};\n\nvar getTitle = function getTitle() {\n return title;\n};\n\nvar clear = function clear() {\n entities = {};\n relationships = [];\n title = '';\n};\n\nexport default {\n Cardinality: Cardinality,\n Identification: Identification,\n addEntity: addEntity,\n getEntities: getEntities,\n addRelationship: addRelationship,\n getRelationships: getRelationships,\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "index": 81, - "index2": 80, - "size": 11270, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/er/erRenderer", - "loc": "50:0-50" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "375:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "376:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/er/erRenderer", - "loc": "537:2-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import graphlib from 'graphlib';\nimport { line, curveBasis, select } from 'd3';\nimport erDb from './erDb';\nimport erParser from './parser/erDiagram';\nimport dagre from 'dagre';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger';\nimport erMarkers from './erMarkers';\nvar conf = {};\n/**\n * Allows the top-level API module to inject config specific to this renderer,\n * storing it in the local conf object. Note that generic config still needs to be\n * retrieved using getConfig() imported from the config module\n */\n\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n\n for (var i = 0; i < keys.length; i++) {\n conf[keys[i]] = cnf[keys[i]];\n }\n};\n/**\n * Use D3 to construct the svg elements for the entities\n * @param svgNode the svg node that contains the diagram\n * @param entities The entities to be drawn\n * @param graph The graph that contains the vertex and edge definitions post-layout\n * @return The first entity that was inserted\n */\n\nvar drawEntities = function drawEntities(svgNode, entities, graph) {\n var keys = Object.keys(entities);\n var firstOne;\n keys.forEach(function (id) {\n // Create a group for each entity\n var groupNode = svgNode.append('g').attr('id', id);\n firstOne = firstOne === undefined ? id : firstOne; // Label the entity - this is done first so that we can get the bounding box\n // which then determines the size of the rectangle\n\n var textId = 'entity-' + id;\n var textNode = groupNode.append('text').attr('class', 'er entityLabel').attr('id', textId).attr('x', 0).attr('y', 0).attr('dominant-baseline', 'middle').attr('text-anchor', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(id); // Calculate the width and height of the entity\n\n var textBBox = textNode.node().getBBox();\n var entityWidth = Math.max(conf.minEntityWidth, textBBox.width + conf.entityPadding * 2);\n var entityHeight = Math.max(conf.minEntityHeight, textBBox.height + conf.entityPadding * 2); // Make sure the text gets centred relative to the entity box\n\n textNode.attr('transform', 'translate(' + entityWidth / 2 + ',' + entityHeight / 2 + ')'); // Draw the rectangle - insert it before the text so that the text is not obscured\n\n var rectNode = groupNode.insert('rect', '#' + textId).attr('class', 'er entityBox').attr('fill', conf.fill).attr('fill-opacity', '100%').attr('stroke', conf.stroke).attr('x', 0).attr('y', 0).attr('width', entityWidth).attr('height', entityHeight);\n var rectBBox = rectNode.node().getBBox(); // Add the entity to the graph\n\n graph.setNode(id, {\n width: rectBBox.width,\n height: rectBBox.height,\n shape: 'rect',\n id: id\n });\n });\n return firstOne;\n}; // drawEntities\n\n\nvar adjustEntities = function adjustEntities(svgNode, graph) {\n graph.nodes().forEach(function (v) {\n if (typeof v !== 'undefined' && typeof graph.node(v) !== 'undefined') {\n svgNode.select('#' + v).attr('transform', 'translate(' + (graph.node(v).x - graph.node(v).width / 2) + ',' + (graph.node(v).y - graph.node(v).height / 2) + ' )');\n }\n });\n return;\n};\n\nvar getEdgeName = function getEdgeName(rel) {\n return (rel.entityA + rel.roleA + rel.entityB).replace(/\\s/g, '');\n};\n/**\n * Add each relationship to the graph\n * @param relationships the relationships to be added\n * @param g the graph\n * @return {Array} The array of relationships\n */\n\n\nvar addRelationships = function addRelationships(relationships, g) {\n relationships.forEach(function (r) {\n g.setEdge(r.entityA, r.entityB, {\n relationship: r\n }, getEdgeName(r));\n });\n return relationships;\n}; // addRelationships\n\n\nvar relCnt = 0;\n/**\n * Draw a relationship using edge information from the graph\n * @param svg the svg node\n * @param rel the relationship to draw in the svg\n * @param g the graph containing the edge information\n * @param insert the insertion point in the svg DOM (because relationships have markers that need to sit 'behind' opaque entity boxes)\n */\n\nvar drawRelationshipFromLayout = function drawRelationshipFromLayout(svg, rel, g, insert) {\n relCnt++; // Find the edge relating to this relationship\n\n var edge = g.edge(rel.entityA, rel.entityB, getEdgeName(rel)); // Get a function that will generate the line path\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Insert the line at the right place\n\n var svgPath = svg.insert('path', '#' + insert).attr('class', 'er relationshipLine').attr('d', lineFunction(edge.points)).attr('stroke', conf.stroke).attr('fill', 'none'); // ...and with dashes if necessary\n\n if (rel.relSpec.relType === erDb.Identification.NON_IDENTIFYING) {\n svgPath.attr('stroke-dasharray', '8,8');\n } // TODO: Understand this better\n\n\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n } // Decide which start and end markers it needs. It may be possible to be more concise here\n // by reversing a start marker to make an end marker...but this will do for now\n // Note that the 'A' entity's marker is at the end of the relationship and the 'B' entity's marker is at the start\n\n\n switch (rel.relSpec.cardA) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_END + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_END + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-end', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_END + ')');\n break;\n }\n\n switch (rel.relSpec.cardB) {\n case erDb.Cardinality.ZERO_OR_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_ONE_START + ')');\n break;\n\n case erDb.Cardinality.ZERO_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ZERO_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONE_OR_MORE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONE_OR_MORE_START + ')');\n break;\n\n case erDb.Cardinality.ONLY_ONE:\n svgPath.attr('marker-start', 'url(' + url + '#' + erMarkers.ERMarkers.ONLY_ONE_START + ')');\n break;\n } // Now label the relationship\n // Find the half-way point\n\n\n var len = svgPath.node().getTotalLength();\n var labelPoint = svgPath.node().getPointAtLength(len * 0.5); // Append a text node containing the label\n\n var labelId = 'rel' + relCnt;\n var labelNode = svg.append('text').attr('class', 'er relationshipLabel').attr('id', labelId).attr('x', labelPoint.x).attr('y', labelPoint.y).attr('text-anchor', 'middle').attr('dominant-baseline', 'middle').attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize + 'px').text(rel.roleA); // Figure out how big the opaque 'container' rectangle needs to be\n\n var labelBBox = labelNode.node().getBBox(); // Insert the opaque rectangle before the text label\n\n svg.insert('rect', '#' + labelId).attr('class', 'er relationshipLabelBox').attr('x', labelPoint.x - labelBBox.width / 2).attr('y', labelPoint.y - labelBBox.height / 2).attr('width', labelBBox.width).attr('height', labelBBox.height).attr('fill', 'white').attr('fill-opacity', '85%');\n return;\n};\n/**\n * Draw en E-R diagram in the tag with id: id based on the text definition of the diagram\n * @param text the text of the diagram\n * @param id the unique id of the DOM node that contains the diagram\n */\n\n\nexport var draw = function draw(text, id) {\n logger.info('Drawing ER diagram');\n erDb.clear();\n var parser = erParser.parser;\n parser.yy = erDb; // Parse the text to populate erDb\n\n try {\n parser.parse(text);\n } catch (err) {\n logger.debug('Parsing failed');\n } // Get a reference to the svg node that contains the text\n\n\n var svg = select(\"[id='\".concat(id, \"']\")); // Add cardinality marker definitions to the svg\n\n erMarkers.insertMarkers(svg, conf); // Now we have to construct the diagram in a specific way:\n // ---\n // 1. Create all the entities in the svg node at 0,0, but with the correct dimensions (allowing for text content)\n // 2. Make sure they are all added to the graph\n // 3. Add all the edges (relationships) to the graph aswell\n // 4. Let dagre do its magic to layout the graph. This assigns:\n // - the centre co-ordinates for each node, bearing in mind the dimensions and edge relationships\n // - the path co-ordinates for each edge\n // But it has no impact on the svg child nodes - the diagram remains with every entity rooted at 0,0\n // 5. Now assign a transform to each entity in the svg node so that it gets drawn in the correct place, as determined by\n // its centre point, which is obtained from the graph, and it's width and height\n // 6. And finally, create all the edges in the svg node using information from the graph\n // ---\n // Create the graph\n\n var g; // TODO: Explore directed vs undirected graphs, and how the layout is affected\n // An E-R diagram could be said to be undirected, but there is merit in setting\n // the direction from parent to child in a one-to-many as this influences graphlib to\n // put the parent above the child (does it?), which is intuitive. Most relationships\n // in ER diagrams are one-to-many.\n\n g = new graphlib.Graph({\n multigraph: true,\n directed: true,\n compound: false\n }).setGraph({\n rankdir: conf.layoutDirection,\n marginx: 20,\n marginy: 20,\n nodesep: 100,\n edgesep: 100,\n ranksep: 100\n }).setDefaultEdgeLabel(function () {\n return {};\n }); // Draw the entities (at 0,0), returning the first svg node that got\n // inserted - this represents the insertion point for relationship paths\n\n var firstEntity = drawEntities(svg, erDb.getEntities(), g); // TODO: externalise the addition of entities to the graph - it's a bit 'buried' in the above\n // Add all the relationships to the graph\n\n var relationships = addRelationships(erDb.getRelationships(), g);\n dagre.layout(g); // Node and edge positions will be updated\n // Adjust the positions of the entities so that they adhere to the layout\n\n adjustEntities(svg, g); // Draw the relationships\n\n relationships.forEach(function (rel) {\n drawRelationshipFromLayout(svg, rel, g, firstEntity);\n });\n var padding = conf.diagramPadding;\n var svgBounds = svg.node().getBBox();\n var width = svgBounds.width + padding * 2;\n var height = svgBounds.height + padding * 2;\n\n if (conf.useMaxWidth) {\n svg.attr('width', '100%');\n svg.attr('style', \"max-width: \".concat(width, \"px;\"));\n } else {\n svg.attr('height', height);\n svg.attr('width', width);\n }\n\n svg.attr('viewBox', \"\".concat(svgBounds.x - padding, \" \").concat(svgBounds.y - padding, \" \").concat(width, \" \").concat(height));\n}; // draw\n\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyDb.js", - "name": "./src/diagrams/user-journey/journeyDb.js", - "index": 44, - "index2": 42, - "size": 3069, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./journeyDb", - "loc": "3:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./journeyDb", - "loc": "5:12-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "52:0-58" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyDb", - "loc": "138:25-34" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "clear", - "setTitle", - "getTitle", - "addSection", - "getSections", - "getTasks", - "addTask", - "addTaskOrg", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar title = '';\nvar currentSection = '';\nvar sections = [];\nvar tasks = [];\nvar rawTasks = [];\nexport var clear = function clear() {\n sections.length = 0;\n tasks.length = 0;\n currentSection = '';\n title = '';\n rawTasks.length = 0;\n};\nexport var setTitle = function setTitle(txt) {\n title = txt;\n};\nexport var getTitle = function getTitle() {\n return title;\n};\nexport var addSection = function addSection(txt) {\n currentSection = txt;\n sections.push(txt);\n};\nexport var getSections = function getSections() {\n return sections;\n};\nexport var getTasks = function getTasks() {\n var allItemsProcessed = compileTasks();\n var maxDepth = 100;\n var iterationCount = 0;\n\n while (!allItemsProcessed && iterationCount < maxDepth) {\n allItemsProcessed = compileTasks();\n iterationCount++;\n }\n\n tasks.push.apply(tasks, rawTasks);\n return tasks;\n};\n\nvar updateActors = function updateActors() {\n var tempActors = [];\n tasks.forEach(function (task) {\n if (task.people) {\n tempActors.push.apply(tempActors, _toConsumableArray(task.people));\n }\n });\n var unique = new Set(tempActors);\n return _toConsumableArray(unique).sort();\n};\n\nexport var addTask = function addTask(descr, taskData) {\n var pieces = taskData.substr(1).split(':');\n var score = 0;\n var peeps = [];\n\n if (pieces.length === 1) {\n score = Number(pieces[0]);\n peeps = [];\n } else {\n score = Number(pieces[0]);\n peeps = pieces[1].split(',');\n }\n\n var peopleList = peeps.map(function (s) {\n return s.trim();\n });\n var rawTask = {\n section: currentSection,\n type: currentSection,\n people: peopleList,\n task: descr,\n score: score\n };\n rawTasks.push(rawTask);\n};\nexport var addTaskOrg = function addTaskOrg(descr) {\n var newTask = {\n section: currentSection,\n type: currentSection,\n description: descr,\n task: descr,\n classes: []\n };\n tasks.push(newTask);\n};\n\nvar compileTasks = function compileTasks() {\n var compileTask = function compileTask(pos) {\n return rawTasks[pos].processed;\n };\n\n var allProcessed = true;\n\n for (var i = 0; i < rawTasks.length; i++) {\n compileTask(i);\n allProcessed = allProcessed && rawTasks[i].processed;\n }\n\n return allProcessed;\n};\n\nvar getActors = function getActors() {\n return updateActors();\n};\n\nexport default {\n clear: clear,\n setTitle: setTitle,\n getTitle: getTitle,\n addSection: addSection,\n getSections: getSections,\n getTasks: getTasks,\n addTask: addTask,\n addTaskOrg: addTaskOrg,\n getActors: getActors\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "index": 83, - "index2": 82, - "size": 7798, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "issuerId": null, - "issuerName": "./src/mermaidAPI.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - } - ], - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony side effect evaluation", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "53:0-70" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "380:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "381:8-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "module": "./src/mermaidAPI.js", - "moduleName": "./src/mermaidAPI.js", - "type": "harmony import specifier", - "userRequest": "./diagrams/user-journey/journeyRenderer", - "loc": "538:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "setConf", - "draw", - "bounds", - "drawTasks", - "default" - ], - "optimizationBailout": [], - "depth": 2, - "source": "import { select } from 'd3';\nimport { parser } from './parser/journey';\nimport journeyDb from './journeyDb';\nimport svgDraw from './svgDraw';\nparser.yy = journeyDb;\nvar conf = {\n leftMargin: 150,\n diagramMarginX: 50,\n diagramMarginY: 20,\n // Margin between tasks\n taskMargin: 50,\n // Width of task boxes\n width: 150,\n // Height of task boxes\n height: 50,\n taskFontSize: 14,\n taskFontFamily: '\"Open-Sans\", \"sans-serif\"',\n // Margin around loop boxes\n boxMargin: 10,\n boxTextMargin: 5,\n noteMargin: 10,\n // Space between messages\n messageMargin: 35,\n // Multiline message alignment\n messageAlign: 'center',\n // Depending on css styling this might need adjustment\n // Projects the edge of the diagram downwards\n bottomMarginAdj: 1,\n // width of activation box\n activationWidth: 10,\n // text placement as: tspan | fo | old only text as before\n textPlacement: 'fo',\n actorColours: ['#8FBC8F', '#7CFC00', '#00FFFF', '#20B2AA', '#B0E0E6', '#FFFFE0'],\n sectionFills: ['#191970', '#8B008B', '#4B0082', '#2F4F4F', '#800000', '#8B4513', '#00008B'],\n sectionColours: ['#fff']\n};\nexport var setConf = function setConf(cnf) {\n var keys = Object.keys(cnf);\n keys.forEach(function (key) {\n conf[key] = cnf[key];\n });\n};\nvar actors = {};\n\nfunction drawActorLegend(diagram) {\n // Draw the actors\n var yPos = 60;\n Object.keys(actors).forEach(function (person) {\n var colour = actors[person];\n var circleData = {\n cx: 20,\n cy: yPos,\n r: 7,\n fill: colour,\n stroke: '#000'\n };\n svgDraw.drawCircle(diagram, circleData);\n var labelData = {\n x: 40,\n y: yPos + 7,\n fill: '#666',\n text: person\n };\n svgDraw.drawText(diagram, labelData);\n yPos += 20;\n });\n}\n\nvar LEFT_MARGIN = conf.leftMargin;\nexport var draw = function draw(text, id) {\n parser.yy.clear();\n parser.parse(text + '\\n');\n bounds.init();\n var diagram = select('#' + id);\n diagram.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink');\n svgDraw.initGraphics(diagram);\n var tasks = parser.yy.getTasks();\n var title = parser.yy.getTitle();\n var actorNames = parser.yy.getActors();\n\n for (var member in actors) {\n delete actors[member];\n }\n\n var actorPos = 0;\n actorNames.forEach(function (actorName) {\n actors[actorName] = conf.actorColours[actorPos % conf.actorColours.length];\n actorPos++;\n });\n drawActorLegend(diagram);\n bounds.insert(0, 0, LEFT_MARGIN, Object.keys(actors).length * 50);\n drawTasks(diagram, tasks, 0);\n var box = bounds.getBounds();\n\n if (title) {\n diagram.append('text').text(title).attr('x', LEFT_MARGIN).attr('font-size', '4ex').attr('font-weight', 'bold').attr('y', 25);\n }\n\n var height = box.stopy - box.starty + 2 * conf.diagramMarginY;\n var width = LEFT_MARGIN + box.stopx + 2 * conf.diagramMarginX;\n\n if (conf.useMaxWidth) {\n diagram.attr('height', '100%');\n diagram.attr('width', '100%');\n diagram.attr('style', 'max-width:' + width + 'px;');\n } else {\n diagram.attr('height', height);\n diagram.attr('width', width);\n } // Draw activity line\n\n\n diagram.append('line').attr('x1', LEFT_MARGIN).attr('y1', conf.height * 4) // One section head + one task + margins\n .attr('x2', width - LEFT_MARGIN - 4) // Subtract stroke width so arrow point is retained\n .attr('y2', conf.height * 4).attr('stroke-width', 4).attr('stroke', 'black').attr('marker-end', 'url(#arrowhead)');\n var extraVertForTitle = title ? 70 : 0;\n diagram.attr('viewBox', \"\".concat(box.startx, \" -25 \").concat(width, \" \").concat(height + extraVertForTitle));\n diagram.attr('preserveAspectRatio', 'xMinYMin meet');\n};\nexport var bounds = {\n data: {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n },\n verticalPos: 0,\n sequenceItems: [],\n init: function init() {\n this.sequenceItems = [];\n this.data = {\n startx: undefined,\n stopx: undefined,\n starty: undefined,\n stopy: undefined\n };\n this.verticalPos = 0;\n },\n updateVal: function updateVal(obj, key, val, fun) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = val;\n } else {\n obj[key] = fun(val, obj[key]);\n }\n },\n updateBounds: function updateBounds(startx, starty, stopx, stopy) {\n var _self = this;\n\n var cnt = 0;\n\n function updateFn(type) {\n return function updateItemBounds(item) {\n cnt++; // The loop sequenceItems is a stack so the biggest margins in the beginning of the sequenceItems\n\n var n = _self.sequenceItems.length - cnt + 1;\n\n _self.updateVal(item, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopy', stopy + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n if (!(type === 'activation')) {\n _self.updateVal(item, 'startx', startx - n * conf.boxMargin, Math.min);\n\n _self.updateVal(item, 'stopx', stopx + n * conf.boxMargin, Math.max);\n\n _self.updateVal(bounds.data, 'starty', starty - n * conf.boxMargin, Math.min);\n\n _self.updateVal(bounds.data, 'stopy', stopy + n * conf.boxMargin, Math.max);\n }\n };\n }\n\n this.sequenceItems.forEach(updateFn());\n },\n insert: function insert(startx, starty, stopx, stopy) {\n var _startx = Math.min(startx, stopx);\n\n var _stopx = Math.max(startx, stopx);\n\n var _starty = Math.min(starty, stopy);\n\n var _stopy = Math.max(starty, stopy);\n\n this.updateVal(bounds.data, 'startx', _startx, Math.min);\n this.updateVal(bounds.data, 'starty', _starty, Math.min);\n this.updateVal(bounds.data, 'stopx', _stopx, Math.max);\n this.updateVal(bounds.data, 'stopy', _stopy, Math.max);\n this.updateBounds(_startx, _starty, _stopx, _stopy);\n },\n bumpVerticalPos: function bumpVerticalPos(bump) {\n this.verticalPos = this.verticalPos + bump;\n this.data.stopy = this.verticalPos;\n },\n getVerticalPos: function getVerticalPos() {\n return this.verticalPos;\n },\n getBounds: function getBounds() {\n return this.data;\n }\n};\nvar fills = conf.sectionFills;\nvar textColours = conf.sectionColours;\nexport var drawTasks = function drawTasks(diagram, tasks, verticalPos) {\n var lastSection = '';\n var sectionVHeight = conf.height * 2 + conf.diagramMarginY;\n var taskPos = verticalPos + sectionVHeight;\n var sectionNumber = 0;\n var fill = '#CCC';\n var colour = 'black'; // Draw the tasks\n\n for (var i = 0; i < tasks.length; i++) {\n var task = tasks[i];\n\n if (lastSection !== task.section) {\n fill = fills[sectionNumber % fills.length];\n colour = textColours[sectionNumber % textColours.length];\n var section = {\n x: i * conf.taskMargin + i * conf.width + LEFT_MARGIN,\n y: 50,\n text: task.section,\n fill: fill,\n colour: colour\n };\n svgDraw.drawSection(diagram, section, conf);\n lastSection = task.section;\n sectionNumber++;\n } // Collect the actors involved in the task\n\n\n var taskActors = task.people.reduce(function (acc, actorName) {\n if (actors[actorName]) {\n acc[actorName] = actors[actorName];\n }\n\n return acc;\n }, {}); // Add some rendering data to the object\n\n task.x = i * conf.taskMargin + i * conf.width + LEFT_MARGIN;\n task.y = taskPos;\n task.width = conf.diagramMarginX;\n task.height = conf.diagramMarginY;\n task.colour = colour;\n task.fill = fill;\n task.actors = taskActors; // Draw the box with the attached line\n\n svgDraw.drawTask(diagram, task, conf);\n bounds.insert(task.x, task.y, task.x + task.width + conf.taskMargin, 300 + 5 * 30); // stopy is the length of the descenders.\n }\n};\nexport default {\n setConf: setConf,\n draw: draw\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowChartShapes.js", - "name": "./src/diagrams/flowchart/flowChartShapes.js", - "index": 49, - "index2": 46, - "size": 7760, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "name": "./src/diagrams/flowchart/flowRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1673, - "building": 1032, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./flowChartShapes", - "loc": "11:0-48" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer.js", - "module": "./src/diagrams/flowchart/flowRenderer.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer.js", - "type": "harmony import specifier", - "userRequest": "./flowChartShapes", - "loc": "352:2-17" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "addToRender", - "addToRenderV2", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagreD3 from 'dagre-d3';\n\nfunction question(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var s = (w + h) * 0.9;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n var shapeSvg = insertPolygonShape(parent, s, s, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction hexagon(parent, bbox, node) {\n var f = 4;\n var h = bbox.height;\n var m = h / f;\n var w = bbox.width + 2 * m;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_left_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_right(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction lean_left(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction inv_trapezoid(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction rect_right_inv_arrow(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction stadium(parent, bbox, node) {\n var h = bbox.height;\n var w = bbox.width + h / 4;\n var shapeSvg = parent.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n\n node.intersect = function (point) {\n return dagreD3.intersect.rect(node, point);\n };\n\n return shapeSvg;\n}\n\nfunction subroutine(parent, bbox, node) {\n var w = bbox.width;\n var h = bbox.height;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var shapeSvg = insertPolygonShape(parent, w, h, points);\n\n node.intersect = function (point) {\n return dagreD3.intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n}\n\nfunction cylinder(parent, bbox, node) {\n var w = bbox.width;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var shapeSvg = parent.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n\n node.intersect = function (point) {\n var pos = dagreD3.intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n}\n\nexport function addToRender(render) {\n render.shapes().question = question;\n render.shapes().hexagon = hexagon;\n render.shapes().stadium = stadium;\n render.shapes().subroutine = subroutine;\n render.shapes().cylinder = cylinder; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().rect_left_inv_arrow = rect_left_inv_arrow; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_right = lean_right; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().lean_left = lean_left; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().trapezoid = trapezoid; // Add custom shape for box with inverted arrow on left side\n\n render.shapes().inv_trapezoid = inv_trapezoid; // Add custom shape for box with inverted arrow on right side\n\n render.shapes().rect_right_inv_arrow = rect_right_inv_arrow;\n}\nexport function addToRenderV2(addShape) {\n addShape({\n question: question\n });\n addShape({\n hexagon: hexagon\n });\n addShape({\n stadium: stadium\n });\n addShape({\n subroutine: subroutine\n });\n addShape({\n cylinder: cylinder\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n rect_left_inv_arrow: rect_left_inv_arrow\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_right: lean_right\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n lean_left: lean_left\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n trapezoid: trapezoid\n }); // Add custom shape for box with inverted arrow on left side\n\n addShape({\n inv_trapezoid: inv_trapezoid\n }); // Add custom shape for box with inverted arrow on right side\n\n addShape({\n rect_right_inv_arrow: rect_right_inv_arrow\n });\n}\n\nfunction insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}\n\nexport default {\n addToRender: addToRender,\n addToRenderV2: addToRenderV2\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "index": 52, - "index2": 65, - "size": 5901, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "issuerId": null, - "issuerName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony side effect evaluation", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "6:0-54" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer-v2.js", - "module": "./src/diagrams/state/stateRenderer-v2.js", - "moduleName": "./src/diagrams/state/stateRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "257:2-8" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "module": "./src/diagrams/flowchart/flowRenderer-v2.js", - "moduleName": "./src/diagrams/flowchart/flowRenderer-v2.js", - "type": "harmony import specifier", - "userRequest": "../../dagre-wrapper/index.js", - "loc": "380:2-8" - } - ], - "usedExports": [ - "render" - ], - "providedExports": [ - "render" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import dagre from 'dagre';\nimport graphlib from 'graphlib';\nimport insertMarkers from './markers';\nimport { updateNodeBounds } from './shapes/util';\nimport { clear as clearGraphlib, clusterDb, adjustClustersAndEdges, findNonClusterChild } from './mermaid-graphlib';\nimport { insertNode, positionNode, clear as clearNodes, setNodeElem } from './nodes';\nimport { insertCluster, clear as clearClusters } from './clusters';\nimport { insertEdgeLabel, positionEdgeLabel, insertEdge, clear as clearEdges } from './edges';\nimport { logger as log } from '../logger';\n\nvar recursiveRender = function recursiveRender(_elem, graph, diagramtype, parentCluster) {\n log.info('Graph in recursive render:', graphlib.json.write(graph), parentCluster);\n var dir = graph.graph().rankdir;\n log.warn('Dir in recursive render - dir:', dir);\n\n var elem = _elem.insert('g').attr('class', 'root'); // eslint-disable-line\n\n\n if (!graph.nodes()) {\n log.trace('No nodes found for', graph);\n } else {\n log.trace('Recursive render', graph.nodes());\n }\n\n if (graph.edges().length > 0) {\n log.trace('Recursive edges', graph.edge(graph.edges()[0]));\n }\n\n var clusters = elem.insert('g').attr('class', 'clusters'); // eslint-disable-line\n\n var edgePaths = elem.insert('g').attr('class', 'edgePaths');\n var edgeLabels = elem.insert('g').attr('class', 'edgeLabels');\n var nodes = elem.insert('g').attr('class', 'nodes'); // Insert nodes, this will insert them into the dom and each node will get a size. The size is updated\n // to the abstract node and is later used by dagre for the layout\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n\n if (typeof parentCluster !== 'undefined') {\n var data = JSON.parse(JSON.stringify(parentCluster.clusterData)); // data.clusterPositioning = true;\n\n log.trace('Setting data for cluster', data);\n graph.setNode(parentCluster.id, data);\n graph.setParent(v, parentCluster.id, data);\n }\n\n log.trace('(Insert) Node ' + v + ': ' + JSON.stringify(graph.node(v)));\n\n if (node && node.clusterNode) {\n // const children = graph.children(v);\n log.trace('Cluster identified', v, node, graph.node(v));\n var newEl = recursiveRender(nodes, node.graph, diagramtype, graph.node(v));\n updateNodeBounds(node, newEl);\n setNodeElem(newEl, node);\n log.warn('Recursive render complete', newEl, node);\n } else {\n if (graph.children(v).length > 0) {\n // This is a cluster but not to be rendered recusively\n // Render as before\n log.trace('Cluster - the non recursive path', v, node.id, node, graph);\n log.trace(findNonClusterChild(node.id, graph));\n clusterDb[node.id] = {\n id: findNonClusterChild(node.id, graph),\n node: node\n }; // insertCluster(clusters, graph.node(v));\n } else {\n log.trace('Node - the non recursive path', v, node.id, node);\n insertNode(nodes, graph.node(v), dir);\n }\n }\n }); // Insert labels, this will insert them into the dom so that the width can be calculated\n // Also figure out which edges point to/from clusters and adjust them accordingly\n // Edges from/to clusters really points to the first child in the cluster.\n // TODO: pick optimal child in the cluster to us as link anchor\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e.v, e.w, e.name);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ', e, ' ', JSON.stringify(graph.edge(e))); // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n insertEdgeLabel(edgeLabels, edge);\n });\n graph.edges().forEach(function (e) {\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n });\n log.info('#############################################');\n log.info('### Layout ###');\n log.info('#############################################');\n log.info(graph);\n dagre.layout(graph);\n log.trace('Graph after layout:', graphlib.json.write(graph)); // Move the nodes to the correct place\n\n graph.nodes().forEach(function (v) {\n var node = graph.node(v);\n log.trace('Position ' + v + ': ' + JSON.stringify(graph.node(v)));\n log.info('Position ' + v + ': (' + node.x, ',' + node.y, ') width: ', node.width, ' height: ', node.height);\n\n if (node && node.clusterNode) {\n // clusterDb[node.id].node = node;\n positionNode(node);\n } else {\n // Non cluster node\n if (graph.children(v).length > 0) {\n // A cluster in the non-recurive way\n // positionCluster(node);\n insertCluster(clusters, node);\n clusterDb[node.id].node = node;\n } else {\n positionNode(node);\n }\n }\n }); // Move the edge labels to the correct place after layout\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.info('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(edge), edge);\n var updatedPath = insertEdge(edgePaths, e, edge, clusterDb, diagramtype, graph);\n positionEdgeLabel(edge, updatedPath);\n });\n return elem;\n};\n\nexport var render = function render(elem, graph, markers, diagramtype, id) {\n insertMarkers(elem, markers, diagramtype, id);\n clearNodes();\n clearEdges();\n clearClusters();\n clearGraphlib();\n log.warn('Graph before:', graphlib.json.write(graph));\n adjustClustersAndEdges(graph);\n log.warn('Graph after:', graphlib.json.write(graph));\n log.warn('Graph ever after:', graph.graph());\n recursiveRender(elem, graph, diagramtype);\n}; // const shapeDefinitions = {};\n// export const addShape = ({ shapeType: fun }) => {\n// shapeDefinitions[shapeType] = fun;\n// };\n// const arrowDefinitions = {};\n// export const addArrow = ({ arrowType: fun }) => {\n// arrowDefinitions[arrowType] = fun;\n// };" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/svgDraw.js", - "name": "./src/diagrams/sequence/svgDraw.js", - "index": 70, - "index2": 67, - "size": 15081, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/sequence/sequenceRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "name": "./src/diagrams/sequence/sequenceRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1532, - "building": 996, - "dependencies": 1 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "2:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "152:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "228:13-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "234:17-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "235:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:17-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "284:16-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "299:2-10" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "385:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "474:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "475:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "476:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "486:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "517:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "530:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "543:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "562:8-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/sequence/sequenceRenderer.js", - "module": "./src/diagrams/sequence/sequenceRenderer.js", - "moduleName": "./src/diagrams/sequence/sequenceRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "581:8-15" - } - ], - "usedExports": [ - "default", - "drawText" - ], - "providedExports": [ - "drawRect", - "drawText", - "drawLabel", - "drawActor", - "anchorElement", - "drawActivation", - "drawLoop", - "drawBackgroundRect", - "insertArrowHead", - "insertSequenceNumber", - "insertArrowCrossHead", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import common from '../common/common';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawText = function drawText(elem, textData) {\n var prevTextHeight = 0,\n textHeight = 0;\n var lines = textData.wrap ? textData.text.split(common.lineBreakRegex) : [textData.text.replace(common.lineBreakRegex, ' ')];\n var textElems = [];\n var dy = 0;\n\n var yfunc = function yfunc() {\n return textData.y;\n };\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n switch (textData.valign) {\n case 'top':\n case 'start':\n yfunc = function yfunc() {\n return Math.round(textData.y + textData.textMargin);\n };\n\n break;\n\n case 'middle':\n case 'center':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2);\n };\n\n break;\n\n case 'bottom':\n case 'end':\n yfunc = function yfunc() {\n return Math.round(textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin);\n };\n\n break;\n }\n }\n\n if (typeof textData.anchor !== 'undefined' && typeof textData.textMargin !== 'undefined' && typeof textData.width !== 'undefined') {\n switch (textData.anchor) {\n case 'left':\n case 'start':\n textData.x = Math.round(textData.x + textData.textMargin);\n textData.anchor = 'start';\n textData.dominantBaseline = 'text-after-edge';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'middle':\n case 'center':\n textData.x = Math.round(textData.x + textData.width / 2);\n textData.anchor = 'middle';\n textData.dominantBaseline = 'middle';\n textData.alignmentBaseline = 'middle';\n break;\n\n case 'right':\n case 'end':\n textData.x = Math.round(textData.x + textData.width - textData.textMargin);\n textData.anchor = 'end';\n textData.dominantBaseline = 'text-before-edge';\n textData.alignmentBaseline = 'middle';\n break;\n }\n }\n\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n\n if (typeof textData.textMargin !== 'undefined' && textData.textMargin === 0 && typeof textData.fontSize !== 'undefined') {\n dy = i * textData.fontSize;\n }\n\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', yfunc());\n\n if (typeof textData.anchor !== 'undefined') {\n textElem.attr('text-anchor', textData.anchor).attr('dominant-baseline', textData.dominantBaseline).attr('alignment-baseline', textData.alignmentBaseline);\n }\n\n if (typeof textData.fontFamily !== 'undefined') {\n textElem.style('font-family', textData.fontFamily);\n }\n\n if (typeof textData.fontSize !== 'undefined') {\n textElem.style('font-size', textData.fontSize);\n }\n\n if (typeof textData.fontWeight !== 'undefined') {\n textElem.style('font-weight', textData.fontWeight);\n }\n\n if (typeof textData.fill !== 'undefined') {\n textElem.attr('fill', textData.fill);\n }\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n if (typeof textData.dy !== 'undefined') {\n textElem.attr('dy', textData.dy);\n } else if (dy !== 0) {\n textElem.attr('dy', dy);\n }\n\n if (textData.tspan) {\n var span = textElem.append('tspan');\n span.attr('x', textData.x);\n\n if (typeof textData.fill !== 'undefined') {\n span.attr('fill', textData.fill);\n }\n\n span.text(line);\n } else {\n textElem.text(line);\n }\n\n if (typeof textData.valign !== 'undefined' && typeof textData.textMargin !== 'undefined' && textData.textMargin > 0) {\n textHeight += (textElem._groups || textElem)[0][0].getBBox().height;\n prevTextHeight = textHeight;\n }\n\n textElems.push(textElem);\n }\n\n return textElems;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.height / 2;\n drawText(elem, txtObject);\n return polygon;\n};\nvar actorCnt = -1;\n/**\n * Draws an actor in the diagram with the attached line\n * @param elem - The diagram we'll draw to.\n * @param actor - The actor to draw.\n * @param conf - drawText implementation discriminator object\n */\n\nexport var drawActor = function drawActor(elem, actor, conf) {\n var center = actor.x + actor.width / 2;\n var g = elem.append('g');\n\n if (actor.y === 0) {\n actorCnt++;\n g.append('line').attr('id', 'actor' + actorCnt).attr('x1', center).attr('y1', 5).attr('x2', center).attr('y2', 2000).attr('class', 'actor-line').attr('stroke-width', '0.5px').attr('stroke', '#999');\n }\n\n var rect = getNoteRect();\n rect.x = actor.x;\n rect.y = actor.y;\n rect.fill = '#eaeaea';\n rect.width = actor.width;\n rect.height = actor.height;\n rect.class = 'actor';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(actor.description, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'actor'\n }, conf);\n};\nexport var anchorElement = function anchorElement(elem) {\n return elem.append('g');\n};\n/**\n * Draws an activation in the diagram\n * @param elem - element to append activation rect.\n * @param bounds - activation box bounds.\n * @param verticalPos - precise y cooridnate of bottom activation box edge.\n * @param conf - sequence diagram config object.\n * @param actorActivations - number of activations on the actor.\n */\n\nexport var drawActivation = function drawActivation(elem, bounds, verticalPos, conf, actorActivations) {\n var rect = getNoteRect();\n var g = bounds.anchored;\n rect.x = bounds.startx;\n rect.y = bounds.starty;\n rect.class = 'activation' + actorActivations % 3; // Will evaluate to 0, 1 or 2\n\n rect.width = bounds.stopx - bounds.startx;\n rect.height = verticalPos - bounds.starty;\n drawRect(g, rect);\n};\n/**\n * Draws a loop in the diagram\n * @param elem - elemenet to append the loop to.\n * @param loopModel - loopModel of the given loop.\n * @param labelText - Text within the loop.\n * @param conf - diagrom configuration\n */\n\nexport var drawLoop = function drawLoop(elem, loopModel, labelText, conf) {\n var boxMargin = conf.boxMargin,\n boxTextMargin = conf.boxTextMargin,\n labelBoxHeight = conf.labelBoxHeight,\n labelBoxWidth = conf.labelBoxWidth,\n fontFamily = conf.messageFontFamily,\n fontSize = conf.messageFontSize,\n fontWeight = conf.messageFontWeight;\n var g = elem.append('g');\n\n var drawLoopLine = function drawLoopLine(startx, starty, stopx, stopy) {\n return g.append('line').attr('x1', startx).attr('y1', starty).attr('x2', stopx).attr('y2', stopy).attr('class', 'loopLine');\n };\n\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);\n drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);\n drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);\n\n if (typeof loopModel.sections !== 'undefined') {\n loopModel.sections.forEach(function (item) {\n drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style('stroke-dasharray', '3, 3');\n });\n }\n\n var txt = getTextObj();\n txt.text = labelText;\n txt.x = loopModel.startx;\n txt.y = loopModel.starty;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.width = labelBoxWidth || 50;\n txt.height = labelBoxHeight || 20;\n txt.textMargin = boxTextMargin;\n txt.class = 'labelText';\n drawLabel(g, txt);\n txt = getTextObj();\n txt.text = loopModel.title;\n txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.starty + boxMargin + boxTextMargin;\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.textMargin = boxTextMargin;\n txt.class = 'loopText';\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = true;\n var textElem = drawText(g, txt);\n\n if (typeof loopModel.sectionTitles !== 'undefined') {\n loopModel.sectionTitles.forEach(function (item, idx) {\n if (item.message) {\n txt.text = item.message;\n txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;\n txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;\n txt.class = 'loopText';\n txt.anchor = 'middle';\n txt.valign = 'middle';\n txt.tspan = false;\n txt.fontFamily = fontFamily;\n txt.fontSize = fontSize;\n txt.fontWeight = fontWeight;\n txt.wrap = loopModel.wrap;\n textElem = drawText(g, txt);\n var sectionHeight = Math.round(textElem.map(function (te) {\n return (te._groups || te)[0][0].getBBox().height;\n }).reduce(function (acc, curr) {\n return acc + curr;\n }));\n loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);\n }\n });\n }\n\n loopModel.height = Math.round(loopModel.stopy - loopModel.starty);\n return g;\n};\n/**\n * Draws a background rectangle\n * @param elem diagram (reference for bounds)\n * @param bounds shape of the rectangle\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowHead = function insertArrowHead(elem) {\n elem.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n/**\n * Setup node number. The result is appended to the svg.\n */\n\nexport var insertSequenceNumber = function insertSequenceNumber(elem) {\n elem.append('defs').append('marker').attr('id', 'sequencenumber').attr('refX', 15).attr('refY', 15).attr('markerWidth', 60).attr('markerHeight', 40).attr('orient', 'auto').append('circle').attr('cx', 15).attr('cy', 15).attr('r', 6); // .style(\"fill\", '#f00');\n};\n/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\n\nexport var insertArrowCrossHead = function insertArrowCrossHead(elem) {\n var defs = elem.append('defs');\n var marker = defs.append('marker').attr('id', 'crosshead').attr('markerWidth', 15).attr('markerHeight', 8).attr('orient', 'auto').attr('refX', 16).attr('refY', 4); // The arrow\n\n marker.append('path').attr('fill', 'black').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 9,2 V 6 L16,4 Z'); // The cross\n\n marker.append('path').attr('fill', 'none').attr('stroke', '#000000').style('stroke-dasharray', '0, 0').attr('stroke-width', '1px').attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); // this is actual shape for arrowhead\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n anchor: undefined,\n style: '#666',\n width: undefined,\n height: undefined,\n textMargin: 0,\n rx: 0,\n ry: 0,\n tspan: true,\n valign: undefined\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n fill: '#EDF2AE',\n stroke: '#666',\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf) {\n var actorFontSize = conf.actorFontSize,\n actorFontFamily = conf.actorFontFamily,\n actorFontWeight = conf.actorFontWeight;\n var lines = content.split(common.lineBreakRegex);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).style('text-anchor', 'middle').style('font-size', actorFontSize).style('font-weight', actorFontWeight).style('font-family', actorFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf) {\n var s = g.append('switch');\n var f = s.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height);\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').text(content);\n byTspan(content, s, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (fromTextAttrsDict.hasOwnProperty(key)) {\n // eslint-disable-line\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nexport default {\n drawRect: drawRect,\n drawText: drawText,\n drawLabel: drawLabel,\n drawActor: drawActor,\n anchorElement: anchorElement,\n drawActivation: drawActivation,\n drawLoop: drawLoop,\n drawBackgroundRect: drawBackgroundRect,\n insertArrowHead: insertArrowHead,\n insertSequenceNumber: insertSequenceNumber,\n insertArrowCrossHead: insertArrowCrossHead,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/svgDraw.js", - "name": "./src/diagrams/class/svgDraw.js", - "index": 73, - "index2": 70, - "size": 11509, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/class/classRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "name": "./src/diagrams/class/classRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1802, - "building": 543, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "7:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "82:15-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/class/classRenderer.js", - "module": "./src/diagrams/class/classRenderer.js", - "moduleName": "./src/diagrams/class/classRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "108:6-13" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawEdge", - "drawClass", - "parseMember", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport { lookUpDomId, relationType } from './classDb';\nimport utils from '../../utils';\nimport { logger } from '../../logger';\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation, conf) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case relationType.AGGREGATION:\n return 'aggregation';\n\n case relationType.EXTENSION:\n return 'extension';\n\n case relationType.COMPOSITION:\n return 'composition';\n\n case relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'relation');\n var url = '';\n\n if (conf.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n if (relation.relation.lineType == 1) {\n svgPath.attr('class', 'relation dashed-line');\n }\n\n if (relation.relation.type1 !== 'none') {\n svgPath.attr('marker-start', 'url(' + url + '#' + getRelationType(relation.relation.type1) + 'Start' + ')');\n }\n\n if (relation.relation.type2 !== 'none') {\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(relation.relation.type2) + 'End' + ')');\n }\n\n var x, y;\n var l = path.points.length; // Calculate Label position\n\n var labelPosition = utils.calcLabelPosition(path.points);\n x = labelPosition.x;\n y = labelPosition.y;\n var p1_card_x, p1_card_y;\n var p2_card_x, p2_card_y;\n\n if (l % 2 !== 0 && l > 1) {\n var cardinality_1_point = utils.calcCardinalityPosition(relation.relation.type1 !== 'none', path.points, path.points[0]);\n var cardinality_2_point = utils.calcCardinalityPosition(relation.relation.type2 !== 'none', path.points, path.points[l - 1]);\n logger.debug('cardinality_1_point ' + JSON.stringify(cardinality_1_point));\n logger.debug('cardinality_2_point ' + JSON.stringify(cardinality_2_point));\n p1_card_x = cardinality_1_point.x;\n p1_card_y = cardinality_1_point.y;\n p2_card_x = cardinality_2_point.x;\n p2_card_y = cardinality_2_point.y;\n }\n\n if (typeof relation.title !== 'undefined') {\n var g = elem.append('g').attr('class', 'classLabel');\n var label = g.append('text').attr('class', 'label').attr('x', x).attr('y', y).attr('fill', 'red').attr('text-anchor', 'middle').text(relation.title);\n window.label = label;\n var bounds = label.node().getBBox();\n g.insert('rect', ':first-child').attr('class', 'box').attr('x', bounds.x - conf.padding / 2).attr('y', bounds.y - conf.padding / 2).attr('width', bounds.width + conf.padding).attr('height', bounds.height + conf.padding);\n }\n\n logger.info('Rendering relation ' + JSON.stringify(relation));\n\n if (typeof relation.relationTitle1 !== 'undefined' && relation.relationTitle1 !== 'none') {\n var _g = elem.append('g').attr('class', 'cardinality');\n\n _g.append('text').attr('class', 'type1').attr('x', p1_card_x).attr('y', p1_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle1);\n }\n\n if (typeof relation.relationTitle2 !== 'undefined' && relation.relationTitle2 !== 'none') {\n var _g2 = elem.append('g').attr('class', 'cardinality');\n\n _g2.append('text').attr('class', 'type2').attr('x', p2_card_x).attr('y', p2_card_y).attr('fill', 'black').attr('font-size', '6').text(relation.relationTitle2);\n }\n\n edgeCount++;\n};\nexport var drawClass = function drawClass(elem, classDef, conf) {\n logger.info('Rendering class ' + classDef);\n var cssClassStr = 'classGroup ';\n\n if (classDef.cssClasses.length > 0) {\n cssClassStr = cssClassStr + classDef.cssClasses.join(' ');\n }\n\n var id = classDef.id;\n var classInfo = {\n id: id,\n label: classDef.id,\n width: 0,\n height: 0\n }; // add class group\n\n var g = elem.append('g').attr('id', lookUpDomId(id)).attr('class', cssClassStr); // add title\n\n var title;\n\n if (classDef.link) {\n title = g.append('svg:a').attr('xlink:href', classDef.link).attr('target', '_blank').append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } else {\n title = g.append('text').attr('y', conf.textHeight + conf.padding).attr('x', 0);\n } // add annotations\n\n\n var isFirst = true;\n classDef.annotations.forEach(function (member) {\n var titleText2 = title.append('tspan').text('«' + member + '»');\n if (!isFirst) titleText2.attr('dy', conf.textHeight);\n isFirst = false;\n });\n var classTitleString = classDef.id;\n\n if (classDef.type !== undefined && classDef.type !== '') {\n classTitleString += '<' + classDef.type + '>';\n }\n\n var classTitle = title.append('tspan').text(classTitleString).attr('class', 'title'); // If class has annotations the title needs to have an offset of the text height\n\n if (!isFirst) classTitle.attr('dy', conf.textHeight);\n var titleHeight = title.node().getBBox().height;\n var membersLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin / 2).attr('y2', conf.padding + titleHeight + conf.dividerMargin / 2);\n var members = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + conf.dividerMargin + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.members.forEach(function (member) {\n addTspan(members, member, isFirst, conf);\n isFirst = false;\n });\n var membersBox = members.node().getBBox();\n var methodsLine = g.append('line') // text label for the x axis\n .attr('x1', 0).attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height).attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height);\n var methods = g.append('text') // text label for the x axis\n .attr('x', conf.padding).attr('y', titleHeight + 2 * conf.dividerMargin + membersBox.height + conf.textHeight).attr('fill', 'white').attr('class', 'classText');\n isFirst = true;\n classDef.methods.forEach(function (method) {\n addTspan(methods, method, isFirst, conf);\n isFirst = false;\n });\n var classBox = g.node().getBBox();\n var rect = g.insert('rect', ':first-child').attr('x', 0).attr('y', 0).attr('width', classBox.width + 2 * conf.padding).attr('height', classBox.height + conf.padding + 0.5 * conf.dividerMargin);\n var rectWidth = rect.node().getBBox().width; // Center title\n // We subtract the width of each text element from the class box width and divide it by 2\n\n title.node().childNodes.forEach(function (x) {\n x.setAttribute('x', (rectWidth - x.getBBox().width) / 2);\n });\n\n if (classDef.tooltip) {\n title.insert('title').text(classDef.tooltip);\n }\n\n membersLine.attr('x2', rectWidth);\n methodsLine.attr('x2', rectWidth);\n classInfo.width = rectWidth;\n classInfo.height = classBox.height + conf.padding + 0.5 * conf.dividerMargin;\n return classInfo;\n};\nexport var parseMember = function parseMember(text) {\n var fieldRegEx = /(\\+|-|~|#)?(\\w+)(~\\w+~|\\[\\])?\\s+(\\w+)/;\n var methodRegEx = /^([+|\\-|~|#])?(\\w+) *\\( *(.*)\\) *(\\*|\\$)? *(\\w*[~|[\\]]*\\s*\\w*~?)$/;\n var fieldMatch = text.match(fieldRegEx);\n var methodMatch = text.match(methodRegEx);\n\n if (fieldMatch && !methodMatch) {\n return buildFieldDisplay(fieldMatch);\n } else if (methodMatch) {\n return buildMethodDisplay(methodMatch);\n } else {\n return buildLegacyDisplay(text);\n }\n};\n\nvar buildFieldDisplay = function buildFieldDisplay(parsedText) {\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var fieldType = parsedText[2] ? parsedText[2].trim() : '';\n var genericType = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var fieldName = parsedText[4] ? parsedText[4].trim() : '';\n displayText = visibility + fieldType + genericType + ' ' + fieldName;\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: ''\n };\n};\n\nvar buildMethodDisplay = function buildMethodDisplay(parsedText) {\n var cssStyle = '';\n var displayText = '';\n\n try {\n var visibility = parsedText[1] ? parsedText[1].trim() : '';\n var methodName = parsedText[2] ? parsedText[2].trim() : '';\n var parameters = parsedText[3] ? parseGenericTypes(parsedText[3].trim()) : '';\n var classifier = parsedText[4] ? parsedText[4].trim() : '';\n var returnType = parsedText[5] ? ' : ' + parseGenericTypes(parsedText[5]).trim() : '';\n displayText = visibility + methodName + '(' + parameters + ')' + returnType;\n cssStyle = parseClassifier(classifier);\n } catch (err) {\n displayText = parsedText;\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar buildLegacyDisplay = function buildLegacyDisplay(text) {\n // if for some reason we dont have any match, use old format to parse text\n var displayText = '';\n var cssStyle = '';\n var memberText = '';\n var returnType = '';\n var methodStart = text.indexOf('(');\n var methodEnd = text.indexOf(')');\n\n if (methodStart > 1 && methodEnd > methodStart && methodEnd <= text.length) {\n var visibility = '';\n var methodName = '';\n var firstChar = text.substring(0, 1);\n\n if (firstChar.match(/\\w/)) {\n methodName = text.substring(0, methodStart).trim();\n } else {\n if (firstChar.match(/\\+|-|~|#/)) {\n visibility = firstChar;\n }\n\n methodName = text.substring(1, methodStart).trim();\n }\n\n var parameters = text.substring(methodStart + 1, methodEnd);\n var classifier = text.substring(methodEnd + 1, 1);\n cssStyle = parseClassifier(classifier);\n displayText = visibility + methodName + '(' + parseGenericTypes(parameters.trim()) + ')';\n\n if (methodEnd < memberText.length) {\n returnType = text.substring(methodEnd + 2).trim();\n\n if (returnType !== '') {\n returnType = ' : ' + parseGenericTypes(returnType);\n }\n }\n } else {\n // finally - if all else fails, just send the text back as written (other than parsing for generic types)\n displayText = parseGenericTypes(text);\n }\n\n return {\n displayText: displayText,\n cssStyle: cssStyle\n };\n};\n\nvar addTspan = function addTspan(textEl, txt, isFirst, conf) {\n var member = parseMember(txt);\n var tSpan = textEl.append('tspan').attr('x', conf.padding).text(member.displayText);\n\n if (member.cssStyle !== '') {\n tSpan.attr('style', member.cssStyle);\n }\n\n if (!isFirst) {\n tSpan.attr('dy', conf.textHeight);\n }\n};\n\nvar parseGenericTypes = function parseGenericTypes(text) {\n var cleanedText = text;\n\n if (text.indexOf('~') != -1) {\n cleanedText = cleanedText.replace('~', '<');\n cleanedText = cleanedText.replace('~', '>');\n return parseGenericTypes(cleanedText);\n } else {\n return cleanedText;\n }\n};\n\nvar parseClassifier = function parseClassifier(classifier) {\n switch (classifier) {\n case '*':\n return 'font-style:italic;';\n\n case '$':\n return 'text-decoration:underline;';\n\n default:\n return '';\n }\n};\n\nexport default {\n drawClass: drawClass,\n drawEdge: drawEdge,\n parseMember: parseMember\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "index": 75, - "index2": 73, - "size": 15372, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/stateRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1735, - "building": 602, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes", - "loc": "9:0-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "142:14-28" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "157:13-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "168:17-26" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "module": "./src/diagrams/state/stateRenderer.js", - "moduleName": "./src/diagrams/state/stateRenderer.js", - "type": "harmony import specifier", - "userRequest": "./shapes", - "loc": "235:6-14" - } - ], - "usedExports": [ - "addTitleAndBox", - "drawState", - "drawEdge" - ], - "providedExports": [ - "drawStartState", - "drawDivider", - "drawSimpleState", - "drawDescrState", - "addTitleAndBox", - "drawText", - "drawNote", - "drawState", - "drawEdge" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { line, curveBasis } from 'd3';\nimport idCache from './id-cache.js';\nimport stateDb from './stateDb';\nimport utils from '../../utils';\nimport common from '../common/common';\nimport { getConfig } from '../../config';\nimport { logger } from '../../logger'; // let conf;\n\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawStartState = function drawStartState(g) {\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit);\n};\n/**\n * Draws a start state as a black circle\n */\n\nexport var drawDivider = function drawDivider(g) {\n return g.append('line').style('stroke', 'grey').style('stroke-dasharray', '3').attr('x1', getConfig().state.textHeight).attr('class', 'divider').attr('x2', getConfig().state.textHeight * 2).attr('y1', 0).attr('y2', 0);\n};\n/**\n * Draws a an end state as a black circle\n */\n\nexport var drawSimpleState = function drawSimpleState(g, stateDef) {\n var state = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 2 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var classBox = state.node().getBBox();\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', classBox.width + 2 * getConfig().state.padding).attr('height', classBox.height + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return state;\n};\n/**\n * Draws a state with descriptions\n * @param {*} g\n * @param {*} stateDef\n */\n\nexport var drawDescrState = function drawDescrState(g, stateDef) {\n var addTspan = function addTspan(textEl, txt, isFirst) {\n var tSpan = textEl.append('tspan').attr('x', 2 * getConfig().state.padding).text(txt);\n\n if (!isFirst) {\n tSpan.attr('dy', getConfig().state.textHeight);\n }\n };\n\n var title = g.append('text').attr('x', 2 * getConfig().state.padding).attr('y', getConfig().state.textHeight + 1.3 * getConfig().state.padding).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.descriptions[0]);\n var titleBox = title.node().getBBox();\n var titleHeight = titleBox.height;\n var description = g.append('text') // text label for the x axis\n .attr('x', getConfig().state.padding).attr('y', titleHeight + getConfig().state.padding * 0.4 + getConfig().state.dividerMargin + getConfig().state.textHeight).attr('class', 'state-description');\n var isFirst = true;\n var isSecond = true;\n stateDef.descriptions.forEach(function (descr) {\n if (!isFirst) {\n addTspan(description, descr, isSecond);\n isSecond = false;\n }\n\n isFirst = false;\n });\n var descrLine = g.append('line') // text label for the x axis\n .attr('x1', getConfig().state.padding).attr('y1', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('y2', getConfig().state.padding + titleHeight + getConfig().state.dividerMargin / 2).attr('class', 'descr-divider');\n var descrBox = description.node().getBBox();\n var width = Math.max(descrBox.width, titleBox.width);\n descrLine.attr('x2', width + 3 * getConfig().state.padding); // const classBox = title.node().getBBox();\n\n g.insert('rect', ':first-child').attr('x', getConfig().state.padding).attr('y', getConfig().state.padding).attr('width', width + 2 * getConfig().state.padding).attr('height', descrBox.height + titleHeight + 2 * getConfig().state.padding).attr('rx', getConfig().state.radius);\n return g;\n};\n/**\n * Adds the creates a box around the existing content and adds a\n * panel for the id on top of the content.\n */\n\n/**\n * Function that creates an title row and a frame around a substate for a composit state diagram.\n * The function returns a new d3 svg object with updated width and height properties;\n * @param {*} g The d3 svg object for the substate to framed\n * @param {*} stateDef The info about the\n */\n\nexport var addTitleAndBox = function addTitleAndBox(g, stateDef, altBkg) {\n var pad = getConfig().state.padding;\n var dblPad = 2 * getConfig().state.padding;\n var orgBox = g.node().getBBox();\n var orgWidth = orgBox.width;\n var orgX = orgBox.x;\n var title = g.append('text').attr('x', 0).attr('y', getConfig().state.titleShift).attr('font-size', getConfig().state.fontSize).attr('class', 'state-title').text(stateDef.id);\n var titleBox = title.node().getBBox();\n var titleWidth = titleBox.width + dblPad;\n var width = Math.max(titleWidth, orgWidth); // + dblPad;\n\n if (width === orgWidth) {\n width = width + dblPad;\n }\n\n var startX; // const lineY = 1 - getConfig().state.textHeight;\n // const descrLine = g\n // .append('line') // text label for the x axis\n // .attr('x1', 0)\n // .attr('y1', lineY)\n // .attr('y2', lineY)\n // .attr('class', 'descr-divider');\n\n var graphBox = g.node().getBBox(); // console.warn(width / 2, titleWidth / 2, getConfig().state.padding, orgBox);\n // descrLine.attr('x2', graphBox.width + getConfig().state.padding);\n\n if (stateDef.doc) {// cnsole.warn(\n // stateDef.id,\n // 'orgX: ',\n // orgX,\n // 'width: ',\n // width,\n // 'titleWidth: ',\n // titleWidth,\n // 'orgWidth: ',\n // orgWidth,\n // 'width',\n // width\n // );\n }\n\n startX = orgX - pad;\n\n if (titleWidth > orgWidth) {\n startX = (orgWidth - width) / 2 + pad;\n }\n\n if (Math.abs(orgX - graphBox.x) < pad) {\n if (titleWidth > orgWidth) {\n startX = orgX - (titleWidth - orgWidth) / 2;\n }\n }\n\n var lineY = 1 - getConfig().state.textHeight; // White color\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', lineY).attr('class', altBkg ? 'alt-composit' : 'composit').attr('width', width).attr('height', graphBox.height + getConfig().state.textHeight + getConfig().state.titleShift + 1).attr('rx', '0');\n title.attr('x', startX + pad);\n if (titleWidth <= orgWidth) title.attr('x', orgX + (width - dblPad) / 2 - titleWidth / 2 + pad); // Title background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width) // Just needs to be higher then the descr line, will be clipped by the white color box\n .attr('height', getConfig().state.textHeight * 3).attr('rx', getConfig().state.radius); // Full background\n\n g.insert('rect', ':first-child').attr('x', startX).attr('y', getConfig().state.titleShift - getConfig().state.textHeight - getConfig().state.padding).attr('width', width).attr('height', graphBox.height + 3 + 2 * getConfig().state.textHeight).attr('rx', getConfig().state.radius);\n return g;\n};\n\nvar drawEndState = function drawEndState(g) {\n g.append('circle').style('stroke', 'black').style('fill', 'white').attr('r', getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + getConfig().state.miniPadding);\n return g.append('circle').style('stroke', 'black').style('fill', 'black').attr('r', getConfig().state.sizeUnit).attr('cx', getConfig().state.padding + getConfig().state.sizeUnit + 2).attr('cy', getConfig().state.padding + getConfig().state.sizeUnit + 2);\n};\n\nvar drawForkJoinState = function drawForkJoinState(g, stateDef) {\n var width = getConfig().state.forkWidth;\n var height = getConfig().state.forkHeight;\n\n if (stateDef.parentId) {\n var tmp = width;\n width = height;\n height = tmp;\n }\n\n return g.append('rect').style('stroke', 'black').style('fill', 'black').attr('width', width).attr('height', height).attr('x', getConfig().state.padding).attr('y', getConfig().state.padding);\n};\n\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(common.lineBreakRegex, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.style('text-anchor', textData.anchor);\n textElem.attr('fill', textData.fill);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.attr('fill', textData.fill);\n span.text(nText);\n return textElem;\n};\n\nvar _drawLongText = function _drawLongText(_text, x, y, g) {\n var textHeight = 0;\n var textElem = g.append('text');\n textElem.style('text-anchor', 'start');\n textElem.attr('class', 'noteText');\n\n var text = _text.replace(/\\r\\n/g, '
');\n\n text = text.replace(/\\n/g, '
');\n var lines = text.split(common.lineBreakRegex);\n var tHeight = 1.25 * getConfig().state.noteMargin;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = lines[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var _line = _step.value;\n\n var txt = _line.trim();\n\n if (txt.length > 0) {\n var span = textElem.append('tspan');\n span.text(txt);\n\n if (tHeight === 0) {\n var textBounds = span.node().getBBox();\n tHeight += textBounds.height;\n } // console.warn('textBounds', textBounds);\n\n\n textHeight += tHeight;\n span.attr('x', x + getConfig().state.noteMargin);\n span.attr('y', y + textHeight + 1.25 * getConfig().state.noteMargin);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return {\n textWidth: textElem.node().getBBox().width,\n textHeight: textHeight\n };\n};\n/**\n * Draws a note to the diagram\n * @param text - The text of the given note.\n * @param g - The element the note is attached to.\n */\n\n\nexport var drawNote = function drawNote(text, g) {\n g.attr('class', 'state-note');\n var note = g.append('rect').attr('x', 0).attr('y', getConfig().state.padding);\n var rectElem = g.append('g');\n\n var _drawLongText2 = _drawLongText(text, 0, 0, rectElem),\n textWidth = _drawLongText2.textWidth,\n textHeight = _drawLongText2.textHeight;\n\n note.attr('height', textHeight + 2 * getConfig().state.noteMargin);\n note.attr('width', textWidth + getConfig().state.noteMargin * 2);\n return note;\n};\n/**\n * Starting point for drawing a state. The function finds out the specifics\n * about the state and renders with approprtiate function.\n * @param {*} elem\n * @param {*} stateDef\n */\n\nexport var drawState = function drawState(elem, stateDef) {\n var id = stateDef.id;\n var stateInfo = {\n id: id,\n label: stateDef.id,\n width: 0,\n height: 0\n };\n var g = elem.append('g').attr('id', id).attr('class', 'stateGroup');\n if (stateDef.type === 'start') drawStartState(g);\n if (stateDef.type === 'end') drawEndState(g);\n if (stateDef.type === 'fork' || stateDef.type === 'join') drawForkJoinState(g, stateDef);\n if (stateDef.type === 'note') drawNote(stateDef.note.text, g);\n if (stateDef.type === 'divider') drawDivider(g);\n if (stateDef.type === 'default' && stateDef.descriptions.length === 0) drawSimpleState(g, stateDef);\n if (stateDef.type === 'default' && stateDef.descriptions.length > 0) drawDescrState(g, stateDef);\n var stateBox = g.node().getBBox();\n stateInfo.width = stateBox.width + 2 * getConfig().state.padding;\n stateInfo.height = stateBox.height + 2 * getConfig().state.padding;\n idCache.set(id, stateInfo); // stateCnt++;\n\n return stateInfo;\n};\nvar edgeCount = 0;\nexport var drawEdge = function drawEdge(elem, path, relation) {\n var getRelationType = function getRelationType(type) {\n switch (type) {\n case stateDb.relationType.AGGREGATION:\n return 'aggregation';\n\n case stateDb.relationType.EXTENSION:\n return 'extension';\n\n case stateDb.relationType.COMPOSITION:\n return 'composition';\n\n case stateDb.relationType.DEPENDENCY:\n return 'dependency';\n }\n };\n\n path.points = path.points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // The data for our line\n\n var lineData = path.points; // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis);\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', 'edge' + edgeCount).attr('class', 'transition');\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n svgPath.attr('marker-end', 'url(' + url + '#' + getRelationType(stateDb.relationType.DEPENDENCY) + 'End' + ')');\n\n if (typeof relation.title !== 'undefined') {\n var label = elem.append('g').attr('class', 'stateLabel');\n\n var _utils$calcLabelPosit = utils.calcLabelPosition(path.points),\n x = _utils$calcLabelPosit.x,\n y = _utils$calcLabelPosit.y;\n\n var rows = common.getRows(relation.title); // console.warn(rows);\n\n var titleHeight = 0;\n var titleRows = [];\n var maxWidth = 0;\n var minX = 0;\n\n for (var i = 0; i <= rows.length; i++) {\n var title = label.append('text').attr('text-anchor', 'middle').text(rows[i]).attr('x', x).attr('y', y + titleHeight);\n var boundstmp = title.node().getBBox();\n maxWidth = Math.max(maxWidth, boundstmp.width);\n minX = Math.min(minX, boundstmp.x);\n logger.info(boundstmp.x, x, y + titleHeight);\n\n if (titleHeight === 0) {\n var titleBox = title.node().getBBox();\n titleHeight = titleBox.height;\n logger.info('Title height', titleHeight, y);\n }\n\n titleRows.push(title);\n }\n\n var boxHeight = titleHeight * rows.length;\n\n if (rows.length > 1) {\n var heightAdj = (rows.length - 1) * titleHeight * 0.5;\n titleRows.forEach(function (title, i) {\n return title.attr('y', y + i * titleHeight - heightAdj);\n });\n boxHeight = titleHeight * rows.length;\n }\n\n var bounds = label.node().getBBox();\n label.insert('rect', ':first-child').attr('class', 'box').attr('x', x - maxWidth / 2 - getConfig().state.padding / 2).attr('y', y - boxHeight / 2 - getConfig().state.padding / 2 - 3.5).attr('width', maxWidth + getConfig().state.padding).attr('height', boxHeight + getConfig().state.padding);\n logger.info(bounds); //label.attr('transform', '0 -' + (bounds.y / 2));\n // Debug points\n // path.points.forEach(point => {\n // g.append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n // g.append('circle')\n // .style('stroke', 'blue')\n // .style('fill', 'blue')\n // .attr('r', 1)\n // .attr('cx', x)\n // .attr('cy', y);\n }\n\n edgeCount++;\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erMarkers.js", - "name": "./src/diagrams/er/erMarkers.js", - "index": 82, - "index2": 79, - "size": 3422, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/er/erRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "name": "./src/diagrams/er/erRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1517, - "building": 508 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./erMarkers", - "loc": "8:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "133:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "137:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "141:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "145:54-63" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "151:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "155:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "159:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "163:56-65" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/er/erRenderer.js", - "module": "./src/diagrams/er/erRenderer.js", - "moduleName": "./src/diagrams/er/erRenderer.js", - "type": "harmony import specifier", - "userRequest": "./erMarkers", - "loc": "202:2-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "var ERMarkers = {\n ONLY_ONE_START: 'ONLY_ONE_START',\n ONLY_ONE_END: 'ONLY_ONE_END',\n ZERO_OR_ONE_START: 'ZERO_OR_ONE_START',\n ZERO_OR_ONE_END: 'ZERO_OR_ONE_END',\n ONE_OR_MORE_START: 'ONE_OR_MORE_START',\n ONE_OR_MORE_END: 'ONE_OR_MORE_END',\n ZERO_OR_MORE_START: 'ZERO_OR_MORE_START',\n ZERO_OR_MORE_END: 'ZERO_OR_MORE_END'\n};\n/**\n * Put the markers into the svg DOM for later use with edge paths\n */\n\nvar insertMarkers = function insertMarkers(elem, conf) {\n var marker;\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18 M15,0 L15,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONLY_ONE_END).attr('refX', 18).attr('refY', 9).attr('markerWidth', 18).attr('markerHeight', 18).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,0 L3,18 M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_START).attr('refX', 0).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 21).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M9,0 L9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_ONE_END).attr('refX', 30).attr('refY', 9).attr('markerWidth', 30).attr('markerHeight', 18).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 9).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,0 L21,18');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27');\n elem.append('defs').append('marker').attr('id', ERMarkers.ONE_OR_MORE_END).attr('refX', 27).attr('refY', 18).attr('markerWidth', 45).attr('markerHeight', 36).attr('orient', 'auto').append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_START).attr('refX', 18).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 48).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18');\n marker = elem.append('defs').append('marker').attr('id', ERMarkers.ZERO_OR_MORE_END).attr('refX', 39).attr('refY', 18).attr('markerWidth', 57).attr('markerHeight', 36).attr('orient', 'auto');\n marker.append('circle').attr('stroke', conf.stroke).attr('fill', 'white').attr('cx', 9).attr('cy', 18).attr('r', 6);\n marker.append('path').attr('stroke', conf.stroke).attr('fill', 'none').attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18');\n return;\n};\n\nexport default {\n ERMarkers: ERMarkers,\n insertMarkers: insertMarkers\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/svgDraw.js", - "name": "./src/diagrams/user-journey/svgDraw.js", - "index": 84, - "index2": 81, - "size": 9389, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "issuerId": null, - "issuerName": "./src/diagrams/user-journey/journeyRenderer.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "name": "./src/diagrams/user-journey/journeyRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - } - ], - "profile": { - "factory": 1472, - "building": 637, - "dependencies": 0 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony side effect evaluation", - "userRequest": "./svgDraw", - "loc": "4:0-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "57:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "64:4-11" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "76:2-9" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "227:6-13" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/user-journey/journeyRenderer.js", - "module": "./src/diagrams/user-journey/journeyRenderer.js", - "moduleName": "./src/diagrams/user-journey/journeyRenderer.js", - "type": "harmony import specifier", - "userRequest": "./svgDraw", - "loc": "249:4-11" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "drawRect", - "drawFace", - "drawCircle", - "drawText", - "drawLabel", - "drawSection", - "drawTask", - "drawBackgroundRect", - "getTextObj", - "getNoteRect", - "default" - ], - "optimizationBailout": [], - "depth": 3, - "source": "import { arc as d3arc } from 'd3';\nexport var drawRect = function drawRect(elem, rectData) {\n var rectElem = elem.append('rect');\n rectElem.attr('x', rectData.x);\n rectElem.attr('y', rectData.y);\n rectElem.attr('fill', rectData.fill);\n rectElem.attr('stroke', rectData.stroke);\n rectElem.attr('width', rectData.width);\n rectElem.attr('height', rectData.height);\n rectElem.attr('rx', rectData.rx);\n rectElem.attr('ry', rectData.ry);\n\n if (typeof rectData.class !== 'undefined') {\n rectElem.attr('class', rectData.class);\n }\n\n return rectElem;\n};\nexport var drawFace = function drawFace(element, faceData) {\n var radius = 15;\n var circleElement = element.append('circle').attr('cx', faceData.cx).attr('cy', faceData.cy).attr('fill', '#FFF8DC').attr('stroke', '#999').attr('r', radius).attr('stroke-width', 2).attr('overflow', 'visible');\n var face = element.append('g'); //left eye\n\n face.append('circle').attr('cx', faceData.cx - radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666'); //right eye\n\n face.append('circle').attr('cx', faceData.cx + radius / 3).attr('cy', faceData.cy - radius / 3).attr('r', 1.5).attr('stroke-width', 2).attr('fill', '#666').attr('stroke', '#666');\n\n function smile(face) {\n var arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 2) + ')');\n }\n\n function sad(face) {\n var arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2); //mouth\n\n face.append('path').attr('d', arc).attr('transform', 'translate(' + faceData.cx + ',' + (faceData.cy + 7) + ')');\n }\n\n function ambivalent(face) {\n face.append('line').attr('stroke', 2).attr('x1', faceData.cx - 5).attr('y1', faceData.cy + 7).attr('x2', faceData.cx + 5).attr('y2', faceData.cy + 7).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke', '#666');\n }\n\n if (faceData.score > 3) {\n smile(face);\n } else if (faceData.score < 3) {\n sad(face);\n } else {\n ambivalent(face);\n }\n\n return circleElement;\n};\nexport var drawCircle = function drawCircle(element, circleData) {\n var circleElement = element.append('circle');\n circleElement.attr('cx', circleData.cx);\n circleElement.attr('cy', circleData.cy);\n circleElement.attr('fill', circleData.fill);\n circleElement.attr('stroke', circleData.stroke);\n circleElement.attr('r', circleData.r);\n\n if (typeof circleElement.class !== 'undefined') {\n circleElement.attr('class', circleElement.class);\n }\n\n if (typeof circleData.title !== 'undefined') {\n circleElement.append('title').text(circleData.title);\n }\n\n return circleElement;\n};\nexport var drawText = function drawText(elem, textData) {\n // Remove and ignore br:s\n var nText = textData.text.replace(//gi, ' ');\n var textElem = elem.append('text');\n textElem.attr('x', textData.x);\n textElem.attr('y', textData.y);\n textElem.attr('fill', textData.fill);\n textElem.style('text-anchor', textData.anchor);\n\n if (typeof textData.class !== 'undefined') {\n textElem.attr('class', textData.class);\n }\n\n var span = textElem.append('tspan');\n span.attr('x', textData.x + textData.textMargin * 2);\n span.text(nText);\n return textElem;\n};\nexport var drawLabel = function drawLabel(elem, txtObject) {\n function genPoints(x, y, width, height, cut) {\n return x + ',' + y + ' ' + (x + width) + ',' + y + ' ' + (x + width) + ',' + (y + height - cut) + ' ' + (x + width - cut * 1.2) + ',' + (y + height) + ' ' + x + ',' + (y + height);\n }\n\n var polygon = elem.append('polygon');\n polygon.attr('points', genPoints(txtObject.x, txtObject.y, 50, 20, 7));\n polygon.attr('class', 'labelBox');\n txtObject.y = txtObject.y + txtObject.labelMargin;\n txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;\n drawText(elem, txtObject);\n};\nexport var drawSection = function drawSection(elem, section, conf) {\n var g = elem.append('g');\n var rect = getNoteRect();\n rect.x = section.x;\n rect.y = section.y;\n rect.fill = section.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'journey-section';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n\n _drawTextCandidateFunc(conf)(section.text, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'journey-section'\n }, conf, section.colour);\n};\nvar taskCount = -1;\n/**\n * Draws an actor in the diagram with the attaced line\n * @param elem The HTML element\n * @param task The task to render\n * @param conf The global configuration\n */\n\nexport var drawTask = function drawTask(elem, task, conf) {\n var center = task.x + conf.width / 2;\n var g = elem.append('g');\n taskCount++;\n var maxHeight = 300 + 5 * 30;\n g.append('line').attr('id', 'task' + taskCount).attr('x1', center).attr('y1', task.y).attr('x2', center).attr('y2', maxHeight).attr('class', 'task-line').attr('stroke-width', '1px').attr('stroke-dasharray', '4 2').attr('stroke', '#666');\n drawFace(g, {\n cx: center,\n cy: 300 + (5 - task.score) * 30,\n score: task.score\n });\n var rect = getNoteRect();\n rect.x = task.x;\n rect.y = task.y;\n rect.fill = task.fill;\n rect.width = conf.width;\n rect.height = conf.height;\n rect.class = 'task';\n rect.rx = 3;\n rect.ry = 3;\n drawRect(g, rect);\n var xPos = task.x + 14;\n task.people.forEach(function (person) {\n var colour = task.actors[person];\n var circle = {\n cx: xPos,\n cy: task.y,\n r: 7,\n fill: colour,\n stroke: '#000',\n title: person\n };\n drawCircle(g, circle);\n xPos += 10;\n });\n\n _drawTextCandidateFunc(conf)(task.task, g, rect.x, rect.y, rect.width, rect.height, {\n class: 'task'\n }, conf, task.colour);\n};\n/**\n * Draws a background rectangle\n * @param elem The html element\n * @param bounds The bounds of the drawing\n */\n\nexport var drawBackgroundRect = function drawBackgroundRect(elem, bounds) {\n var rectElem = drawRect(elem, {\n x: bounds.startx,\n y: bounds.starty,\n width: bounds.stopx - bounds.startx,\n height: bounds.stopy - bounds.starty,\n fill: bounds.fill,\n class: 'rect'\n });\n rectElem.lower();\n};\nexport var getTextObj = function getTextObj() {\n return {\n x: 0,\n y: 0,\n fill: undefined,\n 'text-anchor': 'start',\n width: 100,\n height: 100,\n textMargin: 0,\n rx: 0,\n ry: 0\n };\n};\nexport var getNoteRect = function getNoteRect() {\n return {\n x: 0,\n y: 0,\n width: 100,\n anchor: 'start',\n height: 100,\n rx: 0,\n ry: 0\n };\n};\n\nvar _drawTextCandidateFunc = function () {\n function byText(content, g, x, y, width, height, textAttrs, colour) {\n var text = g.append('text').attr('x', x + width / 2).attr('y', y + height / 2 + 5).style('font-color', colour).style('text-anchor', 'middle').text(content);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function byTspan(content, g, x, y, width, height, textAttrs, conf, colour) {\n var taskFontSize = conf.taskFontSize,\n taskFontFamily = conf.taskFontFamily;\n var lines = content.split(//gi);\n\n for (var i = 0; i < lines.length; i++) {\n var dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;\n var text = g.append('text').attr('x', x + width / 2).attr('y', y).attr('fill', colour).style('text-anchor', 'middle').style('font-size', taskFontSize).style('font-family', taskFontFamily);\n text.append('tspan').attr('x', x + width / 2).attr('dy', dy).text(lines[i]);\n text.attr('y', y + height / 2.0).attr('dominant-baseline', 'central').attr('alignment-baseline', 'central');\n\n _setTextAttrs(text, textAttrs);\n }\n }\n\n function byFo(content, g, x, y, width, height, textAttrs, conf, colour) {\n var body = g.append('switch');\n var f = body.append('foreignObject').attr('x', x).attr('y', y).attr('width', width).attr('height', height).attr('position', 'fixed');\n var text = f.append('div').style('display', 'table').style('height', '100%').style('width', '100%');\n text.append('div').style('display', 'table-cell').style('text-align', 'center').style('vertical-align', 'middle').style('color', colour).text(content);\n byTspan(content, body, x, y, width, height, textAttrs, conf);\n\n _setTextAttrs(text, textAttrs);\n }\n\n function _setTextAttrs(toText, fromTextAttrsDict) {\n for (var key in fromTextAttrsDict) {\n if (key in fromTextAttrsDict) {\n // eslint-disable-line\n // noinspection JSUnfilteredForInLoop\n toText.attr(key, fromTextAttrsDict[key]);\n }\n }\n }\n\n return function (conf) {\n return conf.textPlacement === 'fo' ? byFo : conf.textPlacement === 'old' ? byText : byTspan;\n };\n}();\n\nvar initGraphics = function initGraphics(graphics) {\n graphics.append('defs').append('marker').attr('id', 'arrowhead').attr('refX', 5).attr('refY', 2).attr('markerWidth', 6).attr('markerHeight', 4).attr('orient', 'auto').append('path').attr('d', 'M 0,0 V 4 L6,2 Z'); // this is actual shape for arrowhead\n};\n\nexport default {\n drawRect: drawRect,\n drawCircle: drawCircle,\n drawSection: drawSection,\n drawText: drawText,\n drawLabel: drawLabel,\n drawTask: drawTask,\n drawBackgroundRect: drawBackgroundRect,\n getTextObj: getTextObj,\n getNoteRect: getNoteRect,\n initGraphics: initGraphics\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/markers.js", - "name": "./src/dagre-wrapper/markers.js", - "index": 68, - "index2": 64, - "size": 6123, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./markers", - "loc": "3:0-38" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./markers", - "loc": "125:2-15" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Setup arrow head and define the marker. The result is appended to the svg.\n */\nimport { logger } from '../logger'; // Only add the number of markers that the diagram needs\n\nvar insertMarkers = function insertMarkers(elem, markerArray, type, id) {\n markerArray.forEach(function (markerName) {\n markers[markerName](elem, type, id);\n });\n};\n\nvar extension = function extension(elem, type, id) {\n logger.trace('Making markers for ', id);\n elem.append('defs').append('marker').attr('id', type + '-extensionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 1,7 L18,13 V 1 Z');\n elem.append('defs').append('marker').attr('id', type + '-extensionEnd ' + type).attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 1,1 V 13 L18,7 Z'); // this is actual shape for arrowhead\n};\n\nvar composition = function composition(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-compositionStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-compositionEnd').attr('class', 'marker extension ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar aggregation = function aggregation(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-aggregationStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-aggregationEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z');\n};\n\nvar dependency = function dependency(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-dependencyStart').attr('class', 'marker extension ' + type).attr('refX', 0).attr('refY', 7).attr('markerWidth', 190).attr('markerHeight', 240).attr('orient', 'auto').append('path').attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z');\n elem.append('defs').append('marker').attr('id', type + '-dependencyEnd').attr('class', 'marker ' + type).attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 28).attr('orient', 'auto').append('path').attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');\n};\n\nvar point = function point(elem, type) {\n elem.append('marker').attr('id', type + '-pointEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 9).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 0 L 10 5 L 0 10 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-pointStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 0).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 12).attr('markerHeight', 12).attr('orient', 'auto').append('path').attr('d', 'M 0 5 L 10 10 L 10 0 z').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar circle = function circle(elem, type) {\n elem.append('marker').attr('id', type + '-circleEnd').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', 11).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-circleStart').attr('class', 'marker ' + type).attr('viewBox', '0 0 10 10').attr('refX', -1).attr('refY', 5).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('circle').attr('cx', '5').attr('cy', '5').attr('r', '5').attr('class', 'arrowMarkerPath').style('stroke-width', 1).style('stroke-dasharray', '1,0');\n};\n\nvar cross = function cross(elem, type) {\n elem.append('marker').attr('id', type + '-crossEnd').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', 12).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n elem.append('marker').attr('id', type + '-crossStart').attr('class', 'marker cross ' + type).attr('viewBox', '0 0 11 11').attr('refX', -1).attr('refY', 5.2).attr('markerUnits', 'userSpaceOnUse').attr('markerWidth', 11).attr('markerHeight', 11).attr('orient', 'auto').append('path') // .attr('stroke', 'black')\n .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9').attr('class', 'arrowMarkerPath').style('stroke-width', 2).style('stroke-dasharray', '1,0');\n};\n\nvar barb = function barb(elem, type) {\n elem.append('defs').append('marker').attr('id', type + '-barbEnd').attr('refX', 19).attr('refY', 7).attr('markerWidth', 20).attr('markerHeight', 14).attr('markerUnits', 0).attr('orient', 'auto').append('path').attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z');\n}; // TODO rename the class diagram markers to something shape descriptive and semanitc free\n\n\nvar markers = {\n extension: extension,\n composition: composition,\n aggregation: aggregation,\n dependency: dependency,\n point: point,\n circle: circle,\n cross: cross,\n barb: barb\n};\nexport default insertMarkers;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "name": "./src/dagre-wrapper/shapes/util.js", - "index": 54, - "index2": 51, - "size": 1604, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "./util", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "4:0-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/util", - "loc": "5:0-82" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "7:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "11:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "./util", - "loc": "16:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "32:21-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "33:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "44:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "53:6-22" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "71:12-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "72:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "82:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "104:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "105:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "115:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "134:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "135:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "145:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "164:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "165:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "175:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "194:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "195:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "205:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "224:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "225:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "235:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "257:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "258:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "268:22-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "278:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "301:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "310:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "380:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "390:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "398:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "408:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "417:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "428:23-34" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "465:11-29" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "466:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "480:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "500:2-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/util", - "loc": "517:2-18" - } - ], - "usedExports": [ - "updateNodeBounds", - "labelHelper", - "insertPolygonShape" - ], - "providedExports": [ - "labelHelper", - "updateNodeBounds", - "insertPolygonShape" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import createLabel from '../createLabel';\nimport { getConfig } from '../../config';\nimport { select } from 'd3';\nexport var labelHelper = function labelHelper(parent, node, _classes, isNode) {\n var classes;\n\n if (!_classes) {\n classes = 'node default';\n } else {\n classes = _classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, false, isNode)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var halfPadding = node.padding / 2; // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')');\n return {\n shapeSvg: shapeSvg,\n bbox: bbox,\n halfPadding: halfPadding,\n label: label\n };\n};\nexport var updateNodeBounds = function updateNodeBounds(node, element) {\n var bbox = element.node().getBBox();\n node.width = bbox.width;\n node.height = bbox.height;\n};\nexport function insertPolygonShape(parent, w, h, points) {\n return parent.insert('polygon', ':first-child').attr('points', points.map(function (d) {\n return d.x + ',' + d.y;\n }).join(' ')).attr('class', 'label-container').attr('transform', 'translate(' + -w / 2 + ',' + h / 2 + ')');\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/mermaid-graphlib.js", - "name": "./src/dagre-wrapper/mermaid-graphlib.js", - "index": 65, - "index2": 61, - "size": 11877, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./mermaid-graphlib", - "loc": "5:0-116" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "61:18-37" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "62:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "63:14-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:21-30" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:68-77" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "81:84-93" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "108:8-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "118:53-62" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "129:2-15" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./mermaid-graphlib", - "loc": "131:2-24" - } - ], - "usedExports": [ - "findNonClusterChild", - "clusterDb", - "clear", - "adjustClustersAndEdges" - ], - "providedExports": [ - "clusterDb", - "clear", - "extractDecendants", - "validate", - "findNonClusterChild", - "adjustClustersAndEdges", - "extractor" - ], - "optimizationBailout": [], - "depth": 4, - "source": "/**\n * Decorates with functions required by mermaids dagre-wrapper.\n */\nimport { logger as log } from '../logger';\nimport graphlib from 'graphlib';\nexport var clusterDb = {};\nvar decendants = {};\nvar parents = {};\nexport var clear = function clear() {\n decendants = {};\n parents = {};\n clusterDb = {};\n};\n\nvar isDecendant = function isDecendant(id, ancenstorId) {\n // if (id === ancenstorId) return true;\n log.debug('In isDecendant', ancenstorId, ' ', id, ' = ', decendants[ancenstorId].indexOf(id) >= 0);\n if (decendants[ancenstorId].indexOf(id) >= 0) return true;\n return false;\n};\n\nvar edgeInCluster = function edgeInCluster(edge, clusterId) {\n log.info('Decendants of ', clusterId, ' is ', decendants[clusterId]);\n log.info('Edge is ', edge); // Edges to/from the cluster is not in the cluster, they are in the parent\n\n if (edge.v === clusterId) return false;\n if (edge.w === clusterId) return false;\n\n if (!decendants[clusterId]) {\n log.debug('Tilt, ', clusterId, ',not in decendants');\n return false;\n }\n\n log.info('Here ');\n if (decendants[clusterId].indexOf(edge.v) >= 0) return true;\n if (isDecendant(edge.v, clusterId)) return true;\n if (isDecendant(edge.w, clusterId)) return true;\n if (decendants[clusterId].indexOf(edge.w) >= 0) return true;\n return false;\n};\n\nvar copy = function copy(clusterId, graph, newGraph, rootId) {\n log.info('Copying children of ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n var nodes = graph.children(clusterId) || []; // Include cluster node if it is not the root\n\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n\n log.debug('Copying (nodes) clusterId', clusterId, 'nodes', nodes);\n nodes.forEach(function (node) {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n var data = graph.node(node);\n log.info('cp ', node, ' to ', rootId, ' with parent ', clusterId); //,node, data, ' parent is ', clusterId);\n\n newGraph.setNode(node, data);\n log.debug('Setting parent', node, graph.parent(node));\n\n if (rootId !== graph.parent(node)) {\n newGraph.setParent(node, graph.parent(node));\n }\n\n if (clusterId !== rootId && node !== clusterId) {\n log.debug('Setting parent', node, clusterId);\n newGraph.setParent(node, clusterId);\n } else {\n log.info('In copy ', clusterId, 'root', rootId, 'data', graph.node(clusterId), rootId);\n log.debug('Not Setting parent for node=', node, 'cluster!==rootId', clusterId !== rootId, 'node!==clusterId', node !== clusterId);\n }\n\n var edges = graph.edges(node);\n log.debug('Copying Edges', edges);\n edges.forEach(function (edge) {\n log.info('Edge', edge);\n var data = graph.edge(edge.v, edge.w, edge.name);\n log.info('Edge data', data, rootId);\n\n try {\n // Do not copy edges in and out of the root cluster, they belong to the parent graph\n if (edgeInCluster(edge, rootId)) {\n log.info('Copying as ', edge.v, edge.w, data, edge.name);\n newGraph.setEdge(edge.v, edge.w, data, edge.name);\n log.info('newGraph edges ', newGraph.edges(), newGraph.edge(newGraph.edges()[0]));\n } else {\n log.info('Skipping copy of edge ', edge.v, '-->', edge.w, ' rootId: ', rootId, ' clusterId:', clusterId);\n }\n } catch (e) {\n log.error(e);\n }\n });\n }\n\n log.debug('Removing node', node);\n graph.removeNode(node);\n });\n};\n\nexport var extractDecendants = function extractDecendants(id, graph) {\n // log.debug('Extracting ', id);\n var children = graph.children(id);\n var res = [].concat(children);\n\n for (var i = 0; i < children.length; i++) {\n parents[children[i]] = id;\n res = res.concat(extractDecendants(children[i], graph));\n }\n\n return res;\n};\n/**\n * Validates the graph, checking that all parent child relation points to existing nodes and that\n * edges between nodes also ia correct. When not correct the function logs the discrepancies.\n * @param {graphlib graph} g\n */\n\nexport var validate = function validate(graph) {\n var edges = graph.edges();\n log.trace('Edges: ', edges);\n\n for (var i = 0; i < edges.length; i++) {\n if (graph.children(edges[i].v).length > 0) {\n log.trace('The node ', edges[i].v, ' is part of and edge even though it has children');\n return false;\n }\n\n if (graph.children(edges[i].w).length > 0) {\n log.trace('The node ', edges[i].w, ' is part of and edge even though it has children');\n return false;\n }\n }\n\n return true;\n};\n/**\n * Finds a child that is not a cluster. When faking a edge between a node and a cluster.\n * @param {Finds a } id\n * @param {*} graph\n */\n\nexport var findNonClusterChild = function findNonClusterChild(id, graph) {\n // const node = graph.node(id);\n log.trace('Searching', id); // const children = graph.children(id).reverse();\n\n var children = graph.children(id); //.reverse();\n\n log.trace('Searching children of id ', id, children);\n\n if (children.length < 1) {\n log.trace('This is a valid node', id);\n return id;\n }\n\n for (var i = 0; i < children.length; i++) {\n var _id = findNonClusterChild(children[i], graph);\n\n if (_id) {\n log.trace('Found replacement for', id, ' => ', _id);\n return _id;\n }\n }\n};\n\nvar getAnchorId = function getAnchorId(id) {\n if (!clusterDb[id]) {\n return id;\n } // If the cluster has no external connections\n\n\n if (!clusterDb[id].externalConnections) {\n return id;\n } // Return the replacement node\n\n\n if (clusterDb[id]) {\n return clusterDb[id].id;\n }\n\n return id;\n};\n\nexport var adjustClustersAndEdges = function adjustClustersAndEdges(graph, depth) {\n if (!graph || depth > 10) {\n log.debug('Opting out, no graph ');\n return;\n } else {\n log.debug('Opting in, graph ');\n } // Go through the nodes and for each cluster found, save a replacment node, this can be used when\n // faking a link to a cluster\n\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n\n if (children.length > 0) {\n log.warn('Cluster identified', id, ' Replacement id in edges: ', findNonClusterChild(id, graph));\n decendants[id] = extractDecendants(id, graph);\n clusterDb[id] = {\n id: findNonClusterChild(id, graph),\n clusterData: graph.node(id)\n };\n }\n }); // Check incoming and outgoing edges for each cluster\n\n graph.nodes().forEach(function (id) {\n var children = graph.children(id);\n var edges = graph.edges();\n\n if (children.length > 0) {\n log.debug('Cluster identified', id, decendants);\n edges.forEach(function (edge) {\n // log.debug('Edge, decendants: ', edge, decendants[id]);\n // Check if any edge leaves the cluster (not the actual cluster, thats a link from the box)\n if (edge.v !== id && edge.w !== id) {\n // Any edge where either the one of the nodes is decending to the cluster but not the other\n // if (decendants[id].indexOf(edge.v) < 0 && decendants[id].indexOf(edge.w) < 0) {\n var d1 = isDecendant(edge.v, id);\n var d2 = isDecendant(edge.w, id); // d1 xor d2 - if either d1 is true and d2 is false or the other way around\n\n if (d1 ^ d2) {\n log.debug('Edge: ', edge, ' leaves cluster ', id);\n log.debug('Decendants of ', id, ': ', decendants[id]);\n clusterDb[id].externalConnections = true;\n }\n }\n });\n }\n });\n extractor(graph, 0); // For clusters with incoming and/or outgoing edges translate those edges to a real node\n // in the cluster inorder to fake the edge\n\n graph.edges().forEach(function (e) {\n var edge = graph.edge(e);\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(e));\n log.trace('Edge ' + e.v + ' -> ' + e.w + ': ' + JSON.stringify(graph.edge(e)));\n var v = e.v;\n var w = e.w; // Check if link is either from or to a cluster\n\n log.trace('Fix', clusterDb, 'ids:', e.v, e.w, 'Translateing: ', clusterDb[e.v], clusterDb[e.w]);\n\n if (clusterDb[e.v] || clusterDb[e.w]) {\n log.warn('Fixing and trixing - removing', e.v, e.w, e.name);\n v = getAnchorId(e.v);\n w = getAnchorId(e.w);\n graph.removeEdge(e.v, e.w, e.name);\n if (v !== e.v) edge.fromCluster = e.v;\n if (w !== e.w) edge.toCluster = e.w;\n log.warn('Replacing with', v, w, e.name);\n graph.setEdge(v, w, edge, e.name);\n }\n });\n log.warn('Adjusted Graph', graphlib.json.write(graph));\n log.trace(clusterDb); // Remove references to extracted cluster\n // graph.edges().forEach(edge => {\n // if (isDecendant(edge.v, clusterId) || isDecendant(edge.w, clusterId)) {\n // graph.removeEdge(edge);\n // }\n // });\n};\nexport var extractor = function extractor(graph, depth) {\n log.debug('extractor - ', depth, graphlib.json.write(graph), graph.children('D'));\n\n if (depth > 10) {\n log.error('Bailing out');\n return;\n } // For clusters without incoming and/or outgoing edges, create a new cluster-node\n // containing the nodes and edges in the custer in a new graph\n // for (let i = 0;)\n\n\n var nodes = graph.nodes();\n var hasChildren = false;\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n var children = graph.children(node);\n hasChildren = hasChildren || children.length > 0;\n }\n\n if (!hasChildren) {\n log.debug('Done, no node has children', graph.nodes());\n return;\n } // const clusters = Object.keys(clusterDb);\n // clusters.forEach(clusterId => {\n\n\n log.debug('Nodes = ', nodes, depth);\n\n for (var _i = 0; _i < nodes.length; _i++) {\n var _node = nodes[_i];\n log.debug('Extracting node', _node, clusterDb, clusterDb[_node] && !clusterDb[_node].externalConnections, !graph.parent(_node), graph.node(_node), graph.children('D'), ' Depth ', depth); // Note that the node might have been removed after the Object.keys call so better check\n // that it still is in the game\n\n if (!clusterDb[_node]) {\n // Skip if the node is not a cluster\n log.debug('Not a cluster', _node, depth); // break;\n } else if (!clusterDb[_node].externalConnections && !graph.parent(_node) && graph.children(_node) && graph.children(_node).length > 0) {\n log.debug('Cluster without external connections, without a parent and with children', _node, depth);\n var graphSettings = graph.graph();\n var clusterGraph = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: graphSettings.rankdir === 'TB' ? 'LR' : 'TB',\n // Todo: set proper spacing\n nodesep: 50,\n ranksep: 50,\n marginx: 8,\n marginy: 8\n }).setDefaultEdgeLabel(function () {\n return {};\n });\n log.debug('Old graph before copy', graphlib.json.write(graph));\n copy(_node, graph, clusterGraph, _node);\n graph.setNode(_node, {\n clusterNode: true,\n id: _node,\n clusterData: clusterDb[_node].clusterData,\n labelText: clusterDb[_node].labelText,\n graph: clusterGraph\n });\n log.debug('New graph after copy', graphlib.json.write(clusterGraph));\n log.debug('Old graph after copy', graphlib.json.write(graph));\n } else {\n log.debug('Cluster ** ', _node, ' **not meeting the criteria !externalConnections:', !clusterDb[_node].externalConnections, ' no parent: ', !graph.parent(_node), ' children ', graph.children(_node) && graph.children(_node).length > 0, graph.children('D'), depth);\n log.debug(clusterDb);\n }\n }\n\n nodes = graph.nodes();\n log.debug('New list of nodes', nodes);\n\n for (var _i2 = 0; _i2 < nodes.length; _i2++) {\n var _node2 = nodes[_i2];\n var data = graph.node(_node2);\n log.debug(' Now next leveö', _node2, data);\n\n if (data.clusterNode) {\n extractor(data.graph, depth + 1);\n }\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "index": 56, - "index2": 60, - "size": 15504, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./nodes", - "loc": "6:0-85" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "54:6-17" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "68:8-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "101:6-18" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "110:8-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./nodes", - "loc": "126:2-12" - } - ], - "usedExports": [ - "setNodeElem", - "insertNode", - "positionNode", - "clear" - ], - "providedExports": [ - "insertNode", - "setNodeElem", - "clear", - "positionNode" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersect from './intersect/index.js';\nimport { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n\nimport { labelHelper, updateNodeBounds, insertPolygonShape } from './shapes/util';\nimport { getConfig } from '../config';\nimport createLabel from './createLabel';\nimport note from './shapes/note';\n\nvar question = function question(parent, node) {\n var _labelHelper = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var s = w + h;\n var points = [{\n x: s / 2,\n y: 0\n }, {\n x: s,\n y: -s / 2\n }, {\n x: s / 2,\n y: -s\n }, {\n x: 0,\n y: -s / 2\n }];\n logger.info('Question main (Circle)');\n var questionElem = insertPolygonShape(shapeSvg, s, s, points);\n updateNodeBounds(node, questionElem);\n\n node.intersect = function (point) {\n logger.warn('Intersect called');\n return intersect.polygon(node, points, point);\n };\n\n return shapeSvg;\n};\n\nvar hexagon = function hexagon(parent, node) {\n var _labelHelper2 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper2.shapeSvg,\n bbox = _labelHelper2.bbox;\n\n var f = 4;\n var h = bbox.height + node.padding;\n var m = h / f;\n var w = bbox.width + 2 * m + node.padding;\n var points = [{\n x: m,\n y: 0\n }, {\n x: w - m,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w - m,\n y: -h\n }, {\n x: m,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var hex = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, hex);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_left_inv_arrow = function rect_left_inv_arrow(parent, node) {\n var _labelHelper3 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper3.shapeSvg,\n bbox = _labelHelper3.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -h / 2,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: -h / 2,\n y: -h\n }, {\n x: 0,\n y: -h / 2\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_right = function lean_right(parent, node) {\n var _labelHelper4 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper4.shapeSvg,\n bbox = _labelHelper4.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar lean_left = function lean_left(parent, node) {\n var _labelHelper5 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper5.shapeSvg,\n bbox = _labelHelper5.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 2 * h / 6,\n y: 0\n }, {\n x: w + h / 6,\n y: 0\n }, {\n x: w - 2 * h / 6,\n y: -h\n }, {\n x: -h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar trapezoid = function trapezoid(parent, node) {\n var _labelHelper6 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper6.shapeSvg,\n bbox = _labelHelper6.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: -2 * h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: -h\n }, {\n x: h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar inv_trapezoid = function inv_trapezoid(parent, node) {\n var _labelHelper7 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper7.shapeSvg,\n bbox = _labelHelper7.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: h / 6,\n y: 0\n }, {\n x: w - h / 6,\n y: 0\n }, {\n x: w + 2 * h / 6,\n y: -h\n }, {\n x: -2 * h / 6,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rect_right_inv_arrow = function rect_right_inv_arrow(parent, node) {\n var _labelHelper8 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper8.shapeSvg,\n bbox = _labelHelper8.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w + h / 2,\n y: 0\n }, {\n x: w,\n y: -h / 2\n }, {\n x: w + h / 2,\n y: -h\n }, {\n x: 0,\n y: -h\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar cylinder = function cylinder(parent, node) {\n var _labelHelper9 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper9.shapeSvg,\n bbox = _labelHelper9.bbox;\n\n var w = bbox.width + node.padding;\n var rx = w / 2;\n var ry = rx / (2.5 + w / 50);\n var h = bbox.height + ry + node.padding;\n var shape = 'M 0,' + ry + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 a ' + rx + ',' + ry + ' 0,0,0 ' + -w + ' 0 l 0,' + h + ' a ' + rx + ',' + ry + ' 0,0,0 ' + w + ' 0 l 0,' + -h;\n var el = shapeSvg.attr('label-offset-y', ry).insert('path', ':first-child').attr('d', shape).attr('transform', 'translate(' + -w / 2 + ',' + -(h / 2 + ry) + ')');\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n var pos = intersect.rect(node, point);\n var x = pos.x - node.x;\n\n if (rx != 0 && (Math.abs(x) < node.width / 2 || Math.abs(x) == node.width / 2 && Math.abs(pos.y - node.y) > node.height / 2 - ry)) {\n // ellipsis equation: x*x / a*a + y*y / b*b = 1\n // solve for y to get adjustion value for pos.y\n var y = ry * ry * (1 - x * x / (rx * rx));\n if (y != 0) y = Math.sqrt(y);\n y = ry - y;\n if (point.y - node.y > 0) y = -y;\n pos.y += y;\n }\n\n return pos;\n };\n\n return shapeSvg;\n};\n\nvar rect = function rect(parent, node) {\n var _labelHelper10 = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper10.shapeSvg,\n bbox = _labelHelper10.bbox,\n halfPadding = _labelHelper10.halfPadding;\n\n logger.trace('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('class', 'basic label-container').attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar rectWithTitle = function rectWithTitle(parent, node) {\n // const { shapeSvg, bbox, halfPadding } = labelHelper(parent, node, 'node ' + node.classes);\n var classes;\n\n if (!node.classes) {\n classes = 'node default';\n } else {\n classes = 'node ' + node.classes;\n } // Add outer g element\n\n\n var shapeSvg = parent.insert('g').attr('class', classes).attr('id', node.id); // Create the title label and insert it after the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // const innerRect = shapeSvg.insert('rect');\n\n var innerLine = shapeSvg.insert('line');\n var label = shapeSvg.insert('g').attr('class', 'label');\n var text2 = node.labelText.flat();\n logger.info('Label text', text2[0]);\n var text = label.node().appendChild(createLabel(text2[0], node.labelStyle, true, true));\n var bbox;\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n logger.info('Text 2', text2);\n var textRows = text2.slice(1, text2.length);\n var titleBox = text.getBBox();\n var descr = label.node().appendChild(createLabel(textRows.join('
'), node.labelStyle, true, true));\n\n if (getConfig().flowchart.htmlLabels) {\n var _div = descr.children[0];\n\n var _dv = select(descr);\n\n bbox = _div.getBoundingClientRect();\n\n _dv.attr('width', bbox.width);\n\n _dv.attr('height', bbox.height);\n } // bbox = label.getBBox();\n // logger.info(descr);\n\n\n var halfPadding = node.padding / 2;\n select(descr).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width > titleBox.width ? 0 : (titleBox.width - bbox.width) / 2) + ', ' + (titleBox.height + halfPadding + 5) + ')');\n select(text).attr('transform', 'translate( ' + ( // (titleBox.width - bbox.width) / 2 +\n bbox.width < titleBox.width ? 0 : -(titleBox.width - bbox.width) / 2) + ', ' + 0 + ')'); // Get the size of the label\n // Bounding box for title and text\n\n bbox = label.node().getBBox(); // Center the label\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + (-bbox.height / 2 - halfPadding + 3) + ')');\n rect.attr('class', 'outer title-state').attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n innerLine.attr('class', 'divider').attr('x1', -bbox.width / 2 - halfPadding).attr('x2', bbox.width / 2 + halfPadding).attr('y1', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding).attr('y2', -bbox.height / 2 - halfPadding + titleBox.height + halfPadding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar stadium = function stadium(parent, node) {\n var _labelHelper11 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper11.shapeSvg,\n bbox = _labelHelper11.bbox;\n\n var h = bbox.height + node.padding;\n var w = bbox.width + h / 4 + node.padding; // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child').attr('rx', h / 2).attr('ry', h / 2).attr('x', -w / 2).attr('y', -h / 2).attr('width', w).attr('height', h);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar circle = function circle(parent, node) {\n var _labelHelper12 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper12.shapeSvg,\n bbox = _labelHelper12.bbox,\n halfPadding = _labelHelper12.halfPadding;\n\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('rx', node.rx).attr('ry', node.ry).attr('r', bbox.width / 2 + halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n logger.info('Circle main');\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n logger.info('Circle intersect', node, bbox.width / 2 + halfPadding, point);\n return intersect.circle(node, bbox.width / 2 + halfPadding, point);\n };\n\n return shapeSvg;\n};\n\nvar subroutine = function subroutine(parent, node) {\n var _labelHelper13 = labelHelper(parent, node, undefined, true),\n shapeSvg = _labelHelper13.shapeSvg,\n bbox = _labelHelper13.bbox;\n\n var w = bbox.width + node.padding;\n var h = bbox.height + node.padding;\n var points = [{\n x: 0,\n y: 0\n }, {\n x: w,\n y: 0\n }, {\n x: w,\n y: -h\n }, {\n x: 0,\n y: -h\n }, {\n x: 0,\n y: 0\n }, {\n x: -8,\n y: 0\n }, {\n x: w + 8,\n y: 0\n }, {\n x: w + 8,\n y: -h\n }, {\n x: -8,\n y: -h\n }, {\n x: -8,\n y: 0\n }];\n var el = insertPolygonShape(shapeSvg, w, h, points);\n updateNodeBounds(node, el);\n\n node.intersect = function (point) {\n return intersect.polygon(node, point);\n };\n\n return shapeSvg;\n};\n\nvar start = function start(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var circle = shapeSvg.insert('circle', ':first-child'); // center the circle around its coordinate\n\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar forkJoin = function forkJoin(parent, node, dir) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var width = 70;\n var height = 10;\n\n if (dir === 'LR') {\n width = 10;\n height = 70;\n }\n\n var shape = shapeSvg.append('rect').style('stroke', 'black').style('fill', 'black').attr('x', -1 * width / 2).attr('y', -1 * height / 2).attr('width', width).attr('height', height).attr('class', 'fork-join');\n updateNodeBounds(node, shape);\n node.height = node.height + node.padding / 2;\n node.width = node.width + node.padding / 2;\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar end = function end(parent, node) {\n var shapeSvg = parent.insert('g').attr('class', 'node default').attr('id', node.id);\n var innerCircle = shapeSvg.insert('circle', ':first-child');\n var circle = shapeSvg.insert('circle', ':first-child');\n circle.attr('class', 'state-start').attr('r', 7).attr('width', 14).attr('height', 14);\n innerCircle.attr('class', 'state-end').attr('r', 5).attr('width', 10).attr('height', 10);\n updateNodeBounds(node, circle);\n\n node.intersect = function (point) {\n return intersect.circle(node, 7, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n question: question,\n rect: rect,\n rectWithTitle: rectWithTitle,\n circle: circle,\n stadium: stadium,\n hexagon: hexagon,\n rect_left_inv_arrow: rect_left_inv_arrow,\n lean_right: lean_right,\n lean_left: lean_left,\n trapezoid: trapezoid,\n inv_trapezoid: inv_trapezoid,\n rect_right_inv_arrow: rect_right_inv_arrow,\n cylinder: cylinder,\n start: start,\n end: end,\n note: note,\n subroutine: subroutine,\n fork: forkJoin,\n join: forkJoin\n};\nvar nodeElems = {};\nexport var insertNode = function insertNode(elem, node, dir) {\n nodeElems[node.id] = shapes[node.shape](elem, node, dir);\n};\nexport var setNodeElem = function setNodeElem(elem, node) {\n nodeElems[node.id] = elem;\n};\nexport var clear = function clear() {\n nodeElems = {};\n};\nexport var positionNode = function positionNode(node) {\n var el = nodeElems[node.id];\n logger.trace('Transforming node', node, 'translate(' + (node.x - node.width / 2 - 5) + ', ' + (node.y - node.height / 2 - 5) + ')');\n var padding = 8;\n\n if (node.clusterNode) {\n el.attr('transform', 'translate(' + (node.x - node.width / 2 - padding) + ', ' + (node.y - node.height / 2 - padding) + ')');\n } else {\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "index": 67, - "index2": 63, - "size": 5981, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./clusters", - "loc": "7:0-67" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "107:8-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./clusters", - "loc": "128:2-15" - } - ], - "usedExports": [ - "insertCluster", - "clear" - ], - "providedExports": [ - "insertCluster", - "getClusterTitleWidth", - "clear", - "positionCluster" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import intersectRect from './intersect/intersect-rect';\nimport { logger as log } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { select } from 'd3';\nimport { getConfig } from '../config';\n\nvar rect = function rect(parent, node) {\n log.trace('Creating subgraph rect for ', node.id, node); // Add outer g element\n\n var shapeSvg = parent.insert('g').attr('class', 'cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n var padding = 0 * node.padding;\n var halfPadding = padding / 2;\n log.trace('Data ', node, JSON.stringify(node)); // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + 3) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n/**\n * Non visiable cluster where the note is group with its\n */\n\n\nvar noteGroup = function noteGroup(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', 'note-cluster').attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding).attr('fill', 'none');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar roundedWithTitle = function roundedWithTitle(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child'); // Create the label and insert it after the rect\n\n var label = shapeSvg.insert('g').attr('class', 'cluster-label');\n var innerRect = shapeSvg.append('rect');\n var text = label.node().appendChild(createLabel(node.labelText, node.labelStyle, undefined, true)); // Get the size of the label\n\n var bbox = text.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = text.children[0];\n var dv = select(text);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n bbox = text.getBBox();\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'outer').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding).attr('width', node.width + padding).attr('height', node.height + padding);\n innerRect.attr('class', 'inner').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2 - halfPadding + bbox.height - 1).attr('width', node.width + padding).attr('height', node.height + padding - bbox.height - 3); // Center the label\n\n label.attr('transform', 'translate(' + (node.x - bbox.width / 2) + ', ' + (node.y - node.height / 2 - node.padding / 3 + (getConfig().flowchart.htmlLabels ? 5 : 3)) + ')');\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar divider = function divider(parent, node) {\n // Add outer g element\n var shapeSvg = parent.insert('g').attr('class', node.classes).attr('id', node.id); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n var padding = 0 * node.padding;\n var halfPadding = padding / 2; // center the rect around its coordinate\n\n rect.attr('class', 'divider').attr('x', node.x - node.width / 2 - halfPadding).attr('y', node.y - node.height / 2).attr('width', node.width + padding).attr('height', node.height + padding);\n var rectBox = rect.node().getBBox();\n node.width = rectBox.width;\n node.height = rectBox.height;\n\n node.intersect = function (point) {\n return intersectRect(node, point);\n };\n\n return shapeSvg;\n};\n\nvar shapes = {\n rect: rect,\n roundedWithTitle: roundedWithTitle,\n noteGroup: noteGroup,\n divider: divider\n};\nvar clusterElems = {};\nexport var insertCluster = function insertCluster(elem, node) {\n log.trace('Inserting cluster');\n var shape = node.shape || 'rect';\n clusterElems[node.id] = shapes[shape](elem, node);\n};\nexport var getClusterTitleWidth = function getClusterTitleWidth(elem, node) {\n var label = createLabel(node.labelText, node.labelStyle, undefined, true);\n elem.node().appendChild(label);\n var width = label.getBBox().width;\n elem.node().removeChild(label);\n return width;\n};\nexport var clear = function clear() {\n clusterElems = {};\n};\nexport var positionCluster = function positionCluster(node) {\n log.info('Position cluster');\n var el = clusterElems[node.id];\n el.attr('transform', 'translate(' + node.x + ', ' + node.y + ')');\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "name": "./src/dagre-wrapper/edges.js", - "index": 66, - "index2": 62, - "size": 10214, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - } - ], - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./edges", - "loc": "8:0-94" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "82:4-19" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "118:22-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "119:4-21" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "module": "./src/dagre-wrapper/index.js", - "moduleName": "./src/dagre-wrapper/index.js", - "type": "harmony import specifier", - "userRequest": "./edges", - "loc": "127:2-12" - } - ], - "usedExports": [ - "insertEdgeLabel", - "insertEdge", - "positionEdgeLabel", - "clear" - ], - "providedExports": [ - "clear", - "insertEdgeLabel", - "positionEdgeLabel", - "intersection", - "insertEdge" - ], - "optimizationBailout": [], - "depth": 4, - "source": "import { logger } from '../logger'; // eslint-disable-line\n\nimport createLabel from './createLabel';\nimport { line, curveBasis, select } from 'd3';\nimport { getConfig } from '../config';\nimport utils from '../utils'; // import { calcLabelPosition } from '../utils';\n\nvar edgeLabels = {};\nexport var clear = function clear() {\n edgeLabels = {};\n};\nexport var insertEdgeLabel = function insertEdgeLabel(elem, edge) {\n // Create the actual text element\n var labelElement = createLabel(edge.label, edge.labelStyle); // Create outer g, edgeLabel, this will be positioned after graph layout\n\n var edgeLabel = elem.insert('g').attr('class', 'edgeLabel'); // Create inner g, label, this will be positioned now for centering the text\n\n var label = edgeLabel.insert('g').attr('class', 'label');\n label.node().appendChild(labelElement); // Center the label\n\n var bbox = labelElement.getBBox();\n\n if (getConfig().flowchart.htmlLabels) {\n var div = labelElement.children[0];\n var dv = select(labelElement);\n bbox = div.getBoundingClientRect();\n dv.attr('width', bbox.width);\n dv.attr('height', bbox.height);\n }\n\n label.attr('transform', 'translate(' + -bbox.width / 2 + ', ' + -bbox.height / 2 + ')'); // Make element accessible by id for positioning\n\n edgeLabels[edge.id] = edgeLabel; // Update the abstract data of the edge with the new information about its width and height\n\n edge.width = bbox.width;\n edge.height = bbox.height;\n};\nexport var positionEdgeLabel = function positionEdgeLabel(edge, points) {\n logger.info('Moving label', edge.id, edge.label, edgeLabels[edge.id]);\n\n if (edge.label) {\n var el = edgeLabels[edge.id];\n var x = edge.x;\n var y = edge.y;\n\n if (points) {\n // debugger;\n var pos = utils.calcLabelPosition(points);\n x = pos.x;\n y = pos.y;\n }\n\n el.attr('transform', 'translate(' + x + ', ' + y + ')');\n }\n}; // const getRelationType = function(type) {\n// switch (type) {\n// case stateDb.relationType.AGGREGATION:\n// return 'aggregation';\n// case stateDb.relationType.EXTENSION:\n// return 'extension';\n// case stateDb.relationType.COMPOSITION:\n// return 'composition';\n// case stateDb.relationType.DEPENDENCY:\n// return 'dependency';\n// }\n// };\n\nvar outsideNode = function outsideNode(node, point) {\n // logger.warn('Checking bounds ', node, point);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(point.x - x);\n var dy = Math.abs(point.y - y);\n var w = node.width / 2;\n var h = node.height / 2;\n\n if (dx >= w || dy >= h) {\n return true;\n }\n\n return false;\n};\n\nexport var intersection = function intersection(node, outsidePoint, insidePoint) {\n logger.warn('intersection calc o:', outsidePoint, ' i:', insidePoint, node);\n var x = node.x;\n var y = node.y;\n var dx = Math.abs(x - insidePoint.x);\n var w = node.width / 2;\n var r = insidePoint.x < outsidePoint.x ? w - dx : w + dx;\n var h = node.height / 2;\n var edges = {\n x1: x - w,\n x2: x + w,\n y1: y - h,\n y2: y + h\n };\n\n if (outsidePoint.x === edges.x1 || outsidePoint.x === edges.x2 || outsidePoint.y === edges.y1 || outsidePoint.y === edges.y2) {\n // logger.warn('calc equals on edge');\n return outsidePoint;\n }\n\n var Q = Math.abs(outsidePoint.y - insidePoint.y);\n var R = Math.abs(outsidePoint.x - insidePoint.x); // log.warn();\n\n if (Math.abs(y - outsidePoint.y) * w > Math.abs(x - outsidePoint.x) * h) {\n // eslint-disable-line\n // Intersection is top or bottom of rect.\n // let q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n var q = insidePoint.y < outsidePoint.y ? outsidePoint.y - h - y : y - h - outsidePoint.y;\n r = R * q / Q;\n var res = {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x - r,\n y: outsidePoint.y + q\n };\n logger.warn(\"topp/bott calc, Q \".concat(Q, \", q \").concat(q, \", R \").concat(R, \", r \").concat(r), res);\n return res;\n } else {\n // Intersection onn sides of rect\n // q = (Q * r) / R;\n // q = 2;\n // r = (R * q) / Q;\n if (insidePoint.x < outsidePoint.x) {\n r = outsidePoint.x - w - x;\n } else {\n // r = outsidePoint.x - w - x;\n r = x - w - outsidePoint.x;\n }\n\n var _q = _q = Q * r / R;\n\n logger.warn(\"sides calc, Q \".concat(Q, \", q \").concat(_q, \", R \").concat(R, \", r \").concat(r), {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n });\n return {\n x: insidePoint.x < outsidePoint.x ? insidePoint.x + R - r : insidePoint.x + dx - w,\n y: insidePoint.y < outsidePoint.y ? insidePoint.y + _q : insidePoint.y - _q\n };\n }\n}; //(edgePaths, e, edge, clusterDb, diagramtype, graph)\n\nexport var insertEdge = function insertEdge(elem, e, edge, clusterDb, diagramType, graph) {\n var points = edge.points;\n var pointsHasChanged = false;\n var tail = graph.node(e.v);\n var head = graph.node(e.w);\n\n if (head.intersect && tail.intersect) {\n points = points.slice(1, edge.points.length - 1);\n points.unshift(tail.intersect(points[0]));\n logger.info('Last point', points[points.length - 1], head, head.intersect(points[points.length - 1]));\n points.push(head.intersect(points[points.length - 1]));\n }\n\n if (edge.toCluster) {\n logger.trace('edge', edge);\n logger.trace('to cluster', clusterDb[edge.toCluster]);\n points = [];\n var lastPointOutside;\n var isInside = false;\n edge.points.forEach(function (point) {\n var node = clusterDb[edge.toCluster].node;\n\n if (!outsideNode(node, point) && !isInside) {\n logger.trace('inside', edge.toCluster, point, lastPointOutside); // First point inside the rect\n\n var insterection = intersection(node, lastPointOutside, point);\n logger.trace('intersect', insterection);\n points.push(insterection);\n isInside = true;\n } else {\n if (!isInside) points.push(point);\n }\n\n lastPointOutside = point;\n });\n pointsHasChanged = true;\n }\n\n if (edge.fromCluster) {\n logger.trace('edge', edge);\n logger.warn('from cluster', clusterDb[edge.fromCluster]);\n var updatedPoints = [];\n\n var _lastPointOutside;\n\n var _isInside = false;\n\n for (var i = points.length - 1; i >= 0; i--) {\n var point = points[i];\n var node = clusterDb[edge.fromCluster].node;\n\n if (!outsideNode(node, point) && !_isInside) {\n logger.warn('inside', edge.fromCluster, point, node); // First point inside the rect\n\n var insterection = intersection(node, _lastPointOutside, point); // logger.trace('intersect', intersection(node, lastPointOutside, point));\n\n updatedPoints.unshift(insterection); // points.push(insterection);\n\n _isInside = true;\n } else {\n // at the outside\n logger.trace('Outside point', point);\n if (!_isInside) updatedPoints.unshift(point);\n }\n\n _lastPointOutside = point;\n }\n\n points = updatedPoints;\n pointsHasChanged = true;\n } // The data for our line\n\n\n var lineData = points.filter(function (p) {\n return !Number.isNaN(p.y);\n }); // This is the accessor function we talked about above\n\n var lineFunction = line().x(function (d) {\n return d.x;\n }).y(function (d) {\n return d.y;\n }).curve(curveBasis); // Contruct stroke classes based on properties\n\n var strokeClasses;\n\n switch (edge.thickness) {\n case 'normal':\n strokeClasses = 'edge-thickness-normal';\n break;\n\n case 'thick':\n strokeClasses = 'edge-thickness-thick';\n break;\n\n default:\n strokeClasses = '';\n }\n\n switch (edge.pattern) {\n case 'solid':\n strokeClasses += ' edge-pattern-solid';\n break;\n\n case 'dotted':\n strokeClasses += ' edge-pattern-dotted';\n break;\n\n case 'dashed':\n strokeClasses += ' edge-pattern-dashed';\n break;\n }\n\n var svgPath = elem.append('path').attr('d', lineFunction(lineData)).attr('id', edge.id).attr('class', ' ' + strokeClasses + (edge.classes ? ' ' + edge.classes : '')); // DEBUG code, adds a red circle at each edge coordinate\n // edge.points.forEach(point => {\n // elem\n // .append('circle')\n // .style('stroke', 'red')\n // .style('fill', 'red')\n // .attr('r', 1)\n // .attr('cx', point.x)\n // .attr('cy', point.y);\n // });\n\n var url = '';\n\n if (getConfig().state.arrowMarkerAbsolute) {\n url = window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search;\n url = url.replace(/\\(/g, '\\\\(');\n url = url.replace(/\\)/g, '\\\\)');\n }\n\n logger.info('arrowType', edge.arrowType);\n\n switch (edge.arrowType) {\n case 'arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n break;\n\n case 'double_arrow_cross':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-crossEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-crossStart' + ')');\n break;\n\n case 'arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n break;\n\n case 'double_arrow_point':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-pointEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-pointStart' + ')');\n break;\n\n case 'arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barbEnd' + ')');\n break;\n\n case 'double_arrow_barb':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-barnEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-barbStart' + ')');\n break;\n\n case 'arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n break;\n\n case 'double_arrow_circle':\n svgPath.attr('marker-end', 'url(' + url + '#' + diagramType + '-circleEnd' + ')');\n svgPath.attr('marker-start', 'url(' + url + '#' + diagramType + '-circleStart' + ')');\n break;\n\n default:\n }\n\n if (pointsHasChanged) {\n return points;\n }\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/id-cache.js", - "name": "./src/diagrams/state/id-cache.js", - "index": 76, - "index2": 72, - "size": 347, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "issuerId": null, - "issuerName": "./src/diagrams/state/shapes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/stateRenderer.js", - "name": "./src/diagrams/state/stateRenderer.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "name": "./src/diagrams/state/shapes.js", - "profile": { - "factory": 1735, - "building": 602, - "dependencies": 0 - } - } - ], - "profile": { - "factory": 266, - "building": 27 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony side effect evaluation", - "userRequest": "./id-cache.js", - "loc": "2:0-36" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/state/shapes.js", - "module": "./src/diagrams/state/shapes.js", - "moduleName": "./src/diagrams/state/shapes.js", - "type": "harmony import specifier", - "userRequest": "./id-cache.js", - "loc": "290:2-9" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "set", - "get", - "keys", - "size", - "default" - ], - "optimizationBailout": [], - "depth": 4, - "source": "var idCache = {};\nexport var set = function set(key, val) {\n idCache[key] = val;\n};\nexport var get = function get(k) {\n return idCache[k];\n};\nexport var keys = function keys() {\n return Object.keys(idCache);\n};\nexport var size = function size() {\n return keys().length;\n};\nexport default {\n get: get,\n set: set,\n keys: keys,\n size: size\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/createLabel.js", - "name": "./src/dagre-wrapper/createLabel.js", - "index": 55, - "index2": 50, - "size": 4142, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony side effect evaluation", - "userRequest": "../createLabel", - "loc": "1:0-41" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "3:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "4:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./createLabel", - "loc": "7:0-40" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/edges.js", - "module": "./src/dagre-wrapper/edges.js", - "moduleName": "./src/dagre-wrapper/edges.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "14:21-32" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "16:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/util.js", - "module": "./src/dagre-wrapper/shapes/util.js", - "moduleName": "./src/dagre-wrapper/shapes/util.js", - "type": "harmony import specifier", - "userRequest": "../createLabel", - "loc": "17:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "78:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "142:14-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "338:38-49" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./createLabel", - "loc": "352:39-50" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { select } from 'd3';\nimport { logger } from '../logger'; // eslint-disable-line\n// let vertexNode;\n// if (getConfig().flowchart.htmlLabels) {\n// // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n// const node = {\n// label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, s => ``)\n// };\n// vertexNode = addHtmlLabel(svg, node).node();\n// vertexNode.parentNode.removeChild(vertexNode);\n// } else {\n// const svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n// svgLabel.setAttribute('style', styles.labelStyle.replace('color:', 'fill:'));\n// const rows = vertexText.split(common.lineBreakRegex);\n// for (let j = 0; j < rows.length; j++) {\n// const tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n// tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n// tspan.setAttribute('dy', '1em');\n// tspan.setAttribute('x', '1');\n// tspan.textContent = rows[j];\n// svgLabel.appendChild(tspan);\n// }\n// vertexNode = svgLabel;\n// }\n\nimport { getConfig } from '../config';\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction addHtmlLabel(node) {\n // var fo = root.append('foreignObject').attr('width', '100000');\n // var div = fo.append('xhtml:div');\n // div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n // var label = node.label;\n // switch (typeof label) {\n // case 'function':\n // div.insert(label);\n // break;\n // case 'object':\n // // Currently we assume this is a DOM object.\n // div.insert(function() {\n // return label;\n // });\n // break;\n // default:\n // div.html(label);\n // }\n // applyStyle(div, node.labelStyle);\n // div.style('display', 'inline-block');\n // // Fix for firefox\n // div.style('white-space', 'nowrap');\n // var client = div.node().getBoundingClientRect();\n // fo.attr('width', client.width).attr('height', client.height);\n var fo = select(document.createElementNS('http://www.w3.org/2000/svg', 'foreignObject'));\n var div = fo.append('xhtml:div');\n var label = node.label;\n var labelClass = node.isNode ? 'nodeLabel' : 'edgeLabel';\n div.html('' + label + '');\n applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block'); // Fix for firefox\n\n div.style('white-space', 'nowrap');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n return fo.node();\n}\n\nvar createLabel = function createLabel(_vertexText, style, isTitle, isNode) {\n var vertexText = _vertexText || '';\n\n if (getConfig().flowchart.htmlLabels) {\n // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that?\n vertexText = vertexText.replace(/\\\\n|\\n/g, '
');\n logger.info('vertexText' + vertexText);\n var node = {\n isNode: isNode,\n label: vertexText.replace(/fa[lrsb]?:fa-[\\w-]+/g, function (s) {\n return \"\");\n })\n };\n var vertexNode = addHtmlLabel(node); // vertexNode.parentNode.removeChild(vertexNode);\n\n return vertexNode;\n } else {\n var svgLabel = document.createElementNS('http://www.w3.org/2000/svg', 'text');\n svgLabel.setAttribute('style', style.replace('color:', 'fill:'));\n var rows = [];\n\n if (typeof vertexText === 'string') {\n rows = vertexText.split(/\\\\n|\\n|/gi);\n } else if (Array.isArray(vertexText)) {\n rows = vertexText;\n } else {\n rows = [];\n }\n\n for (var j = 0; j < rows.length; j++) {\n var tspan = document.createElementNS('http://www.w3.org/2000/svg', 'tspan');\n tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve');\n tspan.setAttribute('dy', '1em');\n tspan.setAttribute('x', '0');\n\n if (isTitle) {\n tspan.setAttribute('class', 'title-row');\n } else {\n tspan.setAttribute('class', 'row');\n }\n\n tspan.textContent = rows[j].trim();\n svgLabel.appendChild(tspan);\n }\n\n return svgLabel;\n }\n};\n\nexport default createLabel;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-rect.js", - "name": "./src/dagre-wrapper/intersect/intersect-rect.js", - "index": 63, - "index2": 57, - "size": 740, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/clusters.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "name": "./src/dagre-wrapper/clusters.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 288, - "building": 77 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/intersect-rect", - "loc": "1:0-55" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-rect.js", - "loc": "8:0-39" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-rect.js", - "loc": "14:8-12" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "40:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "64:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "103:11-24" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/clusters.js", - "module": "./src/dagre-wrapper/clusters.js", - "moduleName": "./src/dagre-wrapper/clusters.js", - "type": "harmony import specifier", - "userRequest": "./intersect/intersect-rect", - "loc": "123:11-24" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "var intersectRect = function intersectRect(node, point) {\n var x = node.x;\n var y = node.y; // Rectangle intersection algorithm from:\n // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes\n\n var dx = point.x - x;\n var dy = point.y - y;\n var w = node.width / 2;\n var h = node.height / 2;\n var sx, sy;\n\n if (Math.abs(dy) * w > Math.abs(dx) * h) {\n // Intersection is top or bottom of rect.\n if (dy < 0) {\n h = -h;\n }\n\n sx = dy === 0 ? 0 : h * dx / dy;\n sy = h;\n } else {\n // Intersection is left or right of rect.\n if (dx < 0) {\n w = -w;\n }\n\n sx = w;\n sy = dx === 0 ? 0 : w * dy / dx;\n }\n\n return {\n x: x + sx,\n y: y + sy\n };\n};\n\nexport default intersectRect;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "index": 57, - "index2": 58, - "size": 395, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect/index.js", - "loc": "1:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony side effect evaluation", - "userRequest": "../intersect/index.js", - "loc": "4:0-46" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "module": "./src/dagre-wrapper/shapes/note.js", - "moduleName": "./src/dagre-wrapper/shapes/note.js", - "type": "harmony import specifier", - "userRequest": "../intersect/index.js", - "loc": "19:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "37:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "75:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "108:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "138:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "168:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "198:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "228:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "261:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "281:14-23" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "313:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "383:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "401:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "421:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "469:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "483:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "505:11-20" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./intersect/index.js", - "loc": "520:11-20" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "/*\n * Borrowed with love from from dagrge-d3. Many thanks to cpettitt!\n */\nimport node from './intersect-node.js';\nimport circle from './intersect-circle.js';\nimport ellipse from './intersect-ellipse.js';\nimport polygon from './intersect-polygon.js';\nimport rect from './intersect-rect.js';\nexport default {\n node: node,\n circle: circle,\n ellipse: ellipse,\n polygon: polygon,\n rect: rect\n};" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/shapes/note.js", - "name": "./src/dagre-wrapper/shapes/note.js", - "index": 64, - "index2": 59, - "size": 894, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/nodes.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - } - ], - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony side effect evaluation", - "userRequest": "./shapes/note", - "loc": "8:0-33" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "module": "./src/dagre-wrapper/nodes.js", - "moduleName": "./src/dagre-wrapper/nodes.js", - "type": "harmony import specifier", - "userRequest": "./shapes/note", - "loc": "542:8-12" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 5, - "source": "import { updateNodeBounds, labelHelper } from './util';\nimport { logger } from '../../logger'; // eslint-disable-line\n\nimport intersect from '../intersect/index.js';\n\nvar note = function note(parent, node) {\n var _labelHelper = labelHelper(parent, node, 'node ' + node.classes, true),\n shapeSvg = _labelHelper.shapeSvg,\n bbox = _labelHelper.bbox,\n halfPadding = _labelHelper.halfPadding;\n\n logger.info('Classes = ', node.classes); // add the rect\n\n var rect = shapeSvg.insert('rect', ':first-child');\n rect.attr('rx', node.rx).attr('ry', node.ry).attr('x', -bbox.width / 2 - halfPadding).attr('y', -bbox.height / 2 - halfPadding).attr('width', bbox.width + node.padding).attr('height', bbox.height + node.padding);\n updateNodeBounds(node, rect);\n\n node.intersect = function (point) {\n return intersect.rect(node, point);\n };\n\n return shapeSvg;\n};\n\nexport default note;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-ellipse.js", - "name": "./src/dagre-wrapper/intersect/intersect-ellipse.js", - "index": 60, - "index2": 53, - "size": 526, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse", - "loc": "1:0-51" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "module": "./src/dagre-wrapper/intersect/intersect-circle.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-circle.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse", - "loc": "4:9-25" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-ellipse.js", - "loc": "6:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-ellipse.js", - "loc": "12:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "function intersectEllipse(node, rx, ry, point) {\n // Formulae from: http://mathworld.wolfram.com/Ellipse-LineIntersection.html\n var cx = node.x;\n var cy = node.y;\n var px = cx - point.x;\n var py = cy - point.y;\n var det = Math.sqrt(rx * rx * py * py + ry * ry * px * px);\n var dx = Math.abs(rx * ry * px / det);\n\n if (point.x < cx) {\n dx = -dx;\n }\n\n var dy = Math.abs(rx * ry * py / det);\n\n if (point.y < cy) {\n dy = -dy;\n }\n\n return {\n x: cx + dx,\n y: cy + dy\n };\n}\n\nexport default intersectEllipse;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-circle.js", - "name": "./src/dagre-wrapper/intersect/intersect-circle.js", - "index": 59, - "index2": 54, - "size": 179, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-circle.js", - "loc": "5:0-43" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-circle.js", - "loc": "11:10-16" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "import intersectEllipse from './intersect-ellipse';\n\nfunction intersectCircle(node, rx, point) {\n return intersectEllipse(node, rx, rx, point);\n}\n\nexport default intersectCircle;" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "index": 61, - "index2": 56, - "size": 1612, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/index.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - } - ], - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-polygon.js", - "loc": "7:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "module": "./src/dagre-wrapper/intersect/index.js", - "moduleName": "./src/dagre-wrapper/intersect/index.js", - "type": "harmony import specifier", - "userRequest": "./intersect-polygon.js", - "loc": "13:11-18" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 6, - "source": "/* eslint \"no-console\": off */\nimport intersectLine from './intersect-line';\nexport default intersectPolygon;\n/*\n * Returns the point ({x, y}) at which the point argument intersects with the\n * node argument assuming that it has the shape specified by polygon.\n */\n\nfunction intersectPolygon(node, polyPoints, point) {\n var x1 = node.x;\n var y1 = node.y;\n var intersections = [];\n var minX = Number.POSITIVE_INFINITY;\n var minY = Number.POSITIVE_INFINITY;\n polyPoints.forEach(function (entry) {\n minX = Math.min(minX, entry.x);\n minY = Math.min(minY, entry.y);\n });\n var left = x1 - node.width / 2 - minX;\n var top = y1 - node.height / 2 - minY;\n\n for (var i = 0; i < polyPoints.length; i++) {\n var p1 = polyPoints[i];\n var p2 = polyPoints[i < polyPoints.length - 1 ? i + 1 : 0];\n var intersect = intersectLine(node, point, {\n x: left + p1.x,\n y: top + p1.y\n }, {\n x: left + p2.x,\n y: top + p2.y\n });\n\n if (intersect) {\n intersections.push(intersect);\n }\n }\n\n if (!intersections.length) {\n console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', node);\n return node;\n }\n\n if (intersections.length > 1) {\n // More intersections, find the one nearest to edge end point\n intersections.sort(function (p, q) {\n var pdx = p.x - point.x;\n var pdy = p.y - point.y;\n var distp = Math.sqrt(pdx * pdx + pdy * pdy);\n var qdx = q.x - point.x;\n var qdy = q.y - point.y;\n var distq = Math.sqrt(qdx * qdx + qdy * qdy);\n return distp < distq ? -1 : distp === distq ? 0 : 1;\n });\n }\n\n return intersections[0];\n}" - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-line.js", - "name": "./src/dagre-wrapper/intersect/intersect-line.js", - "index": 62, - "index2": 55, - "size": 1886, - "cacheable": true, - "built": true, - "optional": false, - "prefetched": false, - "chunks": [], - "issuer": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerId": null, - "issuerName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "issuerPath": [ - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaid.js", - "name": "./src/mermaid.js", - "profile": { - "factory": 34, - "building": 203 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/mermaidAPI.js", - "name": "./src/mermaidAPI.js", - "profile": { - "factory": 14, - "building": 461, - "dependencies": 3 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/diagrams/flowchart/flowRenderer-v2.js", - "name": "./src/diagrams/flowchart/flowRenderer-v2.js", - "profile": { - "factory": 2158, - "building": 707, - "dependencies": 1501 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/index.js", - "name": "./src/dagre-wrapper/index.js", - "profile": { - "factory": 1316, - "building": 41, - "dependencies": 2 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/nodes.js", - "name": "./src/dagre-wrapper/nodes.js", - "profile": { - "factory": 1567, - "building": 378, - "dependencies": 285 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/index.js", - "name": "./src/dagre-wrapper/intersect/index.js", - "profile": { - "factory": 307, - "building": 54, - "dependencies": 9 - } - }, - { - "id": null, - "identifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "name": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "profile": { - "factory": 12, - "building": 102, - "dependencies": 113 - } - } - ], - "profile": { - "factory": 107, - "building": 73 - }, - "failed": false, - "errors": 0, - "warnings": 0, - "assets": [], - "reasons": [ - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony side effect evaluation", - "userRequest": "./intersect-line", - "loc": "2:0-45" - }, - { - "moduleId": null, - "moduleIdentifier": "/Users/knuts/source/priv/atlantica/mermaid/node_modules/babel-loader/lib/index.js!/Users/knuts/source/priv/atlantica/mermaid/src/dagre-wrapper/intersect/intersect-polygon.js", - "module": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "moduleName": "./src/dagre-wrapper/intersect/intersect-polygon.js", - "type": "harmony import specifier", - "userRequest": "./intersect-line", - "loc": "25:20-33" - } - ], - "usedExports": [ - "default" - ], - "providedExports": [ - "default" - ], - "optimizationBailout": [], - "depth": 7, - "source": "/*\n * Returns the point at which two lines, p and q, intersect or returns\n * undefined if they do not intersect.\n */\nfunction intersectLine(p1, p2, q1, q2) {\n // Algorithm from J. Avro, (ed.) Graphics Gems, No 2, Morgan Kaufmann, 1994,\n // p7 and p473.\n var a1, a2, b1, b2, c1, c2;\n var r1, r2, r3, r4;\n var denom, offset, num;\n var x, y; // Compute a1, b1, c1, where line joining points 1 and 2 is F(x,y) = a1 x +\n // b1 y + c1 = 0.\n\n a1 = p2.y - p1.y;\n b1 = p1.x - p2.x;\n c1 = p2.x * p1.y - p1.x * p2.y; // Compute r3 and r4.\n\n r3 = a1 * q1.x + b1 * q1.y + c1;\n r4 = a1 * q2.x + b1 * q2.y + c1; // Check signs of r3 and r4. If both point 3 and point 4 lie on\n // same side of line 1, the line segments do not intersect.\n\n if (r3 !== 0 && r4 !== 0 && sameSign(r3, r4)) {\n return;\n } // Compute a2, b2, c2 where line joining points 3 and 4 is G(x,y) = a2 x + b2 y + c2 = 0\n\n\n a2 = q2.y - q1.y;\n b2 = q1.x - q2.x;\n c2 = q2.x * q1.y - q1.x * q2.y; // Compute r1 and r2\n\n r1 = a2 * p1.x + b2 * p1.y + c2;\n r2 = a2 * p2.x + b2 * p2.y + c2; // Check signs of r1 and r2. If both point 1 and point 2 lie\n // on same side of second line segment, the line segments do\n // not intersect.\n\n if (r1 !== 0 && r2 !== 0 && sameSign(r1, r2)) {\n return;\n } // Line segments intersect: compute intersection point.\n\n\n denom = a1 * b2 - a2 * b1;\n\n if (denom === 0) {\n return;\n }\n\n offset = Math.abs(denom / 2); // The denom/2 is to get rounding instead of truncating. It\n // is added or subtracted to the numerator, depending upon the\n // sign of the numerator.\n\n num = b1 * c2 - b2 * c1;\n x = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n num = a2 * c1 - a1 * c2;\n y = num < 0 ? (num - offset) / denom : (num + offset) / denom;\n return {\n x: x,\n y: y\n };\n}\n\nfunction sameSign(r1, r2) {\n return r1 * r2 > 0;\n}\n\nexport default intersectLine;" - } - ], - "filteredModules": 0 - } - ], - "filteredModules": 0, - "logging": { - "webpack.buildChunkGraph.visitModules": { - "entries": [], - "filteredEntries": 2, - "debug": false - } - }, - "children": [] - } - ] -} diff --git a/yarn.lock b/yarn.lock index 9b560664ca..889e375e8c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,6 +9,13 @@ dependencies: "@babel/highlight" "^7.8.3" +"@babel/code-frame@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" + integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== + dependencies: + "@babel/highlight" "^7.10.4" + "@babel/compat-data@^7.8.4": version "7.8.5" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.8.5.tgz#d28ce872778c23551cbb9432fc68d28495b613b9" @@ -49,6 +56,15 @@ lodash "^4.17.13" source-map "^0.5.0" +"@babel/generator@^7.10.5": + version "7.10.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.10.5.tgz#1b903554bc8c583ee8d25f1e8969732e6b829a69" + integrity sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig== + dependencies: + "@babel/types" "^7.10.5" + jsesc "^2.5.1" + source-map "^0.5.0" + "@babel/helper-annotate-as-pure@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee" @@ -129,6 +145,15 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-function-name@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz#d2d3b20c59ad8c47112fa7d2a94bc09d5ef82f1a" + integrity sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ== + dependencies: + "@babel/helper-get-function-arity" "^7.10.4" + "@babel/template" "^7.10.4" + "@babel/types" "^7.10.4" + "@babel/helper-function-name@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz#eeeb665a01b1f11068e9fb86ad56a1cb1a824cca" @@ -138,6 +163,13 @@ "@babel/template" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-get-function-arity@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz#98c1cbea0e2332f33f9a4661b8ce1505b2c19ba2" + integrity sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A== + dependencies: + "@babel/types" "^7.10.4" + "@babel/helper-get-function-arity@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz#b894b947bd004381ce63ea1db9f08547e920abd5" @@ -226,6 +258,13 @@ "@babel/template" "^7.8.3" "@babel/types" "^7.8.3" +"@babel/helper-split-export-declaration@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.4.tgz#2c70576eaa3b5609b24cb99db2888cc3fc4251d1" + integrity sha512-pySBTeoUff56fL5CBU2hWm9TesA4r/rOkI9DyJLvvgz09MB9YtfIYe3iBriVaYNaPe+Alua0vBIOVOLs2buWhg== + dependencies: + "@babel/types" "^7.10.4" + "@babel/helper-split-export-declaration@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9" @@ -233,6 +272,11 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-validator-identifier@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2" + integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw== + "@babel/helper-wrap-function@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz#9dbdb2bb55ef14aaa01fe8c99b629bd5352d8610" @@ -252,6 +296,15 @@ "@babel/traverse" "^7.8.4" "@babel/types" "^7.8.3" +"@babel/highlight@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143" + integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA== + dependencies: + "@babel/helper-validator-identifier" "^7.10.4" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/highlight@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.8.3.tgz#28f173d04223eaaa59bc1d439a3836e6d1265797" @@ -271,6 +324,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.8.4.tgz#d1dbe64691d60358a974295fa53da074dd2ce8e8" integrity sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw== +"@babel/parser@^7.10.4", "@babel/parser@^7.10.5", "@babel/parser@^7.7.0": + version "7.10.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.10.5.tgz#e7c6bf5a7deff957cec9f04b551e2762909d826b" + integrity sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ== + "@babel/plugin-proposal-async-generator-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz#bad329c670b382589721b27540c7d288601c6e6f" @@ -956,6 +1014,15 @@ pirates "^4.0.0" source-map-support "^0.5.16" +"@babel/template@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278" + integrity sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/parser" "^7.10.4" + "@babel/types" "^7.10.4" + "@babel/template@^7.4.0", "@babel/template@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.3.tgz#e02ad04fe262a657809327f578056ca15fd4d1b8" @@ -980,6 +1047,21 @@ globals "^11.1.0" lodash "^4.17.13" +"@babel/traverse@^7.7.0": + version "7.10.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.10.5.tgz#77ce464f5b258be265af618d8fddf0536f20b564" + integrity sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/generator" "^7.10.5" + "@babel/helper-function-name" "^7.10.4" + "@babel/helper-split-export-declaration" "^7.10.4" + "@babel/parser" "^7.10.5" + "@babel/types" "^7.10.5" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.19" + "@babel/types@^7.0.0", "@babel/types@^7.1.3", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.8.3.tgz#5a383dffa5416db1b73dedffd311ffd0788fb31c" @@ -989,6 +1071,15 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.7.0": + version "7.10.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.10.5.tgz#d88ae7e2fde86bfbfe851d4d81afa70a997b5d15" + integrity sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q== + dependencies: + "@babel/helper-validator-identifier" "^7.10.4" + lodash "^4.17.19" + to-fast-properties "^2.0.0" + "@braintree/sanitize-url@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-3.1.0.tgz#8ff71d51053cd5ee4981e5a501d80a536244f7fd" @@ -2022,6 +2113,18 @@ babel-core@7.0.0-bridge.0: resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece" integrity sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg== +babel-eslint@^10.1.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232" + integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" + eslint-visitor-keys "^1.0.0" + resolve "^1.12.0" + babel-jest@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" @@ -2177,9 +2280,9 @@ bluebird@3.7.2, bluebird@^3.5.0, bluebird@^3.5.1, bluebird@^3.5.5: integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== + version "4.11.9" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828" + integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw== body-parser@1.19.0, body-parser@^1.18.3: version "1.19.0" @@ -3963,9 +4066,9 @@ elegant-spinner@^1.0.1: integrity sha1-2wQ1IcldfjA/2PNFvtwzSc+wcp4= elliptic@^6.0.0: - version "6.5.2" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" - integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw== + version "6.5.3" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" + integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== dependencies: bn.js "^4.4.0" brorand "^1.0.1" @@ -4178,6 +4281,11 @@ eslint-utils@^1.4.3: dependencies: eslint-visitor-keys "^1.1.0" +eslint-visitor-keys@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" + integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== + eslint-visitor-keys@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" @@ -6963,6 +7071,11 @@ lodash@4.17.15, lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.13 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== +lodash@^4.17.19: + version "4.17.19" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" + integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== + log-driver@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" @@ -9143,6 +9256,13 @@ resolve@^1.1.3, resolve@^1.10.0, resolve@^1.3.2, resolve@^1.8.1: dependencies: path-parse "^1.0.6" +resolve@^1.12.0: + version "1.17.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" + integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== + dependencies: + path-parse "^1.0.6" + restore-cursor@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"